Sfoglia il codice sorgente

Update detect.py (#2167)

Without this cv2.imshow opens a window but nothing is visible
5.0
ab-101 GitHub 3 anni fa
parent
commit
c32b0aff76
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: 4AEE18F83AFDEB23
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. +1
    -0
      detect.py

+ 1
- 0
detect.py Vedi File

@@ -118,6 +118,7 @@ def detect(save_img=False):
# Stream results
if view_img:
cv2.imshow(str(p), im0)
cv2.waitKey(1) # 1 millisecond

# Save results (image with detections)
if save_img:

Loading…
Annulla
Salva