OpenCVForUnity
OpenCVForUnity copied to clipboard
Any examples for AR Foundation?
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?
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.
Thank you I will try it.
Edit: I solved the problem.