update menti
This commit is contained in:
@@ -137,13 +137,14 @@ class MentiWords(GameBase):
|
||||
# thresh_needle = cv.threshold(gray_needle, 0, 255, cv.THRESH_BINARY_INV + cv.THRESH_OTSU)[1]
|
||||
|
||||
thresh_needle = utils.scale_screenshot(self.needles[needle_key], 200, False)
|
||||
rectangles = self.vision_stun.find(screenshot, thresh_needle , 0.85, 1)
|
||||
rectangles = self.vision_stun.find(screenshot, thresh_needle , 0.85, 2)
|
||||
#rectangles = self.vision_stun.find(screenshot, self.needles[needle_key], 0.95, 1 ,True, self.masks[needle_key])
|
||||
if len(rectangles) == 0:
|
||||
continue
|
||||
points = self.vision_stun.get_click_points(rectangles)
|
||||
for point in points:
|
||||
self.current_letters.append(needle_key)
|
||||
self.letter_coords[needle_key] = (int(points[0][0]/2), int(points[0][1]/2))
|
||||
self.letter_coords[needle_key] = (int(point[0]/2), int(point[1]/2))
|
||||
'''
|
||||
cropped1 = self.vision_stun.draw_display_picture(screenshot, rectangles, 10)
|
||||
#cropped1 = utils.scale_screenshot(cropped1)
|
||||
|
||||
Reference in New Issue
Block a user