Browse Source
Allow preview resize in detect.py (#8318)
* Initial implementation of --viewsz
* use mouse resize
* Add comment
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
modifyDataloader
Ryan Hirasaki
GitHub
2 years ago
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
detect.py
|
|
@@ -173,6 +173,7 @@ def run( |
|
|
|
# Stream results |
|
|
|
im0 = annotator.result() |
|
|
|
if view_img: |
|
|
|
cv2.namedWindow(str(p), cv2.WINDOW_NORMAL | cv2.WINDOW_KEEPRATIO) # allow window resize (Linux) |
|
|
|
cv2.imshow(str(p), im0) |
|
|
|
cv2.waitKey(1) # 1 millisecond |
|
|
|
|