Zed Mini with OpenCV not working


I just purchased OpenCV for Unity and wanted to try it with my Zed Mini camera in my HTC Vive headset using SteamVr for the AR passthrough.

I’m using Unity 2021.3.22f1, Zed SDK 4.03, Nvidia CUDA 12.1 and the Zed Unity plugin 4.0.0. (Wanted to use 4.0.3 plugin but for reason i don’t know it only show a blackscreen whereas when I’m using 4.0.0 I see what the camera is capturing)

So I opened the scene “Simple Marker Placement” in ZED/Examples/OpenCV ArUco Detection/Scenes, opened a marker image on Paint (to have white around the marker’s edges) and runned the scene. But when I look at the marker with my headset nothing happens and I don’t have any errors.

I don’t see what could be the problem, that’s why I’m asking here.

Thank you in advance for any responses.


Can you try the solution suggested in this post ?

Yes, it fixed it.
I don’t know if it’s the same with latest plugin version but it seems that with 4.0.0 plugin version, the 6x6 dictionnary is selected by default which could be confusing as marker images provided in the folder are 4x4


Thank you and sorry for not noticing there was already a post with the solution.

You are right, I’ll change that. Thanks for the feedback !