admin
2022-06-27 eda1a611bc4afcf1c36a6c728f432aec1f688e1b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#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);
 
 
 
    
 
 
};