Skip to content

Conversation

@AleksandrPanov
Copy link
Contributor

#3220 from buq2:aruco-apriltag-infinite-loop-fix
#3200 from AleksandrPanov:aruco_improvements

Previous "Merge 3.4": #3215

buq2 and others added 2 commits April 14, 2022 17:50
…-fix

Fix infinite loop on ArUco apriltag refinement

* Fix infinite loop on ArUco apriltag refinement

Software entered infinite loop when image height
was smaller than 10*cv::getNumThreads(). With high
core count machines this could happen with very
reasonable image sizes.

Fix is to ensure that chunksize is at least 1.

* Test aruco detection with different number of threads

Test ensures that different aruco detection methods do not
produce different results based on number of threads.

Test was created after observing infinite loop caused
by small image and large number of threads when using
apriltag corner refinement.

* Test refactoring.

* Syntax fix for pre-C++11 compilers.

Co-authored-by: Alexander Smorkalov <[email protected]>
Aruco improvements

* add writeDictionary(), dict distance, fix readDictionary(), readDetectorParameters()

* add aruco_dict_utils.cpp

* add py test_write_read_dict

* update tutorial
@AleksandrPanov AleksandrPanov marked this pull request as draft April 15, 2022 15:03
@asmorkalov
Copy link
Contributor

@AleksandrPanov please resolve conflicts.

@AleksandrPanov
Copy link
Contributor Author

@AleksandrPanov please resolve conflicts.

3.4 has already been merged into 4.x, so I close this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants