Megvii-BaseDetection / Megvii-BaseDetection/YOLOX

how to stop video from webcam and exctract results?

Open
#1,410 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.