Draw line between plants on Farm Field Image

Hello, everyone.
As a beginner of OpenCV, I have a problem.
I have to draw red line between plants if the distance is more than 1.2 meters.
The color of plants is green and the background is brown.
I don’t know how to start it.
Hope your kind help.

Your question is a bit ambiguous, what does the image look like? It depends if the image is done from a top-down view or a simple perspective because you would have to convert px to meters. My approach would be to perform colour detection or blob detection (in this case your plants) and find their midpoints. Hope this helps.

1 Like