
I want to differentiate two component as shown in this picture. The marked section is my original crop and all other area is weed and I want to detect my only crop section. How to do that in python?

I want to differentiate two component as shown in this picture. The marked section is my original crop and all other area is weed and I want to detect my only crop section. How to do that in python?
you should try to identify closed loop object in your shape, not sure but it may helps you.