Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About real-time display of video files #7075

Closed
1 task done
Zengyf-CVer opened this issue Mar 21, 2022 · 5 comments · Fixed by #7093
Closed
1 task done

About real-time display of video files #7075

Zengyf-CVer opened this issue Mar 21, 2022 · 5 comments · Fixed by #7093
Labels
question Further information is requested

Comments

@Zengyf-CVer
Copy link
Contributor

Search before asking

Question

@glenn-jocher
I ran this instruction to detect video:

python detect.py --weights ./yolov5s.pt --source ./video/

I found that this command can only get the detected video files. I would like to ask, can I detect the video files and display the video files in real time?

Additional

No response

@Zengyf-CVer Zengyf-CVer added the question Further information is requested label Mar 21, 2022
@glenn-jocher
Copy link
Member

@Zengyf-CVer try --view-img

parser.add_argument('--view-img', action='store_true', help='show results')

@Zengyf-CVer
Copy link
Contributor Author

Zengyf-CVer commented Mar 21, 2022

@glenn-jocher
I executed the following commands according to your method, and found that neither the video nor the picture can be displayed.

python detect.py --weights ./yolov5s.pt --source ./data/images/ --view-img

@glenn-jocher
Copy link
Member

glenn-jocher commented Mar 21, 2022

@Zengyf-CVer 👋 hi, thanks for letting us know about this possible problem with YOLOv5 🚀. --view-img works correctly for me on MacOS.

We've created a few short guidelines below to help users provide what we need in order to get started investigating a possible problem.

How to create a Minimal, Reproducible Example

When asking a question, people will be better able to provide help if you provide code that they can easily understand and use to reproduce the problem. This is referred to by community members as creating a minimum reproducible example. Your code that reproduces the problem should be:

  • Minimal – Use as little code as possible to produce the problem
  • Complete – Provide all parts someone else needs to reproduce the problem
  • Reproducible – Test the code you're about to provide to make sure it reproduces the problem

For Ultralytics to provide assistance your code should also be:

  • Current – Verify that your code is up-to-date with GitHub master, and if necessary git pull or git clone a new copy to ensure your problem has not already been solved in master.
  • Unmodified – Your problem must be reproducible using official YOLOv5 code without changes. Ultralytics does not provide support for custom code ⚠️.

If you believe your problem meets all the above criteria, please close this issue and raise a new one using the 🐛 Bug Report template with a minimum reproducible example to help us better understand and diagnose your problem.

Thank you! 😃

@Zengyf-CVer
Copy link
Contributor Author

@glenn-jocher
I submitted a PR #7093 which resolved the issue.

@glenn-jocher glenn-jocher linked a pull request Mar 25, 2022 that will close this issue
@glenn-jocher
Copy link
Member

@Zengyf-CVer PR #7093 is merged. Thank you for your contributions to YOLOv5 🚀 and Vision AI ⭐

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants