Parcourir la source

actually take screenshot

Richard Köhl il y a 1 an
Parent
commit
cdd6fcb7fd
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      helper.py

+ 1 - 1
helper.py

@@ -262,7 +262,7 @@ def non_max_suppression(boxes, overlapThresh):
 
 def save_screenshot(path="test"):
     # Take a screenshot
-    result = get_current_screen()
+    result = capture_current_screen()
 
     timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
     image = Image.open(io.BytesIO(result))