cnyvfang / YOLOv5-GUI

🎉Qt-GUI implementation of the YOLOv5 algorithm (ver.6 and ver.5). 🎉YOLOv5算法(ver.6及ver.5)的Qt-GUI实现
GNU General Public License v3.0
27 stars 8 forks source link

Solve the problem that the camera cannot output #5

Open XTWLP opened 2 years ago

XTWLP commented 2 years ago

https://github.com/cnyvfang/YOLOv5-GUI/blob/bb8ef15893f24b318a2876fd487c3a4b6f636ada/PyQt5-YOLOv5_V6/run.py#L85

change this code to dataset = LoadWebcam(pipe='0', img_size=imgsz, stride=stride)