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
great work bro!
is it applicable for the arduino duemilanove http://arduino.cc/en/Main/arduinoBoardDuemilanove
I wanna to know how to change the HSV_MIN_MAX value so that I can change it to another value…How can I know some object's HSV value?
great project..
i have made similar project, but use human detecting with PIR sensor, and servo to movement the camera.
how if want to make automatically taken a picture when any human movement detected? it need openCV also? could you explain me?
appreciated for your replying..
Hi Alex, can I ask what CPU power is needed to process this application? Would it be possible to run similar code on a Raspberry Pi, for example? I assume the frame rate (and picture quality) would be much lower.
I was wondering what kind of camera you would need for this
Very interesting….. my question is that can we use a PIR sensor instead of OpenCV
Nice project, i am actually trying to do the same it is not that hard. It would be really interesting to apply this to a FPGA to improve the processing of the image.
hey i really did enjoy ur peresention, but one thing i would really love to ask u that can u tell me the camera u use? or maybe give me the link to shop it, pls relpied to me as soon as possible cuz i really i need it to ma project???????
nice project Alex, im actually finished installing openCV 1.0 and trying to figured out what other configurations or properties setup i might have to consider to get your source to work, your tips are appreciated
how to track multiple objectsmof same color
Did you use CUBA library to accelerate detection??
Hi AlexInFlatland, may I know how you connected the camera with Arduino Uno ?
Great Job !!!
the codes you shared are not working with current OpenCV ( +3.0 ) and Processing ( +3.0 ) versions. Would you update your codes please that is working with current versions please ? thank you very much. We are really looking forward your reply to us. Take care yourself and have a nice day AlexInFlatland. Please reply to us, thank you again.
Amazing, congratulations.
I wonder what camera you used. Would you let me know?
Hello, i want to make a similar project as yours but i dont know where to start. Can you suggest me a starting point pls.
Hello, i would like to know what step did you perform so as to get this result pls. Thank you
how you attach the servo with the Logitech cam?
Alex, I am currently doing a project of this type. I have used both of your codes with no errors but when I run the program the 2 open windows for visual are grey and black. The serial monitor says port is open, and the arduino connection is still there as the servo will pan left to right. I have a HD webcam but in the code it says to put the resolution to 640×480. Is having this HD webcam my problem? (I have tried changing the resolution in the code to my webcam resolution but it gives an exception error)
Can I use arduino and openCv without computer .
hi can you please share your code?
your website domain has expired i believe
alguien tiene el codigo me lo podria pasar a este correo porfavor muchas gracias 🙂 germandelgadod@gmail.com
Could someone please share the code with me?
This thing is crazy 😂😂😂 fuck you robo cam