Skip to content

Commit bba02da

Browse files
EswarBalasubramanianCodeWithMa
authored andcommitted
Windows environment fixes
1 parent 07f5987 commit bba02da

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def run():
108108
max_coords = coords
109109

110110
# Check if the maximum value is above a certain threshold
111-
if max_val > 0.95:
111+
if max_val > 0.90:
112112
logging.info(f"Image {max_image_file} matches with {max_val * 100}%")
113113

114114
# If not ingame reset timer

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
numpy==1.24.1
1+
numpy==1.26.0
22
opencv-python==4.7.0.68

screenshot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ def capture_screenshot(filename):
66
Captures a screenshot of the Android screen using adb and saves it to a file.
77
Returns True if the adb command was successful, False otherwise.
88
"""
9-
adb_command = "adb exec-out screencap -p > {} 2> /dev/null".format(filename)
9+
adb_command = "adb exec-out screencap -p > {}".format(filename)
1010
error_code = os.system(adb_command)
1111
return error_code == 0

0 commit comments

Comments
 (0)