CN106570538A - Character picture processing method and apparatus thereof - Google Patents

Character picture processing method and apparatus thereof Download PDF

Info

Publication number
CN106570538A
CN106570538A CN201510653925.0A CN201510653925A CN106570538A CN 106570538 A CN106570538 A CN 106570538A CN 201510653925 A CN201510653925 A CN 201510653925A CN 106570538 A CN106570538 A CN 106570538A
Authority
CN
China
Prior art keywords
picture
character
font
feature stroke
stroke
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510653925.0A
Other languages
Chinese (zh)
Other versions
CN106570538B (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.)
BEIJING BEIDA FOUNDER ELECTRONICS Co Ltd
New Founder Holdings Development Co ltd
Original Assignee
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CN201510653925.0A priority Critical patent/CN106570538B/en
Publication of CN106570538A publication Critical patent/CN106570538A/en
Application granted granted Critical
Publication of CN106570538B publication Critical patent/CN106570538B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/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/245Font recognition

Abstract

The invention provides a character picture processing method and an apparatus thereof. The method comprises the following steps of receiving a character picture to be processed and characteristic strokes of a character in the character picture to be processed; identifying a character profile, generating a character profile picture and acquiring a data set corresponding to the character profile picture; determining a characteristic stroke data subset of the characteristic strokes from the data set, and according to the characteristic stroke data subset, generating a characteristic stroke picture; from a database storing each reference characteristic stroke data corresponding to each font type respectively, selecting reference characteristic stroke data corresponding to the characteristic strokes under various kinds of font type, and generating a reference characteristic stroke picture corresponding to each reference characteristic stroke data; and calculating a similarity of the characteristic stroke picture and each reference characteristic stroke picture, and determining the font type corresponding to the reference characteristic stroke picture with the highest similarity to be a target font type which the character in the character picture to be processed belongs to. A character font in the character picture can be conveniently and high-efficiently matched.

Description

