OpenCVForUnity icon indicating copy to clipboard operation
OpenCVForUnity copied to clipboard

Any examples for AR Foundation?

Open burakkaraceylan opened this issue 3 years ago • 2 comments

I have a project where I use AR Foundation. Are there any examples for using solvepnp to place an object for augmented reality with AR Foundation?

burakkaraceylan avatar Aug 12 '21 18:08 burakkaraceylan

I found a code sample that converts ARFoundation's XRCameraImage to OpenCV's Mat and detecting ArUco marker here. https://gitlab.com/-/snippets/2041871

I haven't tried it, but it seems that developers can get the camera matrix from the TryGetIntrinsics method of ARCameraManager.

EnoxSoftware avatar Aug 13 '21 09:08 EnoxSoftware

Thank you I will try it.

Edit: I solved the problem.

burakkaraceylan avatar Aug 13 '21 11:08 burakkaraceylan