I wrote a python script to interface with the camera module (I have camera version 2.1). At first I tried with
picamera, which has worked in the past. According to
pip I have version 1.13 installed.
import picamera camera = picamera.PiCamera() camera.sharpness = 100 camera.brightness = 50 camera.capture("/tmp/test.jpg")
But the image that comes out of this is blank. If I set the brightness to 100, it is a totally white image. If I set it to 50 or less, it is a black image. Everything in between is a shade of gray.
I thought the camera itself might be an issue, but when I use
raspistill on the command line, the image comes out just fine.
raspistill work, when
picamera gives an empty image? Could it be that
picamera needs some sort of delay and if so, how is that done?