Method and device for extracting image text area
A text area and text technology, which is applied in the field of image text area extraction, can solve the problems of low efficiency in the recognition process and complex modeling process, and achieve the effect of avoiding the modeling process and improving processing efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0030] According to an embodiment of the present invention, an embodiment of a method for extracting text blocks in an image is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions , and, although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that shown or described herein.
[0031] figure 1 It is a flowchart of a method for extracting text blocks in an image according to an embodiment of the present application, such as figure 1 As shown, the method includes the following steps:
[0032] Step S102, dividing the image to be processed into blocks to obtain multiple macro blocks.
[0033] Specifically, the image to be processed is the image from which the text area is to be extracted, and the image to be processed is divided into multiple macroblocks, and each macro...
Embodiment 2
[0107] According to an embodiment of the present invention, an embodiment of a device for extracting text blocks in an image is provided, image 3 is a schematic diagram of a device for extracting text blocks in an image according to an embodiment of the present application, such as image 3 As shown, the method includes the following steps:
[0108] Blocking module 30, configured to block the image to be processed to obtain multiple macroblocks.
[0109] The transformation module 32 is configured to perform grayscale color transformation on the color value of each pixel in the macroblock to obtain the grayscale value of each pixel.
[0110] A search module 34 is configured to search for text pixels in the macroblock according to the gray value of each pixel.
[0111] The extraction module 36 is used for text pixels, and splicing the text pixels to obtain the text area of the image to be processed.
Embodiment 3
[0113] According to an embodiment of the present invention, a storage medium is provided, which is characterized in that the storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the method for extracting an image text area in Embodiment 1.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com