Character image processing method and device
Technical field
The invention belongs to computer library technical field, more particularly, to a kind of character image processing method and Device.
Background technology
According to different design requirements, various character designs emerge in an endless stream, and have reached and have such as attracted The purposes such as popular eyeball, enhancing the effect of publicity.
In certain situations it is desirable to judge that according to existing character picture the character design style belongs to that A font, or it is similar to which kind of font.Wherein, character picture is the picture for including character.
And font type in the market is various, if manual type is matching, difficulty greatly, efficiency It is extremely low.So need badly it is a kind of can be automatically according to the method for the similar font of character picture match.
The content of the invention
For above-mentioned problem, the present invention provides a kind of character image processing method and device, uses Cause that difficulty of matching is big, efficiency is low in overcome artificial matching character picture in the way of the affiliated font of character Defect.
The invention provides a kind of character image processing method, including:
Receive the feature of character in the described pending character picture of pending character picture and user input Stroke;
The profile of character in the pending character picture is recognized, character outline picture is generated, and is obtained institute The corresponding data acquisition system of character outline picture is stated, the point coordinates included in the data acquisition system is used to describe institute State character outline curve;
Feature stroke data subclass corresponding with the feature stroke is determined from the data acquisition system, Feature stroke picture corresponding with the feature stroke is generated according to the feature stroke data subclass;
Distinguish in the data base of corresponding each fixed reference feature stroke data from each font classification that is stored with, select Fixed reference feature stroke data under all kinds of font classifications corresponding with the feature stroke, and generate and each institute State the corresponding fixed reference feature stroke picture of fixed reference feature stroke data;
Calculate similarity of the feature stroke picture respectively with each fixed reference feature stroke picture, and really Surely the font classification corresponding to the fixed reference feature stroke picture with highest similarity is the pending character Target font classification in picture belonging to character.
The invention provides a kind of character picture processing device, including:
First receiver module, for receiving the described pending word of pending character picture and user input The feature stroke of character in symbol picture;
Profile processing module, for recognizing the profile of character in the pending character picture, generates character Profile picture, and the corresponding data acquisition system of the character outline picture is obtained, include in the data acquisition system Point coordinates be used for the character outline curve is described;
Fisrt feature stroke processing module, for determining from the data acquisition system and the feature stroke Corresponding feature stroke data subclass, generates and the feature according to the feature stroke data subclass The corresponding feature stroke picture of stroke;
Second feature stroke processing module, for corresponding each with reference to special from each font classification difference that is stored with Levy in the data base of stroke data, select the reference under all kinds of font classifications corresponding with the feature stroke Feature stroke data, and generate fixed reference feature stroke picture corresponding with each fixed reference feature stroke data;
First computing module, for calculate the feature stroke picture respectively with each fixed reference feature stroke The similarity of picture, and determine the font class corresponding to the fixed reference feature stroke picture with highest similarity Target font classification that Wei be in the pending character picture belonging to character.
Character image processing method and device that the present invention is provided, for need to carry out font matching wait locate For reason character picture, character outline picture is firstly generated, according to the character included by character outline picture The feature stroke of the character of contour curve data acquisition system and user input, generates feature stroke picture; Secondly, select and user input in each fixed reference feature stroke data included under each font classification The corresponding each fixed reference feature stroke data of feature stroke, generates each fixed reference feature stroke picture;Further, will The corresponding feature stroke picture of pending character picture carries out similarity meter with each fixed reference feature stroke picture Calculate, it is determined that the font classification corresponding to the fixed reference feature stroke picture with highest similarity is pending word Target font classification in symbol picture belonging to character.By carrying out sophisticated category to font, by above-mentioned spy The mode of stroke matching is levied, accurately, easily and efficiently can be matched in character picture corresponding to character Font.
Description of the drawings
Fig. 1 is the flow chart of character image processing method embodiment of the present invention;
Fig. 2 is a character picture providing in the embodiment of the present invention;
Fig. 3 is the character outline picture generated according to the character picture in Fig. 2;
Fig. 4 is the feature stroke picture of the point generated according to the character picture in Fig. 2;
Fig. 5 is the feature stroke picture of the cross break generated according to the character picture in Fig. 2;
Fig. 6 is the feature stroke picture of the lifting-hook generated according to the character picture in Fig. 2;
Fig. 7 is the flow chart of character image processing method embodiment of the present invention two;
Fig. 8 is the structural representation of character picture processing device embodiment of the present invention;
Fig. 9 is the structural representation of character picture processing device embodiment of the present invention two.
Specific embodiment
Fig. 1 is the flow chart of character image processing method embodiment of the present invention, the method can by with Manage device to perform, the processing meanss can be integrated in user equipment, in such as computer.As shown in figure 1, The method comprises the steps:
In the described pending character picture of step 101, the pending character picture of reception and user input The feature stroke of character.
In the present embodiment, the character quantity included in above-mentioned pending character picture is one.For a width For including the picture of multiple characters, can be cut in advance include single character one by one Character picture, and then processed using the methods described for being carried out example offer.
After processing meanss receive above-mentioned character picture, user can be directed to the word in the character picture Symbol selects its feature stroke, and then the feature stroke input processing device that will be selected.
Specifically, on display interface is received, feature stroke option, the choosing of this feature stroke can be shown Various features stroke is contained in, such as:Point, cross break, lifting-hook, slash, right-falling stroke etc., user can be with Operated selecting the feature stroke of character in the character picture being input into by choosing, this feature stroke can be One can also be multiple.
What deserves to be explained is, user when feature stroke is selected, as far as possible selects not intersect with other strokes Or intersect less stroke.
By taking the word forever shown in Fig. 2 as an example, the feature stroke that user selects is point, cross break, lifting-hook.
Step 102, the profile for recognizing character in the pending character picture, generate character outline picture, And the corresponding data acquisition system of the character outline picture is obtained, the point coordinates included in the data acquisition system is used In the description character outline curve.
Specifically, pending character picture can be resolved to array of pixels, each array of pixels is illustrated The position of corresponding pixel points and the color of pixel.And then can be with the pending character of receiving user's input The color of character in picture, wherein, user can select the color of the character in color options table. So as to by the color filling of color in each pixel and the unmatched pixel of color of the character with default Background colour, such as white.So as to, remaining region is the region that character is located, and then by character institute In region, above-mentioned background colour is also filled in addition to boundary line, character outline picture is obtained, as shown in Figure 3.
In addition, after character outline picture is obtained, obtaining the corresponding data set of character outline picture Close, will character outline picture change into point coordinates describe data acquisition system, to describe the profile of the character Curve.Specifically, can be with the bottom left vertex of character outline picture as zero, pixel is coordinate list Coordinate system is set up in position, then the coordinate figure of each pixel according to character outline picture under the coordinate system, Generate the data acquisition system described with point coordinates.
Step 103, feature stroke number corresponding with the feature stroke is determined from the data acquisition system According to subclass, feature pen corresponding with the feature stroke is generated according to the feature stroke data subclass Picture piece.
After having been received by the feature stroke of user input and getting above-mentioned data acquisition system, Ke Yicong The corresponding feature stroke data subclass of this feature stroke is identified in the data acquisition system.Because above-mentioned data The data of each stroke in above-mentioned character are contained in set, that is, constitutes each coordinate points for comparing.So as to, Stroke feature analysis can be carried out to above-mentioned data acquisition system with reference to the feature stroke of user input, to determine The data subset for going out this feature stroke for wherein including is closed, it is thus possible to according to this feature stroke data Set generates feature stroke picture corresponding with feature stroke.Wherein, due to the feature stroke number for identifying According to subclass constitute be feature stroke contour line, can in the contour line Fill Color such as black, Such that it is able to the spy that the feature outline strokes for being filled with black are saved as white background, black fore directly Stroke picture is levied, several feature stroke pictures as shown in Fig. 4, Fig. 5, Fig. 6.
Step 104, the data that corresponding each fixed reference feature stroke data is distinguished from each font classification that is stored with In storehouse, the fixed reference feature stroke data under all kinds of font classifications corresponding with the feature stroke is selected, and Generate fixed reference feature stroke picture corresponding with each fixed reference feature stroke data.
In the present embodiment, above-mentioned data base is pre-build, in the data base, has preserved font classification information, And under each font classification each fixed reference feature stroke fixed reference feature stroke data.Wherein, the reference Feature stroke data can be obtained from character library.The fixed reference feature stroke data describes correspondence reference The point coordinates information of feature stroke.
Wherein, the classification fineness to font, can determine according to actual needs, under each font classification A font can only be included, it is also possible to comprising a few money fonts.In the present embodiment, only with each font class Illustrate as a example by a font is only included under other.
The data of multiple fixed reference feature strokes that category font packet contains can be included under each font classification, i.e., Fixed reference feature stroke data, point coordinates information of the data for fixed reference feature stroke, i.e. point coordinates set. And, for such as skimming this fixed reference feature stroke for same fixed reference feature stroke, which is in different words Point coordinates information under body classification is different.
In order to determine the font in pending character picture corresponding to character, in the present embodiment, according to user Input the character feature stroke, select from data base it is corresponding with this feature stroke all referring to Feature stroke, that is, select corresponding all referring to feature stroke data.Such as feature stroke " point " For, " point " the fixed reference feature stroke data under font of all categories is selected from data base.Further, Generate and the corresponding fixed reference feature stroke picture of each corresponding fixed reference feature stroke data, i.e., it is each right according to this The fixed reference feature stroke data answered draws corresponding fixed reference feature outline strokes, and fills with color, such as The solid colour filled in black, with feature stroke picture.
Step 105, calculating feature stroke picture phase respectively with each fixed reference feature stroke picture Like degree, and determine that the font classification corresponding to the fixed reference feature stroke picture with highest similarity is described Target font classification in pending character picture belonging to character.
For for each fixed reference feature stroke picture, feature stroke picture and fixed reference feature pen are calculated respectively The similarity of picture piece, wherein, the similarity can such as be the distance degree of corresponding pixel points in two pictures Amount result, or, sub-zone dividing, each sub-regions in two pictures of tolerance can also be carried out to each picture In include the matching of pixel quantity, the matching degree of corresponding pixel points color etc..
In order to ensure the accuracy of Similarity Measure, in the present embodiment, optionally, calculating feature stroke Picture respectively with the similarity of each fixed reference feature stroke picture before, also include:
According to each fixed reference feature stroke data, and the type of the feature stroke, respectively to described Feature stroke picture zooms in and out, cut out process, obtain respectively with each fixed reference feature stroke picture one One corresponding feature stroke picture;
So as to calculate feature stroke picture similarity respectively with each fixed reference feature stroke picture, bag Include:Calculate each feature stroke picture similarity respectively with corresponding fixed reference feature stroke picture.
That is, for features described above stroke picture, according to corresponding fixed reference feature under every class font Stroke data, is zoomed in and out respectively to this feature stroke picture, cutting, under ensureing which with every class font Corresponding fixed reference feature stroke picture has identical tolerance ratio.
Specifically, can be according to the different type of feature stroke, according to correspondence fixed reference feature under all kinds of fonts Stroke data, scales in different ways, cuts out.
For example, for point, the feature stroke of type such as skim, carry, according to the width of stroke center of gravity To calculate scaling.Correspondence fixed reference feature stroke is determined according to each fixed reference feature stroke data respectively The width of center of gravity, further according to the width of the center of gravity of this feature stroke in feature image, calculates pantograph ratio Example, zooms in and out process to feature stroke picture according to the scaling, so as to obtain from different with reference to special Levy the corresponding feature stroke picture of stroke picture.
For another example, for the feature stroke comprising horizontal stroke, scaling can be calculated according to horizontal height; For comprising perpendicular feature stroke, scaling is calculated according to perpendicular width.
Optionally, feature stroke picture can be cut into and fixed reference feature stroke data after scaling is completed Described wide high identical feature stroke picture.The crop position of cross break is the lower section in horizontal left side and folding, The crop position of lifting-hook etc. is perpendicular top.
In the present embodiment, what deserves to be explained is, each ginseng that can be included by every class font in data base Examine feature stroke and one weight is set, the weight can be set with experience.
So as in similarity of the calculating feature stroke picture with each fixed reference feature stroke picture, with only For one feature stroke picture, its Similarity Measure result is under this feature stroke picture and all kinds of fonts The Similarity value of corresponding fixed reference feature stroke picture, or can also be special with the reference for the Similarity value Levy the product of the weight of fixed reference feature stroke corresponding to stroke picture.And, the Similarity Measure result It is also the Similarity Measure result of pending character picture and each font classification.
Again with comprising for multiple feature stroke pictures, such as selected feature stroke is a1, a2, a3, Q1, q2, q3 are respectively with the Similarity value of each corresponding fixed reference feature stroke picture under a certain font classification, And the weights of each corresponding fixed reference feature stroke are respectively w1, w2, w3, then final Similarity Measure is tied Fruit q=(q1*w1+q2*w2+q3*w3)/(w1+w2+w3), it is as each corresponding with a certain font classification The weighted mean of fixed reference feature stroke picture Similarity value.So as to the Similarity Measure result is also to treat The Similarity Measure result of processing character picture and each font classification.
From the corresponding Similarity Measure result of all kinds of fonts, select with highest similarity result of calculation Font classification be target font classification, the font classification may be considered character institute in pending picture The font classification of category.So as to only include the situation of a font in the present embodiment in each font classification Under, can accurately determine the font belonging to character in character picture.
In the present embodiment, for needing to carry out the pending character picture of font matching, character is firstly generated Profile picture, the character outline curve data set included according to character outline picture and user input The character feature stroke, generate feature stroke picture;Secondly, include under each font classification Each fixed reference feature stroke corresponding with the feature stroke of user input is selected in each fixed reference feature stroke data Data, generate each fixed reference feature stroke picture;Further, by pending character picture corresponding feature stroke Picture carries out Similarity Measure with each fixed reference feature stroke picture, it is determined that the reference with highest similarity is special It is the target font class in pending character picture belonging to character to levy the font classification corresponding to stroke picture Not.By carrying out sophisticated category to font, by way of features described above stroke is matched, can accurately, Font corresponding to character in character picture is matched conveniently and efficiently.
Fig. 7 is the flow chart of character image processing method embodiment of the present invention two, as shown in fig. 7, in figure On the basis of 1 illustrated embodiment, in the case of including at least two font in the target font classification, After above-mentioned steps 105, the method can also comprise the steps:
The character in step 201, the character picture of receiving user's input.
User by the character input included in pending character picture in processing meanss, such as by Fig. 2 The input of word forever in character picture.
Step 202, the font size that the character is determined according to the character outline picture.
Specifically, obtain in pending character picture after the character outline picture of character aforementioned, can So that the font size of character is determined according to the pixels tall of character in the character outline picture.
What deserves to be explained is, in a particular application, due to the character of the size non-critical of font size in character library Pixels tall, but be also left white part comprising certain, therefore, in concrete application, can be with the word In symbol profile picture, the pixels tall of character is left white the font size that threshold value determines character plus certain.
Step 203, constrain by picture size of the font size, it is every at least two font using described in Money font generates reference font picture corresponding with the character.
In the present embodiment, in the case where above-mentioned target font classification contains many money fonts, generate and be somebody's turn to do The corresponding reference font picture of every money font of character.That is, each is right with reference to institute in font picture " forever " word answered is write out using corresponding font, and font size size is according to character outline figure The above-mentioned font size size that piece determines.
Step 204, pixels tall and the pending word for judging character in each reference font picture Whether the difference in symbol picture between the pixels tall of character is more than predetermined threshold value, if being more than, performs step Rapid 205-206, otherwise direct execution step 206.
In the present embodiment, in order to ensure the accuracy of above-mentioned font size determination, it is that follow-up measuring similarity is carried For reliable premise, after each reference font picture is generated according to above-mentioned font size, can pass through will Respectively compare to determine the word with reference to the pixels tall that font picture enters line character with pending character picture respectively It is number whether accurate.
For any one in each reference font picture with reference to for font picture, if this refers to fontmap Difference in piece in the pixels tall of character and pending character picture between the pixels tall of character is more than pre- If threshold value, such as 10 pixel sizes, it is determined that the font size is inaccurate, needs to be adjusted, otherwise, If less than or be equal to predetermined threshold value, then it is assumed that the font size accurately, can directly carry out the phase of step 206 Calculate like degree.
Step 205, the size that the font size is adjusted according to default step-length, and with the font size after adjustment as figure Piece size constraint, the every money font at least two font using described in generate ginseng corresponding with the character Examine font picture.
In the present embodiment, in simple terms, such as can be walked with an adjacent font size size as step-length Long font size adjustment, it is also possible to which the degree of predetermined threshold value is more than according to above-mentioned difference, it is adjacent with such as two Font size size is step-length, carries out font size size adjustment.
So as to reference font picture and character in pending character picture that the font size after with adjustment is generated Pixels tall difference less than above-mentioned predetermined threshold value when, adjustment terminates, and meets the reference word of predetermined threshold value with this Body picture carries out follow-up Similarity Measure.
The similarity of step 206, the calculating pending character picture and each reference font picture, And determine that the font corresponding to the reference font picture with highest similarity is the pending character picture Target font belonging to middle character.
The Similarity Measure mode of the pending character picture and each reference font picture and preceding feature stroke Picture is identical with the calculation of each fixed reference feature stroke picture, repeats no more.Finally, determine target word Under body classification, the font having with pending character picture corresponding to the reference font picture of highest similarity, Font belonging to character in the pending character picture.
In the present embodiment, comprising in the case of the specific font of many moneys under each font classification, according to treating In processing character picture, in the character outline picture of character, the pixels tall of character is foundation, determines character Font size, so as to the font size as picture size constrain, generate target font classification under each font it is corresponding With reference to font picture, with the similarity of pending character picture and each reference font picture as foundation, come true The concrete font under target font classification in fixed pending character picture belonging to character, realizes belonging to which The accurate match of font.
Fig. 8 is the structural representation of character picture processing device embodiment of the present invention, as shown in figure 8, The character picture processing device includes:First receiver module 11, profile processing module 12, fisrt feature pen Draw processing module 13, second feature stroke processing module 14, the first computing module 15.
First receiver module 11, for receiving the described pending of pending character picture and user input The feature stroke of character in character picture.
Profile processing module 12, for recognizing the profile of character in the pending character picture, generates word Symbol profile picture, and the corresponding data acquisition system of the character outline picture is obtained, wrap in the data acquisition system The point coordinates for containing is used to describe the character outline curve.
Fisrt feature stroke processing module 13, for determining from the data acquisition system and the feature pen Corresponding feature stroke data subclass is drawn, is generated and the spy according to the feature stroke data subclass Levy the corresponding feature stroke picture of stroke.
Second feature stroke processing module 14, for distinguishing corresponding each reference from each font classification that is stored with In the data base of feature stroke data, the ginseng under all kinds of font classifications corresponding with the feature stroke is selected Examine feature stroke data, and generate fixed reference feature stroke pattern corresponding with each fixed reference feature stroke data Piece.
First computing module 15, for calculate the feature stroke picture respectively with each fixed reference feature pen The similarity of picture piece, and determine the font corresponding to the fixed reference feature stroke picture with highest similarity Classification is the target font classification in the pending character picture belonging to character.
Optionally, described device also includes:Scaling cuts out module 16.
Scaling cuts out module 16, for according to each fixed reference feature stroke data, and the feature pen The type of picture, zooms in and out to the feature stroke picture respectively, cuts out process, obtain respectively with each institute State the one-to-one feature stroke picture of fixed reference feature stroke picture.
First computing module 15 is additionally operable to:Calculate each feature stroke picture respectively with corresponding ginseng Examine the similarity of feature stroke picture.
Optionally, the profile processing module 12, including:Recognition unit 121, receiving unit 122, Fills unit 123.
Recognition unit 121, for recognizing the color of each pixel in the pending character picture.
Receiving unit 122, for receiving character in the described pending character picture of the user input Color.
Fills unit 123, for will be color in each pixel unmatched with the color of the character The color filling of pixel is with default background colour.
The character picture processing device of the present embodiment can be used for the technology for performing embodiment of the method shown in Fig. 1 Scheme, which realizes that principle is similar with technique effect, and here is omitted.
Fig. 9 is the structural representation of character picture processing device embodiment of the present invention two, as shown in figure 9, On the basis of embodiment illustrated in fig. 8, at least two font in the target font classification, is included;It is described Device also includes:Second receiver module 21, determining module 22, generation module 23, the second computing module 24。
Second receiver module 21, for the character in the character picture of receiving user's input.
Determining module 22, for the font size of the character is determined according to the character outline picture.
Generation module 23, for constraining by picture size of the font size, at least two font using described in In every money font generate reference font picture corresponding with the character.
Second computing module 24, for calculating the pending character picture with each reference font picture Similarity, and determine that the font corresponding to the reference font picture with highest similarity is waited to locate for described Target font in reason character picture belonging to character.
Wherein, the determining module 22 specifically for:
The font size of the character is determined according to the pixels tall of character described in the character outline picture.
Described device also includes:Judge module 25, adjustment generation module 26.
Judge module 25, for judging that the pixels tall of character in each reference font picture is treated with described Whether the difference in processing character picture between the pixels tall of character is more than predetermined threshold value;
Adjustment generation module 26, for the judge module judge the difference more than predetermined threshold value when, The size of the font size is adjusted according to default step-length, and is constrained by picture size of the font size after adjustment, adopted Reference font picture corresponding with the character is generated with the every money font at least two font.
The character picture processing device of the present embodiment can be used for the technology for performing embodiment of the method shown in Fig. 7 Scheme, which realizes that principle is similar with technique effect, and here is omitted.
One of ordinary skill in the art will appreciate that:Realize all or part of step of said method embodiment Can be completed by the related hardware of programmed instruction, aforesaid program can be stored in a computer-readable Take in storage medium, the program upon execution, performs the step of including said method embodiment;And it is aforementioned Storage medium include:ROM, RAM, magnetic disc or CD etc. are various can be with Jie of store program codes Matter.
Finally it should be noted that:Various embodiments above is only illustrating technical scheme rather than right Its restriction;Although being described in detail to the present invention with reference to foregoing embodiments, this area it is common Technical staff should be understood:Which still can be modified to the technical scheme described in foregoing embodiments, Or equivalent is carried out to which part or all technical characteristic;And these modifications or replacement, and The scope of the essence disengaging various embodiments of the present invention technical scheme of appropriate technical solution is not made.

