I used OpenCV to create a face detection program that can be used to control a servo through serial connection with arduino.