admin
2023-02-09 125db633619a0b4c7bd1d498ea2bf1cefa4f73d3
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);