Thankyou for the reply. Assuming that there are same number of unique colors in every image in my dataset I will move ahead.
But I’m still not clear how can I pass the mask, after using the code.
Can I know exactly what the code will return. For eg: Shape Or Content.