ultralytics 8.2.46 Results, DFL and AIGym fixes (#14074)

Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
Co-authored-by: AAOMM <52826299+Chayanonjackal@users.noreply.github.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Co-authored-by: Muhammad Rizwan Munawar <muhammadrizwanmunawar123@gmail.com>
Co-authored-by: zzzer <48149018+zhixuwei@users.noreply.github.com>
Co-authored-by: Abirami Vina <abirami.vina@gmail.com>
This commit is contained in:
Francesco Mattioli 2024-06-29 18:10:30 +02:00 committed by GitHub
parent f5ccddf5df
commit 645c83671f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 28 additions and 26 deletions

View file

@ -55,16 +55,14 @@ Monitoring workouts through pose estimation with [Ultralytics YOLOv8](https://gi
kpts_to_check=[6, 8, 10],
)
frame_count = 0
while cap.isOpened():
success, im0 = cap.read()
if not success:
print("Video frame is empty or video processing has been successfully completed.")
break
frame_count += 1
results = model.track(im0, verbose=False) # Tracking recommended
# results = model.predict(im0) # Prediction also supported
im0 = gym_object.start_counting(im0, results, frame_count)
im0 = gym_object.start_counting(im0, results)
cv2.destroyAllWindows()
```
@ -90,16 +88,14 @@ Monitoring workouts through pose estimation with [Ultralytics YOLOv8](https://gi
kpts_to_check=[6, 8, 10],
)
frame_count = 0
while cap.isOpened():
success, im0 = cap.read()
if not success:
print("Video frame is empty or video processing has been successfully completed.")
break
frame_count += 1
results = model.track(im0, verbose=False) # Tracking recommended
# results = model.predict(im0) # Prediction also supported
im0 = gym_object.start_counting(im0, results, frame_count)
im0 = gym_object.start_counting(im0, results)
video_writer.write(im0)
cv2.destroyAllWindows()

View file

@ -11,6 +11,7 @@
47978446+sergiuwaxmann@users.noreply.github.com: sergiuwaxmann
48149018+zhixuwei@users.noreply.github.com: zhixuwei
49699333+dependabot[bot]@users.noreply.github.com: dependabot
52826299+Chayanonjackal@users.noreply.github.com: Chayanonjackal
61612323+Laughing-q@users.noreply.github.com: Laughing-q
62214284+Burhan-Q@users.noreply.github.com: Burhan-Q
68285002+Kayzwer@users.noreply.github.com: Kayzwer