Integrating camera with OpenCV

Hi - hopefully this is a simple configuration question. It is possible to feed the main camera image into OpenCV for real-time processing on device? If so, is it permitted to use the GPU for open cv?

Thank you

I have successfully run the OpenCV for Unity plugin for realtime image processing (Object detection, face detection, chroma keying) but we do not currently have our own samples on native integration with OpenCV, though it should be possible.

You can try looking at the C API Camera samples to get familiar with the camera features currently available.

Hi @kvlasova,

can you explain how to connect magic leap camera to OpenCV for Unity?
I'm try to run the barcode scanner but nothing happens...

Thanks

Hi @simone.galvani,

Welcome back to the forums.

I would like to point you to our ML Camera Unity Documentation: MLCamera Overview | MagicLeap Developer Documentation

You can also replace the Main Camera object in the scene with the XR Rig from the Magic Leap SDK

Let me know if this helps,

Best,

El