Skip to content
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

Unable to use RGB camera (Oak-D) for Feature-Tracking #30

Open
hatschiw opened this issue Mar 15, 2024 · 2 comments
Open

Unable to use RGB camera (Oak-D) for Feature-Tracking #30

hatschiw opened this issue Mar 15, 2024 · 2 comments

Comments

@hatschiw
Copy link

hatschiw commented Mar 15, 2024

Hello Spectacular AI Team,
I have an Oak-D Pro (which is basically an Oak-D S2 with an IR dot projector) and I am trying to use the RGB camera for Feature-Tracking.
The monochrome results are not usable. So Feature-Tracking with color-reference is needed.

If I use:

config = spectacularAI.depthai.Configuration()
config.useFeatureTracker = True
config.useColor = True

I get this Warning:

SpectacularAI WARN: Unsupported image format RGB888i
SpectacularAI ERROR: Cannot convert image to Spectacular AI format

Trying to change the Format for example with:

rgb_camera = pipeline.create(depthai.node.ColorCamera)
rgb_camera.setInterleaved(False)
rgb_camera.setColorOrder(depthai.ColorCameraProperties.ColorOrder.BGR)

...doesn't help because it seems that you create internally a depthai.node.ColorCamera instance.

Because I get this exception:

ColorCamera(3) - Specified camera board socket already used.

Is there anything I can do to get the RGB camera working with Feature-Tracking.

Also, I'd like to ask which is the lowest usable voxel-size? Thank you for your efforts!

Greetings to Finnland

@hatschiw hatschiw changed the title Unable to use RGB Camera (Oak-D) for Feature-Tracking Unable to use RGB camera (Oak-D) for Feature-Tracking Mar 15, 2024
@oseiskar
Copy link
Member

Trying to change the Format for example with:

rgb_camera = pipeline.create(depthai.node.ColorCamera)
rgb_camera.setInterleaved(False)
rgb_camera.setColorOrder(depthai.ColorCameraProperties.ColorOrder.BGR)

...doesn't help because it seems that you create internally a depthai.node.ColorCamera instance.

Hi. You cannot create your own color camera node, but you can modify the camera node in the spectacularAI.Pipeline object. There's no example for this but see a related one, which shows how to modify the FPS by directly accessing DepthAI gray camera nodes.

However, this feature is not expected to work very well on most OAK models, especially the ones with a rolling shutter RGB sensor, see here for more info.

@hatschiw
Copy link
Author

Got it! Thank you for the quick reply!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants