CN102750530B - Character recognition method and device - Google Patents

Character recognition method and device Download PDF

Info

Publication number
CN102750530B
CN102750530B CN201210177765.3A CN201210177765A CN102750530B CN 102750530 B CN102750530 B CN 102750530B CN 201210177765 A CN201210177765 A CN 201210177765A CN 102750530 B CN102750530 B CN 102750530B
Authority
CN
China
Prior art keywords
character
pixel
value
edge
template
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.)
Expired - Fee Related
Application number
CN201210177765.3A
Other languages
Chinese (zh)
Other versions
CN102750530A (en
Inventor
王海峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
He Jiangtao
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201210177765.3A priority Critical patent/CN102750530B/en
Publication of CN102750530A publication Critical patent/CN102750530A/en
Application granted granted Critical
Publication of CN102750530B publication Critical patent/CN102750530B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Character Input (AREA)
  • Character Discrimination (AREA)

Abstract

The invention discloses character recognition method and device. The method comprises the steps that: when recognition and template of a character to be recognized are established, conducting normalization processing, determining character edge information graph, and determining the dereferencing of each value in an edge gradient array; after assignment of corresponding position in the edge gradient array, determining matching distance according to matching between the edge gradient array corresponding to the character to be recognized and each template corresponding to each character, and recognizing the character according to the matching distance. In the invention, corresponding value in the edge gradient array is determined according to the gradient direction of each pixel point in the character, and the gradient direction has strong anti-interference capability, thus the character recognition method has strong robustness, each character and each template are correspondingly matched in the recognition process, and character corresponding to the minimum matching distance is used as the recognition result, thus the poor robustness problem caused by single template matching of the characters can be avoided, and the application range of the matching method is improved.

Description

A kind of character identifying method and device
Technical field
The present invention relates to computer image processing technology field, relate in particular to a kind of character identifying method and device.
Background technology
Along with socioeconomic development, the quantity of vehicle constantly increases, and therefore becomes inevitable by computer information, intelligentized project management vehicle.In prior art, car plate is identified in the important role of intelligent transportation field performer, and it has a wide range of applications in traffic flow monitoring, the charge of highway bayonet socket, red light violation vehicle monitoring and community's automatic fare collection system.
In the process of existing car plate type identification, mainly comprise: several key steps such as car plate location, car plate rectification, License Plate Character Segmentation and character recognition.Character recognition is the core technology in car plate identification, after character string is identified, need to the each character recognition in character string be gone out by character recognition technologies.
The Recognition of License Plate Characters algorithm adopting at present comprises: template matching algorithm and machine learning algorithm.Wherein, machine learning algorithm need to be learnt a large amount of character samples, and needs through training for a long time, and calculated amount is large and efficiency is low.The relative machine learning algorithm of template matching algorithm is realized simple, but its robustness is poor, this is that then the selection template that distance is the most close is with it as recognition result because template matching algorithm is exactly that identification character and the each template in the standard character template set of storing are compared.Template matching method has utilized the statistical natures such as the profile, grid, projection of character more, therefore can cause similar character separating capacity poor and cause the problems such as recognition speed is slow because characteristic dimension is excessive, for the character to be identified that has distortion, displacement, inclination, template matching method is easy to produce mistake identification, and identification accuracy is poor.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of character identifying method and device, in order to solve the problem of poor robustness in prior art character recognition process.
The invention provides a kind of character identifying method, described method comprises:
The picture that comprises character information to be identified is carried out to binary conversion treatment, the border of character in this picture after identification binary conversion treatment, according to definite border, in the samples pictures that comprises character information to be identified, intercept character zone to be identified, the character zone of this intercepting is carried out to binaryzation, normalized;
In character zone to be identified after normalized, the saltus step of identification pixel value, the position of white pixel point during according to saltus step, the position assignment 255 of respective pixel point in character edge hum pattern, other values are composed in the position of other pixels, wherein the character zone equal and opposite in direction after this character edge hum pattern and this normalization;
Identify the pixel value of each pixel in this character edge hum pattern, in the time recognizing the pixel value of pixel in this character edge hum pattern and be 255, calculate the Grad of this pixel, and definite ownership direction, adopt relevant position assignment in this ownership direction value edge gradient array, other position assignment of this array are-1;
Each template that this edge gradient array is corresponding with each character of preservation is mated, determine matching distance, using character corresponding matching distance minimum value as recognition result.
The invention provides a kind of character recognition device, described device comprises:
Normalization module, for the picture that comprises character information to be identified is carried out to binary conversion treatment, the border of character to be identified in this picture after identification binary conversion treatment, according to definite border, in the samples pictures that comprises character information to be identified, intercept character zone to be identified, the character zone of this intercepting is carried out to binaryzation, normalized;
Marginal information determination module, for the character zone to be identified after normalized, the saltus step of identification pixel value, the position of white pixel point during according to saltus step, the position assignment 255 of respective pixel point in character edge hum pattern, other values are composed in the position of other pixels, wherein the character zone equal and opposite in direction after this character edge hum pattern and this normalization;
Gradient direction determination module, for identifying the pixel value of the each pixel of this character edge hum pattern, in the time recognizing the pixel value of pixel in this character edge hum pattern and be 255, calculate the Grad of this pixel, and definite ownership direction, adopt relevant position assignment in this ownership direction value edge gradient array, other position assignment of this array are-1;
Coupling identification module, for this edge gradient array is mated with each template of preservation, determines matching distance, using character corresponding matching distance minimum value as recognition result.
The invention provides a kind of character identifying method and device, the method is during for character recognition to be identified and template establishment, be normalized, determine character edge hum pattern, and the value of each numerical value in definite edge gradient array, when having determined after the assignment of relevant position in edge gradient array, according to the coupling between character to be identified corresponding edge gradient array and each template corresponding to each character, determine matching distance, according to matching distance identification character.Due in the present invention according to the gradient direction of each pixel in character, as the respective value in edge gradient array, and gradient direction has stronger antijamming capability, therefore this character identifying method has stronger robustness, and the each template corresponding with each character mated in the process of identification, according to matching distance, using character corresponding matching distance minimum value as recognition result, therefore can avoid the problem of the poor robustness of character list template matches, improve the scope of application of this matching process.
Brief description of the drawings
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms a part of the present invention, and schematic description and description of the present invention is used for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is character recognition process schematic diagram provided by the invention;
Fig. 2 is the process of the normalized in Character mother plate constructive process provided by the invention;
Fig. 3 is the characteristic extraction procedure in Character mother plate constructive process provided by the invention;
Fig. 4 is the structural representation of character recognition device provided by the invention.
Embodiment
The embodiment of the present invention, in order to improve efficiency and the precision of character recognition, provides a kind of character identifying method and device.
Below in conjunction with Figure of description, the present invention is described in detail.
Fig. 1 is character recognition process schematic diagram provided by the invention, and this process comprises the following steps:
S101: the picture that comprises character information to be identified is carried out to binary conversion treatment, the border of character to be identified in this picture after identification binary conversion treatment, according to definite border, in the samples pictures that comprises character information to be identified, intercept character zone to be identified, the character zone of this intercepting is carried out to binaryzation, normalized.
S102: in the character zone to be identified after normalized, the saltus step of identification pixel value, the position of white pixel point during according to saltus step, the position assignment 255 of respective pixel point in character edge hum pattern, other values are composed in the position of other pixels, wherein the character zone equal and opposite in direction after this character edge hum pattern and this normalization.
S103: the pixel value of identifying each pixel in this character edge hum pattern, in the time recognizing the pixel value of pixel in this character edge hum pattern and be 255, calculate the Grad of this pixel, and definite ownership direction, adopt relevant position assignment in this ownership direction value edge gradient array, other position assignment of this array are-1.
S104: each template that this edge gradient array is corresponding with each character of preservation is mated, determine matching distance, using character corresponding matching distance minimum value as recognition result.
Before to character recognition, also comprise for each character, create multiple templates of this character, in the time creating each template of each character, also need to be normalized, to determine character edge hum pattern, and the value of each numerical value in definite edge gradient array, the constructive process of template is identical with the step of carrying out in character recognition process.When having determined after the assignment of relevant position in edge gradient array corresponding to template, adopt the assignment of each relevant position in the edge gradient array that identical method determines that character to be identified is corresponding, according to mating between character to be identified corresponding edge gradient array and template, determine matching distance, according to matching distance identification character.
Due in the present invention due to according to the gradient direction of each pixel in character, as the respective value in edge gradient array, and gradient direction has stronger antijamming capability, therefore this character identifying method has stronger robustness, and the each template corresponding with each character mated in the process of identification, according to matching distance, using character corresponding matching distance minimum value as recognition result, therefore can avoid the problem of the poor robustness of character list template matches, improve the scope of application of this matching process.
Below by specific embodiment, character recognition process of the present invention is elaborated.
In order to improve the accuracy of character recognition, and improve the efficiency of character recognition, need to preserve multiple templates for each character, each template needs representative, and the diversity ratio between template is larger.In the time creating and preserve the template of character, need to be normalized character zone, and extract the feature of character zone after this normalized.
Fig. 2 is the process of the normalized in Character mother plate constructive process provided by the invention, and this process comprises the following steps:
S201: the samples pictures that comprises character information is carried out to binary conversion treatment.
The samples pictures that generally comprises character information is colour picture, before this colour picture is carried out to binaryzation, need to first this colour picture be converted to gray scale picture, adopt afterwards corresponding Binarization methods to carry out binary conversion treatment to this gray scale picture, can adopt in the present invention otsu Binarization methods to carry out binary conversion treatment to gray scale picture.
S202: four borders of the picture from binary conversion treatment start, respectively to picture inner search; When search in this picture white pixel point time, determine that this white pixel point is positioned at the border of this character; According to the position of the white pixel point scanning from each boundary direction, determine the border of this character.
In the present invention in order to detect the region at character place in the picture after this binary conversion treatment, four of picture from this binary conversion treatment borders start respectively, to picture inner scanning, the upper and lower, left and right four direction of the picture from this binary conversion treatment is respectively to picture inner scanning.Concrete in the time recognizing white pixel point first from upper and lower both direction, think the row at place, upper and lower border of behavior character at this white pixel point place, in the time recognizing white pixel point first from left and right both direction, think the row at the place, left and right border of classifying this character as at this white pixel point place.
S203: according to the border of definite character, intercept character zone in the samples pictures that comprises character information.
Form after the row and column of character boundary when having determined, can in the samples pictures that comprises character information, intercept the picture of character zone.
S204: the character zone intercepting is carried out to binary conversion treatment, and according to the size arranging, the picture after this binary conversion treatment is normalized.
When having intercepted from colour picture after this character zone, still be colour picture to picture corresponding to this character zone, the colour picture of character zone is converted to gray scale picture, and adopt otsu Binarization methods to carry out binary conversion treatment to this gray scale picture, afterwards according to the size arranging, the for example size of this setting in the present invention can be wide by 24, high by 48, picture after this binaryzation is normalized, and to the gray scale picture after this conversion, be normalized according to the size of this setting simultaneously.Thereby obtain binary map and gray-scale map after normalization.
Fig. 3 is the characteristic extraction procedure in Character mother plate constructive process provided by the invention, and this process comprises the following steps:
S301: in the character zone after normalization, the saltus step of identification pixel pixel value.
Character zone after this normalization is binary character figure, and the width of this binary character figure is W, is highly H.In this binary character figure, identify the saltus step of pixel value, the pixel value of two neighbor pixels becomes 0 from 1, or becomes 1 situation from 0.
S302: the position of white pixel point during according to pixel value saltus step, in character edge hum pattern, be 255 by the pixel assignment corresponding with this white pixel point position, otherwise assignment is other values, the wherein character zone equal and opposite in direction after this character edge hum pattern and this normalization.
Character zone equal and opposite in direction after this character edge hum pattern and this normalization, i.e. the equal and opposite in direction of this character edge hum pattern and binary character figure, the number of line number, columns, pixel equates.In the time determining the pixel value of each pixel in this character edge hum pattern, what need to recognize is somebody's turn to do and the saltus step of pixel value in binary character figure, during according to saltus step, white pixel is put corresponding position, in character edge hum pattern, be 255 by the pixel assignment corresponding with this white pixel point position, in this character edge hum pattern, the position assignment of other pixels for other values, for example, can be 0.
S303: identify the pixel value of each pixel in this character edge hum pattern, in the time recognizing the pixel value of pixel in this character edge hum pattern and be 255, calculate the Grad of this pixel, and determine ownership direction.
S304: be this gradient direction angle by position assignment corresponding with this pixel position in template, other position assignment are-1.
Create in the present invention a template equal to width character edge hum pattern height, template also can be thought a two-dimensional array equating with this character edge hum pattern height and width.In the time determining the assignment of each position in this template, scan this character edge hum pattern, when the pixel value that scans pixel is during for other values, for example, be 0 o'clock, be-1 by the relevant position assignment in this template corresponding with this pixel position; In the time scanning the pixel value of pixel and be 255, while scanning white point, in the grey chromatic graph after normalization on the position corresponding with this pixel, calculate the Grad of this pixel according to following formula:
Gradient=dy/dx
Wherein, dy=g (i, j+1)-g (i, j-1), dx=g (i+1, j)-g (i-1, j), g (i, j) gray-scale value of this pixel correspondence position in the gray level image after normalization, i represents the row at this pixel place, and j represents the row at this pixel place, and Gradient is the Grad of this pixel of calculating.
Angular range 8 deciles by 0 degree to 360 degree, the corresponding gradient direction of each equal portions, adopts respectively 1 ~ 8 to carry out mark, according to the Grad of this pixel calculating, calculate the gradient direction angle of this pixel, according to this gradient direction angle calculating, determine the direction of this gradient direction angle ownership.
Having created after multiple templates for each character, each template is kept to position corresponding with each character in template base, in template base, preserve multiple templates for each character.
In the time identifying for character, when having obtained after the picture that comprises character to be identified, according to the constructive process of above-mentioned template, this picture is converted to gray-scale map, and adopt corresponding Binarization methods, picture after conversion is carried out to binary conversion treatment, and this Binarization methods is identical with the Binarization methods in template establishment process.
In picture after binary conversion treatment, start to picture inner scanning from the four direction of picture respectively, identify the position of first white pixel point in each direction, according to the position of the white pixel point recognizing in each direction, determine the border of this character to be identified; According to definite character boundary, from the colour picture of this character to be identified, intercept this character zone to be identified.
The character zone to be identified intercepting is converted to gray-scale map, and adopt corresponding Binarization methods, this gray-scale map is carried out to binary conversion treatment, and according to the size arranging, the character zone to be identified after this gray-scale map and binary conversion treatment is normalized, wherein the size of this setting, identical with the size arranging in template establishment process, all for example wide by 24, high 48 etc., and the Binarization methods adopting is here also identical with the Binarization methods that normalization process in template establishment adopts.
After after binaryzation, this character zone to be identified is normalized, identify the saltus step of the pixel value of pixel after this normalization, occur from 0 to 1 when recognizing pixel value, or when from 1 to 0 saltus step, the position of white pixel point during according to saltus step, in character edge hum pattern, the position assignment of respective pixel point is 255, and the position assignment of rest of pixels point is 0.
The pixel value of each pixel in character edge hum pattern after identification assignment, in the time that to recognize pixel value be 255 pixel, be adjacent the gray-scale value of pixel according to this pixel in the gray-scale map after normalization, calculate the Grad of this pixel, according to the Grad of this pixel calculating, determine the gradient direction of this pixel.
According to the gradient direction of this pixel of determining, at 0 degree in 8 directions of decile in 360 degree angular ranges, determine the direction of this gradient direction ownership, using the direction of its ownership in character edge gradient array to be identified to numerical value that should pixel position, other position assignment of this array are-1.
Each template that this edge gradient array is corresponding with each character of preservation is mated, determine and the matching distance of each template, specifically in the time determining matching distance, according to following formula:
D = Σ i = 0 H Σ j = 0 W d ( i , j ) S
Wherein, d ( i , j ) = 0 if ( c ( i , j ) = = t ( i , j ) ) 5 if ( c ( i , j ) ! = t ( i , j ) ) , C (i, j) be that in the edge gradient array of character to be identified, i is capable, the numerical value of j row, t (i, j) is that in template, i is capable, the numerical value of j row, H is the height of normalization rear pattern plate, W is the width of normalization rear pattern plate, and the numerical value of S is according to being not equal to-1 number of times in the edge gradient array of character to be identified, and the each position of template is not equal to-1 number of times and determines.
Fig. 4 is the structural representation of character recognition device provided by the invention, and this device comprises:
Normalization module 41, for the picture that comprises character information to be identified is carried out to binary conversion treatment, the border of character to be identified in this picture after identification binary conversion treatment, according to definite border, in the samples pictures that comprises character information to be identified, intercept character zone to be identified, the character zone of this intercepting is carried out to binaryzation, normalized;
Marginal information determination module 42, for the character zone to be identified after normalized, the saltus step of identification pixel value, the position of white pixel point during according to saltus step, the position assignment 255 of respective pixel point in character edge hum pattern, other values are composed in the position of other pixels, wherein the character zone equal and opposite in direction after this character edge hum pattern and this normalization;
Gradient direction determination module 43, for identifying the pixel value of the each pixel of this character edge hum pattern, in the time recognizing the pixel value of pixel in this character edge hum pattern and be 255, calculate the Grad of this pixel, and definite ownership direction, adopt relevant position assignment in this ownership direction value edge gradient array, other position assignment of this array are-1;
Coupling identification module 44, for this edge gradient array each template corresponding with each character of preservation mated, determines matching distance, using character corresponding matching distance minimum value as recognition result.
Described normalization module 41, also, for when the drawing template establishment, carries out binary conversion treatment to the samples pictures that comprises character information, the border of character in this picture after identification binary conversion treatment; According to definite character boundary, in the samples pictures that comprises character information, intercept character zone, the character zone of this intercepting is carried out to binaryzation, normalized;
Described marginal information determination module 42, also for when the drawing template establishment, in character zone after normalized, the saltus step of identification pixel value, the position of white pixel point during according to saltus step, the position assignment 255 of respective pixel point in character edge hum pattern, other values are composed in the position of other pixels, wherein the character zone equal and opposite in direction after this character edge hum pattern and this normalization;
Described gradient direction determination module 43, also for when the drawing template establishment, identify the pixel value of each pixel in this character edge hum pattern, in the time recognizing the pixel value of pixel in this character edge hum pattern and be 255, calculate the Grad of this pixel, and determine ownership direction, and be direction value by position assignment corresponding with this pixel position in template, other position assignment are-1.
Described normalization module 41, starts specifically for four borders of the picture from binary conversion treatment, respectively to picture inner search; When search in this picture white pixel point time, determine that this white pixel point is positioned at the border of this character; According to the position of the white pixel point scanning from each boundary direction, determine the border of this character.
Described normalization module 41, also for the character zone of this intercepting is converted to gray-scale map, and is normalized;
Described gradient direction determination module 43, for the grey chromatic graph position corresponding with this pixel after normalization, calculates the Grad of this pixel according to following formula:
Gradient=dy/dx
Wherein, dy=g (i, j+1)-g (i, j-1), dx=g (i+1, j)-g (i-1, j), g (i, j) gray-scale value of this pixel correspondence position in the gray level image after normalization, i represents the row at this pixel place, and j represents the row at this pixel place, and Gradient is the Grad of this pixel of calculating;
According to this Grad calculating, compute gradient deflection;
According to this gradient direction angle, and 8 directions of dividing between 0 to 360 degree, determine the direction that this gradient direction angle belongs to.
Described coupling identification module 44, specifically for basis determine matching distance, wherein, d ( i , j ) = 0 if ( c ( i , j ) = = t ( i , j ) ) 5 if ( c ( i , j ) ! = t ( i , j ) ) , C (i, j) be that in the edge gradient array of character to be identified, i is capable, the numerical value of j row, t (i, j) is that in template, i is capable, the numerical value of j row, H is the height of normalization rear pattern plate, W is the width of normalization rear pattern plate, and the numerical value of S is according to being not equal to-1 number of times in the edge gradient array of character to be identified, and the each position of template is not equal to-1 number of times and determines.
The invention provides a kind of character identifying method and device, the method is during for character recognition to be identified and template establishment, be normalized, determine character edge hum pattern, and the value of each numerical value in definite edge gradient array, when having determined after the assignment of relevant position in edge gradient array, according to the coupling between character to be identified corresponding edge gradient array and each template corresponding to each character, determine matching distance, according to matching distance identification character.Due in the present invention according to the gradient direction of each pixel in character, as the respective value in edge gradient array, and gradient direction has stronger antijamming capability, therefore this character identifying method has stronger robustness, and the each template corresponding with each character mated in the process of identification, according to matching distance, using character corresponding matching distance minimum value as recognition result, therefore can avoid the problem of the poor robustness of character list template matches, improve the scope of application of this matching process.
Above-mentioned explanation illustrates and has described a preferred embodiment of the present invention, but as previously mentioned, be to be understood that the present invention is not limited to disclosed form herein, should not regard the eliminating to other embodiment as, and can be used for various other combinations, amendment and environment, and can, in invention contemplated scope described herein, improve by technology or the knowledge of above-mentioned design or association area.And the change that those skilled in the art carry out and variation do not depart from the spirit and scope of the present invention, all should be in the protection domain of claims of the present invention.

Claims (8)

1. a character identifying method, is characterized in that, described method comprises:
The picture that comprises character information to be identified is carried out to binary conversion treatment, the border of character in this picture after identification binary conversion treatment, according to definite border, in the samples pictures that comprises character information to be identified, intercept character zone to be identified, the character zone of this intercepting is carried out to binaryzation, normalized;
In character zone to be identified after normalized, the saltus step of identification pixel value, the position of white pixel point during according to saltus step, the position assignment 255 of respective pixel point in character edge hum pattern, other values are composed in the position of other pixels, wherein the character zone equal and opposite in direction after this character edge hum pattern and this normalization;
Identify the pixel value of each pixel in this character edge hum pattern, in the time recognizing the pixel value of pixel in this character edge hum pattern and be 255, calculate the Grad of this pixel, and definite ownership direction, adopt relevant position assignment in this ownership direction value edge gradient array, other position assignment of this array are-1;
Each template that this edge gradient array is corresponding with each character of preservation is mated, determine matching distance, using character corresponding matching distance minimum value as recognition result;
Wherein, determine that matching distance comprises:
According to D = Σ i = 0 H Σ j = 0 W d ( i , j ) S Determine matching distance, wherein, d ( i , j ) = 0 if ( c ( i , j ) = = t ( i , j ) ) 5 if ( c ( i , j ) ! = t ( i , j ) ) , C (i, j) be that in the edge gradient array of character to be identified, i is capable, the numerical value of j row, t (i, j) is that in template, i is capable, the numerical value of j row, H is the height of normalization rear pattern plate, W is the width of normalization rear pattern plate, and the numerical value of S is according to being not equal to-1 number of times in the edge gradient array of character to be identified, and the each position of template is not equal to-1 number of times and determines.
2. the method for claim 1, is characterized in that, creates and preserve for each template of each character to comprise:
The samples pictures that comprises character information is carried out to binary conversion treatment, the border of character in this picture after identification binary conversion treatment;
According to definite character boundary, in the samples pictures that comprises character information, intercept character zone, the character zone of this intercepting is carried out to binaryzation, normalized;
In character zone after normalized, the saltus step of identification pixel value, the position of white pixel point during according to saltus step, the position assignment 255 of respective pixel point in character edge hum pattern, other values are composed in the position of other pixels, wherein the character zone equal and opposite in direction after this character edge hum pattern and this normalization;
Identify the pixel value of each pixel in this character edge hum pattern, in the time recognizing the pixel value of pixel in this character edge hum pattern and be 255, calculate the Grad of this pixel, and definite ownership direction, be direction value by position assignment corresponding with this pixel position in template, other position assignment are-1.
3. method as claimed in claim 1 or 2, is characterized in that, after described identification binary conversion treatment, in this picture, the border of character comprises:
Four borders of the picture from binary conversion treatment start, respectively to picture inner search;
When search in this picture white pixel point time, determine that this white pixel point is positioned at the border of this character;
According to the position of the white pixel point scanning from each boundary direction, determine the border of this character.
4. method as claimed in claim 1 or 2, is characterized in that, the character zone of this intercepting is carried out after binaryzation, normalized, and the method also comprises:
The character zone of this intercepting is converted to gray-scale map, and is normalized;
The Grad of described this pixel of calculating, and determine that ownership deflection comprises:
In grey chromatic graph after normalization, on the position corresponding with this pixel, calculate the Grad of this pixel according to following formula:
Gradient=dy/dx
Wherein, dy=g (i, j+1)-g (i, j-1), dx=g (i+1, j)-g (i-1, j), g (i, j) gray-scale value of this pixel correspondence position in the gray level image after normalization, i represents the row at this pixel place, and j represents the row at this pixel place, and Gradient is the Grad of this pixel of calculating;
According to this Grad calculating, compute gradient deflection;
According to this gradient direction angle, and 8 directions of dividing between 0 to 360 degree, determine the direction that this gradient direction angle belongs to.
5. a character recognition device, is characterized in that, described device comprises:
Normalization module, for the picture that comprises character information to be identified is carried out to binary conversion treatment, the border of character to be identified in this picture after identification binary conversion treatment, according to definite border, in the samples pictures that comprises character information to be identified, intercept character zone to be identified, the character zone of this intercepting is carried out to binaryzation, normalized;
Marginal information determination module, for the character zone to be identified after normalized, the saltus step of identification pixel value, the position of white pixel point during according to saltus step, the position assignment 255 of respective pixel point in character edge hum pattern, other values are composed in the position of other pixels, wherein the character zone equal and opposite in direction after this character edge hum pattern and this normalization;
Gradient direction determination module, for identifying the pixel value of the each pixel of this character edge hum pattern, in the time recognizing the pixel value of pixel in this character edge hum pattern and be 255, calculate the Grad of this pixel, and definite ownership direction, adopt relevant position assignment in this ownership direction value edge gradient array, other position assignment of this array are-1;
Coupling identification module, for this edge gradient array is mated with each template of preservation, determines matching distance, using character corresponding matching distance minimum value as recognition result, wherein, determines that matching distance comprises:
According to D = Σ i = 0 H Σ j = 0 W d ( i , j ) S Determine matching distance, wherein, d ( i , j ) = 0 if ( c ( i , j ) = = t ( i , j ) ) 5 if ( c ( i , j ) ! = t ( i , j ) ) , C (i, j) be that in the edge gradient array of character to be identified, i is capable, the numerical value of j row, t (i, j) is that in template, i is capable, the numerical value of j row, H is the height of normalization rear pattern plate, W is the width of normalization rear pattern plate, and the numerical value of S is according to being not equal to-1 number of times in the edge gradient array of character to be identified, and the each position of template is not equal to-1 number of times and determines.
6. device as claimed in claim 5, is characterized in that, described normalization module also, for when the drawing template establishment, is carried out binary conversion treatment to the samples pictures that comprises character information, the border of character in this picture after identification binary conversion treatment; According to definite character boundary, in the samples pictures that comprises character information, intercept character zone, the character zone of this intercepting is carried out to binaryzation, normalized;
Described marginal information determination module, also for when the drawing template establishment, in character zone after normalized, the saltus step of identification pixel value, the position of white pixel point during according to saltus step, the position assignment 255 of respective pixel point in character edge hum pattern, other values are composed in the position of other pixels, wherein the character zone equal and opposite in direction after this character edge hum pattern and this normalization;
Described gradient direction determination module, also for when the drawing template establishment, identify the pixel value of each pixel in this character edge hum pattern, in the time recognizing the pixel value of pixel in this character edge hum pattern and be 255, calculate the Grad of this pixel, and determine ownership direction, and be direction value by position assignment corresponding with this pixel position in template, other position assignment are-1.
7. the device as described in claim 5 or 6, is characterized in that, described normalization module starts specifically for four borders of the picture from binary conversion treatment, respectively to picture inner search; When search in this picture white pixel point time, determine that this white pixel point is positioned at the border of this character; According to the position of the white pixel point scanning from each boundary direction, determine the border of this character.
8. the device as described in claim 5 or 6, is characterized in that, described normalization module also for the character zone of this intercepting is converted to gray-scale map, and is normalized;
Described gradient direction determination module, for the grey chromatic graph position corresponding with this pixel after normalization, calculates the Grad of this pixel according to following formula:
Gradient=dy/dx
Wherein, dy=g (i, j+1)-g (i, j-1), dx=g (i+1, j)-g (i-1, j), g (i, j) gray-scale value of this pixel correspondence position in the gray level image after normalization, i represents the row at this pixel place, and j represents the row at this pixel place, and Gradient is the Grad of this pixel of calculating;
According to this Grad calculating, compute gradient deflection;
According to this gradient direction angle, and 8 directions of dividing between 0 to 360 degree, determine the direction that this gradient direction angle belongs to.
CN201210177765.3A 2012-05-31 2012-05-31 Character recognition method and device Expired - Fee Related CN102750530B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210177765.3A CN102750530B (en) 2012-05-31 2012-05-31 Character recognition method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210177765.3A CN102750530B (en) 2012-05-31 2012-05-31 Character recognition method and device

Publications (2)

Publication Number Publication Date
CN102750530A CN102750530A (en) 2012-10-24
CN102750530B true CN102750530B (en) 2014-11-26

Family

ID=47030696

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210177765.3A Expired - Fee Related CN102750530B (en) 2012-05-31 2012-05-31 Character recognition method and device

Country Status (1)

Country Link
CN (1) CN102750530B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104281850B (en) * 2013-07-09 2020-01-31 腾讯科技(深圳)有限公司 character area identification method and device
CN108242058A (en) * 2016-12-26 2018-07-03 深圳怡化电脑股份有限公司 Image boundary lookup method and device
CN107239784A (en) * 2017-07-03 2017-10-10 福建中金在线信息科技有限公司 A kind of image identification method, device, electronic equipment and readable storage medium storing program for executing
CN108805115A (en) * 2018-04-24 2018-11-13 五八同城信息技术有限公司 Recognition methods, device, equipment and the storage medium of word in a kind of picture
CN111079735B (en) * 2018-10-22 2023-12-22 莱芜钢铁集团电子有限公司 Casting blank end face character recognition method and device
CN113255674A (en) * 2020-09-14 2021-08-13 深圳怡化时代智能自动化***有限公司 Character recognition method, character recognition device, electronic equipment and computer-readable storage medium
CN113239929A (en) * 2021-04-30 2021-08-10 南京钢铁股份有限公司 Method for identifying numbers in computer display screen
CN113989795B (en) * 2021-12-02 2024-06-21 安徽翼迈科技股份有限公司 Water meter bubble early warning method based on template graph traversal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101515325A (en) * 2009-04-08 2009-08-26 北京邮电大学 Character extracting method in digital video based on character segmentation and color cluster
CN101751565A (en) * 2008-12-10 2010-06-23 中国科学院自动化研究所 Method for character identification through fusing binary image and gray level image
CN102147858A (en) * 2011-03-31 2011-08-10 重庆大学 License plate character identification method
CN102426649A (en) * 2011-10-13 2012-04-25 石家庄开发区冀科双实科技有限公司 Simple steel seal digital automatic identification method with high accuracy rate

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101751565A (en) * 2008-12-10 2010-06-23 中国科学院自动化研究所 Method for character identification through fusing binary image and gray level image
CN101515325A (en) * 2009-04-08 2009-08-26 北京邮电大学 Character extracting method in digital video based on character segmentation and color cluster
CN102147858A (en) * 2011-03-31 2011-08-10 重庆大学 License plate character identification method
CN102426649A (en) * 2011-10-13 2012-04-25 石家庄开发区冀科双实科技有限公司 Simple steel seal digital automatic identification method with high accuracy rate

Also Published As

Publication number Publication date
CN102750530A (en) 2012-10-24

Similar Documents

Publication Publication Date Title
CN102750530B (en) Character recognition method and device
Luvizon et al. A video-based system for vehicle speed measurement in urban roadways
CN101334836B (en) License plate positioning method incorporating color, size and texture characteristic
CN100377167C (en) Two-dimensional code area precisive positioning method for two-dimensional recognition
CN111179152B (en) Road identification recognition method and device, medium and terminal
CN109726717B (en) Vehicle comprehensive information detection system
CN104616009A (en) Character cutting and recognizing method
CN103034848B (en) A kind of recognition methods of form types
CN106203433A (en) In a kind of vehicle monitoring image, car plate position automatically extracts and the method for perspective correction
CN106960208A (en) A kind of instrument liquid crystal digital automatic segmentation and the method and system of identification
CN105160309A (en) Three-lane detection method based on image morphological segmentation and region growing
CN101339601B (en) License plate Chinese character recognition method based on SIFT algorithm
CN104794421A (en) QR (quick response) code positioning and recognizing methods
CN103870803A (en) Vehicle license plate recognition method and system based on coarse positioning and fine positioning fusion
CN102693431B (en) Method and device for identifying type of white number plate
CN103116751A (en) Automatic license plate character recognition method
CN102779275A (en) Paper characteristic identification method and relative device
CN104751187A (en) Automatic meter-reading image recognition method
CN109902758B (en) Deep learning-based lane area identification data set calibration method
CN105308944A (en) Classifying objects in images using mobile devices
CN104700062A (en) Method and equipment for identifying two-dimension code
CN102243705B (en) Method for positioning license plate based on edge detection
CN105303153A (en) Vehicle license plate identification method and apparatus
CN102542244A (en) Face detection method and system and computer program product
CN103593695A (en) Method for positioning DPM two-dimension code area

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: LIU ZHONGXUAN TONG HUIYONG

Effective date: 20131121

Owner name: HE JIANGTAO

Free format text: FORMER OWNER: XINZHENG ELECTRONIC TECHNOLOGY (BEIJING) CO., LTD.

Effective date: 20131121

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20131121

Address after: 100085, A, block 6A, block 28, information road, Beijing, Haidian District

Applicant after: He Jiangtao

Applicant after: Liu Zhongxuan

Applicant after: Tong Huiyong

Address before: 100085, room 228, Section 2, building 1, building C, 3rd Street, Haidian District, Beijing

Applicant before: Xinzheng Electronic Technology (Beijing) Co., Ltd.

ASS Succession or assignment of patent right

Free format text: FORMER OWNER: LIU ZHONGXUAN TONG HUIYONG

Effective date: 20140418

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20140418

Address after: 100085, A, block 6A, block 28, information road, Beijing, Haidian District

Applicant after: He Jiangtao

Address before: 100085, A, block 6A, block 28, information road, Beijing, Haidian District

Applicant before: He Jiangtao

Applicant before: Liu Zhongxuan

Applicant before: Tong Huiyong

C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20141126

Termination date: 20190531

CF01 Termination of patent right due to non-payment of annual fee