Fix aruco detector thread safety.

Concurrently writing to a vector<bool> is not thread-safe.
pull/24807/head
Vincent Rabaud 11 months ago
parent a8ec658611
commit 14e0d43550
  1. 2
      modules/objdetect/src/aruco/aruco_detector.cpp

@ -780,7 +780,7 @@ struct ArucoDetector::ArucoDetectorImpl {
vector<int> idsTmp(ncandidates, -1);
vector<int> rotated(ncandidates, 0);
vector<uint8_t> validCandidates(ncandidates, 0);
vector<bool> was(ncandidates, false);
vector<uint8_t> was(ncandidates, false);
bool checkCloseContours = true;
int maxDepth = 0;

Loading…
Cancel
Save