-
Notifications
You must be signed in to change notification settings - Fork 652
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TrackAruco fails with OpenCV 4.7.0 #316
Comments
I need to spend some time to test out both Ubuntu 22.02 and the newer OpenCV to get it to support all the version. If you are able to address it, feel free to post the solution (or link to it). |
Hi @goldbattle , I'm using Ubuntu 20.04 but I'll tell you if I find the solution. Thank you! |
The following solution works for me:
Also in |
Hi @ZibYang
|
I believe you can just remove the line and it will use the default constructor: https://github.com/opencv/opencv/blob/86fa0308fc17f982cf9aa291b5e53e7b9e71e0be/modules/objdetect/include/opencv2/objdetect/aruco_detector.hpp#L23-L59 It looks like you will need to make a aruco::Dictionary aruco_dict = aruco::getPredefinedDictionary(aruco::DICT_6X6_1000);
aruco::DetectorParameters aruco_params;
aruco_params.cornerRefinementMethod = cv::aruco::CORNER_REFINE_SUBPIX;
aruco_detector = aruco::ArucoDetector(aruco_dict, aruco_params); and use it as: aruco_detector.detectMarkers(img0, corners[cam_id], ids_aruco[cam_id], rejects[cam_id]); |
Sorry about that. You should also change line 59 at ps. My reference is from: https://docs.opencv.org/4.x/d5/dae/tutorial_aruco_detection.html |
Hi!
I built OpenCV 4.7 from the sources (with contrib) but OpenVINS build fails if ENABLE_ARUCO_TAGS is ON:
I think it's a problem related to the aruco library that is not in contrib anymore. I think it's in opencv2/objdetect module now.
Adding
in TrackAruco.h doesn't fix the problem.
The text was updated successfully, but these errors were encountered: