Support for streaming webcam input (cv2.VideoCapture) natively

Open Beginner friendly
#1 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
82/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
opencv, python

Research direction

Read erml/detector.py and use examples/webcam_demo.py as a reference for the existing webcam loop. Add the requested detector.analyze_stream(camera_id=0) method that yields results continuously. Done means callers can consume successive analysis results from a webcam stream.

Written by the indexing model from the issue text.

Description

enhancement good first issue help wanted

Right now, developers have to write their own webcam loop and pass individual frames to detector.analyze(). It would be great to have a native detector.analyze_stream(camera_id=0) method that yields results continuously.

Where to look:

  • erml/detector.py (Add the new method here)
  • examples/webcam_demo.py (Use this for inspiration on how the loop should work)
Dominant language
Python
Stars
1
Forks
2
PR merge metrics
No merged PRs in 30d

Getting set up

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.

More from sid-lakhani/erml

All issues in sid-lakhani/erml

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.