Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #49733
| Date | 2013-07-03 14:38 +0100 |
|---|---|
| From | Tim Golden <mail@timgolden.me.uk> |
| Subject | Re: python.exe crash if opencv tries to access busy webcam |
| References | <aa2fde6a-ded2-4817-ad57-77efe3149361@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4165.1372858730.3114.python-list@python.org> (permalink) |
On 03/07/2013 14:25, ifelsetrue@gmail.com wrote: > Hello, > > > I have a while loop taking images every 5 minutes from webcam. > Unfortunately, if the camera is busy, python.exe crashes and there is > no exception to catch. Is there a way to check if camera is busy to > avoid the crash? If python.exe crashes -- ie exits completely without a traceback, then it's most likely a flaw in the extension module which is capturing the image. If that's the case, there's nothing you can do in Python code to prevent it; you need to work with the project maintainers to fix that. If you're getting a traceback but the console window is then closing too fast for you to see it, then try running the code from an open console window rather than double-clicking on it. (You don't say how you're kicking the code off so I'm offering this just in case) TJG
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
python.exe crash if opencv tries to access busy webcam ifelsetrue@gmail.com - 2013-07-03 06:25 -0700 Re: python.exe crash if opencv tries to access busy webcam Tim Golden <mail@timgolden.me.uk> - 2013-07-03 14:38 +0100
csiph-web