Text detection method and device, electronic equipment and storage medium
A text detection and text technology, applied in character and pattern recognition, instruments, calculation models, etc., can solve problems such as high time consumption and affect OCR time consumption, and achieve the effect of reducing time consumption and solving the overall high delay.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0076] see figure 1 , figure 1 It is a schematic flowchart of a text detection method disclosed in an embodiment of the present invention. Such as figure 1 As shown, the text detection method includes the following steps:
[0077] 110. Acquire a mask map of the text line area mask of the target picture, where the size of the mask map is the same as that of the target picture.
[0078] The target image is an image input by the user. The image input by the user may be an image obtained by taking a picture of the document through an image acquisition device, or an image downloaded by the user from the Internet, which is not limited here. There is one or more text lines in the target image, and there is no limitation on whether the text lines are horizontal or not.
[0079] There can be multiple ways to obtain the text line area mask of the target picture. In the embodiment of the present invention, a text line detection network model based on deep learning is used to realize ...
Embodiment 2
[0099] see Figure 5 , Figure 5 is a schematic flowchart of another text detection method disclosed in the embodiment of the present invention. Such as Figure 5 As shown, the text detection method includes the following steps:
[0100] 310. Acquire a mask map of the text line area mask of the target picture, where the size of the mask map is the same as that of the target picture.
[0101] 320. Determine the value of each pixel in the mask map. In the text line area mask numbered i, the value of each pixel in the text line area mask is i, and the text line area in the mask map The values of the remaining pixels outside the mask are 0; 1≤i≤M, where M is the total number of text line area masks corresponding to the target image.
[0102] 330. Subtract the value of the pixel point in the jth row of the mask image from the value of the corresponding pixel point in the j+1th row to obtain a new value of the pixel point in the jth row or j+1th row, where 1≤j≤N , N is the to...
Embodiment 3
[0117] see Figure 6 , Figure 6 It is a schematic flowchart of another text detection method disclosed in the embodiment of the present invention. Such as Figure 6 As shown, the text detection method includes the following steps:
[0118] 410. Acquire a mask map of the text line area mask of the target picture, where the size of the mask map is the same as that of the target picture.
[0119] 420. Determine the value of each pixel in the mask map. In the text line area mask numbered i, the value of each pixel in the text line area mask is i, and the text line area in the mask map The values of the remaining pixels outside the mask are 0; 1≤i≤M, where M is the total number of text line area masks corresponding to the target image.
[0120] 430. Subtract the value of the pixel point in the jth row of the mask image from the value of the corresponding pixel point in the j+1th row to obtain the new value of the pixel point in the jth row or j+1th row, where 1≤j≤N , N is t...
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