Tracking a ball and rotating camera with OpenCV and Arduino

Tracking a ball and rotating camera with OpenCV and Arduino

This is a little project I built using OpenCV and an Arduino Uno.

OpenCV tracks a ball, and the Arduino controls a servo motor to rotate the camera in case the ball goes off-screen. That way you get a tracking range of well over 180 degrees.

You can find the code used in this project (both the OpenCV and the Arduino code) in my blog post here: http://aleksandarkrstikj.com/tracking-a-ball-and-rotating-camera-with-opencv-and-arduino/

Hope you like it!
Tracking a ball and rotating camera with OpenCV and Arduino



Tracking a ball and rotating camera with OpenCV and Arduino

27 Comments

Add a Comment

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *