Track the known face infront of Webcam using Sensor Mezzanine and Dragonboard410C. Following are the steps necessary to acheive Webcam tracking.
If you would like to read more about this project, please visit this blog written by Manivannan Sadhasivam.
- DragonBoard 410c
- 96Boards Compliant Power Supply
- USB Webcam
- Sensors Mezzanine
- Pan/Tilt Camera Mount with Micro Servos
- DragonBoard 410 is powered off
- Assemble Pan and Tilt servo by following the instructions here
- Mount USB webcam on servo assembly and connect to Sensors Mezzanine according to the following connections:
- Connect Sensors Mezzanine
- Connect USB webcam
- Connect I/O devices (Monitor, Keyboard, etc...)
- Power on your DragonBoard 410c with 96Boards compliant power supply
Installed the dependencies mentioned in Part-2 along with the following:
$ sudo easy_install pyserial
$ git clone https://github.com/96boards/projects.git
$ cd projects/home-surveillance/part-3
Open facetrack.ino using Arduino IDE and upload the code to Sensor Mezzanine with the following settings:
- Board ----> Arduino Uno
- Serial Port ----> /dev/tty96B0
- Programmer ----> AVRISP mkII
Place the trained dataset and haarcascade_frontalface_default.xml created in Part-2 to current directory. Also, update the USB webcam video source as specified in Part-2
$ cp -r ../part-2/trainer ../part-2/haarcascade_frontalface_default.xml ./
$ sudo python facetrack.py
The above script will track the known face using webcam mounted on Servo Pan/Tilt system. The servo system will adjust it's position continuously to center the known face.
Script will prompt the user to enter the Name of the person that needs to be tracked. Type the name and press Enter.