Comments (6)
Weird! As it happens I got a Model A (and a Pi Noir) at xmas (up until now I've only been able to test on a Model B, 512Mb Rev 2). I'll try and get it all setup tonight and run the picamera test suite on it to see what happens.
That said, if the picamera test programs are operating successfully, I'd assume there's something your code is doing that's causing it to fail (even though it evidently shouldn't, given it's running successfully on the model B). What does your code do that the picamera test programs don't? I'm wondering whether it repeatedly initializes the camera or anything like that?
from picamera.
Well two of the test programs ran successfully.
My code spawns a number of threads which monitor a gpio pin for a button input, listens to the uart and reads from a 1 wire sensor. When the main program loop picks up that a button has been pressed it starts the camera using picamera.
The error occurs the first time you call picamera.Camera(), the code seems to wait for a couple of seconds, like its waiting to instantiate something and then returns the error. Im going to stick some debugging code into the program to see if that helps. Im also wondering whether its a revision thing rather than a model thing! I have a model b rev 2, so I'll give it a go on that as well and see if I can reproduce the error
Any thoughts, gratefully received.
from picamera.
It has nothing to do with picamera, Ill close the issue, very wierd bug between revisions, and the use of modprobe and 1-wire gpio. see here for info - http://www.raspberrypi.org/phpBB3/viewtopic.php?f=43&t=65088&p=478968#p478968
from picamera.
For anyone else running into this issue, it's tracked as raspberrypi/linux#435 - that ticket contains a possible workaround but it doesn't seem to be universally successful...
from picamera.
Just in case: I had the same problem and found that my memory split was somehow reset to 128MB - changing that (sudo raspi-config -> Advanced Options -> Memory Split) to use only 16GB for the GPU made the error go away. Now on to using it ... :)
from picamera.
For anyone who stumbles across this trying to find another solution...
Solution
Only initialize the picamera.PiCamera()
object once, then re-use it to take more pictures. So taking it out the while True
loop and making it reusable solved the problem in my case 😊
from picamera.
Related Issues (20)
- python3-picamera package depends on python3-numpy
- What is the default intra-frame period? HOT 2
- Limited running time HOT 1
- Not supported in bullseye Raspberry Pi OS version HOT 3
- Jumping exposure time on Raspberry Pi HQ camera HOT 1
- [Docmentation] How to find out the Bayer pattern from the CFA layout HOT 2
- Can one access both frames from the OPQV-dual stream and output the difference in real time? HOT 2
- libmmal.so: cannot open shared object file: No such file or directory HOT 6
- Frame freezes whilst try display/save high resolution frame HOT 1
- shutter_speed TypeError HOT 12
- Cannot install on development machine
- No such file or directory HOT 1
- PiCamera start_preview blocks indefinitely
- Realtime Motion Detection Latency
- Camera eposure time doubled from shutter speed?
- Is the `PiBayerArray.flush` method unpacking data correctly?
- 4.16. Raw Bayer data captures - Example Code - Assertion Error
- mjk
- stereo mode: how to switch camera sides HOT 2
- Error : OSError: libbcm_host.so: cannot open shared object file: No such file or directory HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from picamera.