Suvidh
Suvidh

Reputation: 123

Need a way to get the Text in the Image in Black/white

I have a colored textual Image to be in black and white. Specifically the text to be in black and background to be in white for whatever colored it might be

I am using JAVA to perform this operation.

Can anybody help me out to with a code snippet or point me to a discussion which is useful.

Upvotes: 0

Views: 125

Answers (1)

srIT
srIT

Reputation: 46

if you want to develop your own converter RGB to Black/White, please check Java - get pixel array from image . Here you import a image, access the pixel and with a specific threshold of the color you can decide to convert to black or white.

Or you use http://www.imagemagick.org/ as commandline tool (with api http://www.imagemagick.org/script/api.php).

Regards

Upvotes: 2

Related Questions