added first draft new pickaxe try
This commit is contained in:
12
pickaxe.py
12
pickaxe.py
@@ -71,11 +71,11 @@ class Pickaxe_Field(GameBase):
|
|||||||
# initialize the StunVision class
|
# initialize the StunVision class
|
||||||
self.vision_stun = Vision()
|
self.vision_stun = Vision()
|
||||||
|
|
||||||
self.needles = {1: cv.imread("pickaxe/1.png", cv.IMREAD_COLOR),
|
self.needles = {1: cv.imread("pickaxe/1.jpg", cv.IMREAD_COLOR),
|
||||||
2: cv.imread("pickaxe/2.png", cv.IMREAD_COLOR),
|
2: cv.imread("pickaxe/2.jpg", cv.IMREAD_COLOR),
|
||||||
3: cv.imread("pickaxe/3.png", cv.IMREAD_COLOR),
|
3: cv.imread("pickaxe/3.jpg", cv.IMREAD_COLOR),
|
||||||
4: cv.imread("pickaxe/4.png", cv.IMREAD_COLOR),
|
4: cv.imread("pickaxe/4.png", cv.IMREAD_COLOR),
|
||||||
5: cv.imread("pickaxe/5.png", cv.IMREAD_COLOR),
|
5: cv.imread("pickaxe/5.jpg", cv.IMREAD_COLOR),
|
||||||
6: cv.imread("pickaxe/6.png", cv.IMREAD_COLOR),
|
6: cv.imread("pickaxe/6.png", cv.IMREAD_COLOR),
|
||||||
7: cv.imread("pickaxe/7.png", cv.IMREAD_COLOR),
|
7: cv.imread("pickaxe/7.png", cv.IMREAD_COLOR),
|
||||||
8: cv.imread("pickaxe/8.png", cv.IMREAD_COLOR),
|
8: cv.imread("pickaxe/8.png", cv.IMREAD_COLOR),
|
||||||
@@ -416,8 +416,8 @@ class Pickaxe_Field(GameBase):
|
|||||||
def get_current_board_state(self):
|
def get_current_board_state(self):
|
||||||
|
|
||||||
# get an updated image of the game
|
# get an updated image of the game
|
||||||
screenshot = self.capture_window.get_screenshot()
|
#screenshot = self.capture_window.get_screenshot()
|
||||||
#screenshot = cv.imread("playfield_pic3.jpg")
|
screenshot = cv.imread("pickaxe/screen1.jpg")
|
||||||
screenshot = screenshot[200:1200, 650:1650] # 1000,1000
|
screenshot = screenshot[200:1200, 650:1650] # 1000,1000
|
||||||
|
|
||||||
# cv.imshow("screenshot", screenshot)
|
# cv.imshow("screenshot", screenshot)
|
||||||
|
|||||||
BIN
pickaxe/1.jpg
Normal file
BIN
pickaxe/1.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.5 KiB |
BIN
pickaxe/2.jpg
Normal file
BIN
pickaxe/2.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.5 KiB |
BIN
pickaxe/3.jpg
Normal file
BIN
pickaxe/3.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
BIN
pickaxe/5.jpg
Normal file
BIN
pickaxe/5.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9.2 KiB |
BIN
pickaxe/screen1.jpg
Normal file
BIN
pickaxe/screen1.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 561 KiB |
Reference in New Issue
Block a user