OpenCV2/4/2026

Real-Time Face Tracking: OpenCV Control of a UR Robot

Sanjana Bhat
This project controls a Universal Robots UR5 using real-time face tracking built with OpenCV. A standard webcam provides a live video stream that detects a human face, computes its position relative to the image center, and maps this offset into the robot’s Cartesian workspace. The robot’s tool center point (TCP) is then updated continuously, resulting in smooth, responsive motion that follows the user’s movements rather than discrete commands. The post Real-Time Face Tracking: OpenCV Control of