Version mismatch in docs #1362
frederickbrock
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi. The documentation on github says its compatible with OpenCV 4.13, while on https://pkg.go.dev/gocv.io/x/gocv#section-sourcefiles it says 4.12. I have built OpenCV 4.13, 4.0.9, 4.1.2 and I get these errors (100's of them) no matter the version. Its as if the library aruco, although built into opencv by me (also pulled opencv_contrib and built 4.13 and I can see it succeeds, make install succeeds etc) has issues. I haven't had to build things at this level for a long time, I am sure I must be doing something wrong. Any tips would help
pkg-config --list-all | grep opencv
opencv4 OpenCV - Open Source Computer Vision Library
go,mod
module webcam-ollama
go 1.25
require (
gocv.io/x/gocv v0.43.0
)
sample of errors (repetative...many more)
In file included from aruco.cpp:3:
aruco.h:77:5: note: ‘int ArucoDetectorParameters_GetAprilTagDeglitch’ previously defined here
77 | int ArucoDetectorParameters_GetAprilTagDeglitch(ArucoDetectorParameters ap);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
aruco.cpp:276:49: error: ‘ArucoDetectorParameters’ was not declared in this scope
276 | int ArucoDetectorParameters_GetAprilTagDeglitch(ArucoDetectorParameters ap) {
| ^~~~~~~~~~~~~~~~~~~~~~~
aruco.cpp:280:6: error: variable or field ‘ArucoDetectorParameters_SetDetectInvertedMarker’ declared void
280 | void ArucoDetectorParameters_SetDetectInvertedMarker(ArucoDetectorParameters ap, bool detectInvertedMarker) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
aruco.cpp:280:54: error: ‘ArucoDetectorParameters’ was not declared in this scope
280 | void ArucoDetectorParameters_SetDetectInvertedMarker(ArucoDetectorParameters ap, bool detectInvertedMarker) {
| ^~~~~~~~~~~~~~~~~~~~~~~
aruco.cpp:280:82: error: expected primary-expression before ‘bool’
280 | void ArucoDetectorParameters_SetDetectInvertedMarker(ArucoDetectorParameters ap, bool detectInvertedMarker) {
| ^~~~
aruco.cpp:284:6: error: redefinition of ‘bool ArucoDetectorParameters_GetDetectInvertedMarker’
284 | bool ArucoDetectorParameters_GetDetectInvertedMarker(ArucoDetectorParameters ap) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from aruco.cpp:3:
aruco.h:79:6: note: ‘bool ArucoDetectorParameters_GetDetectInvertedMarker’ previously defined here
79 | bool ArucoDetectorParameters_GetDetectInvertedMarker(ArucoDetectorParameters ap);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
aruco.cpp:284:54: error: ‘ArucoDetectorParameters’ was not declared in this scope
284 | bool ArucoDetectorParameters_GetDetectInvertedMarker(ArucoDetectorParameters ap) {
| ^~~~~~~~~~~~~~~~~~~~~~~
aruco.cpp: In function ‘OpenCVResult ArucoDrawDetectedMarkers(Mat, Points2fVector, IntVector, Scalar)’:
aruco.cpp:297:13: error: ‘cv::aruco’ has not been declared
297 | cv::aruco::drawDetectedMarkers(*image, *markerCorners, _markerIds, _borderColor);
| ^~~~~
aruco.cpp: In function ‘OpenCVResult ArucoGenerateImageMarker(int, int, int, Mat, int)’:
aruco.cpp:307:13: error: ‘cv::aruco’ has not been declared
307 | cv::aruco::Dictionary dict = cv::aruco::getPredefinedDictionary(dictionaryId);
| ^~~~~
aruco.cpp:308:13: error: ‘cv::aruco’ has not been declared
308 | cv::aruco::generateImageMarker(dict, id, sidePixels, *img, borderBits);
| ^~~~~
aruco.cpp:308:40: error: ‘dict’ was not declared in this scope
308 | cv::aruco::generateImageMarker(dict, id, sidePixels, *img, borderBits);
| ^~~~
aruco.cpp: At global scope:
aruco.cpp:315:1: error: ‘ArucoDictionary’ does not name a type
315 | ArucoDictionary getPredefinedDictionary(int dictionaryId)
Beta Was this translation helpful? Give feedback.
All reactions