In this below video, I ran a few algorithms in tandem. First, I removed all non-red objects. Next, I blurred the video a bit to make blobs more connected. Then, using blob detection, I only kept the blob that had the most pixels (the largest red object). This removed background objects such as the fire extinguisher. Lastly, I did center of mass to track the actual location of the object. I also ran a population threshold algorithm that made the object edges really sharp. It doesnt improve the algorithm in this case, but it does make it look nicer as a video.
To learn more about computer vision and see other robotics tutorials, check out
http://www.societyofrobots.com/programming_computer_vision_tutorial.shtml
How do you find the X and Y location??? Could you teach me how to do it?
LittlePokeDigi 10 months ago
@LittlePokeDigi see link in info box, silly =P
palmisano 10 months ago
Good job!! But can v get the source code of it?? I wud also like to try it!!!
Chandra Mani
MrSundaymonday 1 year ago
@MrSundaymonday I used RoboRealm. You can buy it on my site.
palmisano 1 year ago
sir could u plz give the code for dat...
sgdhoke 2 years ago
I did. Its in 'da' info box.
palmisano 2 years ago