Update app.py
Browse files
app.py
CHANGED
@@ -153,7 +153,7 @@ def detect(opt, save_img=False):
|
|
153 |
if save_img:
|
154 |
if dataset.mode == 'image':
|
155 |
# Image.fromarray(im0).show()
|
156 |
-
cv2.imwrite(save_path, im0)
|
157 |
print(f" The image with the result is saved in: {save_path}")
|
158 |
# else: # 'video' or 'stream'
|
159 |
# if vid_path != save_path: # new video
|
|
|
153 |
if save_img:
|
154 |
if dataset.mode == 'image':
|
155 |
# Image.fromarray(im0).show()
|
156 |
+
cv2.imwrite(save_path, im0)
|
157 |
print(f" The image with the result is saved in: {save_path}")
|
158 |
# else: # 'video' or 'stream'
|
159 |
# if vid_path != save_path: # new video
|