Skip to content

Aruco detection is worsened since OpenCV 4.1.2 #2492

@stefanopini

Description

@stefanopini
System information (version)
  • OpenCV => 4.2.0.34 (opencv-contrib-python)
  • Operating System / Platform => Windows 10 64bit / Python 3.6.4
  • Compiler => Package installed with pip
Detailed description

The last version of the Aruco detection algorithm ( see pull request #2236 ), which is included in OpenCV 4.1.2 and above, has worse performance than the previous one when the outer border of black markers is small.
The algorithm completely fails to find black markers whose outer white border is quite small (just few pixels) with both real and synthetic images. The old algorithm finds them.
I tried to change some DetectorParameters (e.g. minMarkerPerimeterRate, minCornerDistanceRate and markerBorderBits) without success.

Steps to reproduce

Please see the attached reference Python code and image.
Code is tested with OpenCV 4.1.1.26 (8/8 markers found) and 4.2.0.34 (2/8 markers found) with Python 3.6.4. Corresponding results are reported.

aruco-detection-issue.zip

Issue submission checklist
  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues,
    answers.opencv.org, Stack Overflow, etc and have not found solution
  • I updated to latest OpenCV version (available through PyPI) and the issue is still there
  • There is reproducer code and related data files: videos, images, onnx, etc

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions