Hardware Conncetion
install opencv
- python3 -m pip install opencv-python picamera2
- sudo apt-get install libatlas-base-dev
- python3 -m pip install -U numpy
Download the source code
git clone https://github.com/ArduCAM/PTZ-Camera-Controller.git
Install libcamera
Add camera
- Edit the configuration file: sudo nano /boot/config.txt
- Find the line: camera_auto_detect=1, update it to:camera_auto_detect=0
- imx219 camera added: dtoverlay=imx219
- imx477 camera added: dtoverlay=imx477
- Save and reboot
Enable i2c
- cd PTZ-Camera-Controller
- sudo chmod +x enable_i2c_vc.sh
- ./enable_i2c_vc.sh
Press Y to reboot
Run the FocuserExample.py
- cd PTZ-Camera-Controller
- python3 FocuserExample.py
Refering the link to get more information about the PTZ-Camera-Controller
http://www.arducam.com/docs/cameras-for-raspberry-pi/ptz-camera/