The Singular Face Tracking Robot project aimed to create a robot that identifies and follows a specific face it recognizes, regardless of the presence of other people around. This innovative project consists of two main components: a training module to train a model using a video of the recognized person, and a tracking module that utilizes the trained model to identify and follow the designated face with the help of two motors.
- Programming Language: The project is developed in C++.
- Libraries and Tools:
- OpenCV 4: For image processing and face recognition functionalities.
- Arduino Software (IDE): To upload the necessary code to the Arduino Uno board.
- OpenCV 4 Installation: Ensure OpenCV 4 is installed on your system for the project to function correctly.
- Arduino Software Setup:
- Download and install the Arduino IDE from the official website.
- Connect your Arduino Uno board to your computer and select the corresponding port in the Arduino IDE.
- Upload the "Servo_Parse_int.ino" program to your Arduino Uno board to control the motors.
- Preparing the Training Video:
- In the "training" folder, place a 15-second video of the person to be recognized and name it "video.mp4".
- Modify line 27 of the "training.cpp" file to reflect the exact duration of the video.
- Generating the Model:
- In the terminal, navigate to the "training" folder and execute the makefile to compile the program.
- Run the compiled program to generate a model named "modele.yml" and place this file in the "prog" directory.
- Setting Up the Camera and Arduino Port:
- In the "prog.cpp" file, modify line 138 to set the correct USB port for the camera (with "0" typically representing the webcam).
- On line 86, specify the previously identified Arduino port.
- Launching the Program:
- Compile and run the program by executing the makefile in the "prog" directory.
- Once started, the robot will begin to identify and follow the recognized face using the camera and motors.
To see the Singular Face Tracking Robot in action, check out our demonstration video on YouTube:
- Pierre&Louis