#pragma once
|
#include <string>
|
#include <list>
|
#include <iostream>
|
#include <opencv2/opencv.hpp>
|
#include <opencv2/highgui.hpp>
|
#include <opencv2/core.hpp>
|
#include <opencv2/imgcodecs.hpp>
|
#include "CaptureUtil.h"
|
#include "RecognitionManager.h"
|
enum ImgType
|
{
|
IMG_TYPE_GP,
|
IMG_TYPE_ADD
|
};
|
struct GPCodeArea
|
{
|
ImgType type;
|
int startx;
|
int starty;
|
int endx;
|
int endy;
|
std::string code;
|
};
|
//ͬ»¨Ë³Ê¼þ
|
class THSActionUtil
|
{
|
private:
|
static RecognitionManager *recognitionManager;
|
|
public:
|
//´ò¿ªÍ¬»¨Ë³µÄ¸±ÆÁÄ»
|
static void openSecondScreen();
|
//ÉèÖÃ¹ÉÆ±
|
static void setGP(std::string quickCode, list<std::string> codeList);
|
//ʶ±ð¹ÉƱ´úÂë
|
static std::list<GPCodeArea> recognitionGPArea(cv::Mat img);
|
|
//ʶ±ðÊý×Ö
|
static std::list<GPCodeArea> recognitionNum(cv::Mat img,std::list<GPCodeArea> areaList);
|
|
|
|
|
|
|
};
|