This project demonstrates how to build a robot using a Raspberry Pi that can detect faces using OpenCV and adjust its movement based on the detected faces and distance measurements from an ultrasonic sensor. It was build for BRACU CSE461 Project.
- Raspberry Pi with Raspbian OS
- Python 3.x
- OpenCV
- RPi.GPIO library
- Clone this repository to your Raspberry Pi.
- Install the required libraries.
- Connect the ultrasonic sensor and motor driver to the GPIO pins as defined in the code.
- Run the
main_robot.py
script. - The robot will use the camera to detect faces and adjust its movement to keep faces centered.
- Press 'q' to exit the program.
This project is licensed under the MIT License - see the LICENSE file for details.