Medvira commited on
Commit
cb20121
·
verified ·
1 Parent(s): 77123ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -51,7 +51,7 @@ if uploaded_file is not None:
51
  im0 = gym_object.start_counting(im0, results)
52
 
53
  # Resize the frame to 320x320
54
- im0_resized = cv2.resize(im0, (320, 320))
55
 
56
  # Append the processed frame to the list
57
  processed_frames.append(im0_resized)
@@ -68,7 +68,7 @@ if uploaded_file is not None:
68
  output_video_path = output_video_file.name
69
 
70
  # Write the processed frames to a video file
71
- video_writer = cv2.VideoWriter(output_video_path, cv2.VideoWriter_fourcc(*"mp4v"), fps, (320, 320))
72
  for frame in processed_frames:
73
  video_writer.write(frame)
74
  video_writer.release()
 
51
  im0 = gym_object.start_counting(im0, results)
52
 
53
  # Resize the frame to 320x320
54
+ im0_resized = cv2.resize(im0, (1024, 1024))
55
 
56
  # Append the processed frame to the list
57
  processed_frames.append(im0_resized)
 
68
  output_video_path = output_video_file.name
69
 
70
  # Write the processed frames to a video file
71
+ video_writer = cv2.VideoWriter(output_video_path, cv2.VideoWriter_fourcc(*"mp4v"), fps, (1024, 1024))
72
  for frame in processed_frames:
73
  video_writer.write(frame)
74
  video_writer.release()