ArduCAM / RaspberryPi

This is Arducam camera demos used on Raspberry Pi paltform
BSD 3-Clause "New" or "Revised" License
163 stars 97 forks source link

autofocus while recording video #18

Open cbasavaraj opened 4 years ago

cbasavaraj commented 4 years ago

Hi, I've ordered the 8 MP auto-focus camera https://www.arducam.com/product/arducam-imx219-auto-focus-camera-module-drop-in-replacement-for-raspberry-pi-v2-and-nvidia-jetson-nano-camera/

A couple of questions while I wait for it:

Thanks!

capeie-dev commented 2 years ago

Hey! I have been using the autofocus camera with the pizero and it works fine, however I am having trouble integrating the streaming code with autofocus, what was your approach?

cbasavaraj commented 2 years ago

Hey, I am not using autofocus anymore. But I think the general approach using the picamera library is to write to a buffer using the splitter port, and use that part to do autofocus or other stuff. See this example: https://picamera.readthedocs.io/en/release-1.13/recipes2.html#recording-at-multiple-resolutions