Claims (10)

1. a kind of character image processing method, it is characterised in that include:
Receive the feature of character in the described pending character picture of pending character picture and user input Stroke;
The profile of character in the pending character picture is recognized, character outline picture is generated, and is obtained institute The corresponding data acquisition system of character outline picture is stated, the point coordinates included in the data acquisition system is used to describe institute State character outline curve;
Feature stroke data subclass corresponding with the feature stroke is determined from the data acquisition system, Feature stroke picture corresponding with the feature stroke is generated according to the feature stroke data subclass;
Distinguish in the data base of corresponding each fixed reference feature stroke data from each font classification that is stored with, select Fixed reference feature stroke data under all kinds of font classifications corresponding with the feature stroke, and generate and each institute State the corresponding fixed reference feature stroke picture of fixed reference feature stroke data;
Calculate similarity of the feature stroke picture respectively with each fixed reference feature stroke picture, and really Surely the font classification corresponding to the fixed reference feature stroke picture with highest similarity is the pending character Target font classification in picture belonging to character.
2. method according to claim 1, it is characterised in that include in the target font classification At least two font;
The font classification determined corresponding to the fixed reference feature stroke picture with highest similarity is described After target font classification in pending character picture belonging to character, also include:
The character in the character picture of receiving user's input;
The font size of the character is determined according to the character outline picture;
Constrain by picture size of the font size, the every money font at least two font using described in is generated Reference font picture corresponding with the character;
The similarity of the pending character picture and each reference font picture is calculated, and determines have Font corresponding to the reference font picture of highest similarity is belonging to character in the pending character picture Target font.
3. method according to claim 2, it is characterised in that described according to the character outline figure Piece determines the font size of the character, including:
The font size of the character is determined according to the pixels tall of character described in the character outline picture;
Described to constrain by picture size of the font size, at least two font using described in every money font After generating reference font picture corresponding with the character, also include:
Judge the pixels tall and word in the pending character picture of character in each reference font picture Whether the difference between the pixels tall of symbol is more than predetermined threshold value;
If being more than, the size of the font size is adjusted according to default step-length, and with the font size after adjustment as figure Piece size constraint, the every money font at least two font using described in generate ginseng corresponding with the character Examine font picture.
4. the method according to any one of claims 1 to 3, it is characterised in that described in the calculating Feature stroke picture respectively with the similarity of each fixed reference feature stroke picture before, also include:
According to each fixed reference feature stroke data, and the type of the feature stroke, respectively to described Feature stroke picture zooms in and out, cut out process, obtain respectively with each fixed reference feature stroke picture one One corresponding feature stroke picture;
The similarity for calculating the feature stroke picture respectively with each fixed reference feature stroke picture, Including:
Calculate each feature stroke picture similarity respectively with corresponding fixed reference feature stroke picture.
5. the method according to any one of claims 1 to 3, it is characterised in that described in the identification The profile of character in pending character picture, including:
Recognize the color of each pixel in the pending character picture;
Receive the color of character in the described pending character picture of the user input;
By the color filling of color unmatched pixel with the color of the character in each pixel with Default background colour.
6. a kind of character picture processing device, it is characterised in that include:
First receiver module, for receiving the described pending word of pending character picture and user input The feature stroke of character in symbol picture;
Profile processing module, for recognizing the profile of character in the pending character picture, generates character Profile picture, and the corresponding data acquisition system of the character outline picture is obtained, include in the data acquisition system Point coordinates be used for the character outline curve is described;
Fisrt feature stroke processing module, for determining from the data acquisition system and the feature stroke Corresponding feature stroke data subclass, generates and the feature according to the feature stroke data subclass The corresponding feature stroke picture of stroke;
Second feature stroke processing module, for corresponding each with reference to special from each font classification difference that is stored with Levy in the data base of stroke data, select the reference under all kinds of font classifications corresponding with the feature stroke Feature stroke data, and generate fixed reference feature stroke picture corresponding with each fixed reference feature stroke data;
First computing module, for calculate the feature stroke picture respectively with each fixed reference feature stroke The similarity of picture, and determine the font class corresponding to the fixed reference feature stroke picture with highest similarity Target font classification that Wei be in the pending character picture belonging to character.
7. device according to claim 6, it is characterised in that include in the target font classification At least two font;
Described device also includes:
Second receiver module, for the character in the character picture of receiving user's input;
Determining module, for the font size of the character is determined according to the character outline picture;
Generation module, for constraining by picture size of the font size, at least two font using described in Every money font generate reference font picture corresponding with the character;
Second computing module, for calculating the pending character picture with each reference font picture Similarity, and determine that the font corresponding to the reference font picture with highest similarity is described pending Target font in character picture belonging to character.
8. device according to claim 7, it is characterised in that the determining module specifically for:
The font size of the character is determined according to the pixels tall of character described in the character outline picture;
Described device also includes:
Judge module, for judging that the pixels tall of character in each reference font picture is waited to locate with described Whether the difference in reason character picture between the pixels tall of character is more than predetermined threshold value;
Adjustment generation module, for the judge module judge the difference more than predetermined threshold value when, root The size of the font size is adjusted according to default step-length, and is constrained by picture size of the font size after adjustment, adopted Every money font at least two font generates reference font picture corresponding with the character.
9. the device according to any one of claim 6 to 8, it is characterised in that described device is also wrapped Include:
Scaling cuts out module, for according to each fixed reference feature stroke data, and the feature stroke Type, respectively the feature stroke picture is zoomed in and out, process is cut out, is obtained described with each respectively The one-to-one feature stroke picture of fixed reference feature stroke picture;
First computing module is additionally operable to:Calculate each feature stroke picture respectively with corresponding reference The similarity of feature stroke picture.
10. the device according to any one of claim 6 to 8, it is characterised in that at the profile Reason module, including:
Recognition unit, for recognizing the color of each pixel in the pending character picture;
Receiving unit, for receiving the color of character in the described pending character picture of the user input;
Fills unit, for by color in each pixel with the color of the character unmatched pixel The color filling of point is with default background colour.
CN201510653925.0A 2015-10-10 2015-10-10 Character image processing method and device Expired - Fee Related CN106570538B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510653925.0A CN106570538B (en) 2015-10-10 2015-10-10 Character image processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510653925.0A CN106570538B (en) 2015-10-10 2015-10-10 Character image processing method and device

