Skip to content

Unable to detect big ArUco markers #2913

@wrmichaelmak

Description

@wrmichaelmak
System information (version)
  • OpenCV => 4.4.0/4.5.2
  • Operating System / Platform => Linux Ubuntu 18.04 64 bit
  • Tag dictionary => DICT_6X6_50
  • Image resolution =>640 x 480
Detailed description

I am having issues detecting markers of bigger size (0.5 m and above). I am aware of #2811 and #2900. I have implemented the proposed solutions from those issues but I still have no luck in trying to detect my marker. I noticed that the algorithm was able to identify the marker as a candidate but the algorithm rejects the marker as a valid marker. The problem does not occur at all times, it occurs only when I am outdoor. However, my use case of the ArUco markers is in an outdoor setting hence why I submitted this issue.

I noticed that the thresholding of the image seems to be fine and the algorithm was able to extract out the bits of the marker but I am not sure afterwards why the marker is rejected. I found out that apparently the algorithm is able to detect the marker itself as a candidate but additionally detects the outer white border as another candidate which then causes the function _filterTooCloseCandidate to remove the actual marker candidates and kept the white border candidates as a "valid candidate" due to its area being bigger. An example can be seen below.

Steps to reproduce

To reproduce the problem:

failed_marker_outside

Before _filterTooCloseCandidates function (black dots represent the corners of the candidates):
Screenshot 2021-04-07 at 14 51 12

After _filterTooCloseCandidates function:
Screenshot 2021-04-07 at 14 51 26

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions