I am still working away experimenting/learning about the new RPI Camera Module 3 and the new libcamera2 camera libraries.
In case you weren't aware the camera module 3 has a variable focus and the lens is servo actuated.
Here is a sample of the camera automatically adjusting its focus
A few sample photos:
Still lots to learn and experiment with...
Edit:
The photos above were taken with the libcamera-jpeg application being triggered from a python script
btnTrig = False def btnPressed(): print('Cheese!') btnTrig = True check_call(['libcamera-jpeg', '-o', '/home/scottie/photos/img{}.jpg'.format(int(time.time())), '-t2000', '--hdr' ]) def shutdown(): check_call(['sudo', 'poweroff']) # # Init Capture Button btn = gpiozero.Button(17, hold_time=5) btn.when_held = shutdown btn.when_pressed = btnPressed
Here is the exif tags of one image:
Because I was using libcamera-jpeg I had no preview of what I was taking a picture of..
The potato is very much my python code! Right now I am getting a few frames per second update rate...
Raspberry Pi Camera Module 3: https://www.raspberrypi.com/products/camera-module-3/