added ok button check to magic
2
fruit.py
@@ -83,7 +83,7 @@ class Fruit(GameBase):
|
|||||||
cv.waitKey(500)
|
cv.waitKey(500)
|
||||||
|
|
||||||
screenshot = self.capture_window.get_screenshot()
|
screenshot = self.capture_window.get_screenshot()
|
||||||
screenshot = screenshot[188:1022, 553:1861]
|
screenshot = screenshot[188:1210, 390:2000]
|
||||||
# 553 to 1861 = 1330 / 11 = 119
|
# 553 to 1861 = 1330 / 11 = 119
|
||||||
# 188 to 1022
|
# 188 to 1022
|
||||||
#cv.imshow("screenshot", screenshot)
|
#cv.imshow("screenshot", screenshot)
|
||||||
|
|||||||
BIN
fruit/blue.jpg
|
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 7.3 KiB |
BIN
fruit/green.jpg
|
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 6.5 KiB |
BIN
fruit/orange.jpg
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 5.3 KiB |
BIN
fruit/red.jpg
|
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 8.7 KiB |
BIN
fruit/yellow.jpg
|
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 5.4 KiB |