The content of the invention
The embodiment of the present application provides a kind of method and apparatus of numeral identification, to pass through the digital level in image
Characteristic parameter goes to identify the digital method in image with vertical features parameter, Statistical error image flow, reduces flow and sentences
Disconnected number, and by searching default horizontal map table, horizontal property parameters and the mapping relations of numeral are determined, so as to enter one
Step improves the speed of numeral identification, improves recognition efficiency.
One kind numeral that the embodiment of the present application provides knows method for distinguishing, including:
The image for including individual digit is analyzed, determines the digital horizontal property parameters in the image;
Judge whether include the horizontal property parameters and the mapping relations of numeral in default horizontal map table;
If, it is determined that the numeral corresponding to the horizontal property parameters is the numeral in described image;Otherwise, according to institute
The digital vertical features parameter in horizontal property parameters and described image is stated, determines the numeral in described image.
In the embodiment of the present application, go to identify image by the digital horizontal property parameters in image and vertical features parameter
In numeral, Statistical error image flow, reduce flow and judge number, and by searching default horizontal map table, really
Determine horizontal property parameters and the mapping relations of numeral, so as to further increase the speed of numeral identification, improve recognition efficiency.
It is preferred that the digital vertical features parameter in the horizontal property parameters and described image, determines institute
The numeral corresponding to image is stated, including:
According to the horizontal property parameters, vertical mapping table is determined by searching default identification mapping table, wherein, it is described
Identify that mapping table includes mapping relations of the horizontal property parameters with default vertical mapping table;
Digital vertical features parameter in the vertical mapping table and described image of determination, determines described image institute
Corresponding numeral.
In the embodiment of the present application, the numeral in image is identified by way of identifying that mapping table coordinates with vertical mapping table,
Reduce the judgement number required for identification numeral, improve the speed of numeral identification.
It is preferred that the vertical mapping table includes, the mapping relations of vertical features parameter and numeral;
Digital vertical features parameter in the vertical mapping table and described image of determination, determines described image institute
Corresponding numeral, including:
Digital vertical features parameter in described image, by searching the vertical mapping table determined, it is determined that described
Numeral corresponding to image.
It is preferred that this method also includes:
Numeral in described image, determine the digital width in described image;
If the digital width in described image is in preset characters width range, it is determined that the number corresponding to described image
Word.
In the embodiment of the present application, identifying the numeral in image by way of the digital width for comparing digital picture, subtract
Lack the judgement number required for identification numeral, improve the speed of numeral identification.
It is preferred that the vertical mapping table includes, the mapping relations of vertical features parameter and numeral, wherein, the mapping
Relation includes at least one vertical features parameter to same digital mapping relations.
A kind of equipment for numeral identification that the embodiment of the present application provides, the equipment include:
Determining unit, for analyzing the image for including individual digit, determine the digital level in the image
Characteristic parameter;
Judging unit, for judging that whether include the horizontal property parameters in default horizontal map table reflects with digital
Penetrate relation;
Processing unit, if for, it is determined that the numeral corresponding to the horizontal property parameters is the number in described image
Word;Otherwise, the digital vertical features parameter in the horizontal property parameters and described image, is determined in described image
Numeral.
In the embodiment of the present application, go to identify image by the digital horizontal property parameters in image and vertical features parameter
In numeral, Statistical error image flow, reduce flow and judge number, and by searching default horizontal map table, really
Determine horizontal property parameters and the mapping relations of numeral, so as to further increase the speed of numeral identification, improve recognition efficiency.
It is preferred that digital vertical features of the processing unit in the horizontal property parameters and described image
Parameter, the numeral corresponding to described image is determined, is specifically used for:
According to the horizontal property parameters, vertical mapping table is determined by searching default identification mapping table, wherein, it is described
Identify that mapping table includes mapping relations of the horizontal property parameters with default vertical mapping table;
Digital vertical features parameter in the vertical mapping table and described image of determination, determines described image institute
Corresponding numeral.
In the embodiment of the present application, the numeral in image is identified by way of identifying that mapping table coordinates with vertical mapping table,
Reduce and judge number required for identification numeral, improve the digital speed identified.
It is preferred that the vertical mapping table includes, the mapping relations of vertical features parameter and numeral;
The processing unit is according to the digital vertical features parameter in the vertical mapping table and described image of determination, really
Determine the numeral corresponding to described image, be specifically used for:
Digital vertical features parameter in described image, by searching the vertical mapping table determined, it is determined that described
Numeral corresponding to image.
It is preferred that the processing unit is additionally operable to:
Numeral in described image, determine the digital width in described image;
If the digital width in described image is in preset characters width range, it is determined that the number corresponding to described image
Word.
In the embodiment of the present application, identifying the numeral in image by way of the digital width for comparing digital picture, subtract
Lack the judgement number required for identification numeral, improve the speed of numeral identification.
It is preferred that the vertical mapping table includes, the mapping relations of vertical features parameter and numeral, wherein, the mapping
Relation includes at least one vertical features parameter to same digital mapping relations.
Embodiment
The embodiment of the present application provides a kind of method and apparatus of numeral identification, to by using the level of digital picture
Characteristic parameter and the method for vertical features parameter packet, identify the numeral corresponding to digital picture, lift the efficiency of numeral identification.
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the application is clearly and completely retouched
State, it is clear that described embodiment is some embodiments of the present application, rather than whole embodiments.Based in the application
Embodiment, the every other embodiment that those of ordinary skill in the art are obtained under the premise of creative work is not made, all
Belong to the scope of the application protection.
The embodiment of the present application is by the 4th numeral method section in table 1, the 5th numeral method section, the 6th numeral method
Section and the 7th numeral method section are divided into horizontal property parameters group, by the first numeral method section, the second numeral method section
And the 3rd numeral method section be divided into vertical features parameter group.Therefore, binary numeral of horizontal property parameters group is turned
Metric numeral is changed to, that is, obtains horizontal property parameters, and binary numeral of vertical features parameter group is converted to ten
The numeral of system, that is, vertical features parameter is obtained, so as to obtain the coding schedule of horizontal property parameters and vertical features parameter, table 2.
Table 2
Learnt with reference to table 2, when the numeral corresponding to image is 2 or 5 or 6, horizontal property parameters are to reflect one by one with numeral
The mapping relations penetrated.That is, if the numeral corresponding to image is 2, the digital horizontal property parameters in the image are 6;If figure
As corresponding numeral be 5, then the digital horizontal property parameters in the image be 9;If the numeral corresponding to image is 6,
Digital horizontal property parameters in the image are 11.Therefore, according to above-mentioned corresponding relation, default horizontal map table table is generated
3.Look-up table 3, by horizontal property parameters, determine the numeral corresponding to image.
Table 3
Learnt with reference to table 2, if the numeral corresponding to image is 1 or 3 or 7, the digital horizontal properties ginseng in the image
Number is 5;If the numeral corresponding to image is 8 or 0, the digital horizontal property parameters in the image are 15;If image
Corresponding numeral is 4 or 9, then the digital horizontal property parameters in the image are 13.Therefore, according to above-mentioned corresponding pass
System, generate default identification mapping table table 4.Look-up table 4, by horizontal property parameters, it is determined that vertical mapping table.
Table 4
Wherein, the first vertical mapping table includes, vertical features parameter with numeral 1 mapping relations, vertical features parameter with
The mapping relations of the mapping relations and vertical features parameter and numeral 7 of numeral 3.
Second vertical mapping table includes, the mapping relations and vertical features parameter and number of vertical features parameter and numeral 0
The mapping relations of word 8.
3rd vertical mapping table includes, the mapping relations and vertical features parameter and number of vertical features parameter and numeral 4
The mapping relations of word 9.
With reference to vertical features parameter in table 2, pre-set the first vertical mapping table table 5, the second vertical mapping table table 6 and
3rd vertical mapping table table 7.
Therefore, if can not determine the numeral corresponding to horizontal property parameters by look-up table 3, look-up table 4 determines the water
Vertical mapping table corresponding to flat characteristic parameter, then the vertical mapping table is searched, determine that image institute is right according to vertical features parameter
The numeral answered.
Table 5
Table 6
Table 7
Referring to Fig. 2, the embodiment of the present application provides numeral and knows method for distinguishing, and this method includes:
S201, the image for including individual digit is analyzed, determine the digital horizontal property parameters in the image;
S202, judge whether include the horizontal property parameters and the mapping relations of numeral in default horizontal map table;
If the numeral corresponding to S203, it is determined that the horizontal property parameters is the numeral in described image;Otherwise,
Digital vertical features parameter in the horizontal property parameters and described image, determines the numeral in described image.
Specifically, whether step S202 includes, according to the horizontal property parameters of determination, wrapped in determined level mapping table table 3
Include the horizontal property parameters and the mapping relations of numeral.
If horizontal map table includes the horizontal property parameters and the mapping relations of numeral, using the mapping relations,
The numeral corresponding to the horizontal property parameters is determined, obtains the numeral corresponding to described image;
If not including the horizontal property parameters and the mapping relations of numeral, the method in reference picture 3.
In summary, if the numeral in image is 2 or 5 or 6, the side that the numeral provided by the embodiment of the present application identifies
Method, identify that the numeral in the image need to only judge 1 time.
Reference picture 3, the digital vertical features in step S203 in the horizontal property parameters and described image
Parameter, the numeral corresponding to described image is determined, including:
S301, according to the horizontal property parameters, by searching default identification mapping table, it is determined that vertical mapping table;
S302, according to the digital vertical features parameter in the vertical mapping table and described image of determination, it is determined that described
Numeral corresponding to image.
Wherein, the identification mapping table includes mapping relations of the horizontal property parameters with default vertical mapping table
Specifically, step S301 includes:
If the numeral in image is not 2 or 5 or 6, the digital horizontal property parameters in image, reflected using identification
Horizontal property parameters and the mapping relations of vertical mapping table, determine that the horizontal property parameters correspond to vertical mapping table in firing table table 4
For table 5 or table 6 or table 7.
Wherein, the vertical mapping table includes, the mapping relations of vertical features parameter and numeral;
Now, step S302, including:
Digital vertical features parameter in described image, by searching the vertical mapping table determined, it is determined that described
Numeral corresponding to image.
Specifically, also include referring to Fig. 4, this method:
S401, the numeral in described image, determine the digital width in described image;
If the digital width in S402, described image is in preset characters width range, it is determined that described image institute is right
The numeral answered.
Wherein, the preset characters width range is to be determined according to the height and the width of described image.
Step S402, including:
If the digital width in described image is less than or equal to default character duration, it is determined that described image institute is right
The numeral answered.
Specifically, this method also includes:
If the digital depth-width ratio in described image is in the range of default depth-width ratio, it is determined that the number corresponding to described image
Word;
Specifically, if the digital depth-width ratio in described image is more than or equal to 3, it is determined that the number corresponding to described image
Word is 1.
Referring to table 8, method for distinguishing is known by one kind numeral provided in the embodiment of the present application, it is determined that in an average image
Numeral needs to carry outSecondary identification judges, reduces the numeral in identification image
Required number, the speed of numeral identification is improved, improves recognition efficiency.
Table 8
The identification of numeral could be carried out because threading method needs joint seven segment digital tubes display segment, and shows the electronics of numeral
The display effect of the intersection of screen is poor, causes to know at the first numeral method section 101 and/or the 3rd numeral method section 103
Not mistake.For example, when normally display should be 5 to vertical features parameter, due to the first numeral method section 101 and/or the 3rd number
Mistake is shown at code pipe display segment 103, the vertical features parameter for causing the numeral in image to determine is 0 or 1 or 4;When vertical
When the straight normal display of characteristic parameter should be 7, due to showing at the first numeral method section 101 and/or the 3rd numeral method section 103
Show mistake, the vertical features parameter for causing the numeral in image to determine is 2 or 3 or 6.Due to the mistake of vertical features parameter
Numeral identification will be caused obstacle occur, particularly in the case of identification numeral 7 and numeral 9.
However, the vertical mapping table in the numeral knowledge method for distinguishing provided due to the embodiment of the present application is included, vertically
Characteristic parameter and the mapping relations of numeral, wherein, the mapping relations include at least one vertical features parameter to same numeral
Mapping relations.It is, the mapping relations of vertical features parameter and numeral are one-to-one mapping relations, or hung down to be multiple
Straight characteristic parameter and same digital mapping relations.Now, the first vertical mapping table be table 9, the second vertical mapping table be table 10
And the 3rd vertical mapping table be table 11.
Table 9
Table 10
Table 11
It can be seen from above-mentioned analysis, the numeral that the embodiment of the present application provides knows method for distinguishing, not only increases digital identification
Efficiency, also improve numeral identification accuracy, improve discrimination.
Method for distinguishing is known for the numeral of the embodiment of the present application offer can be better understood from, with reference to Fig. 5 pairs of flow chart
The embodiment of the present application further explains.
S501, the image comprising individual digit character got is analyzed, obtain the numerical character in the image
Horizontal property parameters;
If S502, the horizontal property parameters are 6 or 9 or 11, by tabling look-up 3, the numeral in described image is determined;If should
Horizontal property parameters are 5 or 15 or 13, by tabling look-up 4, determine the vertical mapping table corresponding to the horizontal property parameters;
S503, above-mentioned image is analyzed again, obtain the vertical features parameter of the numerical character in the image;If step
The vertical mapping table determined in rapid S502 is table 5, it is determined that whether the width of the numerical character in image is wide in default character
In the range of degree, if, it is determined that the numeral in described image is 1, and otherwise inquiry table 5, determine the numeral in described image;If step
The vertical mapping table determined in rapid S502 is table 6 or table 7, then determines described image by inquiring about the vertical mapping table determined respectively
In numeral.
Referring to Fig. 6, a kind of equipment for numeral identification that the embodiment of the present application provides, including:.
Determining unit 601, for analyzing the image for including individual digit, determine the digital water in the image
Flat characteristic parameter;
Judging unit 602, for judging whether include the horizontal property parameters and numeral in default horizontal map table
Mapping relations;
Processing unit 603, if for, it is determined that the numeral corresponding to the horizontal property parameters is in described image
Numeral;Otherwise, the digital vertical features parameter in the horizontal property parameters and described image, determines described image
In numeral.
Specifically, the processing unit 603 is digital vertical in the horizontal property parameters and described image
Characteristic parameter, the numeral corresponding to described image is determined, is specifically used for:
According to the horizontal property parameters, vertical mapping table is determined by searching default identification mapping table, wherein, it is described
Identify that mapping table includes mapping relations of the horizontal property parameters with default vertical mapping table;
Digital vertical features parameter in the vertical mapping table and described image of determination, determines described image institute
Corresponding numeral.
Specifically, the vertical mapping table includes, the mapping relations of vertical features parameter and numeral;
The processing unit 603 is joined according to the digital vertical features in the vertical mapping table and described image of determination
Number, determines the numeral corresponding to described image, is specifically used for:
Digital vertical features parameter in described image, by searching the vertical mapping table determined, it is determined that described
Numeral corresponding to image.
Specifically, the processing unit 603 is additionally operable to:
Numeral in described image, determine the digital width in described image;
If the digital width in described image is in the range of predetermined width, it is determined that the numeral corresponding to described image.
Specifically, the vertical mapping table includes, the mapping relations of vertical features parameter and numeral, wherein, the mapping
Relation includes at least one vertical features parameter to same digital mapping relations.
In summary, the embodiment of the present application provides a kind of method and apparatus of numeral identification, to default by searching
Horizontal map table, determine horizontal property parameters with numeral mapping relations, reduce identification image in numeral required for
Number, the speed of numeral identification is improved, improves recognition efficiency.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, system or computer program
Product.Therefore, the application can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.Moreover, the application can use the computer for wherein including computer usable program code in one or more
The shape for the computer program product that usable storage medium is implemented on (including but is not limited to magnetic disk storage and optical memory etc.)
Formula.
The application is with reference to the flow according to the method for the embodiment of the present application, equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram
Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real
The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the application to the application
God and scope.So, if these modifications and variations of the application belong to the scope of the application claim and its equivalent technologies
Within, then the application is also intended to comprising including these changes and modification.