WO2016154466A1 - Method and apparatus for generating text line classifier - Google Patents

Method and apparatus for generating text line classifier Download PDF

Info

Publication number
WO2016154466A1
WO2016154466A1 PCT/US2016/024069 US2016024069W WO2016154466A1 WO 2016154466 A1 WO2016154466 A1 WO 2016154466A1 US 2016024069 W US2016024069 W US 2016024069W WO 2016154466 A1 WO2016154466 A1 WO 2016154466A1
Authority
WO
WIPO (PCT)
Prior art keywords
samples
text line
text
generating
marked
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.)
Ceased
Application number
PCT/US2016/024069
Other languages
French (fr)
Inventor
Xuan JIN
Tianzhou Wang
Qin XUE
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Publication of WO2016154466A1 publication Critical patent/WO2016154466A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/19Recognition using electronic means
    • G06V30/191Design or setup of recognition systems or techniques; Extraction of features in feature space; Clustering techniques; Blind source separation
    • G06V30/1914Determining representative reference patterns, e.g. averaging or distorting patterns; Generating dictionaries, e.g. user dictionaries
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/28Determining representative reference patterns, e.g. by averaging or distorting; Generating dictionaries
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • G06V30/2268Character recognition characterised by the type of writing of cursive writing using stroke segmentation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/24Character recognition characterised by the processing or recognition method
    • G06V30/242Division of the character sequences into groups prior to recognition; Selection of dictionaries
    • G06V30/244Division of the character sequences into groups prior to recognition; Selection of dictionaries using graphical properties, e.g. alphabet type or font
    • G06V30/2445Alphabet recognition, e.g. Latin, Kanji or Katakana
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/40Document-oriented image-based pattern recognition
    • G06V30/41Analysis of document content
    • G06V30/413Classification of content, e.g. text, photographs or tables
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/28Character recognition specially adapted to the type of the alphabet, e.g. Latin alphabet
    • G06V30/293Character recognition specially adapted to the type of the alphabet, e.g. Latin alphabet of characters other than Kanji, Hiragana or Katakana

Definitions

  • the present invention relates generally to model based recognition, and more particularly to a method and apparatus for generating text line classifiers.
  • OCR optical character recognition
  • the first type utilizes experience based thresholds to classify.
  • the second type extracts Chinese text line experience features from a large amount of samples marked-up in different application scenes, and utilizes a support vector machine (SVM) or the like to classify.
  • SVM support vector machine
  • the third type relies on a larger amount of marked-up positive samples and negative samples, and utilizes convolutional neural network (CNN) trained classifiers to classify.
  • CNN convolutional neural network
  • a first goal of the embodiments of the present disclosure is to provide for a method to generate text line classifiers, which can target different scenes or different requirements for text region recognition with a high degree of applicability and with wide application in addition to ease of implementation.
  • the second goal of the present disclosure is to provide for an apparatus and method for generating text line classifiers.
  • a method of generating text line classifiers includes generating text line samples by use of a present terminal system font reservoir and extracting features from the text line samples and pre-stored marked-up samples. The method further includes training models by use of the extracted features to generate a text line classifier for recognizing text regions.
  • an apparatus for generating text line classifiers includes a generating module, an extracting module and a training module.
  • the generating module is configured to generate text line samples by use of a present terminal system font reservoir.
  • the extracting module is configured to extract features from the text line samples and pre-stored marked-up samples.
  • the training module is configured to train models by use of the extracted features to generate a text line classifier for recognizing text regions.
  • the generated text line classifiers can target different scenes or different requirements for text region recognition with a high degree of applicability and wide application in addition to ease of implementation. Together with the combinational use of the marked up samples for extracting features from the text line samples, the text line classifiers generated provide for enhanced efficiency and accuracy in classification.
  • FIG. 1A is a flow chart of a first exemplary method of generating text line classifiers in accordance with an embodiment of the present disclosure
  • FIG. IB is an illustration of an exemplary single character sample utilized in an embodiment of the present disclosure.
  • FIG. 1C is an illustration of an exemplary text line sample utilized in an embodiment of the present disclosure
  • FIG. 2A is a flow chart of an exemplary method of generating text line classifiers in accordance with an embodiment of the present disclosure
  • FIG. 2B is a flow chart of an exemplary method of generating character samples in accordance with an embodiment of the present disclosure
  • FIG. 2C is a flow chart of an exemplary method of generating text line samples by use of character samples in accordance with an embodiment of the present disclosure
  • FIG. 3 is a flow chart of an exemplary method of feature training by use of a BP neural network in accordance with an embodiment of the present disclosure
  • FIG. 4 is a flow chart of another exemplary method of recognizing text regions in accordance with an embodiment of the present disclosure
  • FIG. 5 is a block diagram of an exemplary apparatus for generating text line classifiers in accordance with an embodiment of the present disclosure
  • FIG. 6 is a block diagram of another exemplary apparatus for generating text line classifiers in accordance with an embodiment of the present disclosure.
  • references herein to "one embodiment” or “an embodiment” means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the disclosure.
  • the appearances of the phrase “in one embodiment” in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Used herein, the terms “upper”, “lower”, “top”, “bottom”, “middle”, “upwards”, and “downwards” are intended to provide relative positions for the purposes of description, and are not intended to designate an absolute frame of reference. Further, the order of blocks in process flowcharts or diagrams representing one or more embodiments of the disclosure do not inherently indicate any particular order nor imply any limitations in the disclosure.
  • Method 100 starts in step SI 01, where a present terminal system font reservoir is utilized to generate samples of text lines.
  • the utilization of a present terminal system font reservoir to generate text line samples includes generating samples of characters using the present terminal system font reservoir, after which the samples of characters are further processed to generate various types of text line samples.
  • the step of generating character samples by use of the present terminal system font reservoir includes obtaining characters of different fonts from the font reservoir, and introducing spacing distance, rotation angles, size, noise and the like (disturbance) to generate character samples. Further processing of the character samples to generate text line samples includes randomly arranging characters of the same font together, followed by adding disturbance to generate text line samples of different types.
  • FIG. IB an illustration of an exemplary single character is shown in accordance with embodiments of the present disclosure.
  • an exemplary single character is generated after different disturbances are introduced to the character.
  • an exemplary text line sample is generated based on the character samples.
  • step SI 02 features are extracted from the text line samples and the pre-stored marked up samples.
  • the marked up samples are recorded.
  • detection algorithms can be utilized to dissect candidate text regions, which are marked up manually, for example, as either 1 or 0 to indicate whether a region is a text region.
  • features can be extracted from those samples.
  • one or more of the features such as, gradient orientation histogram, gradient magnitude histogram, pixel histogram and pixel variance can be extracted from the pictures or images corresponding to the text line samples.
  • the continuous regions of the text line samples and the marked up samples can be obtained; the features of those continuous regions are also extracted accordingly.
  • embodiments of the present disclosure provide for extracting at least two features, e.g., a group of features to facilitate generating the text line classifiers.
  • step SI 03 models are trained by use of the extracted features to generate text line classifiers for recognizing text regions.
  • a back propagation (BP) neural network is utilized for single model training by use of the extracted features. Since each type of text line samples can train a correspondent model, various types of text line samples train various models; each model can be designated as a decision tree. In the beginning, a weight is assigned for each decision tree, then weight training is performed for the decision trees by use of a portion of the marked up samples such that each decision tree is assigned an appropriate weight to assure the accuracy of the classification.
  • text line classifiers can be generated and the text line classifiers are utilized for recognizing text regions, based on the result of which pictures or images, containing prohibited texts, can be recognized.
  • features extracted from a text line sample can be represented with a vector, e.g., a picture corresponding to a text line sample can generate a 1 dimensional vector X.
  • a set of vectors ⁇ can be generated.
  • the process of model training, based on all the text line samples, can be performed by inputting the vectors to the BP neural network for training to obtain training a model Model (X), which is a text line classifier.
  • a training model e.g., a text line classifier
  • the text line classifiers generated by model training based on the extracted features can target different scenes or different requirements for text region recognition with a high degree of applicability and with wide application in addition to ease of implementation. Together with the combinational use of the marked up samples for extracting features from the text line samples, the text line classifiers generated provide enhanced classification efficiency and accuracy.
  • Method 200 starts in step S201, where character samples are generated by use of a present terminal system font reservoir.
  • the character samples can be Chinese character samples, but could be any language.
  • step S201 a flow chart of an exemplary method of generating character samples is shown in accordance with embodiments of the present disclosure.
  • the generating of character samples by use of the present system font reservoir includes the steps S2011 through S2014.
  • step S2011 a single character is obtained from a font reservoir, which can be the WindowsTM system's embedded fonts, the Founder fonts, and/or the handwritten fonts, etc.
  • step S2012 each Chinese character is selected in 21 sizes, e.g.,
  • each Chinese character is subject to slanting distortion and non-distortion.
  • each Chinese character is disturbed by rotation degrees of from about -10° to aboutlO 0 With the above described process, sample Chinese characters and variations thereof are generated.
  • step S202 text line samples are generated by use of the character samples.
  • An exemplary method of generating text line samples is shown in FIG. 2C in accordance with embodiments of the present disclosure.
  • Method 2500 includes steps S2021 through S2026.
  • each text line reserves about from 5 pixels to about 10 pixels in the edge gap.
  • each character in each text line is distanced with a gap of ⁇ 1,2, ..,10 ⁇ /10 of a width of a Chinese character.
  • step S2023 each text line includes a number of from about 2 to about 10 Chinese characters.
  • each text line is classified into the categories of horizontal text, vertical text, oblique text of a 45° and oblique text of a -45°.
  • each text line is introduced a rotation of from -10° to about 10°.
  • each text line is processed by multiple groups of Gaussian low-pass filters for blurring or smoothing. With the above described steps, text line samples are generated accordingly. However, further limitations can be met by the generated text line samples.
  • each text line contains Chinese characters of the same size; each sample text line contains Chinese characters of the same rotation angles; each sample text line contains Chinese characters of either the oblique style or the non-oblique style; each sample text line contains Chinese characters of the same font; and each sample text line contains commonly used Chinese characters in a percentage of, for example, above 80%.
  • step S203 features are extracted from the text line sample in combination with the pre-stored marked up samples.
  • step S203 extracts: 1) one or more of the features of one or more of the gradient orientation histogram, gradient magnitude histogram, pixel histogram and pixel variance from the pictures corresponding to the text line samples; and 2) features of the continuous regions obtained from the text line samples and the marked up samples. The following describes those in detail.
  • p (x , y ) is the pixel value corresponding to the pixel position
  • d x is the gradient along the X orientation of the corresponding pixel position
  • Cf y is the gradient along the Y orientation of the corresponding pixel position.
  • the pixels within the region corresponding to a text line sample are statistically analyzed such that the pixels are divided into 8 range segments according to the pixel values.
  • Each range segment includes 32 pixel tones.
  • the number of pixels in the range segments is identified as the features, which are output features of 8 dimensions.
  • the pixel variance feature can be extracted by two exemplary approaches.
  • the continuous regions of the text line samples and marked up samples are obtained, the features of which are also extracted.
  • a threshold based binarizing can be utilized to obtain the continuous regions.
  • maximally stable extremal regions (MSER) algorithms or the improved MSER algorithms can be utilized to extract the continuous regions, after which the stroke width transform (SWT) algorithms or the stroke feature transform (SFT) algorithms can be utilized to compute the stroke width for the continuous regions.
  • SWT stroke width transform
  • SFT stroke feature transform
  • a mean value for the stroke width, a minimal value for the stroke width, a maximal value for the stroke width as well as a variance of the stroke width can be obtained.
  • the number of the turning points and the holes within each continuous region can also be computed.
  • the SFT algorithms used are improved SFT algorithms. Compared with the SWT algorithms, the SFT algorithms introduce color channels, increase edge constraint mechanism, and enhance robustness against background noises.
  • the present disclosure generates text line samples by use of font reservoirs instead of manually marked up samples.
  • Features extracted also differ from the currently available technologies, for example, the present disclosure provides for extracting at least two features, e.g., a group of features, to facilitate the generation of the text line classifiers.
  • CNNs convolutional neural networks
  • step S204 the extracted features are utilized for model training.
  • the BP neural network can be utilized to generate models corresponding to the text line samples based upon the extracted features.
  • the number of generated models is the same as the number of types of the text line samples.
  • step S205 weights are assigned to the models by combinational use of pre-stored marked up samples to generate text line classifiers.
  • a weight is assigned to the generated multiple models, then the marked up samples are utilized to modify the weights assigned to the models to generate the text line classifiers.
  • FIG. 3 a flow chart of an exemplary method of feature training by use of a BP neural network is shown in accordance with an embodiment of the present disclosure.
  • the models are trained based on the extracted features and the text line classifiers are generated (e.g., the steps of S204 and S205).
  • the BP neural network is utilized for training the extracted features.
  • the BP network is configured with an input layer of feature dimensions 64 and a hidden layer 128. Each type of the text line sample outputs one model upon training.
  • each model individually output as a decision tree classifier, each model having an initial weight of 1/N. Then, with the marked up samples, weight training can be conducted. For each classification, if there is an error in classification, the weight of the correspondent decision tree classifier is subtracted from the output value of the classifier. If the classification is correct, the weight of the correspondent decision tree classifier is augmented with output value of the classifier. Lastly, the weights of the classifiers are normalized such that the sum of the weights equals 1. With a process as shown in FIG. 3, appropriate weights can be assigned to multiple models generated to enhance the classification accuracy by the classifiers.
  • Method 400 starts in step S401, where pictures or images that are candidates for recognition are detected to generate a detection result.
  • the candidate pictures or images for recognition can be analyzed with OCR to generate a detection result.
  • a score is output by use of a text line classifier for the detection result.
  • the score is greater than a pre-determined threshold, it is determined that the candidate picture or image is a text region.
  • step S404 if the score is less than a pre-determined threshold, it is determined that the candidate picture or image is a non-text region.
  • the detection results can be input to a text line classifier generated by the exemplary method as illustrated in FIG. 2A.
  • the text line classifier outputs a score, the higher the score the higher the possibility that the candidate picture or image is a text region.
  • experience can be utilized to configure a threshold value.
  • the candidate picture or image is determined to be a text region. Otherwise, the candidate picture or image is determined to be a nontext region. After determining that the candidate picture or image is a text region, it can be further analyzed to recognize the texts in the picture to determine whether they are prohibited texts.
  • the text line classifier generated by the exemplary method as illustrated in FIG. 2A can target different scenes and different requirements for text region recognition, it provides for a high degree of applicability and wide application in addition to ease of implementation. Together with the combinational use of the marked up samples for extracting features from the text line samples, the text line classifiers generated provide for enhanced classification efficiency and accuracy. Therefore, the text line classifiers generated by use of the exemplary method of FIG. 2A can recognize in different scenes whether a picture is a text region in a simple, effective and accurate manner. Consequently, it further recognizes whether the corresponding pictures include prohibited texts and provides basis for how to process those pictures.
  • the apparatus 500 includes a generating module 51, an extracting module 52 and a training module 53.
  • the generating module is configured to generate text line samples by use of a present terminal system font reservoir.
  • the extracting module is configured to extract features from the text line samples and pre-stored marked-up samples.
  • the training module is configured to train models by use of the extracted features to generate a text line classifier for recognizing text regions.
  • the generating module 51 is configured to generate samples of characters by use of the present terminal system font reservoir, after which the samples of characters are further processed to generate various types of text line samples.
  • the process of generating character samples by use of the present terminal system font reservoir includes obtaining characters of different fonts from the font reservoir, and introducing spacing distance, rotation angles, size, noise and the like (disturbance) to generate character samples.
  • the further processing of the character samples to generate text line samples includes randomly arranging characters of the same font together, followed by adding disturbance to generate text line samples of different types.
  • the generating of character samples includes the steps where: 1) a single character is obtained from a font reservoir, which can be the WindowsTM system's embedded fonts, the Founder fonts, and/or the handwritten fonts, etc.; and 2) each Chinese character is selected in 21 sizes, e.g., ⁇ 5,5.5,6,6.5,7,7.5,8,9,10,10.5,11,12,14,16,18,20,22,24,26,28,36,48,72 ⁇ (pounds); and 3) each Chinese character is subject to slanting distortion and non-distortion; and 4) each Chinese character is disturbed by rotation degrees of from about -10° to about 10°.
  • a font reservoir which can be the WindowsTM system's embedded fonts, the Founder fonts, and/or the handwritten fonts, etc.
  • each Chinese character is selected in 21 sizes, e.g., ⁇ 5,5.5,6,6.5,7,7.5,8,9,10,10.5,11,12,14,16,18,20,22,24,26
  • each text line reserves about from 5 pixels to about 10 pixels in the edge gap; 2) each character in each text line is distanced with a gap of ⁇ 1,2, ..,10 ⁇ /10 of a width of a Chinese character; 3) each text line includes a number of from about 2 to about 10 Chinese characters; 4) each text line is classified into the categories of horizontal text, vertical text, oblique text of a 45° and oblique text of a -45°; 5) each text line is introduced a rotation of from -10° degrees to about 10° degrees; and 6) each text line is processed by multiple groups of Gaussian low- pass filters for blurring or smoothing.
  • each text line contains Chinese characters of the same size; each sample text line contains Chinese characters of the same rotation angles; each sample text line contains Chinese characters of either the oblique style or the non-oblique style; each sample text line contains Chinese characters of the same font; and each sample text line contains commonly used Chinese characters in a percentage of, for example, above 80%.
  • the marked up samples Prior to the extracting module 52 extracting features from the text line samples and the pre-stored marked up samples, the marked up samples are recorded.
  • the process of manually marking up the sample includes the steps of utilizing detection algorithms to dissect candidate text regions, and manually marking up the candidate text regions, for example, as either 1 or 0 to indicate whether the region is a text region.
  • the extracting module 52 includes a first extracting module 521 and a second extracting module 522 for purposes of extracting sample features.
  • the first extracting module is configured to extract, from images corresponding to the text line samples, one or more of a gradient orientation histogram feature, a gradient magnitude histogram feature, a pixel histogram feature, and a pixel histogram change feature.
  • the second extracting module is configured to obtain continuous regions of the text line samples and the marked-up samples and to extract features of the continuous regions.
  • step S203 of FIG. 2A The details are not repeated here for the purposes of simplicity.
  • the training module 53 is configured to generate models corresponding to the types of the text line samples based on the extracted features and to assign weights to the models based on the marked up samples to generate a text line classifier.
  • a back propagation (BP) neural network is utilized for single model training by use of the extracted features. Since each type of text line samples can train a correspondent model, various types of text line samples train various models, each model can be designated as a decision tree. In the beginning, a weight is assigned for each decision tree, then the weight training is performed for the decision trees by use of a portion of the marked up samples such that each decision tree is assigned an appropriate weight to assure the accuracy of the classification.
  • text line classifiers can be generated in accordance with the pertinent details substantially similar as illustrated in FIG. 3.
  • the system font reservoir is utilized for generating text line samples instead of utilizing a large amount of samples manually marked up, the generated training samples have more thorough coverage for targeting different scenes or different requirements for text region recognition with a high degree of applicability. Together with the combinational use of the marked up samples for extracting features from the text line samples, the generated text line classifiers provide for enhanced classification efficiency and accuracy.
  • the apparatus 600 further includes a detection module 54 and a recognizing module 55.
  • the detection module 54 is configured to detect an image to be recognized to obtain a detection result.
  • the recognizing module 55 is configured to generate a score by use of the generated text line classifier for the detection result, where the recognition module determines that the image is a text region if the score is greater than a pre-determined threshold; and the recognition module determines that the image is a non-text region if the score is less than a pre-determined threshold.
  • texts included in the image are further recognized to determine whether the image contains any prohibited text.
  • the text line classifier generated by the generating module 51, the extracting module 52 and the training module 53 can target different scenes and different requirements for text region recognition, it provides for a high degree of applicability and wide application in addition to ease of implementation. Together with the combinational use of the marked up samples for extracting features from the text line samples, the generated text line classifiers provide for enhanced classification efficiency and accuracy. Therefore, the text line classifiers generated by use of the exemplary apparatus can recognize, in different scenes, whether a picture is a text region in a simple, effective and accurate manner. Consequently, it further recognizes whether the
  • corresponding pictures include prohibited texts and provides a basis for how to process those pictures.
  • the generated text line classifiers can target different scenes or different requirements for text region recognition with a high degree of applicability and wide application in addition to ease of implementation. Together with the combinational use of the marked up samples for extracting features from the text line samples, the generated text line classifiers provide for enhanced accuracy in classification.
  • Embodiments of the present disclosure can be implemented using software, hardware, firmware, and/or the combinations thereof. Regardless of being implemented using software, hardware, firmware or the combinations thereof, instruction code can be stored in any kind of computer readable media (for example, permanent or modifiable, volatile or non-volatile, solid or non-solid, fixed or changeable medium, etc.). Similarly, such medium can be implemented using, for example, programmable array logic (PAL), random access memory (RAM), programmable read only memory (PROM), read only memory (ROM), electrically erasable programmable ROM (EEPROM), magnetic storage, optical storage, digital versatile disc (DVD), or the like.
  • PAL programmable array logic
  • RAM random access memory
  • PROM programmable read only memory
  • ROM read only memory
  • EEPROM electrically erasable programmable ROM
  • magnetic storage optical storage
  • DVD digital versatile disc
  • modules or blocks described by embodiments of the present disclosures are logical modules or logical blocks.
  • a logical module or logical block can be a physical module or a physical block, a part of a physical module or a physical block, or the combinations of more than one physical modules or physical blocks.
  • Physical implementation of those logical module or logical blocks is not necessary functionalities realized by the modules, blocks and the combinations thereof are key to solving the problems addressed by the present disclosure.
  • the above described embodiments do not disclose about those modules or blocks not too related to solving the problems addressed by the present disclosure, which does not mean that the above described embodiments cannot include other modules or blocks.
  • cloud-based services e.g., software as a service, platform as a service, infrastructure as a service, etc.
  • Various functions described herein may be provided through a remote desktop environment or any other cloud-based computing environment.

Landscapes

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

Abstract

A method of generating a text line classifier including generating text line samples by use of a present terminal system font reservoir. The method also includes extracting features from the text line samples and pre-stored marked-up samples. The method further includes training models by use of the extracted features to generate a text line classifier for recognizing text regions. With the system font reservoir being utilized for generating text line samples, the generated text line classifiers can target different scenes or different requirements for text region recognition with a high degree of applicability and wide application in addition to ease of implementation. Together with the combinational use of the marked up samples for extracting features from the text line samples, the generated text line classifiers provide for enhanced classification efficiency and accuracy.

Description

METHOD AND APPARATUS FOR GENERATING TEXT LINE CLASSIFIER
CROSS REFERENCE TO RELATED APPLICATION
[0001] This application claims benefit to Chinese Patent Application No. 201510133507.9, filed on Mar. 25, 2015, which is incorporated herein by reference in its entirety.
TECHNICAL FIELD
[0002] The present invention relates generally to model based recognition, and more particularly to a method and apparatus for generating text line classifiers.
BACKGROUND
[0003] Currently, numerous pictures such as the pictures posted on the taobao.com web site include a large amount of prohibited texts. In order to recognize prohibited texts, optical character recognition (OCR) for natural scene images are utilized to detect and locate texts, the result of which is to filter out non-textual items and to present candidate textual items to an apparatus for recognition to enhance the accuracy of character recognition.
[0004] The natural scene OCR technology has been a hot topic in both industrial and academic research. Targeting different languages, features and algorithm structures utilized by OCR technology vary. Currently, the international OCR technology mainly targets English language. However, compared to English characters, Chinese characters are more complex and there are more types of Chinese characters. Together with the Chinese characters' component radicals rendering a single Chinese character a discontinuous region, it has been found more difficult to recognize Chinese characters.
[0005] Currently, there are three major types of OCR techniques recognizing text regions of Chinese characters in natural scenes. The first type utilizes experience based thresholds to classify. The second type extracts Chinese text line experience features from a large amount of samples marked-up in different application scenes, and utilizes a support vector machine (SVM) or the like to classify. The third type relies on a larger amount of marked-up positive samples and negative samples, and utilizes convolutional neural network (CNN) trained classifiers to classify.
[0006] With existing OCR techniques for recognizing Chinese text regions, the experience threshold based classification approach is the simplest, where the determination features mostly come from character features obtained from single character detection and extraction. But, the accuracy and robustness of such algorithms are relatively low, easily causing the effect of over- fitting. The second classification approach is presently the mainstream scheme; while the practice of the third approach is not often done due to the fact that the CNN approach tends to consume excessive amount of computational resources, affecting the overall efficiency of the algorithm. However, for either the second approach or the third approach, a large number of samples need to be marked up, consuming lots of effort and cost. Further, given that the classification results depend on the feature extraction and sample selection, for different application requirements, new batches of business dependent data need to be marked up, e.g., new samples need to be created. In other words, present marked-up samples have low applicability. In addition, Chinese characters have many fonts and styles, including the traditional, simplified and handwritten, etc., forms.
Consequently, Chinese text lines have an extremely rich variety, which undoubtedly increases the difficulty in terms of recognizing Chinese text regions.
[0007] Therefore, there exists a need to provide a method of Chinese OCR text region recognition with high degrees of applicability, simplicity and effectiveness.
SUMMARY
[0008] The embodiments of the present disclosure address solutions to the above described technical problems. A first goal of the embodiments of the present disclosure is to provide for a method to generate text line classifiers, which can target different scenes or different requirements for text region recognition with a high degree of applicability and with wide application in addition to ease of implementation. The second goal of the present disclosure is to provide for an apparatus and method for generating text line classifiers.
[0009] According to an exemplary embodiment of the present disclosure, a method of generating text line classifiers includes generating text line samples by use of a present terminal system font reservoir and extracting features from the text line samples and pre-stored marked-up samples. The method further includes training models by use of the extracted features to generate a text line classifier for recognizing text regions.
[0010] According to another exemplary embodiment of the present disclosure, an apparatus for generating text line classifiers includes a generating module, an extracting module and a training module. The generating module is configured to generate text line samples by use of a present terminal system font reservoir. The extracting module is configured to extract features from the text line samples and pre-stored marked-up samples. The training module is configured to train models by use of the extracted features to generate a text line classifier for recognizing text regions.
[0011] With the system font reservoir being utilized for generating text line samples, the generated text line classifiers can target different scenes or different requirements for text region recognition with a high degree of applicability and wide application in addition to ease of implementation. Together with the combinational use of the marked up samples for extracting features from the text line samples, the text line classifiers generated provide for enhanced efficiency and accuracy in classification.
DESCRIPTION OF THE DRAWINGS
[0012] The accompanying drawings, which are incorporated in and form a part of this specification and in which like numerals depict like elements, illustrate embodiments of the present disclosure and, together with the description, serve to explain the principles of the disclosure.
[0013] FIG. 1A is a flow chart of a first exemplary method of generating text line classifiers in accordance with an embodiment of the present disclosure;
[0014] FIG. IB is an illustration of an exemplary single character sample utilized in an embodiment of the present disclosure;
[0015] FIG. 1C is an illustration of an exemplary text line sample utilized in an embodiment of the present disclosure;
[0016] FIG. 2A is a flow chart of an exemplary method of generating text line classifiers in accordance with an embodiment of the present disclosure;
[0017] FIG. 2B is a flow chart of an exemplary method of generating character samples in accordance with an embodiment of the present disclosure;
[0018] FIG. 2C is a flow chart of an exemplary method of generating text line samples by use of character samples in accordance with an embodiment of the present disclosure;
[0019] FIG. 3 is a flow chart of an exemplary method of feature training by use of a BP neural network in accordance with an embodiment of the present disclosure;
[0020] FIG. 4 is a flow chart of another exemplary method of recognizing text regions in accordance with an embodiment of the present disclosure;
[0021] FIG. 5 is a block diagram of an exemplary apparatus for generating text line classifiers in accordance with an embodiment of the present disclosure; and [0022] FIG. 6 is a block diagram of another exemplary apparatus for generating text line classifiers in accordance with an embodiment of the present disclosure.
DETAILED DESCRIPTION
[0023] In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure. However, it will become obvious to those skilled in the art that the present disclosure may be practiced without these specific details. The descriptions and representations herein are the common means used by those experienced or skilled in the art to most effectively convey the substance of their work to others skilled in the art. In other instances, well-known methods, procedures, components, and circuitry have not been described in detail to avoid unnecessarily obscuring aspects of the present disclosure.
[0024] Reference herein to "one embodiment" or "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the disclosure. The appearances of the phrase "in one embodiment" in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Used herein, the terms "upper", "lower", "top", "bottom", "middle", "upwards", and "downwards" are intended to provide relative positions for the purposes of description, and are not intended to designate an absolute frame of reference. Further, the order of blocks in process flowcharts or diagrams representing one or more embodiments of the disclosure do not inherently indicate any particular order nor imply any limitations in the disclosure.
[0025] Embodiments of the present disclosure are discussed herein with reference to FIGS. 1-6. However, those skilled in the art will readily appreciate that the detailed description given herein with respect to these figures is for explanatory purposes as the disclosure extends beyond these limited embodiments.
[0026] Referring to FIG. 1A, a flow chart of an exemplary method of generating a text line classifier is shown in accordance with embodiments of the present disclosure. Method 100 starts in step SI 01, where a present terminal system font reservoir is utilized to generate samples of text lines. In this embodiment, the utilization of a present terminal system font reservoir to generate text line samples includes generating samples of characters using the present terminal system font reservoir, after which the samples of characters are further processed to generate various types of text line samples. [0027] In particular, the step of generating character samples by use of the present terminal system font reservoir includes obtaining characters of different fonts from the font reservoir, and introducing spacing distance, rotation angles, size, noise and the like (disturbance) to generate character samples. Further processing of the character samples to generate text line samples includes randomly arranging characters of the same font together, followed by adding disturbance to generate text line samples of different types.
[0028] Referring to FIG. IB, an illustration of an exemplary single character is shown in accordance with embodiments of the present disclosure. As shown here, after being obtained from the above described system font reservoir, an exemplary single character is generated after different disturbances are introduced to the character. As shown in FIG. 1C, an exemplary text line sample is generated based on the character samples.
[0029] Referring back to FIG. 1A, in step SI 02, features are extracted from the text line samples and the pre-stored marked up samples. In this embodiment, prior to extracting features from the text line samples and pre-stored marked up samples, the marked up samples are recorded. In particular, detection algorithms can be utilized to dissect candidate text regions, which are marked up manually, for example, as either 1 or 0 to indicate whether a region is a text region.
[0030] After the generation of the text line samples and the storage of the marked up samples, features can be extracted from those samples. In particular, one or more of the features, such as, gradient orientation histogram, gradient magnitude histogram, pixel histogram and pixel variance can be extracted from the pictures or images corresponding to the text line samples. Further, the continuous regions of the text line samples and the marked up samples can be obtained; the features of those continuous regions are also extracted accordingly. In other words, embodiments of the present disclosure provide for extracting at least two features, e.g., a group of features to facilitate generating the text line classifiers.
[0031] In step SI 03, models are trained by use of the extracted features to generate text line classifiers for recognizing text regions. In this embodiment, a back propagation (BP) neural network is utilized for single model training by use of the extracted features. Since each type of text line samples can train a correspondent model, various types of text line samples train various models; each model can be designated as a decision tree. In the beginning, a weight is assigned for each decision tree, then weight training is performed for the decision trees by use of a portion of the marked up samples such that each decision tree is assigned an appropriate weight to assure the accuracy of the classification. With the above described process, text line classifiers can be generated and the text line classifiers are utilized for recognizing text regions, based on the result of which pictures or images, containing prohibited texts, can be recognized.
[0032] Here, in one embodiment, features extracted from a text line sample can be represented with a vector, e.g., a picture corresponding to a text line sample can generate a 1 dimensional vector X. For all the text line samples, a set of vectors {Χ©} can be generated. The process of model training, based on all the text line samples, can be performed by inputting the vectors to the BP neural network for training to obtain training a model Model (X), which is a text line classifier.
[0033] The process of utilizing the above described text line classifiers to recognize text regions can include obtaining a feature vector Y for a candidate picture to be recognized, and then inputting the feature vector Y to a training model (e.g., a text line classifier), which outputs a score (score = Model (Y)). If the score is greater than a pre-determined value then it is determined that the candidate text region is a text line. Otherwise, it is determined that the candidate text region is a background image.
[0034] With the system font reservoir being utilized for generating text line samples, the features being extracted from the generated text line samples and the pre-stored marked up samples, the text line classifiers generated by model training based on the extracted features can target different scenes or different requirements for text region recognition with a high degree of applicability and with wide application in addition to ease of implementation. Together with the combinational use of the marked up samples for extracting features from the text line samples, the text line classifiers generated provide enhanced classification efficiency and accuracy.
[0035] Referring to FIG. 2A, a flow chart of an exemplary method of generating text line classifiers is shown in accordance with embodiments of the present disclosure. Method 200 starts in step S201, where character samples are generated by use of a present terminal system font reservoir. For example, the character samples can be Chinese character samples, but could be any language.
[0036] Referring to FIG. 2B, a flow chart of an exemplary method of generating character samples is shown in accordance with embodiments of the present disclosure. Here, the generating of character samples by use of the present system font reservoir, e.g., step S201, includes the steps S2011 through S2014. In step S2011, a single character is obtained from a font reservoir, which can be the Windows™ system's embedded fonts, the Founder fonts, and/or the handwritten fonts, etc. In step S2012, each Chinese character is selected in 21 sizes, e.g.,
{5,5.5,6,6.5,7,7.5,8,9,10,10.5,11,12,14,16,18,20,22,24,26,28,36,48,72} (pounds). In step S2013, each Chinese character is subject to slanting distortion and non-distortion. In step S2014, each Chinese character is disturbed by rotation degrees of from about -10° to aboutlO0 With the above described process, sample Chinese characters and variations thereof are generated.
[0037] Referring back to FIG. 2A, in step S202, text line samples are generated by use of the character samples. An exemplary method of generating text line samples is shown in FIG. 2C in accordance with embodiments of the present disclosure. Method 2500 includes steps S2021 through S2026. In step S2021, each text line reserves about from 5 pixels to about 10 pixels in the edge gap. In step S2022, each character in each text line is distanced with a gap of {1,2, ..,10}/10 of a width of a Chinese character. In step S2023, each text line includes a number of from about 2 to about 10 Chinese characters. In step S2024, each text line is classified into the categories of horizontal text, vertical text, oblique text of a 45° and oblique text of a -45°. In step S2025, each text line is introduced a rotation of from -10° to about 10°. In step S2026, each text line is processed by multiple groups of Gaussian low-pass filters for blurring or smoothing. With the above described steps, text line samples are generated accordingly. However, further limitations can be met by the generated text line samples. For example, each text line contains Chinese characters of the same size; each sample text line contains Chinese characters of the same rotation angles; each sample text line contains Chinese characters of either the oblique style or the non-oblique style; each sample text line contains Chinese characters of the same font; and each sample text line contains commonly used Chinese characters in a percentage of, for example, above 80%.
[0038] Referring back to FIG. 2A, in step S203, features are extracted from the text line sample in combination with the pre-stored marked up samples. In particular, step S203 extracts: 1) one or more of the features of one or more of the gradient orientation histogram, gradient magnitude histogram, pixel histogram and pixel variance from the pictures corresponding to the text line samples; and 2) features of the continuous regions obtained from the text line samples and the marked up samples. The following describes those in detail.
[0039] A) Gradient orientation histogram feature.
[0040] This feature is computed with the formula:
Figure imgf000009_0001
where dx (x , y ) = p (x + 1, y ) - p (x , y ) and dy (x , y ) = p (x , y + 1) - p (x , y ) . p (x , y ) is the pixel value corresponding to the pixel position, d x is the gradient along the X orientation of the corresponding pixel position, and Cf y is the gradient along the Y orientation of the corresponding pixel position.
[0041] B) Gradient magnitude histogram feature.
[0042] This feature can be computed with the formula:
& (x , y) = \ dv (x , y)2 + d„ fx , y)2 \ \ I \
y > * y y > , where dx (x , y) = p (x + 1, y) - p (x , y) and cfy (x , y) = p (x , y + 1) - p (x , y) .
[0043] C) Pixel histogram feature.
[0044] The pixels within the region corresponding to a text line sample are statistically analyzed such that the pixels are divided into 8 range segments according to the pixel values. Each range segment includes 32 pixel tones. The number of pixels in the range segments is identified as the features, which are output features of 8 dimensions.
[0045] D) Pixel variance feature.
[0046] In this exemplary embodiment, the pixel variance feature can be extracted by two exemplary approaches. First, with the projecting method, a main axis direction of a text line sample is computed. Based on the main axis direction, the text region is divided into areas in the configuration of a shape of ' BB ', each area of which the number of pixels and variances are computed for the continuous regions. Second, with a horizontal baseline, the difference between pixels where the baseline passes through (e.g., dx ) is computed; and the number of dx greater than 0 is statistically analyzed.
[0047] Further, the continuous regions of the text line samples and marked up samples are obtained, the features of which are also extracted. In particular, for the text line samples, a threshold based binarizing can be utilized to obtain the continuous regions. For the marked up samples, maximally stable extremal regions (MSER) algorithms or the improved MSER algorithms can be utilized to extract the continuous regions, after which the stroke width transform (SWT) algorithms or the stroke feature transform (SFT) algorithms can be utilized to compute the stroke width for the continuous regions. A mean value for the stroke width, a minimal value for the stroke width, a maximal value for the stroke width as well as a variance of the stroke width can be obtained. Furthermore, the number of the turning points and the holes within each continuous region can also be computed.
[0048] The SFT algorithms used are improved SFT algorithms. Compared with the SWT algorithms, the SFT algorithms introduce color channels, increase edge constraint mechanism, and enhance robustness against background noises. The present disclosure generates text line samples by use of font reservoirs instead of manually marked up samples. Features extracted also differ from the currently available technologies, for example, the present disclosure provides for extracting at least two features, e.g., a group of features, to facilitate the generation of the text line classifiers.
[0049] It should be appreciated by one with ordinary skill of the art that, in addition to the above described approaches to extract features, other approaches such as feature learning processes of the convolutional neural networks (CNNs) can also be utilized for feature extraction.
[0050] In step S204, the extracted features are utilized for model training. The BP neural network can be utilized to generate models corresponding to the text line samples based upon the extracted features. In other words, the number of generated models is the same as the number of types of the text line samples.
[0051] In step S205, weights are assigned to the models by combinational use of pre-stored marked up samples to generate text line classifiers. In this embodiment, first a weight is assigned to the generated multiple models, then the marked up samples are utilized to modify the weights assigned to the models to generate the text line classifiers.
[0052] Referring to FIG. 3, a flow chart of an exemplary method of feature training by use of a BP neural network is shown in accordance with an embodiment of the present disclosure. In method 300, the models are trained based on the extracted features and the text line classifiers are generated (e.g., the steps of S204 and S205). The BP neural network is utilized for training the extracted features. The BP network is configured with an input layer of feature dimensions 64 and a hidden layer 128. Each type of the text line sample outputs one model upon training.
[0053] In one example, after the training, N number of models are generated, each model individually output as a decision tree classifier, each model having an initial weight of 1/N. Then, with the marked up samples, weight training can be conducted. For each classification, if there is an error in classification, the weight of the correspondent decision tree classifier is subtracted from the output value of the classifier. If the classification is correct, the weight of the correspondent decision tree classifier is augmented with output value of the classifier. Lastly, the weights of the classifiers are normalized such that the sum of the weights equals 1. With a process as shown in FIG. 3, appropriate weights can be assigned to multiple models generated to enhance the classification accuracy by the classifiers.
[0054] Referring to FIG. 4, a flow chart of an exemplary method of recognizing text regions is shown in accordance with embodiments of the present disclosure. Method 400 starts in step S401, where pictures or images that are candidates for recognition are detected to generate a detection result. In particular, the candidate pictures or images for recognition can be analyzed with OCR to generate a detection result.
[0055] In step S402, a score is output by use of a text line classifier for the detection result. In step S403, if the score is greater than a pre-determined threshold, it is determined that the candidate picture or image is a text region. In step S404, if the score is less than a pre-determined threshold, it is determined that the candidate picture or image is a non-text region. In particular, the detection results can be input to a text line classifier generated by the exemplary method as illustrated in FIG. 2A. The text line classifier outputs a score, the higher the score the higher the possibility that the candidate picture or image is a text region. Alternatively, experience can be utilized to configure a threshold value. If the score is greater than the threshold value, the candidate picture or image is determined to be a text region. Otherwise, the candidate picture or image is determined to be a nontext region. After determining that the candidate picture or image is a text region, it can be further analyzed to recognize the texts in the picture to determine whether they are prohibited texts.
[0056] Because the text line classifier generated by the exemplary method as illustrated in FIG. 2A can target different scenes and different requirements for text region recognition, it provides for a high degree of applicability and wide application in addition to ease of implementation. Together with the combinational use of the marked up samples for extracting features from the text line samples, the text line classifiers generated provide for enhanced classification efficiency and accuracy. Therefore, the text line classifiers generated by use of the exemplary method of FIG. 2A can recognize in different scenes whether a picture is a text region in a simple, effective and accurate manner. Consequently, it further recognizes whether the corresponding pictures include prohibited texts and provides basis for how to process those pictures.
[0057] Referring to FIG. 5, a block diagram of an exemplary apparatus for generating text line classifiers is shown in accordance with embodiments of the present disclosure. The apparatus 500 includes a generating module 51, an extracting module 52 and a training module 53. The generating module is configured to generate text line samples by use of a present terminal system font reservoir. The extracting module is configured to extract features from the text line samples and pre-stored marked-up samples. The training module is configured to train models by use of the extracted features to generate a text line classifier for recognizing text regions.
[0058] In particular, the generating module 51 is configured to generate samples of characters by use of the present terminal system font reservoir, after which the samples of characters are further processed to generate various types of text line samples. The process of generating character samples by use of the present terminal system font reservoir includes obtaining characters of different fonts from the font reservoir, and introducing spacing distance, rotation angles, size, noise and the like (disturbance) to generate character samples. The further processing of the character samples to generate text line samples includes randomly arranging characters of the same font together, followed by adding disturbance to generate text line samples of different types.
[0059] In further details, the generating of character samples includes the steps where: 1) a single character is obtained from a font reservoir, which can be the Windows™ system's embedded fonts, the Founder fonts, and/or the handwritten fonts, etc.; and 2) each Chinese character is selected in 21 sizes, e.g., {5,5.5,6,6.5,7,7.5,8,9,10,10.5,11,12,14,16,18,20,22,24,26,28,36,48,72} (pounds); and 3) each Chinese character is subject to slanting distortion and non-distortion; and 4) each Chinese character is disturbed by rotation degrees of from about -10° to about 10°.
[0060] The generating of text line samples by use of the above described character samples includes the following steps: 1) each text line reserves about from 5 pixels to about 10 pixels in the edge gap; 2) each character in each text line is distanced with a gap of {1,2, ..,10}/10 of a width of a Chinese character; 3) each text line includes a number of from about 2 to about 10 Chinese characters; 4) each text line is classified into the categories of horizontal text, vertical text, oblique text of a 45° and oblique text of a -45°; 5) each text line is introduced a rotation of from -10° degrees to about 10° degrees; and 6) each text line is processed by multiple groups of Gaussian low- pass filters for blurring or smoothing. With the above described steps, text line samples are generated accordingly. However, further limitations can be met by the generated text line samples. For example, each text line contains Chinese characters of the same size; each sample text line contains Chinese characters of the same rotation angles; each sample text line contains Chinese characters of either the oblique style or the non-oblique style; each sample text line contains Chinese characters of the same font; and each sample text line contains commonly used Chinese characters in a percentage of, for example, above 80%.
[0061] Prior to the extracting module 52 extracting features from the text line samples and the pre-stored marked up samples, the marked up samples are recorded. In particular, the process of manually marking up the sample includes the steps of utilizing detection algorithms to dissect candidate text regions, and manually marking up the candidate text regions, for example, as either 1 or 0 to indicate whether the region is a text region.
[0062] The extracting module 52 includes a first extracting module 521 and a second extracting module 522 for purposes of extracting sample features. The first extracting module is configured to extract, from images corresponding to the text line samples, one or more of a gradient orientation histogram feature, a gradient magnitude histogram feature, a pixel histogram feature, and a pixel histogram change feature. The second extracting module is configured to obtain continuous regions of the text line samples and the marked-up samples and to extract features of the continuous regions.
[0063] In particular, the pertinent details of the feature extracting by the first extracting module 511 and the second extracting module 522 are substantially similar as illustrated in the
corresponding process of step S203 of FIG. 2A. The details are not repeated here for the purposes of simplicity.
[0064] The training module 53 is configured to generate models corresponding to the types of the text line samples based on the extracted features and to assign weights to the models based on the marked up samples to generate a text line classifier. In particular, a back propagation (BP) neural network is utilized for single model training by use of the extracted features. Since each type of text line samples can train a correspondent model, various types of text line samples train various models, each model can be designated as a decision tree. In the beginning, a weight is assigned for each decision tree, then the weight training is performed for the decision trees by use of a portion of the marked up samples such that each decision tree is assigned an appropriate weight to assure the accuracy of the classification. With the above described process, text line classifiers can be generated in accordance with the pertinent details substantially similar as illustrated in FIG. 3.
[0065] Since the system font reservoir is utilized for generating text line samples instead of utilizing a large amount of samples manually marked up, the generated training samples have more thorough coverage for targeting different scenes or different requirements for text region recognition with a high degree of applicability. Together with the combinational use of the marked up samples for extracting features from the text line samples, the generated text line classifiers provide for enhanced classification efficiency and accuracy.
[0066] Referring to FIG. 6, a block diagram of another exemplary apparatus for generating text line classifiers is shown in accordance with an embodiment of the present disclosure. The apparatus 600 further includes a detection module 54 and a recognizing module 55. The detection module 54 is configured to detect an image to be recognized to obtain a detection result. The recognizing module 55 is configured to generate a score by use of the generated text line classifier for the detection result, where the recognition module determines that the image is a text region if the score is greater than a pre-determined threshold; and the recognition module determines that the image is a non-text region if the score is less than a pre-determined threshold. After the image is determined to be a text region, texts included in the image are further recognized to determine whether the image contains any prohibited text.
[0067] The text line classifier generated by the generating module 51, the extracting module 52 and the training module 53 can target different scenes and different requirements for text region recognition, it provides for a high degree of applicability and wide application in addition to ease of implementation. Together with the combinational use of the marked up samples for extracting features from the text line samples, the generated text line classifiers provide for enhanced classification efficiency and accuracy. Therefore, the text line classifiers generated by use of the exemplary apparatus can recognize, in different scenes, whether a picture is a text region in a simple, effective and accurate manner. Consequently, it further recognizes whether the
corresponding pictures include prohibited texts and provides a basis for how to process those pictures.
[0068] Since the above described exemplary apparatus utilizes the generating module to generate text line samples, the generated text line classifiers can target different scenes or different requirements for text region recognition with a high degree of applicability and wide application in addition to ease of implementation. Together with the combinational use of the marked up samples for extracting features from the text line samples, the generated text line classifiers provide for enhanced accuracy in classification.
[0069] Embodiments of the present disclosure can be implemented using software, hardware, firmware, and/or the combinations thereof. Regardless of being implemented using software, hardware, firmware or the combinations thereof, instruction code can be stored in any kind of computer readable media (for example, permanent or modifiable, volatile or non-volatile, solid or non-solid, fixed or changeable medium, etc.). Similarly, such medium can be implemented using, for example, programmable array logic (PAL), random access memory (RAM), programmable read only memory (PROM), read only memory (ROM), electrically erasable programmable ROM (EEPROM), magnetic storage, optical storage, digital versatile disc (DVD), or the like. [0070] It is appreciated that, modules or blocks described by embodiments of the present disclosures are logical modules or logical blocks. Physically, a logical module or logical block can be a physical module or a physical block, a part of a physical module or a physical block, or the combinations of more than one physical modules or physical blocks. Physical implementation of those logical module or logical blocks is not necessary functionalities realized by the modules, blocks and the combinations thereof are key to solving the problems addressed by the present disclosure. Further, in order to disclose the novelties of the present disclosure, the above described embodiments do not disclose about those modules or blocks not too related to solving the problems addressed by the present disclosure, which does not mean that the above described embodiments cannot include other modules or blocks.
[0071] It is also necessary to point out that, in the claims and specification of the present disclosure, terms such as first and second only are for distinguishing an embodiment or an operation from another embodiment or operation. It does not require or imply that those embodiments or operations have any such real relationship or order. Further, as used herein, the terms "comprising," "including," or any other variation intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Absent further limitation, elements recited by the phrase "comprising a" does not exclude a process, method, article, or apparatus that comprises such elements from including other same elements.
[0072] While the foregoing disclosure sets forth various embodiments using specific block diagrams, flowcharts, and examples, each block diagram component, flowchart step, operation, and/or component described and/or illustrated herein may be implemented, individually and/or collectively, using a wide range of hardware, software, or firmware (or any combination thereof) configurations. In addition, any disclosure of components contained within other components should be considered as examples because many other architectures can be implemented to achieve the same functionality.
[0073] The process parameters and sequence of steps described and/or illustrated herein are given by way of example only and can be varied as desired. For example, while the steps illustrated and/or described herein may be shown or discussed in a particular order, these steps do not necessarily need to be performed in the order illustrated or discussed. The various example methods described and/or illustrated herein may also omit one or more of the steps described or illustrated herein or include additional steps in addition to those disclosed.
[0074] While various embodiments have been described and/or illustrated herein in the context of fully functional computing systems, one or more of these example embodiments may be distributed as a program product in a variety of forms, regardless of the particular type of computer- readable medium used to actually carry out the distribution. The embodiments disclosed herein may also be implemented using software modules that perform certain tasks. These software modules may include script, batch, or other executable files that may be stored on a computer-readable storage media or in a computing system. These software modules may configure a computing system to perform one or more of the example embodiments disclosed herein. One or more of the software modules disclosed herein may be implemented in a cloud computing environment. Cloud computing environments may provide various services and applications via the Internet. These cloud-based services (e.g., software as a service, platform as a service, infrastructure as a service, etc.) may be accessible through a Web browser or other remote interface. Various functions described herein may be provided through a remote desktop environment or any other cloud-based computing environment.
[0075] Although the present disclosure and its advantages have been described in detail, it should be understood that various changes substitutions, and alterations can be made herein without departing from the spirit and scope of the disclosure as defined by the appended claims. Many modifications and variations are possible in view of the above teachings. The embodiments were chosen and described in order to best explain the principles of the disclosure and its practical applications, to thereby enable others skilled in the art to best utilize the disclosure and various embodiments with various modifications as may be suited to the particular use contemplated.
[0076] Moreover, the scope of the present application is not intended to be limited to the particular embodiments of the process, machine, manufacture, composition of matter, means, methods and steps described in the specification. As one of ordinary skill in the art will readily appreciate from the disclosure of the present disclosure, processes, machines, manufacture, compositions of matter, means, methods, or steps, presently existing or later to be developed, that perform substantially the same function or achieve substantially the same result as the corresponding embodiments described herein may be utilized according to the present disclosure. Accordingly, the appended claims are intended to include within their scope such processes, machines, manufacture, compositions of matter, means, methods, or steps. [0077] Embodiments according to the present disclosure are thus described. While the present disclosure has been described in particular embodiments, it should be appreciated that the disclosure should not be construed as limited by such embodiments, but rather construed according to the below claims.

Claims

WHAT IS CLAIMED IS:
1. A method of generating a text line classifier, the method comprising:
generating text line samples using a present terminal system font reservoir;
extracting features from the text line samples and pre-stored marked-up samples; and training models using the extracted features to generate a text line classifier for recognizing text regions.
2. The method of claim 1, further comprising:
detecting an image to be recognized to obtain a detection result;
generating a score using the generated text line classifier for the detection result;
determining that the image is a text region if the score is greater than a pre-determined threshold; and
determining that the image is a non-text region if the score is less than the pre-determined threshold.
3. The method of claim 1, wherein the generating text line samples comprises:
generating character samples using the present terminal system font reservoir; and processing the character samples to generate text line samples of different types, wherein a text line sample comprises character samples of: a same size; a same rotation angle; and a same font, and wherein a text line sample has a percentage of commonly used characters greater than a pre-determined threshold.
4. The method of claim 1 , wherein the extracting features from the text line samples and pre-stored marked-up samples comprises:
extracting, from images corresponding to the text line samples, one or more of a gradient orientation histogram feature, a gradient magnitude histogram feature, a pixel histogram feature, and a pixel histogram change feature;
obtaining continuous regions of the text line samples and the marked-up samples; and extracting features of the continuous regions.
5. The method of claim 1, wherein the training models comprises:
generating models corresponding to types of the text line samples based on the extracted features; and
assigning weights to the models based on the marked up samples to generate a text line classifier.
6. The method of claim 4, wherein the obtaining continuous regions of the marked-up samples comprises:
obtaining continuous regions using a first estimation algorithm, the first estimation algorithm comprising a maximal stable extremal region (MSER) algorithm and an algorithm based upon the MSER algorithm.
7. The method of claim 4, wherein the extracting features of the continuous regions further comprises:
utilizing a second estimation algorithm to obtain stroke width features for the continuous region, wherein the second estimation algorithm comprises a stroke width transform (SWT) algorithm and a stroke feature transform (SFT) algorithm.
8. An apparatus for generating a text line classifier, the apparatus comprising:
a processor; and
a non-transitory computer-readable medium coupled to the processor, the non-transitory computer-readable medium having computer-readable instructions stored thereon to be executed by the processor, the instructions comprising:
a generating module configured to generate text line samples using a present terminal system font reservoir;
an extracting module configured to extract features from the text line samples and pre-stored marked-up samples; and
a training module configured to train models using the extracted features to generate a text line classifier for recognizing text regions.
9. The apparatus of claim 8, further comprising: a detecting module configured to detect an image to be recognized to obtain a detection result; and a recognizing module configured to generate a score using the generated text line classifier for the detection result, wherein the recognition module determines that the image is a text region if the score is greater than a pre-determined threshold; and wherein the recognition module determines that the image is a non-text region if the score is less than the pre-determined threshold.
10. The apparatus of claim 8, wherein the generating module is configured to generate character samples using the present terminal system font reservoir and configured to process the character samples to generate text line samples of different types, and wherein a text line sample comprises character samples of: a same size; a same rotation angle; and a same font, and wherein a text line sample has a percentage of commonly used characters greater than a pre-determined threshold.
11. The apparatus of claim 8, wherein the extracting module comprises:
a first extracting module configured to extract, from images corresponding to the text line samples, one or more of a gradient orientation histogram feature, a gradient magnitude histogram feature, a pixel histogram feature, and a pixel histogram change feature; and
a second extracting module configured to obtain continuous regions of the text line samples and the marked-up samples and to extract features of the continuous regions.
12. The apparatus of claim 8, wherein the training module is configured to generate models corresponding to types of the text line samples based on the extracted features and to assign weights to the models based on the marked up samples to generate a text line classifier.
13. A non-transitory computer readable storage medium having embedded therein program instructions, when executed by one or more processors of a device, causes the device to execute a process for generating a text line classifier, the process comprising:
80 generating text line samples using a present terminal system font reservoir;
extracting features from the text line samples and pre-stored marked-up samples; and training models using the extracted features to generate a text line classifier for recognizing text regions.
14. The non- transitory computer readable storage medium of claim 13, wherein the process 85 further comprises:
detecting an image to be recognized to obtain a detection result;
generating a score using the generated text line classifier for the detection result;
determining that the image is a text region if the score is greater than a pre-determined threshold; and
90 determining that the image is a non-text region if the score is less than the pre-determined threshold.
15. The non- transitory computer readable storage medium of claim 13, wherein the generating text line samples comprises:
generating character samples using the present terminal system font reservoir; and
95 processing the character samples to generate text line samples of different types, wherein a text line sample comprises character samples of: a same size; a same rotation angle; and a same font, and wherein a text line sample has a percentage of commonly used characters greater than a pre-determined threshold.
16. The non- transitory computer readable storage medium of claim 13, wherein the
100 extracting features from the text line samples and pre-stored marked-up samples comprises:
extracting, from images corresponding to the text line samples, one or more of a gradient orientation histogram feature, a gradient magnitude histogram feature, a pixel histogram feature, and a pixel histogram change feature;
obtaining continuous regions of the text line samples and the marked-up samples; and 105 extracting features of the continuous regions.
17. The non- transitory computer readable storage medium of claim 13, wherein the training models comprises:
generating models corresponding to types of the text line samples based on the extracted features; and
110 assigning weights to the models based on the marked up samples to generate a text line classifier.
18. The non- transitory computer readable storage medium of claim 13, wherein the obtaining continuous regions of the marked-up samples comprises:
obtaining continuous regions by a first estimation algorithm, the first estimation
115 algorithm comprising a maximal stable extremal region (MSER) algorithm and an algorithm based upon the MSER algorithm.
19. The non- transitory computer readable storage medium of claim 13, wherein the extracting features of the continuous regions comprises:
utilizing a second estimation algorithm to obtain stroke width features for the continuous 120 region, wherein the second estimation algorithm comprises a stroke width transform (SWT) algorithm and a stroke feature transform (SFT) algorithm.
PCT/US2016/024069 2015-03-25 2016-03-24 Method and apparatus for generating text line classifier Ceased WO2016154466A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510133507.9A CN106156766B (en) 2015-03-25 2015-03-25 Method and device for generating text line classifier
CN201510133507.9 2015-03-25

