1. Home
  2. Docs
  3. Arducam OBISP MIPI Camera Module
  4. 3. Use on Raspberry Pi
  5. 3.10 PTZ lens auto focus example

3.10 PTZ lens auto focus example

3
  • Preparations

Enable i2c1 and install software dependencies

sudo nano /boot/config.txt

Add dtparam=i2c_arm=on to config.txt

Install python opencv

sudo apt-get install python-opencv

Download Arducam_OBISP_MIPI_Camera_Module library

git clone https://github.com/ArduCAM/Arducam_OBISP_MIPI_Camera_Module.git

Run the demo

cd Arducam_OBISP_MIPI_Camera_Module/ptz_focus_example/
python FocuserExample.py 
1
2

​Notice, For the first auto focus, please press ‘R‘ to reset the PTZ lens to avoid out of focus. Then press ‘Enter‘ to start auto focus.


Was this article helpful to you? Yes 1 No