Use GIMP to extract text from the image

Source: Internet
Author: User
Use GIMP to extract the text in the image-Linux general technology-Linux technology and application information. The following is a detailed description. First, declare that this method is not suitable for the text effects I have made in this post.
Http://www.linuxdiyf.com/bbs/thread-186232-1-1.html


Let's assume that we want to take down the "lovesickness" in this image (thanks to Uncle xiangbo for providing the image)


(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // dinglin.bokee.com/inc/xiangsi.jpg'); ">

First, open it in GIMP, and select the text to be merged using the moment Line Selection box (this can avoid other black interference, such as hair ),

Color-brightness/contrast: Open the adjust brightness contrast dialog box and adjust the contrast to the maximum value (if the contrast between the word and the background is not very strong, you can also use the color-level tool to select a channel)

This ensures that the text color is uniform and the background colors are eliminated.
Then, use the color selection tool and click the black character. In this way, all the black characters in the selection box are selected, while the beautiful hair is ignored.

Copy, file -- create -- from clipboard, so that all the text is re-inserted into an image. The background is transparent and can be edited at will.








Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.