Update app.py
Browse files
app.py
CHANGED
|
@@ -45,15 +45,13 @@ def fn_video(video_file, conf_thres, iou_thres, start_sec, duration):
|
|
| 45 |
except Exception as e:
|
| 46 |
print(e)
|
| 47 |
continue
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
if num_frames == max_frames:
|
| 56 |
-
break
|
| 57 |
|
| 58 |
out.release()
|
| 59 |
|
|
|
|
| 45 |
except Exception as e:
|
| 46 |
print(e)
|
| 47 |
continue
|
| 48 |
+
|
| 49 |
+
print("FRAME DTYPE", type(frame))
|
| 50 |
+
out.write(pipeline(frame, conf_thres, iou_thres))
|
| 51 |
+
num_frames += 1
|
| 52 |
+
print("Processed {} frames".format(num_frames))
|
| 53 |
+
if num_frames == max_frames:
|
| 54 |
+
break
|
|
|
|
|
|
|
| 55 |
|
| 56 |
out.release()
|
| 57 |
|