yolov5

python detect yolov5 from screen as video source

感情迁移 提交于 2021-01-27 22:53:38
问题 I have a script that grabs an application's screenshot and displays it. it works quite nicely on my machine like a video with around 60FPS. import os os.getcwd() from PIL import ImageGrab import numpy as np import cv2 import pyautogui import win32gui import time from mss import mss from PIL import Image import tempfile os.system('calc') sct = mss() xx=1 tstart = time.time() while xx<10000: hwnd = win32gui.FindWindow(None, 'Calculator') left_x, top_y, right_x, bottom_y = win32gui.GetWindowRect

python detect yolov5 from screen as video source

冷暖自知 提交于 2021-01-27 21:10:37
问题 I have a script that grabs an application's screenshot and displays it. it works quite nicely on my machine like a video with around 60FPS. import os os.getcwd() from PIL import ImageGrab import numpy as np import cv2 import pyautogui import win32gui import time from mss import mss from PIL import Image import tempfile os.system('calc') sct = mss() xx=1 tstart = time.time() while xx<10000: hwnd = win32gui.FindWindow(None, 'Calculator') left_x, top_y, right_x, bottom_y = win32gui.GetWindowRect