Skip to content

Commit

Permalink
Merge pull request #7 from CrossyChainsaw/add-icon
Browse files Browse the repository at this point in the history
Add icon
  • Loading branch information
CrossyChainsaw authored Jul 1, 2024
2 parents 00751ac + 2054c8b commit a63dffa
Show file tree
Hide file tree
Showing 14 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/build
*.pyc
Binary file added design/my_logo.psd
Binary file not shown.
Binary file added design/my_logo_v3.ico
Binary file not shown.
Binary file added design/my_logo_v3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
7 changes: 5 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
TEMPLATE_IMG_PATH = open_image_dialog()
TEMPLATE_IMG = Image.open(TEMPLATE_IMG_PATH)
TEMPLATE_VIDEO = open_mp4_dialog()
MINIMUM_ACCURACY = float(input("Enter MINIMUM_ACCURACY value (if you don't know what this is enter 0.90): ")) # 0.90 works decently
FRAME_SKIP = int(input("Enter FRAME_SKIP value (if you don't know what this is enter 210): ")) # 210 results in duplicates rarely
MINIMUM_ACCURACY = float(input("Enter MINIMUM_ACCURACY value (if you don't know what this is enter 0.85): ")) # 0.90 works decently
FRAME_SKIP = int(input("Enter FRAME_SKIP value (if you don't know what this is enter 250): ")) # 250 results in duplicates rarely
VIDEO_NAME = os.path.basename(TEMPLATE_VIDEO)
SAVE_LOC = f"./results/{VIDEO_NAME[:-4]}/"
timestamps = []
Expand Down Expand Up @@ -67,6 +67,9 @@
# break down the results
min_val, max_val, min_loc, max_loc = cv2.minMaxLoc(result)

# Round accuracy down to 2 decimals
max_val = round(max_val, 2)

# print the frame
print(f"frame {currentframe}/{total_frames}: {max_val}")

Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
00:00:14
00:00:08
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file removed template image 1v1 ranked season 32e7.png
Binary file not shown.
Binary file removed template image 1v1 ranked season 32l.png
Binary file not shown.
Binary file added template_loading_screen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added template_ranked_v1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added template_ranked_v2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a63dffa

Please sign in to comment.