From 9adb473067a993b4e0eacf3675baf14b29da3eca Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期五, 22 七月 2022 18:44:24 +0800
Subject: [PATCH] '测试'

---
 ConsoleApplication/IndustryCapture.h |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/ConsoleApplication/IndustryCapture.h b/ConsoleApplication/IndustryCapture.h
index c0cbb9d..7dacd81 100644
--- a/ConsoleApplication/IndustryCapture.h
+++ b/ConsoleApplication/IndustryCapture.h
@@ -19,6 +19,8 @@
 };
 
 
+typedef void (*CallbackFun_Industry)(list<IndustryData> dataList, void* contex);
+
 class IndustryCapture
 {
 private:
@@ -27,12 +29,16 @@
 	static bool inited;
 
 	static HWND win;
+	static CallbackFun_Industry data_callback;
+	static void* context;
 
 	static cv::Mat grayImgs(cv::Mat img);
 
+	static bool terminated;
+
 
 public:
-	void init();
+	void init(CallbackFun_Industry callback, void* context);
 	void refreshHWND();
 
 	static list<list<IndustryData>> captureIndustryCodes(cv::Mat img);
@@ -40,5 +46,7 @@
 	static list<list<IndustryData>> captureIndustryCodes();
 
 	bool isInited();
+
+	void stop();
 };
 

--
Gitblit v1.8.0