Change the pixel color values of some pixels

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
user20157
Posts: 19
Joined: 2016-01-11T18:17:14-07:00
Authentication code: 1151

Change the pixel color values of some pixels

Post by user20157 »

Can i somehow change color values of some pixels. For example, on this picture:

http://i.stack.imgur.com/Eq6P0.png

i want to darken the accent marks of words by changing their pixel values to other normal ones 'mặt','bằng','sổ','đỏ' since it renders in accuracy in text extraction using Tesseract library.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Change the pixel color values of some pixels

Post by snibgo »

A simple way is with "-level", eg:

Code: Select all

convert Eq6P0.png -level 40%,100% x.png
snibgo's IM pages: im.snibgo.com
Post Reply