This commit is contained in:
modehua 2023-09-18 23:55:45 -07:00
parent 37ddafb4c4
commit 9e33978e14
4 changed files with 2 additions and 23 deletions

View File

@ -1,2 +0,0 @@
#pragma once
#include <memory>

View File

@ -1,5 +0,0 @@
#include "IPreproc.h"
IPreproc::IPreproc(void){}
IPreproc::~IPreproc(void){}

View File

@ -1,13 +0,0 @@
#pragma once
#include <vector>
//#include <opencv2/opencv.hpp>
class IPreproc
{
public:
IPreproc(void);
virtual ~IPreproc(void);
//virtual int preprocess(cv::Mat& mat,void* unused=nullptr) = 0;
};

View File

@ -2,7 +2,7 @@
#include <thread> #include <thread>
#include "autoevent.hpp" #include "autoevent.hpp"
#include "CorrectParam.h" #include "CorrectParam.h"
#include "IPreproc.h"
//#define TEST_SIMCAP //#define TEST_SIMCAP
@ -53,8 +53,7 @@ private:
std::condition_variable m_cv_snapdone; std::condition_variable m_cv_snapdone;
std::shared_ptr<std::thread> m_snap_thread; std::shared_ptr<std::thread> m_snap_thread;
std::shared_ptr<std::thread> m_imgproc_thread; std::shared_ptr<std::thread> m_imgproc_thread;
//std::vector<cv::Mat> m_frames;
std::vector<std::shared_ptr<IPreproc>> m_preproclist;
std::thread m_correctThread; std::thread m_correctThread;
ScannerGlue m_glue; ScannerGlue m_glue;