How to extract different one from a picture with many repetitive symbol

image
I can’t just use image tool to seperate symbol becourse there is some cutted symbol on the edge of image(like the right one). So I wonder is there a deep learning way to solve it.

ps: the wrong symbol is 5% of total in a image

Not entirely sure what you’re trying to do, but if you’re trying to break the image up like this:
break-up
I would use a k-means clustering algorithm to segment the data by color. Then, inside of each color, you could break non-neighboring pixels into different groups. I don’t necessarily know if deep learning would be the best approach here.