HoloLensWithOpenCVForUnityExample icon indicating copy to clipboard operation
HoloLensWithOpenCVForUnityExample copied to clipboard

DetectorParameters and CharucoBoard could not be found errors

Open trevormangum opened this issue 2 years ago • 2 comments
trafficstars

Hello!

I purchased the OpenCV for Unity asset on January 10th. I have been following the steps in the README.md to get the example project to work correctly on unity. However, I have been able to resolve some errors, so I am unable to actually run or build the project in Unity. I have included an image of the errors in Unity.

image

After combing through the documentation of OpenCV for Unity, I think there may be missing files causing this issue. The documentation for the the CharucoBoard is found at https://enoxsoftware.github.io/OpenCVForUnity/3.0.0/doc/html/class_open_c_v_for_unity_1_1_aruco_module_1_1_charuco_board.html. At the bottom of the webpage, it says that "The documentation for this class was generated from the following file: OpenCVForUnity/org/opencv_contrib/aruco/CharucoBoard.cs". However, in the OpenCVForUnity that I imported, those files are not included. (See Below)

image

The same story goes for the DetectorParameters as well. I'm pretty sure I imported everything correctly from the most recent OpenCVForUnity. Am I just missing a couple of files and that's what's causing my error, or is it something else? Any guidance would be appreciated. Thanks in advance!

trevormangum avatar Jan 13 '23 17:01 trevormangum

Thanks for the report. With the latest opencv (4.7.0) changes, the example using the ArUco class no longer works. A fixed version (1.0.7) is now available, so please try it.

EnoxSoftware avatar Jan 15 '23 06:01 EnoxSoftware

Thanks for the response. The new version works perfectly! Thanks for the help!

trevormangum avatar Jan 17 '23 17:01 trevormangum