I have taken an image from the camera and generated grids on it. How can i know in which grid my centroid is pesent. I need to generate a variable or a number which i can use further. For example the centroid is in the 3rd box it generates 3 and i can send it to arduino using serial communication for futher action. I hope you get the idea. Can ROI be helpful in this case if yes then how can i use it ?
any help ?
Best Answer