Skip to content

request replacement for deprecated CameraBoardSocket::RGB, LEFT, RIGHT, and CENTER. #142

@diablodale

Description

@diablodale

Commit eecb8de removed important functionality. I request a replacement method/process/api for an application to use so that the app can programmatically identify color cameras and depth mono pairs of cameras in retail OAK sensors.

  • My applications need to be able to open and use the color RGB camera.
  • My applications need to be able to open and use one mono camera, two mono cameras, or combined as a virtual depth.

dai::CameraBoardSocket::RGB is deprecated. it now has an uncertain future. My applications need an alterative programmatic method to definitely access and denote each camera on the sensor. This api needs to be within depthai-xxxx itself...only it knows itself, its firmware, hardware, sensors attached, etc. Customers writing solutions for OAK should not need to build their own database lookup tables or probing mechanisms.

Naturally, the enum is a great solution for retail OAK sensors since it is a compile-time constant that is unvarying, simple, and definitive. Personally...I would revert the deprecation and instead add specialized/new methods for custom OAK boards which have unknown sensors in unknown places/sockets.

Setup

  • all os, platforms
  • depthai-shared eecb8de

Repro

  1. Write any depthai-core application that uses CameraBoardSocket::RGB. Or use the many tests+examples included with depthai-core.
  2. config and build your application for Debug

Result

Many warnings (may be elevated to errors)

error C4996: 'dai::CameraBoardSocket::RGB': was declared deprecated
error C4996: 'dai::CameraBoardSocket::LEFT': was declared deprecated
error C4996: 'dai::CameraBoardSocket::RIGHT': was declared deprecated

Expected

No warnings or errors. Code should continue to build and work with no flaws

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions