CN117292370A - Icon character recognition method and device - Google Patents
Icon character recognition method and device Download PDFInfo
- Publication number
- CN117292370A CN117292370A CN202311566683.2A CN202311566683A CN117292370A CN 117292370 A CN117292370 A CN 117292370A CN 202311566683 A CN202311566683 A CN 202311566683A CN 117292370 A CN117292370 A CN 117292370A
- Authority
- CN
- China
- Prior art keywords
- image
- network model
- icon
- target area
- characters
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 50
- 238000012015 optical character recognition Methods 0.000 claims abstract description 31
- 238000000605 extraction Methods 0.000 claims description 47
- 230000002708 enhancing effect Effects 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 17
- 230000008569 process Effects 0.000 description 12
- 230000006872 improvement Effects 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 6
- 230000008901 benefit Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 4
- 238000005520 cutting process Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 238000004590 computer program Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 230000006835 compression Effects 0.000 description 2
- 238000007906 compression Methods 0.000 description 2
- 238000013527 convolutional neural network Methods 0.000 description 2
- 238000013135 deep learning Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 108010001267 Protein Subunits Proteins 0.000 description 1
- 230000004913 activation Effects 0.000 description 1
- 239000002131 composite material Substances 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000003062 neural network model Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 238000011176 pooling Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000003860 storage Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
- 238000013519 translation Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/60—Type of objects
- G06V20/62—Text, e.g. of license plates, overlay texts or captions on TV images
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/0464—Convolutional networks [CNN, ConvNet]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
- G06N3/082—Learning methods modifying the architecture, e.g. adding, deleting or silencing nodes or connections
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/70—Arrangements for image or video recognition or understanding using pattern recognition or machine learning
- G06V10/82—Arrangements for image or video recognition or understanding using pattern recognition or machine learning using neural networks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V30/00—Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
- G06V30/10—Character recognition
- G06V30/14—Image acquisition
- G06V30/146—Aligning or centring of the image pick-up or image-field
- G06V30/147—Determination of region of interest
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V30/00—Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
- G06V30/10—Character recognition
- G06V30/16—Image preprocessing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V30/00—Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
- G06V30/10—Character recognition
- G06V30/16—Image preprocessing
- G06V30/164—Noise filtering
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V30/00—Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
- G06V30/10—Character recognition
- G06V30/18—Extraction of features or characteristics of the image
- G06V30/1801—Detecting partial patterns, e.g. edges or contours, or configurations, e.g. loops, corners, strokes or intersections
- G06V30/18019—Detecting partial patterns, e.g. edges or contours, or configurations, e.g. loops, corners, strokes or intersections by matching or filtering
- G06V30/18038—Biologically-inspired filters, e.g. difference of Gaussians [DoG], Gabor filters
- G06V30/18048—Biologically-inspired filters, e.g. difference of Gaussians [DoG], Gabor filters with interaction between the responses of different filters, e.g. cortical complex cells
- G06V30/18057—Integrating the filters into a hierarchical structure, e.g. convolutional neural networks [CNN]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V30/00—Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
- G06V30/10—Character recognition
- G06V30/19—Recognition using electronic means
- G06V30/191—Design or setup of recognition systems or techniques; Extraction of features in feature space; Clustering techniques; Blind source separation
- G06V30/19173—Classification techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V2201/00—Indexing scheme relating to image or video recognition or understanding
- G06V2201/02—Recognising information on displays, dials, clocks
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Evolutionary Computation (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Software Systems (AREA)
- Life Sciences & Earth Sciences (AREA)
- Biomedical Technology (AREA)
- Molecular Biology (AREA)
- Computing Systems (AREA)
- Data Mining & Analysis (AREA)
- Biophysics (AREA)
- Computational Linguistics (AREA)
- General Engineering & Computer Science (AREA)
- Mathematical Physics (AREA)
- Medical Informatics (AREA)
- Databases & Information Systems (AREA)
- Biodiversity & Conservation Biology (AREA)
- Character Discrimination (AREA)
Abstract
The application relates to a method and a device for identifying icon characters, wherein the method for identifying the icon characters comprises the following steps: acquiring a target image to be identified; positioning icon characters in the target image through an optical character recognition network model to obtain a target area image; classifying the target area image through an image classification network model, and determining the identification result of the icon characters in the target area image according to the classification result. According to the method and the device, the accuracy of identifying the icon characters is improved, and the problem that the accuracy of identifying the icon characters is low in the prior related art is solved.
Description
Technical Field
The present disclosure relates to the field of image recognition technologies, and in particular, to a method and an apparatus for recognizing icon characters.
Background
In recent years, computer vision technology is rapidly developed, and identification of picture information is becoming a popular research direction. And acquiring the content required by the user through extracting and identifying the information in the picture.
For example, in the context of computer user status determination, different user names are typically displayed in the interface of the computer, and the status of the user is described in the corresponding area of the user names by using small icons or pictures or other characters, for example, the user is identified as being in a disabled state or an enabled state by the different icons. However, since the existing partial picture information recognition method can only effectively recognize a picture having a large size. For the above scenario, the final recognition is to determine the corresponding user name and the state of the user according to the text information and the icon character information in the picture. However, since most of icon characters used for identification are very small, when the existing picture information recognition technology processes picture information, the information of the icon characters in the picture may be distorted or even lost, and the recognition accuracy of the icon characters is low.
Aiming at the problem of low accuracy in identifying icon characters in the related art, no effective solution is proposed at present.
Disclosure of Invention
The embodiment provides a method and a device for identifying icon characters, which are used for solving the problem of low accuracy in identifying the icon characters in the related art.
In a first aspect, the present invention provides a method for identifying an icon character, including:
acquiring a target image to be identified;
positioning icon characters in the target image through an optical character recognition network model to obtain a target area image;
classifying the target area image through an image classification network model, and determining the identification result of the icon characters in the target area image according to the classification result.
In some of these embodiments, the acquiring the target image to be identified includes:
acquiring an initial image to be processed;
and denoising and enhancing the contrast of the initial image to obtain the target image.
In some of these embodiments, the optical character recognition network model is a PaddleOCR network model.
In some of these embodiments, the image classification network model is a peletenet network model.
In some embodiments, the positioning the icon characters in the target image through the optical character recognition network model, and obtaining the target area image includes:
recognizing the literal characters in the target image through the optical character recognition network model to obtain literal coordinates of the literal characters;
determining a target area of an icon character corresponding to the literal character according to the literal coordinate of the literal character;
and intercepting the target area of the icon character, and determining the target area image.
In some of these embodiments, the size of the target area image is 32×32.
In some of these embodiments, the pelete network model includes a number of feature extraction layers that is less than or equal to three.
In some of these embodiments, the number of feature extraction layers is one.
In some embodiments, the feature extraction layer comprises a dense layer and a convolution layer, the input of the feature extraction layer is the input of the dense layer, the output of the dense layer is the input of the convolution layer, and the output of the convolution layer is the output of the feature extraction layer.
In a second aspect, the present invention provides an apparatus for recognizing an icon character, comprising:
the acquisition module is used for acquiring a target image to be identified;
the positioning module is used for positioning the icon characters in the target image through the optical character recognition network model to obtain a target area image;
and the identification module is used for classifying the target area image through the image classification network model, and determining the identification result of the icon characters in the target area image according to the classification result.
Compared with the related art, the invention has the following technical effects:
1. in the method for identifying the icon characters, the icon characters in the target image are positioned through the optical character identification network model, the target area image is obtained, and the target area image is classified through the image classification network model because the area occupied by the icon characters in the target area image is large. Through the combination of the optical character recognition network model and the image classification network model, the lost information in the recognition process can be reduced, so that the recognition accuracy of icon characters is improved, and the problem of lower recognition accuracy of icon characters in the prior related technology is solved.
2. According to the invention, the target image is obtained by denoising and contrast enhancement operation on the initial image, so that the image quality of the target image is improved, and the subsequent recognition effect on the target image is further improved.
3. In the invention, the model architecture of the PeleNet network model is improved, the feature extraction layer in the PeleNet network model is properly reduced, the downsampling depth of the target area image is further reduced, the information lost in the identification process is reduced, and the identification accuracy of icon characters is further improved.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below to provide a more thorough understanding of the other features, objects, and advantages of the application.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
fig. 1 is a block diagram of a terminal hardware structure for performing an icon character recognition method provided in the present invention;
FIG. 2 is a flow chart of a method of identifying iconic characters of the present invention;
fig. 3 is a schematic diagram of a network structure of a conventional PeleeNet network model;
FIG. 4 is a schematic diagram of a network architecture of a PeleeNet network model that includes only one feature extraction layer;
FIG. 5 is a result diagram of enabling status image recognition for 200 users using a PeleeNet network model prior to modification;
FIG. 6 is a result diagram of enabling status image recognition for 200 users using the modified PeleeNet network model;
FIG. 7 is a graph of the results of disabling status image recognition for 200 users using the PeleNet network model prior to modification;
FIG. 8 is a graph of the results of disabling status image recognition for 200 users using the modified PeleNet network model;
fig. 9 is a block diagram showing the configuration of an icon character recognition apparatus according to the present invention.
Detailed Description
For a clearer understanding of the objects, technical solutions and advantages of the present application, the present application is described and illustrated below with reference to the accompanying drawings and examples.
Unless defined otherwise, technical or scientific terms used herein shall have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terms "a," "an," "the," "these," and the like in this application are not intended to be limiting in number, but rather are singular or plural. The terms "comprising," "including," "having," and any variations thereof, as used in the present application, are intended to cover a non-exclusive inclusion; for example, a process, method, and system, article, or apparatus that comprises a list of steps or modules (units) is not limited to the list of steps or modules (units), but may include other steps or modules (units) not listed or inherent to such process, method, article, or apparatus. The terms "connected," "coupled," and the like in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. Reference to "a plurality" in this application means two or more. "and/or" describes an association relationship of an association object, meaning that there may be three relationships, e.g., "a and/or B" may mean: a exists alone, A and B exist together, and B exists alone. Typically, the character "/" indicates that the associated object is an "or" relationship. The terms "first," "second," "third," and the like, as referred to in this application, merely distinguish similar objects and do not represent a particular ordering of objects.
The method embodiments provided in the present invention may be performed in a terminal, a computer or similar computing device. Such as on a terminal, fig. 1 is a block diagram of a terminal hardware structure for performing the method for recognizing icon characters provided in the present invention. As shown in fig. 1, the terminal may include one or more (only one is shown in fig. 1) processors 120 and a memory 140 for storing data, wherein the processors 120 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA. The terminal may further include a transmission device 160 for a communication function and an input-output device 180. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative and is not intended to limit the structure of the terminal. For example, the terminal may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1.
The memory 140 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to an icon character recognition method in the present invention, and the processor 120 performs various functional applications and data processing by running the computer program stored in the memory 140, that is, implements the above-described method. Memory 140 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 140 may further include memory located remotely from processor 120, which may be connected to the terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 160 is used to receive or transmit data via a network. The network includes a wireless network provided by a communication provider of the terminal. In one example, the transmission device 160 includes a network adapter (Network Interface Controller, simply referred to as NIC) that may be connected to other network devices via a base station to communicate with the internet. In one example, the transmission device 160 may be a Radio Frequency (RF) module for communicating with the internet wirelessly.
In the present invention, there is provided a method for recognizing an icon character, fig. 2 is a flowchart of the method for recognizing an icon character of the present invention, as shown in fig. 2, the flowchart including the steps of:
step S201, a target image to be identified is acquired.
Step S202, positioning icon characters in the target image through the optical character recognition network model to obtain a target area image.
Step S203, classifying the target area image through the image classification network model, and determining the recognition result of the icon characters in the target area image according to the classification result.
For example, in the user state recognition scenario of the Windows interface, a different icon character may be set next to the user's user name to indicate whether the user is disabled. When the state of a user is identified, firstly acquiring an interface image to be identified, wherein the interface image is a target image to be identified; wherein, the target image package generally comprises two characters, namely a text and an icon. Then positioning icon characters in the target image through an optical character recognition network model to obtain a target area image; specifically, after the target image is input into the optical character recognition network model, the optical character recognition network model can accurately recognize the text character content in the target image, and although the text character content cannot be recognized directly, the icon character can still be positioned. And finally classifying the target area image through the image classification network model, and determining the recognition result of the icon characters in the target area image according to the classification result. The identification results at least comprise forbidden and non-forbidden, and the two identification results correspond to two classification results. From the above classification result, it can be determined whether the user is disabled.
In the method, the icon characters in the target image are positioned through the optical character recognition network model, the target area image is obtained, and the area occupation of the icon characters in the target area image is larger, namely the effective information in the target area image is larger, and the area occupation ratio of the icon characters in the target image is smaller, so that the recognition accuracy can be effectively improved compared with the case that the target image is classified directly through the image classification network model.
Through the combination of the optical character recognition network model and the image classification network model, the lost information in the recognition process can be reduced, so that the recognition accuracy of icon characters is improved, and the problem of lower recognition accuracy of icon characters in the prior related technology is solved. Moreover, by combining the optical character recognition network model and the image classification network model, the recognition accuracy of the icon characters can be improved on the basis of recognizing the character characters, namely, the character characters and the icon characters can be recognized at the same time, and the method is more suitable for scenes similar to the user state recognition and needing to process the character information and the icon information at the same time.
In some of these embodiments, the optical character recognition network model is a PaddleOCR network model. The PaddleOCR network model is an Optical Character Recognition (OCR) algorithm based on deep learning. OCR is a technique that converts textual information in an image into readable text. The PaddleOCR network model uses PaddlePaddle as a deep learning framework behind the PaddlePaddle, and detects and identifies text areas by inputting images into a deep Convolutional Neural Network (CNN), so that an OCR solution with high precision and robustness is provided, and the model has the advantages of multi-scene support, high performance and accuracy, multi-language support, open source codes and the like.
In some of these embodiments, the image classification network model is a peletenet network model. The PeleNet network model is a lightweight deep neural network model specifically designed for target detection tasks. The method adopts a series of innovative design and optimization strategies to remarkably reduce the size and the calculated amount of the model while maintaining high accuracy. The PeleNet network model is typically composed of Stem Block, two-Way Dense Layer, dynamic Number of Channels of Bottleneck Layer, transition Layer without Compression, composite Function, which introduces root blocks, bi-directional Dense layers, dynamic channel numbers in bottlenecks, translation Layer compression, and conventional activation functions to reduce computational cost and increase speed. The bi-directional dense layer helps to obtain different scales of receptive fields, making it easier to identify larger targets.
In order to improve the image quality of the target image, in some embodiments thereof, step S201, acquiring the target image to be identified includes: acquiring an initial image to be processed; and denoising and enhancing the contrast of the initial image to obtain a target image. The image quality of the target image obtained through denoising and contrast enhancement operation is better, and the subsequent recognition effect on the target image is improved.
In some embodiments, step S202, positioning the icon characters in the target image through the optical character recognition network model, and obtaining the target area image includes: recognizing the literal characters in the target image through the optical character recognition network model to obtain literal coordinates of the literal characters; determining a target area of an icon character corresponding to the character according to the character coordinates of the character; and intercepting a target area of the icon character to determine a target area image.
In this embodiment, a specific manner of positioning the icon characters by the optical character recognition network model is provided. For example, taking the PaddleOCR network model as an example, in the user state recognition scenario of the Windows interface, since the icon characters in the interface image are used to represent the disabled state of the user, the icon characters are typically shown along with the user's user name, where the user's user name belongs to the text characters. When the icon characters are positioned, the user names of the users are identified through the PaddleOCR network model, coordinates of the user names are obtained, and then the area where the icon characters corresponding to the user names are located is determined according to the coordinates of the user names, namely the target area. Intercepting the target area, and storing the intercepting result by using opencv to obtain a target area image with a larger icon character area.
Further, the size of the target area image is 32×32. In the practical application scenario, the size of the target image is generally about 100×100, and the size of the icon character is generally about 23×23, so that the icon character occupies a relatively small area in the target image. Therefore, when the target area image is cut out, the size of the cut-out target area image is 32×32, so that most of the contents in the target area image are contents of icon characters.
In the method, taking the PeleNet network model as an example, the traditional PeleNet network model can be directly adopted to classify the target area image. However, in order to further enhance the performance of the PeleeNet network model in identifying smaller icon characters, in some of these embodiments, the PeleeNet network model is improved. Specifically, the improved PeleNet network model comprises feature extraction layers, and the number of the feature extraction layers is less than or equal to three. I.e. the feature extraction part of the peletenet network model consists of one, two or three feature extraction layers. Whereas the conventional pelete network model generally has four feature extraction layers, as shown in fig. 3, fig. 3 is a network structure schematic diagram of the conventional pelete network model. Because the size of the icon character is small, if the number of times of downsampling is large or the downsampling degree is deep, the size of the obtained feature map is only about 1×1, and although the effective information (icon character content) in the target area image is high, some information may be lost after deep downsampling. Therefore, the number of feature extraction layers of the PeleNet network model adopted in the embodiment is smaller than that of the traditional PeleNet network model, the number of downsampling times or depth is properly reduced, the loss of information is further reduced, and the accuracy of identifying icon characters is improved. Specifically, the pelete network model in the invention can be obtained by cutting the traditional pelete network model, for example, if the pelete network model with only two feature extraction layers is wanted, the feature extraction layers corresponding to stage3 and stage4 can be cut off, and only the feature extraction layers corresponding to stage1 and stage2 are reserved.
Further, the number of feature extraction layers is one, as shown in fig. 4, and fig. 4 is a network structure diagram of a PeleeNet network model including only one feature extraction layer. In this embodiment, the feature extraction portion of the pelete network model is composed of a feature extraction layer, the feature extraction layer includes a dense layer and a convolution layer, the input of the feature extraction layer is the input of the dense layer, the output of the dense layer is the input of the convolution layer, and the output of the convolution layer is the output of the feature extraction layer, i.e. the feature extraction layers corresponding to stage2, stage3 and stage4 and the pooling layer in stage1 are all cut off. Since most of the contents in the target area image belong to the contents of the icon characters, the invalid information (contents other than the icon characters) in the target area image is small. Therefore, the feature extraction layer in the PeleNet network model is reduced to only one, and the output of the convolution layer is used as the output of the feature extraction layer, so that effective information in the target area image is reserved to a greater extent. Specifically, the PeleNet network model in the invention can be obtained by cutting the traditional PeleNet network model.
In order to verify the recognition performance of icon characters by the PeleeNet network model before improvement and the PeleeNet network model after improvement (PeleeNet network model only comprising one feature extraction layer), 200 user disabled state images and 200 user enabled state images are recognized by using PeleNet before improvement and after improvement respectively on ubuntu20.04, i5-11400, 3070/8G environments. Fig. 5 is a diagram showing the result of using the peer net network model before improvement to enable status image recognition for 200 users, in fig. 5, there are 143 images with accurate recognition and 57 images with incorrect recognition, so the recognition accuracy of the peer net network model before improvement is 71.5%, and the time consumed in the recognition process is about 356ms. Fig. 6 is a diagram showing the result of using the improved pelete network model to enable status image recognition for 200 users, in fig. 6, the number of images to be recognized accurately is 191, and the number of images to be recognized incorrectly is 9, so that the recognition accuracy of the improved pelete network model is 95.5%, and the time consumed in the recognition process is about 155ms. Fig. 7 is a diagram showing the result of identifying a disabled state image of 200 users using the peer net network model before improvement, in fig. 7, there are 156 images with accurate identification and 44 images with incorrect identification, so that the accuracy of identifying the peer net network model before improvement is 78%, and the time consumed in the identification process is about 359ms. Fig. 8 is a diagram showing the result of using the improved pelete network model to identify the disabled state image of 200 users, in fig. 8, there are 192 images with accurate identification and 8 images with incorrect identification, so the identification accuracy of the improved pelete network model is 96%, and the time consumed in the identification process is about 173ms. On the environment of ubuntu20.04, i5-11400 and 3070/8G, the PeleeNet model before and after improvement is used for testing 400 user state diagrams respectively, the comprehensive recognition rate is improved from 74.75% to 95.75%, the total time consumption is reduced from 716ms to 328ms, and 54.19%.
According to the data, even if the PeleNet network model is not improved, the method has higher recognition accuracy when the method is used for recognizing the icon characters, and the recognition accuracy of the icon characters can be further improved after the PeleNet network model is improved. Moreover, the depth of downsampling of the improved PeleNet network model is reduced, so that the recognition time of icon characters can be shortened after the PeleNet network model is improved.
In summary, in the invention, the optical character recognition network model is used for positioning the icon characters in the target image, the target area image is obtained, the target area image with relatively large icon characters is used as the input of the image classification network model, and the image classification network model is used for classifying the target area image, so that the recognition result of the icon characters in the target area image is determined, the loss of information in the icon characters can be reduced, and the recognition accuracy of the icon characters is improved.
The invention also provides a method for identifying the icon characters, which comprises the following steps:
acquiring a target area image to be identified, wherein the target area image comprises icon characters;
classifying the target area image through the image classification network model, and determining the identification result of the icon characters in the target area image according to the classification result; the image classification network model is a PeleNet network model, and the PeleNet network model comprises feature extraction layers, wherein the number of the feature extraction layers is less than or equal to three.
I.e. the feature extraction part of the peletenet network model consists of one, two or three feature extraction layers. The conventional PeleeNet network model generally has four feature extraction layers, and because of the small size of the icon characters, if the number of times of downsampling is large or the degree of downsampling is deep, the size of the obtained feature map is only about 1×1, and although the effective information (icon character content) in the target area image is high in duty ratio, some information may be lost after deep downsampling. Therefore, the number of feature extraction layers of the PeleNet network model adopted in the embodiment is smaller than that of the traditional PeleNet network model, the number of downsampling times or depth is properly reduced, the loss of information is further reduced, and the accuracy of identifying icon characters is improved. Specifically, the PeleeNet network model in the method can be obtained by cutting the traditional PeleeNet network model.
Further, the number of feature extraction layers is one. In this embodiment, the feature extraction portion of the PeleeNet network model is composed of a feature extraction layer, the feature extraction layer includes a dense layer and a convolution layer, the input of the feature extraction layer is the input of the dense layer, the output of the dense layer is the input of the convolution layer, and the output of the convolution layer is the output of the feature extraction layer. Since most of the contents in the target area image belong to the contents of the icon characters, the invalid information (contents other than the icon characters) in the target area image is small. Therefore, the feature extraction layer in the PeleNet network model is reduced to only one, and the output of the convolution layer is used as the output of the feature extraction layer, so that effective information in the target area image is reserved to a greater extent. Specifically, the PeleNet network model in the invention can be obtained by cutting the traditional PeleNet network model.
It should be noted that the steps illustrated in the above-described flow or flow diagrams of the figures may be performed in a computer system, such as a set of computer-executable instructions, and that, although a logical order is illustrated in the flow diagrams, in some cases, the steps illustrated or described may be performed in an order other than that illustrated herein.
The invention also provides a device for identifying icon characters, which is used for realizing the embodiment and the preferred implementation, and the description is omitted. The terms "module," "unit," "sub-unit," and the like as used below may refer to a combination of software and/or hardware that performs a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware, are also possible and contemplated.
Fig. 9 is a block diagram showing a configuration of an icon character recognition apparatus according to the present invention, as shown in fig. 9, the apparatus comprising:
an acquisition module 901, configured to acquire a target image to be identified;
the positioning module 902 is configured to position an icon character in the target image through the optical character recognition network model, so as to obtain a target area image;
the recognition module 903 is configured to classify the target area image through the image classification network model, and determine a recognition result of the icon character in the target area image according to the classification result.
In the device, the icon characters in the target image are positioned through the optical character recognition network model, the target area image is obtained, and the target area image is classified through the image classification network model because the area occupied by the icon characters in the target area image is relatively large. Through the combination of the optical character recognition network model and the image classification network model, the lost information in the recognition process can be reduced, so that the recognition accuracy of icon characters is improved, and the problem of lower recognition accuracy of icon characters in the prior related technology is solved.
The above-described respective modules may be functional modules or program modules, and may be implemented by software or hardware. For modules implemented in hardware, the various modules described above may be located in the same processor; or the above modules may be located in different processors in any combination.
It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to be limiting. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present application, are within the scope of the present application in light of the embodiments provided herein.
It is evident that the drawings are only examples or embodiments of the present application, from which the present application can also be adapted to other similar situations by a person skilled in the art without the inventive effort. In addition, it should be appreciated that while the development effort might be complex and lengthy, it would nevertheless be a routine undertaking of design, fabrication, or manufacture for those of ordinary skill having the benefit of this disclosure, and thus should not be construed as an admission of insufficient detail.
The term "embodiment" in this application means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive. It will be clear or implicitly understood by those of ordinary skill in the art that the embodiments described in this application can be combined with other embodiments without conflict.
Claims (10)
1. A method for recognizing an icon character, comprising:
acquiring a target image to be identified;
positioning icon characters in the target image through an optical character recognition network model to obtain a target area image;
classifying the target area image through an image classification network model, and determining the identification result of the icon characters in the target area image according to the classification result.
2. The method for recognizing an icon character according to claim 1, wherein the acquiring the target image to be recognized includes:
acquiring an initial image to be processed;
and denoising and enhancing the contrast of the initial image to obtain the target image.
3. The method of claim 1, wherein the optical character recognition network model is a PaddleOCR network model.
4. The method of claim 1, wherein the image classification network model is a peletenet network model.
5. The method for recognizing icon characters according to claim 1, wherein the positioning the icon characters in the target image through the optical character recognition network model, and obtaining a target area image comprises:
recognizing the literal characters in the target image through the optical character recognition network model to obtain literal coordinates of the literal characters;
determining a target area of an icon character corresponding to the literal character according to the literal coordinate of the literal character;
and intercepting the target area of the icon character, and determining the target area image.
6. The method of claim 5, wherein the size of the target area image is 32 x 32.
7. The method of claim 4, wherein the peletenet network model includes feature extraction layers, the number of feature extraction layers being less than or equal to three.
8. The method of claim 7, wherein the number of feature extraction layers is one.
9. The method of claim 8, wherein the feature extraction layer comprises a dense layer and a convolution layer, the input of the feature extraction layer is the input of the dense layer, the output of the dense layer is the input of the convolution layer, and the output of the convolution layer is the output of the feature extraction layer.
10. An icon character recognition apparatus, comprising:
the acquisition module is used for acquiring a target image to be identified;
the positioning module is used for positioning the icon characters in the target image through the optical character recognition network model to obtain a target area image;
and the identification module is used for classifying the target area image through the image classification network model, and determining the identification result of the icon characters in the target area image according to the classification result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311566683.2A CN117292370A (en) | 2023-11-23 | 2023-11-23 | Icon character recognition method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311566683.2A CN117292370A (en) | 2023-11-23 | 2023-11-23 | Icon character recognition method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117292370A true CN117292370A (en) | 2023-12-26 |
Family
ID=89253850
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311566683.2A Pending CN117292370A (en) | 2023-11-23 | 2023-11-23 | Icon character recognition method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117292370A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111507325A (en) * | 2020-03-16 | 2020-08-07 | 重庆大学 | Industrial visual OCR recognition system and method based on deep learning |
CN111582273A (en) * | 2020-05-09 | 2020-08-25 | 中国工商银行股份有限公司 | Image text recognition method and device |
CN111832546A (en) * | 2020-06-23 | 2020-10-27 | 南京航空航天大学 | Lightweight natural scene text recognition method |
CN112329851A (en) * | 2020-11-05 | 2021-02-05 | 腾讯科技(深圳)有限公司 | Icon detection method and device and computer readable storage medium |
CN114937151A (en) * | 2022-05-06 | 2022-08-23 | 西安电子科技大学 | Lightweight target detection method based on multi-receptive-field and attention feature pyramid |
CN116883981A (en) * | 2023-06-15 | 2023-10-13 | 五邑大学 | License plate positioning and identifying method, system, computer equipment and storage medium |
-
2023
- 2023-11-23 CN CN202311566683.2A patent/CN117292370A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111507325A (en) * | 2020-03-16 | 2020-08-07 | 重庆大学 | Industrial visual OCR recognition system and method based on deep learning |
CN111582273A (en) * | 2020-05-09 | 2020-08-25 | 中国工商银行股份有限公司 | Image text recognition method and device |
CN111832546A (en) * | 2020-06-23 | 2020-10-27 | 南京航空航天大学 | Lightweight natural scene text recognition method |
CN112329851A (en) * | 2020-11-05 | 2021-02-05 | 腾讯科技(深圳)有限公司 | Icon detection method and device and computer readable storage medium |
CN114937151A (en) * | 2022-05-06 | 2022-08-23 | 西安电子科技大学 | Lightweight target detection method based on multi-receptive-field and attention feature pyramid |
CN116883981A (en) * | 2023-06-15 | 2023-10-13 | 五邑大学 | License plate positioning and identifying method, system, computer equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
ALESSANDRO BISSACCO 等: "PhotoOCR: Reading Text in Uncontrolled Conditions", 《IEEE INTERNATIONAL CONFERENCE ON COMPUTER VISION》, pages 279 - 280 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108205655B (en) | Key point prediction method and device, electronic equipment and storage medium | |
CN108229277B (en) | Gesture recognition method, gesture control method, multilayer neural network training method, device and electronic equipment | |
US20170154204A1 (en) | Method and system of curved object recognition using image matching for image processing | |
CN107818290B (en) | Heuristic finger detection method based on depth map | |
CN109409377B (en) | Method and device for detecting characters in image | |
CN106991364B (en) | Face recognition processing method and device and mobile terminal | |
CN111626027B (en) | Table structure restoration method, device, equipment, system and readable storage medium | |
CN111862205A (en) | Visual positioning method, device, equipment and storage medium | |
CN114402369A (en) | Human body posture recognition method and device, storage medium and electronic equipment | |
CN111476894A (en) | Three-dimensional semantic map construction method and device, storage medium and electronic equipment | |
CN112836625A (en) | Face living body detection method and device and electronic equipment | |
CN113362314B (en) | Medical image recognition method, recognition model training method and device | |
CN110599455A (en) | Display screen defect detection network model, method and device, electronic equipment and storage medium | |
US20210158142A1 (en) | Multi-task fusion neural network architecture | |
CN115170893B (en) | Training method of common-view gear classification network, image sorting method and related equipment | |
CN111415373A (en) | Target tracking and segmenting method, system and medium based on twin convolutional network | |
CN112419326A (en) | Image segmentation data processing method, device, equipment and storage medium | |
CN111160312A (en) | Target identification method and device and electronic equipment | |
CN114638846A (en) | Pickup pose information determination method, pickup pose information determination device, pickup pose information determination equipment and computer readable medium | |
CN112802081A (en) | Depth detection method and device, electronic equipment and storage medium | |
CN117058517A (en) | Helmet detection method, device and medium based on YOLOv5 optimization model | |
CN115063656A (en) | Image detection method and device, computer readable storage medium and electronic equipment | |
CN108460388A (en) | Detection method, device and the computer readable storage medium of witness marker | |
CN112686314B (en) | Target detection method and device based on long-distance shooting scene and storage medium | |
CN112580750A (en) | Image recognition method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |