My Cart

Face detection and tracking with Arduino and OpenCVMay 29, 2012

In this project [TechBitar] has assembled a face detection and tracking system using Open Computer Vision (OpenCV). You can see the video of the final project here:

Basically, the webcam sends video frames to OpenCV running on a Windows PC. If OpenCV detects a face it will track it and calculate its center's X,Y coordinates. The coordinates are then passed on to the Arduino via a serial USB connection. The Arduino controls the movement of the webcam with the help of two pan/tilt servos to follow the detected face.

OpenCV (Open Source Computer Vision Library:Ā is an open-source library that includes several hundreds of real-time computer vision algorithms. The OpenCV 2.x library is a C++ API.

This is an integration project between hardware and software tools. The image processing C++ code samples are provided with the openCV library and all I did was to modify the sample code for this project. I removed some of the unnecessary code and added serial communications to it so it can send X,Y values to Arduino.

Read the complete article here.

Via and Source: TechBitar

2 thoughts on “Face detection and tracking with Arduino and OpenCV”

  • an

    how do the opencv file and arduino file being attached?im having a hard time integrating the opencv to using MS visual studio 2010 professional.

    • Cooking Hacks

      All detailed info is in the Source: You can take a look there and its step 4 "Resources".

Leave a Reply