kisa-misa commited on
Commit
8234570
1 Parent(s): 6da0437

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -9
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
- if (num_frames%10 != 0):
49
- continue
50
- else:
51
- print("FRAME DTYPE", type(frame))
52
- out.write(pipeline(frame, conf_thres, iou_thres))
53
- num_frames += 1
54
- print("Processed {} frames".format(num_frames))
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