Publications (2)

Publication Number Publication Date
CN106570538A true CN106570538A (en) 2017-04-19
CN106570538B CN106570538B (en) 2019-08-30

Family

ID=58506854

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510653925.0A Expired - Fee Related CN106570538B (en) 2015-10-10 2015-10-10 Character image processing method and device

Country Status (1)

Country Link
CN (1) CN106570538B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109388249A (en) * 2017-08-02 2019-02-26 北京搜狗科技发展有限公司 Input processing method, device, terminal and the readable storage medium storing program for executing of information
CN109784146A (en) * 2018-12-05 2019-05-21 广州企图腾科技有限公司 A kind of font type recognition methods, electronic equipment, storage medium
CN111241808A (en) * 2020-01-07 2020-06-05 北大方正集团有限公司 Character stroke splitting method and device
CN111783766A (en) * 2020-07-10 2020-10-16 上海淇毓信息科技有限公司 Method and device for recognizing image characters step by step and electronic equipment
WO2023039942A1 (en) * 2021-09-17 2023-03-23 深圳前海环融联易信息科技服务有限公司 Element information extraction method and apparatus based on text recognition, device, and medium
CN116049461A (en) * 2023-03-29 2023-05-02 北京思想天下教育科技有限公司 Question conversion system based on big data cloud platform

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101017533A (en) * 2007-03-09 2007-08-15 清华大学 Recognition method of printed mongolian character
US20100189362A1 (en) * 2009-01-26 2010-07-29 Jakubiak Elena J Method for converting outline characters to stylized stroke characters
CN103093240A (en) * 2013-01-18 2013-05-08 浙江大学 Calligraphy character identifying method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101017533A (en) * 2007-03-09 2007-08-15 清华大学 Recognition method of printed mongolian character
US20100189362A1 (en) * 2009-01-26 2010-07-29 Jakubiak Elena J Method for converting outline characters to stylized stroke characters
CN103093240A (en) * 2013-01-18 2013-05-08 浙江大学 Calligraphy character identifying method

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109388249A (en) * 2017-08-02 2019-02-26 北京搜狗科技发展有限公司 Input processing method, device, terminal and the readable storage medium storing program for executing of information
CN109784146A (en) * 2018-12-05 2019-05-21 广州企图腾科技有限公司 A kind of font type recognition methods, electronic equipment, storage medium
CN109784146B (en) * 2018-12-05 2023-11-07 广州企图腾科技有限公司 Font type identification method, electronic equipment and storage medium
CN111241808A (en) * 2020-01-07 2020-06-05 北大方正集团有限公司 Character stroke splitting method and device
CN111241808B (en) * 2020-01-07 2021-12-03 北大方正集团有限公司 Character stroke splitting method and device
CN111783766A (en) * 2020-07-10 2020-10-16 上海淇毓信息科技有限公司 Method and device for recognizing image characters step by step and electronic equipment
CN111783766B (en) * 2020-07-10 2023-02-14 上海淇毓信息科技有限公司 Method and device for recognizing image characters step by step and electronic equipment
WO2023039942A1 (en) * 2021-09-17 2023-03-23 深圳前海环融联易信息科技服务有限公司 Element information extraction method and apparatus based on text recognition, device, and medium
CN116049461A (en) * 2023-03-29 2023-05-02 北京思想天下教育科技有限公司 Question conversion system based on big data cloud platform
CN116049461B (en) * 2023-03-29 2023-05-30 北京思想天下教育科技有限公司 Question conversion system based on big data cloud platform

