filmov
tv
Raspberry Pi 4 - Pan Tilt Visual Tracking OpenCV Python3

Показать описание
Python code for Tracking Objects using Raspberry Pi 4 and OpenCV
Raspberry Pi 4 Visual Tracking Using OpenCV and Python3
Main python code here:
Running in virtual environment:
Power servo from the Pi, ensure the Pi ground and the servo ground are connected.
To generate servo pulses on any GPIO you may use the following commands...
The examples are for GPIO19 (pin 35) and GPIO26 (pin 37).
start pigpio daemon:
sudo pigpiod
pigs s 19 1000 # counterclockwise
pigs s 19 1500 # centre
pigs s 19 2000 # clockwise
pigs s 26 1000 # counterclockwise
pigs s 26 1500 # centre
pigs s 26 2000 # clockwise
Switch servo pulses off:
pigs s 19 0
pigs s 26 0
More updates to come.
#raspberrypi #servo #visualtracking #opencv #python
Raspberry Pi 4 Visual Tracking Using OpenCV and Python3
Main python code here:
Running in virtual environment:
Power servo from the Pi, ensure the Pi ground and the servo ground are connected.
To generate servo pulses on any GPIO you may use the following commands...
The examples are for GPIO19 (pin 35) and GPIO26 (pin 37).
start pigpio daemon:
sudo pigpiod
pigs s 19 1000 # counterclockwise
pigs s 19 1500 # centre
pigs s 19 2000 # clockwise
pigs s 26 1000 # counterclockwise
pigs s 26 1500 # centre
pigs s 26 2000 # clockwise
Switch servo pulses off:
pigs s 19 0
pigs s 26 0
More updates to come.
#raspberrypi #servo #visualtracking #opencv #python