Cocoons counting and classification based on image processing | Synapse