| | |
| | | #include <opencv2/highgui.hpp> |
| | | #include <opencv2/core.hpp> |
| | | #include <opencv2/imgcodecs.hpp> |
| | | #include "CaptureUtil.h" |
| | | #include "RecognitionManager.h" |
| | | enum ImgType |
| | | { |
| | | IMG_TYPE_GP, |
| | |
| | | //同花顺事件 |
| | | class THSActionUtil |
| | | { |
| | | private: |
| | | static RecognitionManager *recognitionManager; |
| | | |
| | | public: |
| | | //打开同花顺的副屏幕 |
| | | static void openSecondScreen(); |
| | | //添加股票 |
| | | static void addGP(std::string quickCode, std::string code); |
| | | //删除股票 |
| | | static void deleteGP(std::string quickCode, std::string code); |
| | | //设置股票 |
| | | static void setGP(std::string quickCode, list<std::string> codeList); |
| | | //识别股票代码 |
| | | static std::list<GPCodeArea> recognitionGPCode(cv::Mat img); |
| | | static std::list<GPCodeArea> recognitionGPArea(cv::Mat img); |
| | | |
| | | |
| | | |
| | | //识别数字 |
| | | static std::list<GPCodeArea> recognitionNum(cv::Mat img,std::list<GPCodeArea> areaList); |
| | | |
| | | |
| | | |