Using one RPi to take pics with another RPi

I am working on a project where a Master RPi will instruct a Client RPi to take an image using the 64MP Arducam Quad-Kit.

I am using this line of code in Python to take the image:
libcamera-still", “-t”, “0”, “–viewfinder-width”, “2312”, “–viewfinder-height”, “1736”, “–autofocus-on-capture”])

To take a picture, however it just runs the cameras instead of taking a single image and saving it.

How do I edit this so that it takes an autofocused picture.

@eniyeamg1

a simple demo, save image after 5 seconds

libcamera-still -t 5000 -o test.jpg
1 Like