Publications (1)

Publication Number Publication Date
WO2016154466A1 true WO2016154466A1 (en) 2016-09-29

Family

ID=56976634

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/US2016/024069 Ceased WO2016154466A1 (en) 2015-03-25 2016-03-24 Method and apparatus for generating text line classifier

Country Status (4)

Country Link
US (1) US10146994B2 (en)
CN (1) CN106156766B (en)
TW (1) TW201636900A (en)
WO (1) WO2016154466A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109284059A (en) * 2018-08-28 2019-01-29 广州视源电子科技股份有限公司 Handwriting drawing method and device, interactive intelligent panel and storage medium
CN110321788A (en) * 2019-05-17 2019-10-11 平安科技(深圳)有限公司 Training data processing method, device, equipment and computer readable storage medium
CN110750640A (en) * 2019-09-17 2020-02-04 平安科技(深圳)有限公司 Text data classification method and device based on neural network model and storage medium
CN112101042A (en) * 2020-09-14 2020-12-18 平安科技(深圳)有限公司 Text emotion recognition method and device, terminal device and storage medium

Families Citing this family (39)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106156766B (en) * 2015-03-25 2020-02-18 阿里巴巴集团控股有限公司 Method and device for generating text line classifier
US20170068868A1 (en) * 2015-09-09 2017-03-09 Google Inc. Enhancing handwriting recognition using pre-filter classification
US10347016B2 (en) * 2016-01-12 2019-07-09 Monotype Imaging Inc. Converting font contour curves
WO2017142510A1 (en) * 2016-02-16 2017-08-24 Entit Software Llc Classification
CN106407976B (en) * 2016-08-30 2019-11-05 百度在线网络技术(北京)有限公司 The generation of image character identification model and perpendicular column character picture recognition methods and device
TWI607387B (en) * 2016-11-25 2017-12-01 財團法人工業技術研究院 Character recognition system and its character recognition method
CN107180239B (en) * 2017-06-09 2020-09-11 科大讯飞股份有限公司 Text line identification method and system
CN107688806B (en) * 2017-08-21 2021-04-20 西北工业大学 A free scene text detection method based on affine transformation
US10936792B2 (en) 2017-12-21 2021-03-02 Monotype Imaging Inc. Harmonizing font contours
CN108304357B (en) * 2018-01-31 2020-09-08 北京大学 An automatic generation method of Chinese font library based on font manifold
CN108520740B (en) * 2018-04-13 2022-04-19 国家计算机网络与信息安全管理中心 Audio content consistency analysis method and analysis system based on multiple characteristics
CN108681729B (en) * 2018-05-08 2023-06-23 腾讯科技(深圳)有限公司 Text image correction method, device, storage medium and equipment
CN109086756B (en) * 2018-06-15 2021-08-03 众安信息技术服务有限公司 A method, device and device for text detection and analysis based on deep neural network
CN109241974B (en) * 2018-08-23 2020-12-01 苏州研途教育科技有限公司 Text image identification method and system
CN109246296A (en) * 2018-08-27 2019-01-18 河南丰泰光电科技有限公司 A kind of mobile phone safe information generates and storage method
CN109145907B (en) * 2018-09-11 2020-12-11 上海信联信息发展股份有限公司 Text image inversion detection method and device based on common word frequency statistics
CN109582784A (en) * 2018-10-26 2019-04-05 阿里巴巴集团控股有限公司 File classification method and device
CN109597888A (en) * 2018-11-19 2019-04-09 北京百度网讯科技有限公司 Establish the method, apparatus of text field identification model
CN111222589B (en) * 2018-11-27 2023-07-18 中国移动通信集团辽宁有限公司 Image text recognition method, device, equipment and computer storage medium
US11972344B2 (en) * 2018-11-28 2024-04-30 International Business Machines Corporation Simple models using confidence profiles
US10902198B2 (en) 2018-11-29 2021-01-26 International Business Machines Corporation Generating rules for automated text annotation
CN109614488B (en) * 2018-12-04 2022-12-02 广西大学 Discrimination method of live working conditions in distribution network based on text classification and image recognition
CN109670494B (en) * 2018-12-13 2023-09-01 北京深智恒际科技有限公司 Text detection method and system with recognition confidence
CN109636645A (en) * 2018-12-13 2019-04-16 平安医疗健康管理股份有限公司 Medical insurance monitoring and managing method, unit and computer readable storage medium
CN109960808B (en) * 2019-03-26 2023-02-07 广东工业大学 A text recognition method, device, equipment and computer-readable storage medium
CN110427948A (en) * 2019-07-29 2019-11-08 杭州云深弘视智能科技有限公司 The generation method and its system of character sample
CN111581377B (en) * 2020-04-23 2023-04-07 广东博智林机器人有限公司 Text classification method and device, storage medium and computer equipment
CN111666941B (en) * 2020-06-12 2024-03-29 北京达佳互联信息技术有限公司 Text detection method and device and electronic equipment
CN112130782A (en) * 2020-09-22 2020-12-25 上海汉图科技有限公司 A printing method, device and printing client
CN112183523A (en) * 2020-12-02 2021-01-05 北京云测信息技术有限公司 Text detection method and device
CN115187970A (en) * 2021-03-19 2022-10-14 阿里巴巴新加坡控股有限公司 Data processing method and device, electronic equipment and storage medium
CN113222480B (en) * 2021-06-11 2023-05-12 支付宝(杭州)信息技术有限公司 Training method and device for challenge sample generation model
CN113920522A (en) * 2021-09-28 2022-01-11 深圳市雄帝科技股份有限公司 Method and system for identifying information of entry and exit card and storage medium thereof
CN113971750B (en) * 2021-10-19 2025-03-18 浙江诺诺网络科技有限公司 Method, device, equipment and storage medium for extracting key information from bank receipt
EP4242988B1 (en) 2022-03-11 2026-01-21 Tata Consultancy Services Limited Method and system to detect a text from multimedia content captured at a scene
CN115827879B (en) * 2023-02-15 2023-05-26 山东山大鸥玛软件股份有限公司 Low-resource text intelligent review method and device based on sample enhancement and self-training
CN116863471A (en) * 2023-06-21 2023-10-10 山东浪潮科学研究院有限公司 Method for improving text recognition accuracy of multiple types of certificates
CN117058683A (en) * 2023-08-16 2023-11-14 上海蜜度信息技术有限公司 Text line image deblurring method, device and computer-readable medium
CN120219278A (en) * 2024-03-06 2025-06-27 阿里巴巴达摩院(杭州)科技有限公司 Computer-aided diagnosis method and system for cancer, computer-aided diagnosis method for esophageal cancer, computer-aided diagnosis method for gastric cancer

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4162482A (en) * 1977-12-07 1979-07-24 Burroughs Corporation Pre-processing and feature extraction system for character recognition
US5031225A (en) * 1987-12-09 1991-07-09 Ricoh Company, Ltd. Character recognition method for recognizing character in an arbitrary rotation position
US20060056696A1 (en) * 2004-08-18 2006-03-16 Fujitsu Limited Degraded dictionary generation method and apparatus
US20070065003A1 (en) * 2005-09-21 2007-03-22 Lockheed Martin Corporation Real-time recognition of mixed source text
US20080002916A1 (en) * 2006-06-29 2008-01-03 Luc Vincent Using extracted image text
US20100246963A1 (en) * 2009-03-26 2010-09-30 Al-Muhtaseb Husni A Automatic arabic text image optical character recognition method
US20100310172A1 (en) * 2009-06-03 2010-12-09 Bbn Technologies Corp. Segmental rescoring in text recognition
US20130322757A1 (en) * 2012-05-31 2013-12-05 Fujitsu Limited Document Processing Apparatus, Document Processing Method and Scanner
US20130330004A1 (en) * 2012-06-12 2013-12-12 Xerox Corporation Finding text in natural scenes
US20140023271A1 (en) * 2012-07-19 2014-01-23 Qualcomm Incorporated Identifying A Maximally Stable Extremal Region (MSER) In An Image By Skipping Comparison Of Pixels In The Region

