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

Grab image from IP not USB camera #21

Open
yevgeniyclaudio opened this issue Feb 2, 2023 · 1 comment
Open

Grab image from IP not USB camera #21

yevgeniyclaudio opened this issue Feb 2, 2023 · 1 comment

Comments

@yevgeniyclaudio
Copy link

Is it possible to get video from ip camera? Camera(0) works fine but Camera('rtsp://admin:[email protected]') doesnt work((

@ES-Alexander
Copy link
Owner

Hi @yevgeniyclaudio,

I don’t have experience with IP cameras, but the pcv.vidIO.Camera class in this library is a convenience wrapper around a standard cv2.VideoCapture, just with some extra features. Accordingly, if your rtsp stream works with a standard cv2.VideoCapture instance I expect it should also work with the Camera class here, and if it doesn’t work with VideoCapture (e.g. due to an incorrect IP, or invalid credentials, or a firewall, or a cv2 backend that doesn’t support rtsp) then it also won’t work with Camera.

If it does work with VideoCapture but not Camera I’d appreciate if you can provide some more information. In particular, in which way is it not working (e.g. is it connecting but not returning frames and/or is there an error of some sort)?

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

No branches or pull requests

2 participants