-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
request replacement for deprecated CameraBoardSocket::RGB
, LEFT
, RIGHT
, and CENTER
.
#142
Comments
Check updated examples:
Reason for the change is that board socket does not correlate to the "semantic" of a camera, especially in FFC scenarios or newer devices. The semantic can be inferred either from name, or from type or other features that are retrievable. This was also a reason for the deprecation - it'll go away in the future, hopefully replaced with something better, but it is api that does not hold correct. Better will likely be a replacement of sorts: "getDefaultCameraBoardSocket(dai::Camera::RGB)" which returns a socket (perhaps optional) or name, etc...
|
I don't see any improvements or replacements in examples The latter would require startups/teardowns of pipelines starting at A -> ? letter to find somewhere a color camera. Naturally, this is unworkable. I encourage continued compatibility such that today's RGB, LEFT, RIGHT, CENTER continue to work. It would be the job internal code within depthai-core to map that into the given't device's color camera. for example....
[EDITED] Meanwhile, if your examples imply that you have no replacement or methodology currently planned, then I recommend you don't |
This'd be a good approach - but might fall short in cases where there is no device info available. Likes of CalibrationHandler, etc... That usage would still be deprecated then, but conditionally. So would have to fall under a runtime check. Current replacement mechanism is We can extend the "standard naming" (left, right, color) to always apply, even for devices where that naming differs, by automatically falling down to "best candidate" (likes of FFC, etc...) |
I saw you recently released a version with these new APIs. Your build has many warnings on the deprecation. I recommend the SDK code's be updated to not deprecate itself and to use the deprecation feature where you can put the new api usage. Naturally, breaking API changes are strongly discouraged as it leads to difficult by customers like me. That is unless you were jumping from depthai v2 -> depthai v3 and then there are many opportunities for breaking changes. |
..and what is the plan for inspecting values of Keep in mind that For example, my app needs to know if a camera is fixed or auto focus for many reason including luxonis/depthai-core#326. I am still required to inspect Is |
CameraFeatures is the plan - that will be the main "capabilities" of imaging portion of the device. To discover rgb camera, you may use Likewise for autofocus capabilities, which is WIP. |
We'll implement replacements using
Modifications include:
|
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.
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
Repro
CameraBoardSocket::RGB
. Or use the many tests+examples included with depthai-core.Result
Many warnings (may be elevated to errors)
Expected
No warnings or errors. Code should continue to build and work with no flaws
The text was updated successfully, but these errors were encountered: