Ask Your Question

Revision history [back]

Did you first segment the image appropriately. Looks like the object is very dark and a simple threshold close to black (changing the rest of the image to white) will give you the bag. You can follow this by a blob analysis to look for a blob that contains a white dot.