Megvii-BaseDetection / Megvii-BaseDetection/YOLOX
how to stop video from webcam and exctract results?
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 10.6k
- Forks
- 2.5k
- PR merge metrics
- No merged PRs in 30d
Description
hi!
i use this code:
python3 /home/pi/YOLOX/tools/demo.py webcam --camid 0 -n yolox-tiny -c /home/pi/YOLOX/models/yolox_tiny.pth --conf 0.25 --nms 0.45 --tsize 640 --save_result
to save video to disk from webcamera and it seems it works.
But how to stop capture correctly ? If i press ctrl+c - video file doesnt close and i cant replay it.
And how to exctract something from video on fly ? May be classes detected ?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at tools/demo.py's webcam entry point and trace how capture shutdown and --save_result are handled. Confirm the expected stop behavior and identify how detection results are exposed during capture; done means the saved video is finalized after stopping and per-frame classes can be obtained.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- computer-vision
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100