12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- #pragma once
- #include <opencv\cv.h>
- #include <opencv\cxcore.h>
- #include <opencv2\opencv.hpp>
- #include "scan_common.h"
- using namespace cv;
- enum identyfi_type{
- identyfi_type_normal,
- identyfi_type_manualmatch,
- identyfi_type_reidentify,
- };
- enum SRC_IMG_HANDLE_TYPE{
- SRC_IMG_HANDLE_TYPE_NONE,
- SRC_IMG_HANDLE_TYPE_COPY,
- SRC_IMG_HANDLE_TYPE_SAVE,
- };
- struct feeder_param{
- identyfi_type type;
- SRC_IMG_HANDLE_TYPE srcimg_type;
- int paper_id;
- int phy_number;
- int schema_index;
- int x_s[3];
- int y_s[3];
- int x_m[3];
- int y_m[3];
- std::string img_path;
- };
- /************************************************************************/
- /* 图像送入器接口 */
- /* 2014年12月9日16:04:06 */
- /* 作者:唐林 */
- /************************************************************************/
- class IFeeder:public IService
- {
- public:
- IFeeder(void){}
- ~IFeeder(void){}
- virtual BOOL SupportPause(){return FALSE;}
- virtual BOOL SupportStop(){return FALSE;}
- virtual int SetHandlerWnd(HWND hwnd){m_hwnd = hwnd;return 0;}
- virtual bool GetNext(BOOL wait,IplImage* & img, feeder_param& param){
- img =0;
- return false;
- }
- void FreeImg( IplImage *& img ){cvReleaseImage(&img);}
- protected:
- HWND m_hwnd;
- };
|