Update workouts_monitoring solution (#16706)

Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
Muhammad Rizwan Munawar 2024-10-05 18:08:37 +05:00 committed by GitHub
parent c17ddcdf70
commit 73e6861d95
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 162 additions and 245 deletions

View file

@ -286,7 +286,7 @@ def count_objects_in_region(video_path, output_video_path, model_path):
if not success:
print("Video frame is empty or video processing has been successfully completed.")
break
im0 = counter.start_counting(im0)
im0 = counter.count(im0)
video_writer.write(im0)
cap.release()
@ -334,7 +334,7 @@ def count_specific_classes(video_path, output_video_path, model_path, classes_to
if not success:
print("Video frame is empty or video processing has been successfully completed.")
break
im0 = counter.start_counting(im0)
im0 = counter.count(im0)
video_writer.write(im0)
cap.release()