OpenFTC / EasyOpenCV

Finally, a straightforward and easy way to use OpenCV on an FTC robot!
213 stars 95 forks source link

Using Vuforia with OpenCV simultaneously on the same camera #26

Closed dgorbunov closed 3 years ago

dgorbunov commented 3 years ago

Is it possible to use Vuforia with OpenCV on one camera simultaneously or should I resort to switching between the two? It would be nice to be able to pass in the Vuforia frames into OpenCV like TensorFlow does, but it doesn't look possible.

If not, then is it possible to make both a Vuforia and OpenCV instance off of one camera? I'm not sure...

Windwoes commented 3 years ago

This is something that is not currently supported at the moment, but could be supported with a little bit of work. It brings numerous disadvantages, though, such as much higher overhead per frame as well as preventing you from being able to choose the specific resolution you want to run the camera at, and preventing you from having manual control over camera parameters such as exposure and ISO.

Running both a Vuforia and OpenCV instance off the same camera without EOCV support for pulling from Vuforia will definitely not work.

Windwoes commented 3 years ago

I just released v1.4.4 which adds support for Vuforia passthrough mode. Take OpenCvAndVuforiaOnSameCameraExample for a spin and let me know how it goes.