From 4ac10163398f1cd402c7f8461ff478aadab5fe8e Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 10 Nov 2013 16:05:50 +0100 Subject: aruco: explicitly release camera to aid macosx brain damage Signed-off-by: Stanislaw Halik --- ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ftnoir_tracker_aruco') diff --git a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp index e063be62..b1b58dec 100644 --- a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp +++ b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp @@ -364,6 +364,10 @@ start: if (frame.rows > 0) videoWidget->update_image(frame); } + + camera->release(); + camera.release(); + camera = nullptr; } bool Tracker::GiveHeadPoseData(double *data) -- cgit v1.2.3