Ask Your Question
1

How do I live stream wifi camera using python opencv ?

asked 2016-12-05 01:15:32 -0500

pinkflamenco gravatar image

I have a project for my university to use python but the thing is I'm an absolute beginner at this. I've found several post through google but I can't seem to get it streaming. I managed to stream using usb webcam but wifi camera seems so much more complicated. I really appreciate any help.

edit retag flag offensive close merge delete

Comments

and the actual problem is ?

berak gravatar imageberak ( 2016-12-05 01:50:00 -0500 )edit

I can't stream using wifi camera. Usb webcam seems easy enough by using

cap = cv2.VideoCapture(0)
pinkflamenco gravatar imagepinkflamenco ( 2016-12-05 02:52:33 -0500 )edit

sorry, but we can't help without more detail. what kind of camera is it, what kind of url do you try, does it need authentification, lalala.

berak gravatar imageberak ( 2016-12-05 04:58:15 -0500 )edit

I'm using Yi camera 1.Model YDXJ_v22L. Firmware version 1.2.13 I manage to stream through vlc by using url rtsp://192.168.42.1/live

pinkflamenco gravatar imagepinkflamenco ( 2016-12-07 22:38:40 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-12-06 10:41:59 -0500

Math gravatar image

An Ip Camera (WiFi) needs a rtsp protocol, so you have to change the zero.

cap = cv2.VideoCapture("rtsp://user:passwd@192.168.1.1:554/cam/realmonitor?channel=1@subtype=1")

Dahua sells a compatible camera with OpenCv.

edit flag offensive delete link more

Comments

without camera name you cannot know if protocol is rtsp http ...

LBerger gravatar imageLBerger ( 2016-12-06 15:11:42 -0500 )edit

I'm using Yi camera 1.Model YDXJ_v22L. Firmware version 1.2.13

I manage to stream through vlc by using url rtsp://192.168.42.1/live

pinkflamenco gravatar imagepinkflamenco ( 2016-12-07 22:37:42 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2016-12-05 01:15:32 -0500

Seen: 2,877 times

Last updated: Dec 06 '16