Page 1 of 1

Crop based on clolor

Posted: 2015-06-17T10:04:09-07:00
by frazior
Image
Image


is it possible to crop the number in the middle of the frame and get something like this :

maybe crop the black pixels surrounded by white ?

Image

Re: Crop based on clolor

Posted: 2015-06-17T14:30:56-07:00
by fmw42
I do not see an automatic way, since your image is very grainy, compressed and the colors are too close to your "black" which is not really black.

Closest I have come to isolate the "black" letters is:

Code: Select all

convert majick.jpg -morphology smooth octagon:1 -fuzz 5% -fill white +opaque "rgb(65,65,65)" -trim +repage result.png