-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Issue with OpenCV 3.4.1 #4
Comments
Here is the interesting snippet:
|
AMC-detect.cc, lines 1264-1291: if(sscanf(commande, "mesure0 %lf %s %lf %lf %lf %lf",
&prop, shape_name,
&xmin, &xmax, &ymin, &ymax) == 6) {
/* "mesure0" and 6 arguments: proportion, shape, xmin, xmax, ymin, ymax
return: number of black pixels and total number of pixels */
transforme(&transfo, xmin, ymin, &box[0].x, &box[0].y);
transforme(&transfo, xmax, ymin, &box[1].x, &box[1].y);
transforme(&transfo, xmax, ymax, &box[2].x, &box[2].y);
transforme(&transfo, xmin, ymax, &box[3].x, &box[3].y);
if(strcmp(shape_name,"oval") == 0) {
shape_id = SHAPE_OVAL;
} else {
shape_id = SHAPE_SQUARE;
}
/* output transformed points */
for(i = 0; i < 4; i++) {
printf("TCORNER %.3f,%.3f\n", box[i].x, box[i].y);
}
mesure_case(src, illustr, illustr_mode,
student, page, question, answer,
prop, shape_id,
xmin, xmax, ymin, ymax, &transfo_back,
box, dst, zooms_dir, view);
student = -1;
} The error seems to come before |
Narrowed it to |
Ok, I issued a bug ticket to the OpenCV project: opencv/opencv#11076 |
closes #4 Closes #3. Signed-off-by: Maël Valais <[email protected]>
Bug fixed in PR 53 (bitbucket). We simply rewrote the C calls into C++ calls. |
Homebrew updated OpenCV from 3.4.0 to 3.4.1 and it apparently broke something. You will get the following error in the terminal:
There is a similar issue in pjreddie/darknet#518.
Workaround until this is fixed in Homebrew core and in OpenCV:
At this point, I see that I still have 3.4.1_1 so I can go ahead and use it instead of 3.4.1_2:
Now it should work
Note: the issue seems to be in
AMC-analyse.cc
The text was updated successfully, but these errors were encountered: