From 125db633619a0b4c7bd1d498ea2bf1cefa4f73d3 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期四, 09 二月 2023 18:54:13 +0800 Subject: [PATCH] '远程OCR' --- ConsoleApplication/L2DataCapture.h | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/ConsoleApplication/L2DataCapture.h b/ConsoleApplication/L2DataCapture.h index b1aeee8..832e95d 100644 --- a/ConsoleApplication/L2DataCapture.h +++ b/ConsoleApplication/L2DataCapture.h @@ -16,6 +16,8 @@ string buyTime; string buyOnePrice; string buyOneVolumn; + //成交队列 + list<string> buyQueue; }; typedef void (*CallbackFun)(int index, string code,long captureTime,long processTime, list<TradeData*> dataList, void* contex); @@ -51,6 +53,11 @@ static void _run_trade_queue(int index); + //识别买入队列 + static std::list<string> captureLevel2TradeQueueBuyData(OpenCLExcuter* openCLExcuter, cv::Mat& grayImg,int identify); + + //灰度图像 + static cv::Mat grayImg(OpenCLExcuter* openCLExcuter, cv::Mat& oImg); public: @@ -87,14 +94,15 @@ //捕获level2的盘口数据 static list<TradeData*> captureLevel2TradeData(HWND hwnd,int index) throw(int); - static list<TradeData*> captureLevel2TradeData(cv::Mat& oimg,int identify); + static list<TradeData*> captureLevel2TradeData(cv::Mat& oimg, int identify); static list<TradeData*> captureLevel2TradeData(OpenCLExcuter *openCLExcuter, cv::Mat& oimg, int identify); static L2TradeQueue captureLevel2TradeQueueData(HWND hwnd, int index); - static L2TradeQueue captureLevel2TradeQueueData(cv::Mat& oimg, int identify); - static L2TradeQueue captureLevel2TradeQueueData(OpenCLExcuter* openCLExcuter, cv::Mat& oimg, int identify); - + static L2TradeQueue captureLevel2TradeQueueData(cv::Mat& oimg, cv::Rect buyQueueArea, int identify); + static L2TradeQueue captureLevel2TradeQueueData(OpenCLExcuter* openCLExcuter, cv::Mat& oimg, cv::Rect buyQueueArea, int identify); + // 买卖队列概要信息识别 + static L2TradeQueue captureLevel2TradeQueueViewData(OpenCLExcuter* openCLExcuter, cv::Mat& grayImg, int identify); -- Gitblit v1.8.0