#pragma once #include #include #include #include #include "SyncQueue.h" #include "ASyncQueue.h" #include "common.h" #include #include "alg.h" class WorkThread : public QThread { Q_OBJECT signals: void display_image(cv::Mat); public: WorkThread(QObject *parent = 0): QThread(parent) { } ~WorkThread(); void init(); void start_work(); void stop(); protected: void run(); public: SyncQueue >* p_save_queue; SyncQueue* p_image_queue; ASyncQueue* p_result_queue; Alg* m_alg_ptr; bool b_quit; };