Also Published As

Publication number Publication date
CN106570538B (en) 2019-08-30

Similar Documents

Publication Publication Date Title
CN106570538A (en) Character picture processing method and apparatus thereof
CN104346625B (en) Medical image-processing apparatus, medical image processing method and classifier training method
US9741170B2 (en) Method for displaying augmented reality content based on 3D point cloud recognition, and apparatus and system for executing the method
CN111832383B (en) Training method of gesture key point recognition model, gesture recognition method and device
US7931602B2 (en) Gaze guidance degree calculation system, gaze guidance degree calculation program, storage medium, and gaze guidance degree calculation method
CN108229299A (en) The recognition methods of certificate and device, electronic equipment, computer storage media
CN106096542B (en) Image video scene recognition method based on distance prediction information
CN110738101A (en) Behavior recognition method and device and computer readable storage medium
CN107784321B (en) Method and system for quickly identifying digital picture books and computer readable storage medium
CN108009222B (en) Three-dimensional model retrieval method based on better view and deep convolutional neural network
CN105678235B (en) Three-dimensional face expression recognition methods based on representative region various dimensions feature
CN108427927A (en) Target recognition methods and device, electronic equipment, program and storage medium again
CN109002562A (en) A kind of instrument identification model training method and device and instrument recognition methods and device
CN113034495B (en) Spine image segmentation method, medium and electronic device
CN110832542B (en) Identification processing device, identification processing method, and program
CN112418278A (en) Multi-class object detection method, terminal device and storage medium
CN110533639B (en) Key point positioning method and device
CN111507134A (en) Human-shaped posture detection method and device, computer equipment and storage medium
CN109583493A (en) A kind of credit card detection and digit recognition method based on deep learning
EP3358526A1 (en) System and method for scoring color candidate poses against a color image in a vision system
CN104809099B (en) Document files generating means and document files generation method
CN112215217B (en) Digital image recognition method and device for simulating doctor to read film
CN104574312A (en) Method and device of calculating center of circle for target image
Limper et al. Mesh Saliency Analysis via Local Curvature Entropy.
CN104573722A (en) Three-dimensional face race classifying device and method based on three-dimensional point cloud

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220629

Address after: 3007, Hengqin international financial center building, No. 58, Huajin street, Hengqin new area, Zhuhai, Guangdong 519031

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

Patentee after: Beijing Beida Founder Electronics Co., Ltd.

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

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

Patentee before: Beijing Beida Founder Electronics Co., Ltd.

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

Granted publication date: 20190830

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