From 6ec1b71d28b4a55b00aab223688d1df7b09bab03 Mon Sep 17 00:00:00 2001 From: Thaloria Date: Sat, 29 Jul 2023 20:20:18 +0200 Subject: [PATCH] update litris with board detection --- litris_stone_id_thread.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litris_stone_id_thread.py b/litris_stone_id_thread.py index 4a6cab7..0a30287 100644 --- a/litris_stone_id_thread.py +++ b/litris_stone_id_thread.py @@ -149,7 +149,7 @@ class NewStoneID(threading.Thread): for needle_key in self.needles.keys(): #gray_needle = cv.cvtColor(self.needles[needle_key], cv.COLOR_BGR2GRAY) #thresh_needle = cv.threshold(gray_needle, 0, 255, cv.THRESH_BINARY_INV + cv.THRESH_OTSU)[1] - rectangles = self.vision_stun.find(screenshot, self.needles[needle_key], 0.8, 100) + rectangles = self.vision_stun.find(screenshot, self.needles[needle_key], 0.8, 200) if len(rectangles) == 0: continue points = self.vision_stun.get_click_points(rectangles)