summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
index b1b58dec..ab27d7c6 100644
--- a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
+++ b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
@@ -144,6 +144,7 @@ Tracker::Tracker()
Tracker::~Tracker()
{
+ QMutexLocker foo(&mtx);
stop = true;
wait();
if (layout)
@@ -364,10 +365,6 @@ start:
if (frame.rows > 0)
videoWidget->update_image(frame);
}
-
- camera->release();
- camera.release();
- camera = nullptr;
}
bool Tracker::GiveHeadPoseData(double *data)