mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 09:25:45 +08:00
Fix aruco detector thread safety.
Concurrently writing to a vector<bool> is not thread-safe.
This commit is contained in:
parent
a8ec658611
commit
14e0d43550
@ -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…
Reference in New Issue
Block a user