Introduction - If you have any usage issues, please Google them yourself
A simple approach to identifying red object in a real world image and establishing its location in the image. For a detailed understanding of the code, visit https://letsrobo.wordpress.com/2016/01/31/matlab-magic-ii-tracking-and-locating-red-object/.
Regards
Shivam