Family Cites Families (48)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3701972A (en) * 1969-12-16 1972-10-31 Computer Retrieval Systems Inc Data processing system
EP0385009A1 (en) * 1989-03-03 1990-09-05 Hewlett-Packard Limited Apparatus and method for use in image processing
US5754187A (en) * 1994-05-16 1998-05-19 Agfa Division, Bayer Corporation Method for data compression of digital data to produce a scaleable font database
US5734388A (en) * 1994-05-16 1998-03-31 Agfa Division, Bayer Corporation Method and apparatus for data compression of digital data to produce a scaleable font database
AU3625095A (en) * 1994-09-30 1996-04-26 Motorola, Inc. Method and system for extracting features from handwritten text
US5956419A (en) * 1995-04-28 1999-09-21 Xerox Corporation Unsupervised training of character templates using unsegmented samples
US5594809A (en) * 1995-04-28 1997-01-14 Xerox Corporation Automatic training of character templates using a text line image, a text line transcription and a line image source model
US6426751B1 (en) * 1999-04-01 2002-07-30 Adobe Systems Incorporated Font feature file processing
US7367885B2 (en) * 2001-08-09 2008-05-06 Igt 3-D text in a gaming machine
US7606408B2 (en) 2004-06-21 2009-10-20 Seiko Epson Corporation Magnetic ink character reading method and program
US7302048B2 (en) 2004-07-23 2007-11-27 Marvell International Technologies Ltd. Printer with speech transcription of a recorded voice message
US7594171B2 (en) 2004-10-01 2009-09-22 Adobe Systems Incorporated Rule-based text layout
US7689037B2 (en) 2004-10-22 2010-03-30 Xerox Corporation System and method for identifying and labeling fields of text associated with scanned business documents
US7783135B2 (en) * 2005-05-09 2010-08-24 Like.Com System and method for providing objectified image renderings using recognition information from images
US7809192B2 (en) * 2005-05-09 2010-10-05 Like.Com System and method for recognizing objects from images and identifying relevancy amongst images and information
US8849031B2 (en) 2005-10-20 2014-09-30 Xerox Corporation Document analysis systems and methods
US8074168B2 (en) * 2006-06-09 2011-12-06 Oracle America, Inc. Automated context-compensated rendering of text in a graphical environment
WO2007149216A2 (en) 2006-06-21 2007-12-27 Information Extraction Systems An apparatus, system and method for developing tools to process natural language text
US7945627B1 (en) 2006-09-28 2011-05-17 Bitdefender IPR Management Ltd. Layout-based electronic communication filtering systems and methods
CN101354704B (en) * 2007-07-23 2011-01-12 夏普株式会社 Apparatus for making grapheme characteristic dictionary and document image processing apparatus having the same
JP4902568B2 (en) 2008-02-19 2012-03-21 キヤノン株式会社 Electronic document generation apparatus, electronic document generation method, computer program, and storage medium
US20100153318A1 (en) * 2008-11-19 2010-06-17 Massachusetts Institute Of Technology Methods and systems for automatically summarizing semantic properties from documents with freeform textual annotations
US9135348B2 (en) 2008-11-21 2015-09-15 Alcatel Lucent Method and apparatus for machine-learning based profiling
US8655803B2 (en) * 2008-12-17 2014-02-18 Xerox Corporation Method of feature extraction from noisy documents
US8364488B2 (en) * 2009-01-15 2013-01-29 K-Nfb Reading Technology, Inc. Voice models for document narration
US9189472B2 (en) * 2009-03-30 2015-11-17 Touchtype Limited System and method for inputting text into small screen devices
US8311331B2 (en) 2010-03-09 2012-11-13 Microsoft Corporation Resolution adjustment of an image that includes text undergoing an OCR process
US8509534B2 (en) * 2010-03-10 2013-08-13 Microsoft Corporation Document page segmentation in optical character recognition
US8526732B2 (en) 2010-03-10 2013-09-03 Microsoft Corporation Text enhancement of a textual image undergoing optical character recognition
US8594422B2 (en) 2010-03-11 2013-11-26 Microsoft Corporation Page layout determination of an image undergoing optical character recognition
US8385652B2 (en) * 2010-03-31 2013-02-26 Microsoft Corporation Segmentation of textual lines in an image that include western characters and hieroglyphic characters
US8392186B2 (en) * 2010-05-18 2013-03-05 K-Nfb Reading Technology, Inc. Audio synchronization for document narration with user-selected playback
US8218875B2 (en) 2010-06-12 2012-07-10 Hussein Khalid Al-Omari Method and system for preprocessing an image for optical character recognition
US8924391B2 (en) 2010-09-28 2014-12-30 Microsoft Corporation Text classification using concept kernel
US8606010B2 (en) * 2011-03-18 2013-12-10 Seiko Epson Corporation Identifying text pixels in scanned images
US20120243444A1 (en) * 2011-03-25 2012-09-27 Mitel Networks Corporation Communication system to localize devices and methods thereof
US8588529B2 (en) 2011-08-15 2013-11-19 Vistaprint Schweiz Gmbh Method and system for detecting text in raster images
JP5833956B2 (en) 2012-03-06 2015-12-16 インターナショナル・ビジネス・マシーンズ・コーポレーションInternational Business Machines Corporation Information processing apparatus, method, and program for proofreading document
US8818033B1 (en) 2012-04-27 2014-08-26 Google Inc. System and method for detecting equations
US8977057B1 (en) 2012-05-02 2015-03-10 Google Inc. Detection of diacritics in OCR systems with assignment to the correct text line
US9740925B2 (en) * 2012-11-19 2017-08-22 Imds America Inc. Method and system for the spotting of arbitrary words in handwritten documents
EP2956919A4 (en) * 2013-02-15 2016-09-21 Voxy Inc SYSTEMS AND METHODS FOR LANGUAGE LEARNING
US9342794B2 (en) * 2013-03-15 2016-05-17 Bazaarvoice, Inc. Non-linear classification of text samples
US8965129B2 (en) * 2013-03-15 2015-02-24 Translate Abroad, Inc. Systems and methods for determining and displaying multi-line foreign language translations in real time on mobile devices
US9076056B2 (en) * 2013-08-20 2015-07-07 Adobe Systems Incorporated Text detection in natural images
US9183636B1 (en) 2014-04-16 2015-11-10 I.R.I.S. Line segmentation method
US9367766B2 (en) * 2014-07-22 2016-06-14 Adobe Systems Incorporated Text line detection in images
CN106156766B (en) * 2015-03-25 2020-02-18 阿里巴巴集团控股有限公司 Method and device for generating text line classifier

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4162482A (en) * 1977-12-07 1979-07-24 Burroughs Corporation Pre-processing and feature extraction system for character recognition
US5031225A (en) * 1987-12-09 1991-07-09 Ricoh Company, Ltd. Character recognition method for recognizing character in an arbitrary rotation position
US20060056696A1 (en) * 2004-08-18 2006-03-16 Fujitsu Limited Degraded dictionary generation method and apparatus
US20070065003A1 (en) * 2005-09-21 2007-03-22 Lockheed Martin Corporation Real-time recognition of mixed source text
US20080002916A1 (en) * 2006-06-29 2008-01-03 Luc Vincent Using extracted image text
US20100246963A1 (en) * 2009-03-26 2010-09-30 Al-Muhtaseb Husni A Automatic arabic text image optical character recognition method
US20100310172A1 (en) * 2009-06-03 2010-12-09 Bbn Technologies Corp. Segmental rescoring in text recognition
US20130322757A1 (en) * 2012-05-31 2013-12-05 Fujitsu Limited Document Processing Apparatus, Document Processing Method and Scanner
US20130330004A1 (en) * 2012-06-12 2013-12-12 Xerox Corporation Finding text in natural scenes
US20140023271A1 (en) * 2012-07-19 2014-01-23 Qualcomm Incorporated Identifying A Maximally Stable Extremal Region (MSER) In An Image By Skipping Comparison Of Pixels In The Region

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109284059A (en) * 2018-08-28 2019-01-29 广州视源电子科技股份有限公司 Handwriting drawing method and device, interactive intelligent panel and storage medium
CN109284059B (en) * 2018-08-28 2020-11-24 广州视源电子科技股份有限公司 Handwriting drawing method, device, interactive smart tablet and storage medium
CN110321788A (en) * 2019-05-17 2019-10-11 平安科技(深圳)有限公司 Training data processing method, device, equipment and computer readable storage medium
CN110750640A (en) * 2019-09-17 2020-02-04 平安科技(深圳)有限公司 Text data classification method and device based on neural network model and storage medium
CN112101042A (en) * 2020-09-14 2020-12-18 平安科技(深圳)有限公司 Text emotion recognition method and device, terminal device and storage medium

