EnoxSoftware / HoloLensWithOpenCVForUnityExample

HoloLens With OpenCVforUnity Example (Support for Hololens1 and Hololens2)
MIT License
262 stars 50 forks source link

DetectorParameters and CharucoBoard could not be found errors #51

Open trevormangum opened 1 year ago

trevormangum commented 1 year ago

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!

EnoxSoftware commented 1 year ago

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.

trevormangum commented 1 year ago

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