docs: note how to use a phone as a camera in WebCam and VideoCamera - #124
Open
petercorke wants to merge 1 commit into
Open
petercorke wants to merge 1 commit into
petercorke wants to merge 1 commit into
Conversation
VideoCamera already mentions Continuity Camera. Add the other half: WebCam
passes its url to cv2.VideoCapture, so a phone running an IP-camera app that
publishes an MJPEG/RTSP stream can be used by URL. Cross-reference the two
classes, and fix a typo ('Manu webcameras').
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Up to standards ✅🟢 Issues
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
VideoCameraalready documents Continuity Camera (a Mac plus an iPhone shows up as a local camera). This adds the other half, prompted by looking at the old PhoneSensor experiment (a 2021 package that served a web page to stream camera and IMU data from a phone):WebCampasses itsurlstraight tocv2.VideoCapture, so it accepts anything OpenCV can open: a still-image URL, an HTTP (MJPEG) stream or RTSP. A phone running an IP-camera app that publishes a stream can therefore be used by URL. New note in theWebCamdocstring says so, and points toVideoCamerafor Continuity Camera.VideoCameranote and:seealso:now point toWebCamfor other phones and networked cameras.Docstring-only change; no code changed.
Verification, and what I did not do
:class:names resolved by the stubs'currentmodule, and a literal forcv2.VideoCapturebecause the docs run nitpicky). The CIbuildjob builds the docs on this PR.Checklist
🤖 Generated with Claude Code