diff options
Diffstat (limited to 'tracker-aruco')
-rw-r--r-- | tracker-aruco/ftnoir_tracker_aruco.cpp | 4 | ||||
-rw-r--r-- | tracker-aruco/ftnoir_tracker_aruco.h | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/tracker-aruco/ftnoir_tracker_aruco.cpp b/tracker-aruco/ftnoir_tracker_aruco.cpp index 37e34246..a1bde523 100644 --- a/tracker-aruco/ftnoir_tracker_aruco.cpp +++ b/tracker-aruco/ftnoir_tracker_aruco.cpp @@ -73,7 +73,7 @@ aruco_tracker::~aruco_tracker() camera.release(); } -void aruco_tracker::start_tracker(QFrame* videoframe) +module_status aruco_tracker::start_tracker(QFrame* videoframe) { videoframe->show(); videoWidget = std::make_unique<cv_video_widget>(videoframe); @@ -83,6 +83,8 @@ void aruco_tracker::start_tracker(QFrame* videoframe) videoframe->setLayout(layout.get()); videoWidget->show(); start(); + + return status_ok(); } void aruco_tracker::getRT(cv::Matx33d& r_, cv::Vec3d& t_) diff --git a/tracker-aruco/ftnoir_tracker_aruco.h b/tracker-aruco/ftnoir_tracker_aruco.h index fd42d722..72f52eb8 100644 --- a/tracker-aruco/ftnoir_tracker_aruco.h +++ b/tracker-aruco/ftnoir_tracker_aruco.h @@ -65,7 +65,7 @@ struct settings : opts { class aruco_dialog; -class aruco_tracker : protected QThread, public ITracker +class aruco_tracker : protected virtual QThread, public ITracker { Q_OBJECT friend class aruco_dialog; @@ -73,7 +73,7 @@ class aruco_tracker : protected QThread, public ITracker public: aruco_tracker(); ~aruco_tracker() override; - void start_tracker(QFrame* frame) override; + module_status start_tracker(QFrame* frame) override; void data(double *data) override; void run() override; void getRT(cv::Matx33d &r, cv::Vec3d &t); |