Also Published As

Publication number Publication date
TW201636900A (en) 2016-10-16
US10146994B2 (en) 2018-12-04
CN106156766A (en) 2016-11-23
CN106156766B (en) 2020-02-18
US20160283814A1 (en) 2016-09-29

Similar Documents

Publication Publication Date Title
US10146994B2 (en) Method and apparatus for generating text line classifier
US10896349B2 (en) Text detection method and apparatus, and storage medium
CN103679168B (en) Detection method and detection device for character region
Patel et al. Handwritten character recognition using neural network
US10643094B2 (en) Method for line and word segmentation for handwritten text images
WO2018099194A1 (en) Character identification method and device
CN103208004A (en) Automatic recognition and extraction method and device for bill information area
CN105574513A (en) Character detection method and device
CN107067006A (en) A kind of method for recognizing verification code and system for serving data acquisition
CN112966685B (en) Attack network training method and device for scene text recognition and related equipment
KR102026280B1 (en) Method and system for scene text detection using deep learning
CN103946865B (en) Method and apparatus for contributing to the text in detection image
CN114627456A (en) Bill text information detection method, device and system
CN109101810A (en) A kind of text method for recognizing verification code based on OCR technique
CN106469267B (en) Verification code sample collection method and system
Sakkatos et al. Analysis of text-based CAPTCHA images using Template Matching Correlation technique
Boiangiu et al. Handwritten documents text line segmentation based on information energy
CN109977729A (en) A kind of Method for text detection and device
Gao et al. A hierarchical visual saliency model for character detection in natural scenes
Frejlichowski Application of the polar–fourier greyscale descriptor to the automatic traffic sign recognition
Valke et al. Character recognition algorithms
Huang et al. Chinese historic image threshold using adaptive K-means cluster and Bradley’s
Valery et al. Detection and localization of embedded subtitles in a video stream
Singh et al. Hybrid Text Illusion CAPTCHA Dealing with Partial Vision Certainty
Kimura et al. Simultaneous mixed vertical and horizontal handwritten japanese character line detection

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16769714

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16769714

Country of ref document: EP

Kind code of ref document: A1