capture timeout
See original GitHub issueHello, I just bought 5 megapixel OV5647 camera, and enable it through raspi-config the camera works well with raspistill and raspivid utilities and takes images and videos well, but when I use the picamera module to capture pictures it shows me an error after capture command:
#!/usr/bin/python from time import sleep from picamera import PiCamera
camera = PiCamera() camera.resolution = (1024, 768) camera.start_preview() sleep(2) camera.capture(‘foo.jpg’)
Traceback (most recent call last): File "./test-camera1.py", line 11, in <module> camera.capture('foo.jpg') File "/usr/local/lib/python2.7/dist-packages/picamera/camera.py", line 1423, in capture 'Timed out waiting for capture to end') picamera.exc.PiCameraRuntimeError: Timed out waiting for capture to end
I’m stuck on this step with picamera module, please help, thanks
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (1 by maintainers)
I have mostly the same problem with the Camera V2 on Python2.7 and Raspberry Pi 3. raspistill works perfectly, but when I try the simplest code with PiCamera, it’s always a timeout.
The script is this (the same in the docs):
And I have the 1.13 version installed. I tried with bigger sleeps (5 and 10 secs), but same result.
EDIT: I can’t capture a photo but I can record a video. ¯_(ツ)_/¯
EDIT 2: Solved using the argument “use_video_port” with True. Any way, I still think this isn’t the right way to do it, but at least it work :_)
Ok, update.
So i’ve bought official picamera V2 and it’s working how it supposed to.
I’ve read about people having the same issue. No solution works. Most people don’t specify the type of the camera so it is hard to tell which type does not work (in my case “RPi Camera (D) 5Mpix REV 2.1 (Waveshare 11297)”).
Of Course it only matters if you want to use still_port through this python interfaces.