CN111339803A - Font identification method, apparatus, device and computer readable storage medium - Google Patents

Font identification method, apparatus, device and computer readable storage medium Download PDF

Info

Publication number
CN111339803A
CN111339803A CN201811555857.4A CN201811555857A CN111339803A CN 111339803 A CN111339803 A CN 111339803A CN 201811555857 A CN201811555857 A CN 201811555857A CN 111339803 A CN111339803 A CN 111339803A
Authority
CN
China
Prior art keywords
font
image
preset
data
model
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.)
Granted
Application number
CN201811555857.4A
Other languages
Chinese (zh)
Other versions
CN111339803B (en
Inventor
郭培龙
王守强
程立双
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New Founder Holdings Development Co ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CN201811555857.4A priority Critical patent/CN111339803B/en
Publication of CN111339803A publication Critical patent/CN111339803A/en
Application granted granted Critical
Publication of CN111339803B publication Critical patent/CN111339803B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/14Image acquisition
    • G06V30/148Segmentation of character regions
    • G06V30/153Segmentation of character regions using recognition of characters or words
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/214Generating training patterns; Bootstrap methods, e.g. bagging or boosting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/46Descriptors for shape, contour or point-related descriptors, e.g. scale invariant feature transform [SIFT] or bags of words [BoW]; Salient regional features
    • G06V10/462Salient features, e.g. scale invariant feature transforms [SIFT]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/22Character recognition characterised by the type of writing
    • G06V30/226Character recognition characterised by the type of writing of cursive writing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/10Internal combustion engine [ICE] based vehicles
    • Y02T10/40Engine management systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Artificial Intelligence (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Character Discrimination (AREA)

Abstract

The invention provides a font identification method, a font identification device, font identification equipment and a computer readable storage medium, wherein the method comprises the following steps: receiving a font image shot by a shooting module; preprocessing the font file; and adding the preprocessed font image into a preset font identification model to obtain a font name corresponding to the font image. Therefore, the name of the font liked by the user can be quickly acquired, so that the user can download and use the font according to the font name, and the user experience is improved.

Description

Font identification method, apparatus, device and computer readable storage medium
Technical Field
The present invention relates to the field of data processing, and in particular, to a font identification method, apparatus, device, and computer-readable storage medium.
Background
With the vigorous development of font design, more and more fonts with different styles appear in all corners of the society. When a user sees the font of the heart instrument, the name of the font is often known so as to be convenient for obtaining and using the font subsequently, so that how to know the names of the fonts and the names of the fonts with the similar styles in time by the user achieves the effect of what you see is what you get, i.e. the problem to be solved urgently is solved.
The traditional font recognition algorithm is mainly a feature extraction method, shallow features of a font picture to be recognized are extracted through traditional algorithms such as SIFT, wavelet multi-layer decomposition and the like, then the features are combined according to a certain rule, similarity matching calculation is carried out on the features and a feature library generated by a font file (TTF for short), and finally a result with the largest similarity value is selected as the name of the font to be recognized.
However, due to the fact that the conventional font identification scheme needs to perform necessary image preprocessing (noise removal, blur removal, tilt correction and the like) on the font picture to be identified, part of font features of the font picture to be identified can be indirectly lost, so that the identification precision is not high, the name of the font currently liked by the user cannot be quickly and accurately identified, and further the user experience is poor.
Disclosure of Invention
The invention provides a font identification method, a font identification device, font identification equipment and a computer readable storage medium, which are used for solving the technical problem that the name of a font currently favored by a user cannot be quickly and accurately identified due to the fact that necessary image preprocessing needs to be carried out on a font picture to be identified in the prior art.
The first aspect of the present invention provides a font identification method, including:
receiving a font image shot by a shooting module;
preprocessing the font file;
and adding the preprocessed font image into a preset font identification model to obtain a font name corresponding to the font image.
Another aspect of the present invention provides a font recognition apparatus including:
the font image receiving module is used for receiving the font image shot by the shooting module;
the preprocessing module is used for preprocessing the font file;
and the recognition module is used for adding the preprocessed font image into a preset font recognition model to obtain a font name corresponding to the font image.
Still another aspect of the present invention is to provide a font recognition apparatus including: a memory, a processor;
a memory; a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the font recognition method as described above by the processor.
Yet another aspect of the present invention is to provide a computer-readable storage medium having stored therein computer-executable instructions for implementing the font recognition method as described above when executed by a processor.
The font identification method, the font identification device, the font identification equipment and the computer readable storage medium provided by the invention receive the font image shot by the shooting module; preprocessing the font file; and adding the preprocessed font image into a preset font identification model to obtain a font name corresponding to the font image. Therefore, the name of the font liked by the user can be quickly acquired, so that the user can download and use the font according to the font name, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art according to the drawings.
FIG. 1 is a diagram of a network architecture upon which the present invention is based;
fig. 2 is a schematic flowchart of a font identification method according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a font identification method according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a font identification apparatus according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of a font identification device according to a fourth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other examples obtained based on the examples in the present invention are within the scope of the present invention.
The traditional font recognition algorithm is mainly a feature extraction method, shallow features of a font picture to be recognized are extracted through traditional algorithms such as SIFT, wavelet multi-layer decomposition and the like, then the features are combined according to a certain rule, similarity matching calculation is carried out on the features and a feature library generated by a font file (TTF for short), and finally a result with the largest similarity value is selected as the name of the font to be recognized. However, due to the fact that the conventional font identification scheme needs to perform necessary image preprocessing (noise removal, blur removal, tilt correction and the like) on the font picture to be identified, part of font features of the font picture to be identified can be indirectly lost, so that the identification precision is not high, the name of the font currently liked by the user cannot be quickly and accurately identified, and further the user experience is poor. In order to solve the technical problem, the invention provides a font identification method, a font identification device, font identification equipment and a computer readable storage medium.
It should be noted that the font identification method, apparatus, device and computer readable storage medium provided by the present invention can be applied in any type of font identification scenario.
Fig. 1 is a diagram of a network architecture on which the present invention is based, and as shown in fig. 1, the network architecture on which the present invention is based at least includes a font recognition apparatus 1 and a shooting module 2. The font identification apparatus 1 may be specifically implemented by software and/or hardware, and when implemented by software, it may be written in C language, Java, or the like. The shooting module 2 may be a camera or a separate camera or video camera provided in the user terminal. The font recognition device 1 may be disposed in a user terminal, or may be an independent device, and accordingly, the shooting module 2 may be disposed in the user terminal, or may be an independent camera or video camera, etc., which is not limited herein. It should be noted that the font recognition device 1 may communicate with the photographing module 2 in a wired or wireless manner to realize data interaction, specifically, when both the font recognition device 1 and the photographing module 2 are disposed in a user terminal, both may communicate in a wired manner, and when both are not disposed in the same terminal, may communicate in a wireless manner.
Fig. 2 is a schematic flow chart of a font identification method according to an embodiment of the present invention, where on the basis of the above embodiment, the method includes:
step 101, receiving a font image shot by a shooting module.
The execution subject of the embodiment is a font recognition device, and the font recognition device can communicate with the shooting module in a wired or wireless manner to realize data interaction. Specifically, when finding the favorite font, the user can shoot the font through the shooting module, obtain the font image of the font, and send the font image to the font recognition device in a wired or wireless mode. Accordingly, the font recognition apparatus can accept the font image transmitted by the photographing module.
As an implementable manner, the font image may also be a screenshot of a font of the centering device when the user browses a certain interface through the user terminal, or may also be a font image obtained in any other form, which is not limited herein.
And 102, preprocessing the font image.
In the present embodiment, in order to improve the accuracy of font recognition, the font recognition apparatus may perform preprocessing on the font image after receiving the font image, and obtain a processed font image.
Step 103, adding the preprocessed font image into a preset font identification model to obtain a font name corresponding to the font image.
In this embodiment, in order to recognize the font, a font recognition model may be preset, the font image may be preprocessed to obtain a processed font image, and then the processed font image may be added to the font recognition model to recognize the font of the user mind and obtain the name of the font. Accordingly, after the name of the font is obtained, the name of the font can be displayed on a display screen of the user terminal, and then the user can download and use the font according to the name of the font.
It is to be understood that after obtaining the preprocessed font image, on one hand, the font may be recognized by using the preset font recognition model as in the foregoing embodiment, and in addition, the font may also be recognized by using any other recognition method, which is not limited herein.
In the font identification method provided by the embodiment, the font image shot by the shooting module is received; preprocessing the font file; and adding the preprocessed font image into a preset font identification model to obtain a font name corresponding to the font image. Therefore, the name of the font liked by the user can be quickly acquired, so that the user can download and use the font according to the font name, and the user experience is improved.
Further, on the basis of any of the above embodiments, the method further includes:
receiving a font image shot by a shooting module;
preprocessing the font image;
training a preset model to be trained through preset font data to be trained to obtain the preset font recognition model;
and adding the preprocessed font image into a preset font identification model to obtain a font name corresponding to the font image.
In this embodiment, in order to recognize the font, a font recognition model may be preset, the font image is preprocessed, and after the processed font image is obtained, the processed font image may be added to the font recognition model, so as to recognize the font of the user psychoscope and obtain the name of the font. Specifically, in order to obtain the font identification model, a model to be processed needs to be established, the convolutional neural network mainly comprises a data layer, a convolutional layer, an activation layer, a pooling layer, a full-link layer, a classification layer and the like, different layers are combined and connected according to the identification purpose and the required precision, and finally a model to be processed with a proper width is designed. Specifically, a data layer is established, the sizes of all input pictures are converted into M, then the inclusion blocks are designed in sequence, each inclusion block comprises a convolution layer, an activation layer, a normalization layer, a pooling layer and the like, finally a full-connection layer is designed, N results are output, and the results are arranged in a descending order. And adding the preprocessed font image into a preset font identification model to obtain a font name corresponding to the font image.
According to the font identification method provided by the embodiment, the preset model to be trained is trained through the preset font data to be trained to obtain the preset font identification model, so that a basis is provided for subsequent font identification, and further the user experience can be improved.
Fig. 3 is a schematic flow chart of a font identification method according to a second embodiment of the present invention, where on the basis of any of the above embodiments, the method includes:
step 201, receiving a font image shot by a shooting module;
step 202, preprocessing the font image;
step 203, acquiring preset data to be processed, wherein the data to be processed is a black and white font image;
step 204, rendering the data to be processed into color image data randomly;
step 205, randomly dividing the color image data into a test set and a training set;
step 206, labeling the color image data in the test set and the training set respectively to obtain the font data to be trained;
step 207, training a preset model to be trained through preset font data to be trained to obtain the preset font recognition model;
and 208, adding the preprocessed font image into a preset font identification model to obtain a font name corresponding to the font image.
In this embodiment, to implement training of the model to be trained, the font data to be trained should be acquired first. Specifically, preset data to be processed is obtained, and the data to be processed is a black-and-white font image, for example, the data to be processed may be a black-and-white image of a single character single image generated from an n-pattern ttf file of a squareness family word stock. Further, in order to improve the recognition accuracy of the model, data amplification may be performed on the data to be processed. Black and white images can be randomly rendered as color RGB images. Further, the color image data is randomly divided into a training set and a testing set, and the data in the training set and the data in the testing set are labeled to obtain the data to be trained. Therefore, the model to be trained can be trained according to the data to be trained in the training set, and the font recognition model can be finally obtained by testing the data in the data to be trained in the testing set. Therefore, the font image shot by the shooting module at present can be identified according to the font identification model, and the name of the font is obtained. Accordingly, after the name of the font is obtained, the name of the font can be displayed on a display screen of the user terminal, and then the user can download and use the font according to the name of the font.
In the font identification method provided by this embodiment, preset data to be processed is acquired, where the data to be processed is a black-and-white font image; randomly rendering the data to be processed into color image data; randomly dividing the color image data into a test set and a training set; and respectively labeling the color image data in the test set and the training set to obtain the font data to be trained, so that the identification precision of the model can be improved, and the user experience is further improved.
Further, on the basis of any of the above embodiments, the method comprises:
receiving a font image shot by a shooting module;
preprocessing the font image;
acquiring preset data to be processed, wherein the data to be processed is a black and white font image;
randomly rendering the data to be processed into color image data;
randomly dividing the color image data into a test set and a training set;
adding random noise and random fuzziness in the test set and the training set;
marking the font name of the color image data aiming at each color image data in the test set and the training set;
training a preset model to be trained through preset font data to be trained to obtain the preset font recognition model;
and adding the preprocessed font image into a preset font identification model to obtain a font name corresponding to the font image.
In this embodiment, after the color image data is randomly divided into the training set and the test set, the data in the training set and the test set need to be labeled to obtain the data to be trained. Specifically, interference processing such as random blurring and random noise may be added to the training set and the data to be trained in the test set, and in addition, in order to enable the font recognition model to accurately recognize the font, the font name of the data in the test set and the training set needs to be labeled. Specifically, for each color image data in the test set and the training set, a font name of the color image data is labeled.
In the font identification method provided by this embodiment, random noise and random fuzziness are added to the test set and the training set; and marking the font name of the color image data aiming at each color image data in the test set and the training set, so that the font identification model can accurately realize the identification of the font, and the user experience is improved.
Further, on the basis of any of the above embodiments, the method comprises:
receiving a font image shot by a shooting module;
preprocessing the font image;
acquiring preset data to be processed, wherein the data to be processed is a black and white font image;
randomly rendering the data to be processed into color image data;
randomly dividing the color image data into a test set and a training set;
labeling the color image data in the test set and the training set respectively to obtain font data to be trained;
training the model to be trained through the test set and the training set, and adjusting the hyper-parameters of the model to be trained until the model to be trained is converged to obtain the font recognition model;
and adding the preprocessed font image into a preset font identification model to obtain a font name corresponding to the font image.
In this embodiment, after labeling the data in the training set and the test set, the model to be trained may be trained through the training set and the test set. Specifically, the model to be trained can be trained according to the data to be trained in the training set, the data in the data to be trained in the testing set is tested, and the hyper-parameters of the model to be trained are continuously adjusted according to the training result, wherein the hyper-parameters include but are not limited to a learning rate, a learning strategy, a forgetting rate and a maximum iteration number until the model to be trained converges, and finally the font recognition model is obtained.
According to the font identification method provided by the embodiment, the model to be trained is trained through the test set and the training set, the hyper-parameters of the model to be trained are adjusted until the model to be trained is converged, and the font identification model is obtained, so that the identification precision of the font identification model can be improved, and the user experience is further improved.
Further, on the basis of any of the above embodiments, the method comprises:
receiving a font image shot by a shooting module;
calculating a mean image of the font recognition model;
subtracting the average value image from the font image to obtain the preprocessed font image;
and adding the preprocessed font image into a preset font identification model to obtain a font name corresponding to the font image.
In the embodiment, when receiving the font image to be recognized sent by the shooting module, in order to improve the efficiency and accuracy of font recognition, the font image needs to be preprocessed first. Specifically, a mean image of the font identification model may be determined first, and the mean image is subtracted from the captured font image to obtain a characteristic portion of the font image, and the pre-processed font image is identified by the preset font identification model to obtain a name of the font. Accordingly, after the name of the font is obtained, the name of the font can be displayed on a display screen of the user terminal, and then the user can download and use the font according to the name of the font.
In the font identification method provided by this embodiment, the mean image of the font identification model is calculated; and subtracting the mean value image from the font image to obtain the preprocessed font image, so that the efficiency and the precision of font identification can be improved, and the user experience is further improved.
Fig. 4 is a schematic structural diagram of a font identification apparatus provided in a third embodiment of the present invention, and as shown in fig. 4, the font identification apparatus includes:
a font image receiving module 31 for receiving the font image photographed by the photographing module;
a preprocessing module 32, configured to preprocess the font file;
the recognition module 33 is configured to add the preprocessed font image to a preset font recognition model, and obtain a font name corresponding to the font image.
In this embodiment, the font recognition device may communicate with the shooting module in a wired or wireless manner, so as to implement data interaction. Specifically, when finding the favorite font, the user can shoot the font through the shooting module, obtain the font image of the font, and send the font image to the font recognition device in a wired or wireless mode. Accordingly, the font recognition apparatus can accept the font image transmitted by the photographing module.
As an implementable manner, the font image may also be a screenshot of a font of the centering device when the user browses a certain interface through the user terminal, or may also be a font image obtained in any other form, which is not limited herein.
In order to improve the accuracy of font identification, the font identification device may perform preprocessing on the font image after receiving the font image, and obtain a processed font image.
In order to realize the identification of the font, a font identification model can be preset, the font image is preprocessed, and after the processed font image is obtained, the processed font image can be added into the font identification model, so that the identification of the font of the user psychoscope is realized, and the name of the font is obtained. Accordingly, after the name of the font is obtained, the name of the font can be displayed on a display screen of the user terminal, and then the user can download and use the font according to the name of the font.
The font recognition device provided by the embodiment receives the font image shot by the shooting module; preprocessing the font file; and adding the preprocessed font image into a preset font identification model to obtain a font name corresponding to the font image. Therefore, the name of the font liked by the user can be quickly acquired, so that the user can download and use the font according to the font name, and the user experience is improved.
Further, on the basis of any one of the above embodiments, the apparatus further includes:
and the training module is used for training a preset model to be trained through preset font data to be trained to obtain the preset font identification model.
The font recognition device that this embodiment provided trains the model of waiting to train through the font data of waiting to train that predetermine, obtains predetermined font recognition model to for subsequent font discernment provides the basis, and then can improve user experience.
Further, on the basis of any one of the above embodiments, the apparatus further includes:
the device comprises a to-be-processed data acquisition module, a processing module and a processing module, wherein the to-be-processed data acquisition module is used for acquiring preset to-be-processed data, and the to-be-processed data is a black and white font image;
the rendering module is used for rendering the data to be processed into color image data at random;
the classification module is used for randomly dividing the color image data into a test set and a training set;
and the marking module is used for marking the color image data in the test set and the color image data in the training set respectively to obtain the font data to be trained.
The font identification device provided by this embodiment acquires preset data to be processed, where the data to be processed is a black-and-white font image; randomly rendering the data to be processed into color image data; randomly dividing the color image data into a test set and a training set; and respectively labeling the color image data in the test set and the training set to obtain the font data to be trained, so that the identification precision of the model can be improved, and the user experience is further improved.
Further, on the basis of any of the above embodiments, the labeling module includes:
an adding unit, configured to add random noise and random ambiguity in the test set and the training set;
and the marking unit is used for marking the font name of the color image data aiming at each color image data in the test set and the training set.
In the font recognition apparatus provided in this embodiment, random noise and random fuzziness are added to the test set and the training set; and marking the font name of the color image data aiming at each color image data in the test set and the training set, so that the font identification model can accurately realize the identification of the font, and the user experience is improved.
Further, on the basis of any of the above embodiments, the training module includes:
and the training unit is used for training the model to be trained through the test set and the training set, adjusting the hyper-parameters of the model to be trained until the model to be trained is converged, and obtaining the font recognition model.
The font recognition device provided by this embodiment trains the model to be trained through the test set and the training set, and adjusts the hyper-parameter of the model to be trained until the model to be trained converges to obtain the font recognition model, thereby improving the recognition accuracy of the font recognition model and further improving the user experience.
Further, on the basis of any of the above embodiments, the preprocessing module includes:
the calculation unit is used for calculating a mean image of the font identification model;
and the processing unit is used for subtracting the average value image from the font image to obtain the preprocessed font image.
The font identification device provided by this embodiment calculates a mean image of the font identification model; and subtracting the mean value image from the font image to obtain the preprocessed font image, so that the efficiency and the precision of font identification can be improved, and the user experience is further improved.
Fig. 5 is a schematic structural diagram of a font identification device according to a fourth embodiment of the present invention, and as shown in fig. 5, the font identification device includes:
a memory 41, a processor 42;
a memory 41; a memory 41 for storing instructions executable by the processor 42;
wherein the processor 42 is configured to execute the font recognition method as described above by the processor 42;
the font recognition device further comprises a communication interface 43.
Yet another embodiment of the present invention provides a computer-readable storage medium having stored therein computer-executable instructions for implementing the font recognition method as described above when executed by a processor.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus described above may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A font recognition method, comprising:
receiving a font image shot by a shooting module;
preprocessing the font image;
and adding the preprocessed font image into a preset font identification model to obtain a font name corresponding to the font image.
2. The font identification method according to claim 1, wherein before adding the preprocessed font image to a preset font identification model and obtaining the font name corresponding to the font image, the method further comprises:
and training a preset model to be trained through preset font data to be trained to obtain the preset font identification model.
3. The font recognition method according to claim 2, wherein before the preset font data to be trained is used to train a preset model to be trained, and the preset font recognition model is obtained, the method further comprises:
acquiring preset data to be processed, wherein the data to be processed is a black and white font image;
randomly rendering the data to be processed into color image data;
randomly dividing the color image data into a test set and a training set;
and labeling the color image data in the test set and the training set respectively to obtain the font data to be trained.
4. The font identification method according to claim 3, wherein the labeling of the color image data in the test set and the color image data in the training set to obtain the font data to be trained respectively comprises:
adding random noise and random fuzziness in the test set and the training set;
and marking the font name of the color image data aiming at each color image data in the test set and the training set.
5. The font recognition method according to claim 3, wherein the training a preset model to be trained through preset font data to be trained to obtain the preset font recognition model comprises:
and training the model to be trained through the test set and the training set, and adjusting the hyper-parameters of the model to be trained until the model to be trained is converged to obtain the font recognition model.
6. The font recognition method according to any one of claims 1-5, wherein said pre-processing the font image comprises:
calculating a mean image of the font recognition model;
and subtracting the average value image from the font image to obtain the preprocessed font image.
7. A font recognition apparatus, comprising:
the font image receiving module is used for receiving the font image shot by the shooting module;
the preprocessing module is used for preprocessing the font file;
and the recognition module is used for adding the preprocessed font image into a preset font recognition model to obtain a font name corresponding to the font image.
8. The font recognition engine of claim 7, wherein the apparatus further comprises:
and the training module is used for training a preset model to be trained through preset font data to be trained to obtain the preset font identification model.
9. A font recognition apparatus, comprising: a memory, a processor;
a memory; a memory for storing the processor-executable instructions;
wherein the processor is configured to perform the font recognition method of any of claims 1-6 by the processor.
10. A computer-readable storage medium having computer-executable instructions stored thereon, which when executed by a processor, are configured to implement the font recognition method according to any one of claims 1 to 6.
CN201811555857.4A 2018-12-19 2018-12-19 Font identification method, apparatus, device and computer readable storage medium Active CN111339803B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811555857.4A CN111339803B (en) 2018-12-19 2018-12-19 Font identification method, apparatus, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811555857.4A CN111339803B (en) 2018-12-19 2018-12-19 Font identification method, apparatus, device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111339803A true CN111339803A (en) 2020-06-26
CN111339803B CN111339803B (en) 2023-10-24

Family

ID=71185009

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811555857.4A Active CN111339803B (en) 2018-12-19 2018-12-19 Font identification method, apparatus, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111339803B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1188944A (en) * 1996-12-24 1998-07-29 株式会社理光 Character recognition device, character recognition method and information recording medium
US20050123209A1 (en) * 2003-12-05 2005-06-09 Canon Kabushiki Kaisha Image processing system and image processing method
CN101097600A (en) * 2006-06-29 2008-01-02 北大方正集团有限公司 Character recognizing method and system
CN102262731A (en) * 2011-07-11 2011-11-30 哈尔滨工业大学 Character recognizing method based on sparse coding
EP2677461A1 (en) * 2012-06-20 2013-12-25 Audi Ag Information device
CN104200225A (en) * 2014-08-29 2014-12-10 电子科技大学 Local space constraint graph model based image classification method
CN105117740A (en) * 2015-08-21 2015-12-02 北京旷视科技有限公司 Font identification method and device
US9501724B1 (en) * 2015-06-09 2016-11-22 Adobe Systems Incorporated Font recognition and font similarity learning using a deep neural network
CN106610969A (en) * 2015-10-21 2017-05-03 上海文广互动电视有限公司 Multimodal information-based video content auditing system and method
CN108985297A (en) * 2018-06-04 2018-12-11 平安科技(深圳)有限公司 Handwriting model training, hand-written image recognition methods, device, equipment and medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1188944A (en) * 1996-12-24 1998-07-29 株式会社理光 Character recognition device, character recognition method and information recording medium
US20050123209A1 (en) * 2003-12-05 2005-06-09 Canon Kabushiki Kaisha Image processing system and image processing method
CN101097600A (en) * 2006-06-29 2008-01-02 北大方正集团有限公司 Character recognizing method and system
CN102262731A (en) * 2011-07-11 2011-11-30 哈尔滨工业大学 Character recognizing method based on sparse coding
EP2677461A1 (en) * 2012-06-20 2013-12-25 Audi Ag Information device
CN104200225A (en) * 2014-08-29 2014-12-10 电子科技大学 Local space constraint graph model based image classification method
US9501724B1 (en) * 2015-06-09 2016-11-22 Adobe Systems Incorporated Font recognition and font similarity learning using a deep neural network
CN105117740A (en) * 2015-08-21 2015-12-02 北京旷视科技有限公司 Font identification method and device
CN106610969A (en) * 2015-10-21 2017-05-03 上海文广互动电视有限公司 Multimodal information-based video content auditing system and method
CN108985297A (en) * 2018-06-04 2018-12-11 平安科技(深圳)有限公司 Handwriting model training, hand-written image recognition methods, device, equipment and medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘志伟: "基于CNN网络的汉子图像字体识别", 《现代计算机》, no. 05, pages 67 - 70 *
桂丹萍;陈佳祥;何红生;: "视频检索在汉字识别中的应用研究", 计算机技术与发展, no. 10 *

Also Published As

Publication number Publication date
CN111339803B (en) 2023-10-24

Similar Documents

Publication Publication Date Title
CN108229290B (en) Video object segmentation method and device, electronic equipment and storage medium
WO2017076040A1 (en) Image processing method and device for use during continuous shooting operation
WO2021179471A1 (en) Face blur detection method and apparatus, computer device and storage medium
WO2016127478A1 (en) Image processing method and device, and terminal
JP2020529086A (en) Methods and equipment for blurring preview photos and storage media
US11663707B2 (en) Method and system for image enhancement
CN112602088B (en) Method, system and computer readable medium for improving quality of low light images
CN110674759A (en) Monocular face in-vivo detection method, device and equipment based on depth map
KR102013372B1 (en) Apparatus and method of image saliency map
CN111985465A (en) Text recognition method, device, equipment and storage medium
CN112214773B (en) Image processing method and device based on privacy protection and electronic equipment
CN113781356B (en) Training method of image denoising model, image denoising method, device and equipment
US20220108545A1 (en) Method and device for high-speed image recognition using 3d cnn
CN110705353A (en) Method and device for identifying face to be shielded based on attention mechanism
CN114511041A (en) Model training method, image processing method, device, equipment and storage medium
CN114283156A (en) Method and device for removing document image color and handwriting
CN111401326A (en) Target identity recognition method based on picture recognition, server and storage medium
CN112749696A (en) Text detection method and device
CN111401193A (en) Method and device for obtaining expression recognition model and expression recognition method and device
CN110610117A (en) Face recognition method, face recognition device and storage medium
US11947631B2 (en) Reverse image search based on deep neural network (DNN) model and image-feature detection model
CN111339803A (en) Font identification method, apparatus, device and computer readable storage medium
CN112287932B (en) Method, device, equipment and storage medium for determining image quality
CN111476056A (en) Target object identification method and device, terminal equipment and computer storage medium
CN110751163A (en) Target positioning method and device, computer readable storage medium and electronic equipment

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20230703

Address after: 3007, Hengqin International Financial Center Building, No. 58 Huajin Street, Hengqin New District, Zhuhai City, Guangdong Province, 519030

Applicant after: New founder holdings development Co.,Ltd.

Applicant after: BEIJING FOUNDER ELECTRONICS Co.,Ltd.

Address before: 100871, Beijing, Haidian District, Cheng Fu Road, No. 298, Zhongguancun Fangzheng building, 9 floor

Applicant before: PEKING UNIVERSITY FOUNDER GROUP Co.,Ltd.

Applicant before: BEIJING FOUNDER ELECTRONICS Co.,Ltd.

GR01 Patent grant
GR01 Patent grant