Closed pushkin-dev closed 1 year ago
Hi, thank you for raising this issue! Does this problem persist after reinstalling soccertrack as stated in #101 ?
Camera
can also be treated as an iterator itself so the following code should also work:
import cv2
for frame_num, frame in enumerate(tqdm(cam)):
file_path = f'{save_dir}/{frame_num:06d}.png'
cv2.imwrite(file_path, frame)
thanks for quick respond...
Does this problem persist after reinstalling soccertrack as stated in https://github.com/AtomScott/SoccerTrack/issues/101 ?
- {frame_num:06d}.png starting from 000000.png (but annotations starts from 000001.txt) - nothing has changed, file numbering starts from 000000.png, i modified the code from file_path = f'{save_dir}/{frame_num:06d}.png' to file_path = f'{save_dir}/{frame_num+1:06d}.png' and everything worked correctly
- When finishing this step: result 99% - 891/900 - after reinstalling soccertrack, this proplem is gone.
{frame_num:06d}.png starting from 000000.png (but annotations starts from 000001.txt) - nothing has changed, file numbering starts from 000000.png, i modified the code from file_path = f'{save_dir}/{frame_num:06d}.png' to file_path = f'{save_dir}/{frame_num+1:06d}.png' and everything worked correctly
Okay, I need to fix this. I am preparing to release a new version of the dataset so we'll make sure the issue the persist.
Closing this issue for now as it will be addressed in the upcoming dataset release.
Search before asking
SoccerTrack Component
Training
Bug
When I want to split the video into individual frames. (Step 5 in notebooks/02_user_guide/detection_with_yolov5.ipynb
using soccertrack.datasets.get_path('top_view')
Problems:
Environment
No response
Minimal Reproducible Example
No response
Additional
No response
Are you willing to submit a PR?