Procházet zdrojové kódy

actually take screenshot

Richard Köhl před 1 rokem
rodič
revize
cdd6fcb7fd
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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))