Install the OpenCV
- sudo apt-get install python-opencv
Download the source code
- https://github.com/ArduCAM/PTZ-Camera-Controller.git

- Run the FocuserExample.py
- cd PTZ-Camera-Controller/pyCode
- python FocuserExample.py


Code introduction
- Focuser.py
- zoom-lens basic control component.
- AutoFocus.py
- Provide two autofocus methods are available, depending on Focuser.py, opencv, picamera. Use the
sudo apt-get install python-opencv
command to install opencv.