Separate the red and black texts into 2 graphic files
Posted: 2016-09-07T00:11:43-07:00
Hi All,
I am new to ImageMagicK, I have a image with 2 color texts, one is black and the other is red
is it possible we can use ImageMagicK to separate these 2 color texts into 2 bmp files??
I tried the above code, you can find the image files from the below links.
you can see the texts with distortion after conversion.
the original image
https://drive.google.com/file/d/0B_bGsy ... sp=sharing
the converted images
https://drive.google.com/file/d/0B_bGsy ... sp=sharing
https://drive.google.com/file/d/0B_bGsy ... sp=sharing
is it any other way, for example, we can "detect" the red texts and "chop" this area saving as a image file??
thanks for your help in advance!!!!
I am new to ImageMagicK, I have a image with 2 color texts, one is black and the other is red
is it possible we can use ImageMagicK to separate these 2 color texts into 2 bmp files??
Code: Select all
convert d:\de\2pages.bmp -fuzz 45%% -fill white +opaque red d:\de\2pages_red_45.bmp
you can see the texts with distortion after conversion.
the original image
https://drive.google.com/file/d/0B_bGsy ... sp=sharing
the converted images
https://drive.google.com/file/d/0B_bGsy ... sp=sharing
https://drive.google.com/file/d/0B_bGsy ... sp=sharing
is it any other way, for example, we can "detect" the red texts and "chop" this area saving as a image file??
thanks for your help in advance!!!!