Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #39029
| X-Received | by 10.224.175.65 with SMTP id w1mr6731980qaz.7.1361110525811; Sun, 17 Feb 2013 06:15:25 -0800 (PST) |
|---|---|
| X-Received | by 10.49.81.72 with SMTP id y8mr439075qex.42.1361110525779; Sun, 17 Feb 2013 06:15:25 -0800 (PST) |
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!t2no2205669qal.0!news-out.google.com!k2ni33407qap.0!nntp.google.com!dd2no210655qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
| Newsgroups | comp.lang.python |
| Date | Sun, 17 Feb 2013 06:15:25 -0800 (PST) |
| In-Reply-To | <mailman.1411.1360161337.2939.python-list@python.org> |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=83.100.234.232; posting-account=TejjHAoAAADkS2KGneh-APCsC96PgtnN |
| NNTP-Posting-Host | 83.100.234.232 |
| References | <ffa5fb6e-2d2c-484c-bfae-1014f1d0ebcc@googlegroups.com> <CALWePYzjYYHErKdd=ZNw78rn5kZv2uQMKLSvJ4Fm_qH=sv3yRQ@mail.gmail.com> <mailman.1407.1360154390.2939.python-list@python.org> <9c18d916-839c-4335-a6fa-c61fd87bd380@googlegroups.com> <mailman.1411.1360161337.2939.python-list@python.org> |
| User-Agent | G2/1.0 |
| MIME-Version | 1.0 |
| Message-ID | <b52c7294-e0c5-449f-802a-1383214a77ce@googlegroups.com> (permalink) |
| Subject | Re: Recording live video stream from IP camera issue |
| From | Sam Berry <sambez_14@hotmail.co.uk> |
| Cc | Sam Berry <sambez_14@hotmail.co.uk>, "python-list@python.org" <python-list@python.org>, contact@xavierho.com |
| Injection-Date | Sun, 17 Feb 2013 14:15:25 +0000 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Xref | csiph.com comp.lang.python:39029 |
Show key headers only | View raw
Hi Xav,
Iv been looking into OpenCV, i can easily stream my laptops webcam using this code.
import cv2
cv2.namedWindow("preview")
vc = cv2.VideoCapture(0)
if vc.isOpened(): # try to get the first frame
rval, frame = vc.read()
else:
rval = False
while rval:
cv2.imshow("preview", frame)
rval, frame = vc.read()
key = cv2.waitKey(20)
if key == 27: # exit on ESC
break
However using the cv2.Videocapture(ip_address) method will not load my IP camera video feed into the new window. I can view the stream in any web browser or VLC using the IP address http://192.168.1.72:1025/videostream.cgi?user=&pwd=&resolution=8.
Did you have this issue? Is there some lines of code i may need to add?
Any help would be appreciated!
Thanks, Sam
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Recording live video stream from IP camera issue Sam Berry <sambez_14@hotmail.co.uk> - 2013-02-06 04:12 -0800
Re: Recording live video stream from IP camera issue Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-02-06 23:26 +1100
Re: Recording live video stream from IP camera issue Sam Berry <sambez_14@hotmail.co.uk> - 2013-02-06 04:36 -0800
Fwd: Recording live video stream from IP camera issue Xavier Ho <contact@xavierho.com> - 2013-02-06 23:39 +1100
Re: Recording live video stream from IP camera issue Sam Berry <sambez_14@hotmail.co.uk> - 2013-02-06 05:12 -0800
Re: Recording live video stream from IP camera issue Xavier Ho <contact@xavierho.com> - 2013-02-07 01:35 +1100
Re: Recording live video stream from IP camera issue Sam Berry <sambez_14@hotmail.co.uk> - 2013-02-17 06:15 -0800
Re: Recording live video stream from IP camera issue Xavier Ho <contact@xavierho.com> - 2013-02-18 06:57 +1100
Re: Recording live video stream from IP camera issue Sam Berry <sambez_14@hotmail.co.uk> - 2013-02-17 06:15 -0800
Re: Recording live video stream from IP camera issue Sam Berry <sambez_14@hotmail.co.uk> - 2013-02-06 05:12 -0800
Re: Recording live video stream from IP camera issue Sam Berry <sambez_14@hotmail.co.uk> - 2013-02-18 05:03 -0800
csiph-web