what about PI 4

Talk about the project itself, the community, where we are and what we need. Great place to introduce yourself and make friends as well.

Re: what about PI 4

Postby GeorgeRaven » Sun Aug 11, 2019 9:54 pm

I have the same issue on pi 2,3,4. try using the camera twice, the second time goes through. Its not pretty but it works. (apologies if the spacing is incorrect)
Code: Select all
import picamera
for _ in range(2):
    try:  # try to init camera _ times
        cam = picamera.PiCamera()
        cam.start_preview()
    except picamera.exc.PiCameraMMALError:
        print("warning: unable to start camera")

cam.whatever.you.want.to.do()
GeorgeRaven
 
Posts: 4
Joined: Sat Jun 29, 2019 7:49 pm

Previous

Return to Community

Who is online

Users browsing this forum: No registered users and 1 guest