Merge pull request #23495 from smeng9:4.x

Fix aruco module CORNER_REFINE_CONTOUR parameter gets skipped
pull/23523/head
Alexander Smorkalov 2 years ago committed by GitHub
commit 3113b49159
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      modules/objdetect/src/aruco/aruco_detector.cpp

@ -965,7 +965,7 @@ void ArucoDetector::detectMarkers(InputArray _image, OutputArrayOfArrays _corner
/// STEP 3, Optional : Corner refinement :: use contour container
if (detectorParams.cornerRefinementMethod == CORNER_REFINE_CONTOUR){
if (!_ids.empty()) {
if (!ids.empty()) {
// do corner refinement using the contours for each detected markers
parallel_for_(Range(0, (int)candidates.size()), [&](const Range& range) {

Loading…
Cancel
Save