This project is a face tracking robotic arm developed using OpenCV, Arduino, and PyFirmata. The purpose of this project is to demonstrate how computer vision techniques can be integrated with robotics to create an interactive system capable of tracking and following human faces in real-time.
- Real-time face detection and tracking using OpenCV.
- Control of a robotic arm using Arduino and PyFirmata.
- Smooth and precise movement of the robotic arm to follow detected faces.
- Adjustable parameters for sensitivity and speed of the robotic arm movement.
- Simple and intuitive interface.
- Python 3.2
- OpenCV
- PyFirmata
- Arduino board (e.g., Arduino Uno)
- Robotic arm kit
- USB cable
-
Clone this repository to your local machine:
git clone https://github.com/PriyanshuLathi/Face-Tracking-Robotic-Arm
-
Install the required Python dependencies.
-
Upload the Arduino sketch (
face_tracking_robotic_arm_arduino.ino
) to your Arduino board using the Arduino IDE.
-
Connect the Arduino board to your computer via USB cable.
-
Run the Python script
Face_following_2.py
:python Face_following_2.py
-
Position the robotic arm in front of the camera, ensuring it has a clear view of the surroundings.
-
The robotic arm will start tracking and following detected faces in real-time.
- Adjust the
SERVO_PIN
andCAMERA_INDEX
variables in theFace_following_2.py
script according to your setup. - Fine-tune the
SPEED
andSENSITIVITY
parameters to achieve optimal performance based on your environment and requirements.
This project is licensed under the MIT License - see the LICENSE file for details.
For questions or feedback, feel free to reach out:
- LinkedIn: Priyanshu Lathi
- GitHub: Priyanshu Lathi
- Priyanshu Lathi