Yeah, this is very easy. Buy a telephoto lens so you can focus on something close and use find_blobs() (color tracking) to find each color in order. As you find colors the centroids for each color should progress in order.
thank you very much for your reply. my openmv is suppose to come next 3~4 days. i m from india. and i did not get openmv telephoto lens here. can you give any source for that.
It’s a 12mm M12 lens. Just search for that. Lots of folks provide them. We buy ours from AliExpress.
thank you very much . i have order 20 lens from openmv online shop.