Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #38873
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python@mrabarnett.plus.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.018 |
| X-Spam-Evidence | '*H*': 0.96; '*S*': 0.00; 'else:': 0.03; 'exit': 0.07; 'run,': 0.07; 'python': 0.09; 'appreciated!': 0.16; 'closes': 0.16; 'feed.': 0.16; 'from:addr:mrabarnett.plus.com': 0.16; 'from:addr:python': 0.16; 'from:name:mrab': 0.16; 'googled': 0.16; 'message-id:@mrabarnett.plus.com': 0.16; 'rval': 0.16; 'windows?': 0.16; 'wrote:': 0.17; 'subject:Issue': 0.17; 'tries': 0.17; 'windows': 0.19; 'import': 0.21; 'machine.': 0.22; 'installation': 0.23; 'installed': 0.23; 'somewhere': 0.24; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'wonder': 0.27; 'run': 0.28; 'url:non-standard http port': 0.30; 'window': 0.30; 'code': 0.31; 'anyone': 0.33; 'to:addr:python- list': 0.33; 'false': 0.35; 'feed': 0.35; 'open': 0.35; 'there': 0.35; 'next': 0.35; 'should': 0.36; 'display': 0.36; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'address': 0.60; 'first': 0.61; 'url:ip addr': 0.62; 'camera': 0.65; 'sam': 0.65; 'laptop': 0.66; 'header :Reply-To:1': 0.68; 'insight': 0.71; 'reply-to:no real name:2**0': 0.72; 'hey,': 0.72; 'berry': 0.84; 'reply-to:addr:python.org': 0.84; 'why?': 0.84; 'successful.': 0.93 |
| X-CM-Score | 0.00 |
| X-CNFS-Analysis | v=2.0 cv=XeZXOvF5 c=1 sm=1 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=Tv4_tr9OjFAA:10 a=-6KNm1uqXM4A:10 a=ihvODaAuJD4A:10 a=OUOv7kDek9cA:10 a=8nJEP1OIZ-IA:10 a=EBOSESyhAAAA:8 a=8AHkEIZyAAAA:8 a=mLhd4EkUuG0A:10 a=SzFXclI3AAAA:8 a=-yhkdl8Udw0bARDRAQUA:9 a=wPNLvfGTeEIA:10 a=VkpHOujdZyUA:10 a=qiWi7Edwir4A:10 a=NWVoK91CQyQA:10 a=0nF1XD0wxitMEM03M9B4ZQ==:117 |
| X-AUTH | mrabarnett:2500 |
| Date | Thu, 14 Feb 2013 18:12:05 +0000 |
| From | MRAB <python@mrabarnett.plus.com> |
| User-Agent | Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: OpenCV and WIFI IP Camera Issue |
| References | <66afe6f9-c89f-4944-8102-57bae76c358d@googlegroups.com> |
| In-Reply-To | <66afe6f9-c89f-4944-8102-57bae76c358d@googlegroups.com> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| Reply-To | python-list@python.org |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1773.1360865533.2939.python-list@python.org> (permalink) |
| Lines | 34 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1360865533 news.xs4all.nl 6941 [2001:888:2000:d::a6]:43207 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:38873 |
Show key headers only | View raw
On 2013-02-14 17:25, Sam Berry wrote:
> Hey,
>
> Iv installed OpenCV on my windows machine. I can successfully view the
> camera stream from my laptop so the installation was successful.
> However when i edited the code adding in the address of my IP camera
> like so....
>
> import cv2
>
> cv2.namedWindow("preview")
> vc = cv2.VideoCapture('http://192.168.1.72:1025/videostream.cgiUSERNAMEANDPASSWORD')
>
> 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
>
> When run, python tries to open the window to display the camera feed
> then closes before displaying the feed. Anyone have any ideas why? I
> read somewhere that there is an issue with this been run on windows?
>
> Any insight would be appreciated! Im all googled out.
>
I wonder whether you should be waiting for the key and _then_ reading
the next frame.
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
OpenCV and WIFI IP Camera Issue Sam Berry <sambez_14@hotmail.co.uk> - 2013-02-14 09:25 -0800 Re: OpenCV and WIFI IP Camera Issue MRAB <python@mrabarnett.plus.com> - 2013-02-14 18:12 +0000
csiph-web