Neccor 4 years ago
parent
commit
460841f82b
4 changed files with 16 additions and 0 deletions
  1. BIN
      assets/autoduel.png
  2. 16
    0
      main.py
  3. BIN
      screenshots/Assists Duel.png
  4. BIN
      screenshots/Auto Duel.png

BIN
assets/autoduel.png View File


+ 16
- 0
main.py View File

@@ -0,0 +1,16 @@
1
+import cv2
2
+
3
+# template = cv2.imread("assets/{}.png".format(image), 0)
4
+
5
+
6
+template = cv2.imread("assets/autoduel.png", 0)
7
+width, height = template.shape[::-1]
8
+print(width)
9
+print(height)
10
+
11
+
12
+screen = cv2.imread("screenshots/Auto Duel.png", 0)
13
+match = cv2.matchTemplate(screen, template, cv2.TM_CCOEFF_NORMED)
14
+value, location = cv2.minMaxLoc(match)[1], cv2.minMaxLoc(match)[3]
15
+print(value)
16
+print(location)

BIN
screenshots/Assists Duel.png View File


BIN
screenshots/Auto Duel.png View File


Loading…
Cancel
Save