CN104951811A - Handwriting trace recognition method and device for writing with writing brush - Google Patents

Handwriting trace recognition method and device for writing with writing brush Download PDF

Info

Publication number
CN104951811A
CN104951811A CN201510401749.1A CN201510401749A CN104951811A CN 104951811 A CN104951811 A CN 104951811A CN 201510401749 A CN201510401749 A CN 201510401749A CN 104951811 A CN104951811 A CN 104951811A
Authority
CN
China
Prior art keywords
section
stroke
picture
chief editor
pen
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
CN201510401749.1A
Other languages
Chinese (zh)
Other versions
CN104951811B (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 SHENGSHI XUANHE INFORMATION TECHNOLOGY Co Ltd
Original Assignee
BEIJING SHENGSHI XUANHE INFORMATION TECHNOLOGY 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 BEIJING SHENGSHI XUANHE INFORMATION TECHNOLOGY Co Ltd filed Critical BEIJING SHENGSHI XUANHE INFORMATION TECHNOLOGY Co Ltd
Priority to CN201510401749.1A priority Critical patent/CN104951811B/en
Publication of CN104951811A publication Critical patent/CN104951811A/en
Application granted granted Critical
Publication of CN104951811B publication Critical patent/CN104951811B/en
Active 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/2455Discrimination between machine-print, hand-print and cursive writing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/74Image or video pattern matching; Proximity measures in feature spaces
    • G06V10/75Organisation of the matching processes, e.g. simultaneous or sequential comparisons of image or video features; Coarse-fine approaches, e.g. multi-scale approaches; using context analysis; Selection of dictionaries

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Multimedia (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Software Systems (AREA)
  • Evolutionary Computation (AREA)
  • Databases & Information Systems (AREA)
  • Artificial Intelligence (AREA)
  • Health & Medical Sciences (AREA)
  • Character Discrimination (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a handwriting trace recognition method and device applied to writing with a writing brush. The method comprises steps as follows: acquiring handwriting trace data produced in the process when handwriting input equipment is pressed for writing and released for writing stopping are acquired; the handwriting trace data are subjected to smooth processing and interpolation processing; corresponding angle change values of handwriting points in the processed handwriting trace data are detected, and the points with the angle change values exceeding threshold values are determined as feature points; the adjacent feature points are connected to obtain multiple stroke segments, and the multiple stroke segments are separated into main stroke segments and auxiliary stroke segments according to the lengths of the stroke segments; features of the corresponding stroke segments are determined according to the connection relation of the main stroke segments and the auxiliary stroke segments; the directions of the main stroke segments are determined according to a preset stroke segment eight-direction rule; the directions of the main stroke segments and the features of the stroke segments are compared with a stroke sample library established in advance, and strokes corresponding to the handwriting trace data are recognized. With the adoption of the handwriting trace recognition method and device, the handwriting trace accuracy is improved.

Description

Be applied to the line recognition methods of row style and the device of brush writing
Technical field
The present invention relates to image processing field, in particular to a kind of the line recognition methods of row style and the device that are applied to brush writing.
Background technology
Chinese calligraphy, as the Calligraph Art of Chinese character, is a kind of ancient art form with having rich connotation.It presents the intension of traditional Chinese culture along with the development of Chinese civilization with the art form of its uniqueness and artistic speech, traditional Chinese culture history occupies an important position.Chinese character, once generation, just presents the rudiment of calligraphy art.Develop from the inscriptions on bones or tortoise shells, inscription on ancient bronze objects and be an ancient style of calligraphy, the lesser seal character, lishu, to the rapid style of writing of shaping in the Eastern Han Dynasty, Wei, Shanxi, regular script, running hand volumes, calligraphy distributes the glamour of art always.The calligraphy art of China is with a long history, of long standing and well established, has a far reaching influence.Today, in nearly all scenic spots and historical sites, we can see the calligraphy work that the countless men of literature and writing from ancient times to the present stay.These calligraphy wories or be written on paper or make horizontal inscribed board or carve in stone tablet or be engraved on cliff are all the rarities of chinese tradition art culture.
Along with the progress of modern science and technology, the develop rapidly of the universal and correlation technique of computing machine, people have new calligraphy creation mode.Traditional pen, ink, paper, inkstone are also no longer the essential tool of writing words.As a rule, people carry out text event detection work by keyboard and mouse.Therefore, on the basis of drawing traditional calligraphy art, in order to inherit, carry forward and developing calligraphy art, its emulation carrying out science is just become to one of problem of current art and the challenge of sciemtifec and technical sphere most.
Meanwhile, calligraphy beginner will carry out a large amount of imitation training with knowledge and skills such as use pen, structure, the art of composition and the artistic conceptions of learning calligraphy to much outstanding calligraphy work.Computer simulation is carried out to calligraphic copying and production process and is conducive to quicker, easy, clean the practicing calligraphy of people, and decrease the waste of writing brushes, ink sticks, paper and ink stones, also excite the enthusiasm of people's learning calligraphy.
Because the person's handwriting of different person writings is distinguished to some extent, define the diversity of handwriting trace, existing writing brush analog machine can't identify handwriting trace effectively accurately.
Summary of the invention
In view of this, the object of the embodiment of the present invention is to provide a kind of the line recognition methods of row style and the device that are applied to brush writing, to improve the accuracy identifying handwriting trace.
First aspect, embodiments provides a kind of row style line recognition methods being applied to brush writing, comprising: gather handwriting input device and press the writing track data of writing to lifting in stopping writing process; Wherein, this writing track data comprises each and writes coordinate a little and time; According to each write a little time order and function order to the smoothing process of writing track data and interpolation processing; Write a corresponding angle changing value in writing track data after check processing, some angle changing value being exceeded setting threshold value is defined as unique point; Adjacent unique point is connected the multiple stroke sections obtaining writing track data, above-mentioned multiple stroke section is divided into chief editor's section of picture and auxiliary stroke section by the length according to stroke section; Determine the feature of corresponding stroke section according to chief editor's section of picture and the intersegmental annexation of auxiliary stroke, the feature of this stroke section comprises: first stroke of a Chinese character Zang Feng, the first stroke of a Chinese character pause pen, the first stroke of a Chinese character turn to, receive a Hui Feng, receive pen pause pen, to receive pen full to the brim and receive pen and turn to; Determine the direction of above-mentioned chief editor's section of picture from all directions to rule according to the stroke section preset; By the feature of the direction of the above-mentioned chief editor's section of picture determined and above-mentioned stroke section and the stroke Sample Storehouse comparison of setting up in advance, the stroke corresponding according to the result identification writing track data of comparison.
In conjunction with first aspect, embodiments provide the first possible embodiment of first aspect, the time order and function order of writing a little according to each comprises the smoothing process of writing track data and interpolation processing: the time order and function order of writing a little according to each sorts to writing track data; Douglas-Pu Ke smoothing processing is carried out to the writing track data after sequence; Writing track data equal intervals data inserting point after smoothing processing.
In conjunction with first aspect, embodiments provide the embodiment that the second of first aspect is possible, a corresponding angle changing value is write in writing track data after check processing, point angle changing value being exceeded setting threshold value is defined as unique point and comprises: each point in the writing track data after traversal processing, calculate straight line and current data point that current data point and last data point form and a rear group of data points be in line between angle; If the angle of current data point is less than default entering angle threshold value, the turnover of mark first paragraph detects and starts, and records the angle of the data point of follow-up traversal, until the angle of data point of record is greater than default when leaving angle threshold value, terminates first paragraph turnover and detects; Data point corresponding for angle minimum in the angle of the data point of record is defined as first paragraph to transfer the unique point detected; Continue the follow-up data point of traversal and carry out next section of turning point detection, until each the some traversal in writing track data is complete.
In conjunction with first aspect, embodiments provide the third possible embodiment of first aspect, according to the length of stroke section multiple stroke section is divided into chief editor's section of picture and auxiliary stroke section comprises: the length detecting current stroke section; Judge whether the length of current stroke section is less than the length threshold of setting; Wherein, length threshold is the wide value with setting multiplication of pen; If be less than, determine that current stroke section is auxiliary stroke section; If be not less than, determine that current stroke section is chief editor's section of picture.
In conjunction with first aspect, embodiments provide the 4th kind of possible embodiment of first aspect, determine that the feature of corresponding stroke section comprises according to chief editor's section of picture and the intersegmental annexation of auxiliary stroke: before judging first chief editor's section of picture, whether have two auxiliary stroke sections at least, and with first non-conterminous auxiliary stroke section of chief editor's section of picture in have at least one reverse with the direction of first chief editor's section of picture, if so, determine that the stroke section at first chief editor's section of picture place is first stroke of a Chinese character Zang Feng; If not, and before first chief editor's section of picture, there is at least one auxiliary stroke section, determine that the stroke section at first chief editor's section of picture place is that the first stroke of a Chinese character is paused pen; Calculate the differential seat angle between first chief editor's section of picture and previous auxiliary stroke section, determine that the stroke section at first chief editor's section of picture place is that up time turns to or the inverse time turns to according to differential seat angle; When there is no auxiliary stroke section before first chief editor's section of picture, determine the stroke Duan Weizhi at first chief editor's section of picture place to; Judge that whether the direction of the direction of non-conterminous auxiliary stroke section after last chief editor's section of picture and last chief editor's section of picture is reverse, if so, determine last chief editor's section of picture place stroke Duan Weishou Hui Feng; If not, and after last chief editor's section of picture, there is at least one auxiliary stroke section, determine that the stroke Duan Weishou pen at last chief editor's section of picture place pauses pen; Calculate last chief editor and draw differential seat angle between the auxiliary stroke section of Duan Yuhou mono-, determine that the stroke section at last chief editor's section of picture place is that up time turns to or the inverse time turns to according to differential seat angle; After last chief editor's section of picture, there is no auxiliary stroke section, determine that the stroke Duan Weishou pen at last chief editor's section of picture place is full to the brim.
Second aspect, the embodiment of the present invention additionally provides a kind of row style line recognition device being applied to brush writing, comprising: data acquisition module, presses the writing track data of writing to lifting in stopping writing process for gathering handwriting input device; Wherein, writing track data comprises each and writes coordinate a little and time; Data smoothing and interpolation processing module, for write according to each a little time order and function order to the smoothing process of writing track data and interpolation processing; Feature point detection module, for writing a corresponding angle changing value in the writing track data after check processing, some angle changing value being exceeded setting threshold value is defined as unique point; Stroke section divides module, and for adjacent unique point being connected the multiple stroke sections obtaining writing track data, multiple stroke section is divided into chief editor's section of picture and auxiliary stroke section by the length according to stroke section; Stroke section characteristic determination module, for determining the feature of corresponding stroke section according to chief editor's section of picture and the intersegmental annexation of auxiliary stroke, the feature of this stroke section comprises: first stroke of a Chinese character Zang Feng, the first stroke of a Chinese character pause pen, the first stroke of a Chinese character turn to, receive a Hui Feng, receive pen pause pen, to receive pen full to the brim and receive pen and turn to; Stroke section direction determination module, for determining the direction of described chief editor's section of picture from all directions to rule according to the stroke section preset; Stroke discrimination module, for by the feature in the direction of the above-mentioned chief editor's section of picture determined and above-mentioned stroke section and the stroke Sample Storehouse comparison of to set up in advance, the stroke corresponding according to the result identification writing track data of comparison.
In conjunction with second aspect, embodiments provide the first possible embodiment of second aspect, above-mentioned data smoothing and interpolation processing module comprise: data sorting unit, sort to writing track data for the time order and function order of writing according to each a little; Smoothing processing unit, for carrying out Douglas-Pu Ke smoothing processing to the writing track data after sequence; Interpolation process unit, for the writing track data equal intervals data inserting point after smoothing processing.
In conjunction with second aspect, embodiments provide the embodiment that the second of second aspect is possible, above-mentioned feature point detection module comprises: angle calcu-lation unit, for each point in the writing track data after traversal processing, calculate straight line and current data point that current data point and last data point form and a rear group of data points be in line between angle; Unique point determining unit, during for being less than default entering angle threshold value when the angle of current data point, the turnover of mark first paragraph detects and starts, and records the angle of the data point of follow-up traversal, until the angle of data point of record is greater than default when leaving angle threshold value, terminates first paragraph turnover and detect; Data point corresponding for angle minimum in the angle of the data point of record is defined as first paragraph to transfer the unique point detected; Continue the follow-up data point of traversal and carry out next section of turning point detection, until each the some traversal in writing track data is complete.
In conjunction with second aspect, embodiments provide the third possible embodiment of second aspect, above-mentioned stroke section divides module and comprises: length detection unit, for detecting the length of current stroke section; Length determining unit, for judging whether the length of current stroke section is less than the length threshold of setting; Wherein, length threshold is the wide value with setting multiplication of pen; First determining unit, for when the length that the judged result of length determining unit is current stroke section is less than the length threshold of setting, determines that current stroke section is auxiliary stroke section; Second determining unit, for when the length that the judged result of length determining unit is current stroke section is not less than the length threshold of setting, determines that current stroke section is chief editor's section of picture.
In conjunction with second aspect, embodiments provide the 4th kind of possible embodiment of second aspect, above-mentioned stroke section characteristic determination module comprises: cutting edge of a knife or a sword determining unit is hidden in the first stroke of a Chinese character, two auxiliary stroke sections whether were had at least before judging first chief editor's section of picture, and with first non-conterminous auxiliary stroke section of chief editor's section of picture in have at least one reverse with the direction of first chief editor's section of picture, if so, determine that the stroke section at first chief editor's section of picture place is first stroke of a Chinese character Zang Feng; The first stroke of a Chinese character is paused a determining unit, is not first stroke of a Chinese character Zang Feng for the stroke section when first chief editor's section of picture place, and when having at least one auxiliary stroke section before first chief editor's section of picture, determines that the stroke section at first chief editor's section of picture place is that the first stroke of a Chinese character is paused pen; The first stroke of a Chinese character turns to determining unit, for calculating the differential seat angle between first chief editor's section of picture and previous auxiliary stroke section, determines that the stroke section at first chief editor's section of picture place is that up time turns to or the inverse time turns to according to differential seat angle; When there is no auxiliary stroke section before first chief editor's section of picture, determine the stroke Duan Weizhi at first chief editor's section of picture place to; Receive pen and return peak determining unit, whether the direction for the direction and last chief editor's section of picture that judge non-conterminous auxiliary stroke section after last chief editor's section of picture is reverse, if so, determines last chief editor's section of picture place stroke Duan Weishou Hui Feng; Receive pen to pause a determining unit, for not being receive a Hui Feng when last chief editor's section of picture place stroke section, and when having at least one auxiliary stroke section after last chief editor's section of picture, determine that the stroke Duan Weishou pen at last chief editor's section of picture place pauses pen; Receive pen and turn to determining unit, drawing differential seat angle between the auxiliary stroke section of Duan Yuhou mono-for calculating last chief editor, determining that the stroke section at last chief editor's section of picture place is that up time turns to or the inverse time turns to according to differential seat angle; After last chief editor's section of picture, there is no auxiliary stroke section, determine that the stroke Duan Weishou pen at last chief editor's section of picture place is full to the brim.
The method and apparatus that the embodiment of the present invention provides, the writing track data gathered is processed, as: stroke feature is analyzed, mark the unique point of each stroke, mark off pen section, calculate supplemental characteristic (the stroke segment length of needs, angle between stroke section), tell critical path pen section (being equivalent to above-mentioned chief editor's section of picture and auxiliary stroke section), and judge the information such as stroke feature, then from stroke storehouse, this stroke is identified according to critical path pen section, this recognition method can identify the handwriting trace of user more quickly and accurately, and it is lower to the requirement of equipment, reduce the use cost of user.
For making above-mentioned purpose of the present invention, feature and advantage become apparent, preferred embodiment cited below particularly, and coordinate appended accompanying drawing, be described in detail below.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment below, be to be understood that, the following drawings illustrate only some embodiment of the present invention, therefore the restriction to scope should be counted as, for those of ordinary skill in the art, under the prerequisite not paying creative work, other relevant accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 shows the process flow diagram being applied to the row style line recognition methods of brush writing that the embodiment of the present invention provides;
Fig. 2 shows the stroke section angle schematic diagram that the embodiment of the present invention provides;
Fig. 3 shows the structured flowchart being applied to the row style line recognition device of brush writing that the embodiment of the present invention provides;
The stroke section that Fig. 4 shows the embodiment of the present invention to be provided divides the concrete structure block diagram of module.
Embodiment
Below in conjunction with accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.The assembly of the embodiment of the present invention describing and illustrate in usual accompanying drawing herein can be arranged with various different configuration and design.Therefore, below to the detailed description of the embodiments of the invention provided in the accompanying drawings and the claimed scope of the present invention of not intended to be limiting, but selected embodiment of the present invention is only represented.Based on embodiments of the invention, the every other embodiment that those skilled in the art obtain under the prerequisite not making creative work, all belongs to the scope of protection of the invention.
Writing brush analogue technique is typically employed on the handwriting equipment without pressure sensitivity and writes, the planimetric coordinates information in a certain moment can only be got, in order to determine that user wants the stroke write according to these two-dimensional points coordinate informations, and produce brush writing effect, embodiments provide a kind of the line recognition methods of row style and the device that are applied to brush writing, be described below by embodiment.
The shown in Figure 1 process flow diagram being applied to the row style line recognition methods of brush writing, the method comprises the following steps:
Step S102, gathers handwriting input device and presses the writing track data of writing to lifting in stopping writing process; Wherein, this writing track data comprises each and writes coordinate a little and time.
Usually, the stroke of Chinese character comprises about 31 kinds strokes, each stroke is divided into multiple concrete form according to the difference of row style line, when user writes on handwriting equipment (being equivalent to above-mentioned handwriting input device), start when writing pencil falls to record writing track data (also can be called stroke data), when writing pencil lifts, stroke end of record (EOR), and start to process stroke data.
Step S104, according to each write a little time order and function order to the smoothing process of writing track data and interpolation processing.
If by the X of the current stroke path point information got, it is exactly the row style line tracking (or being called handwriting trace) of this stroke that Y-coordinate couples together according to time sequencing, but due to user hand-written time can produce shake, this track has a lot of sawtooth, error can be produced when data processing, therefore first will to the smoothing process of this track, such as adopt Douglas-Pu grams smoothing according to subduction algorithm, smooth curve is carried out by the point removing side-play amount larger, this algorithm is simple, speed is fast, less to former geometric locus distortion, relatively be applicable to the process of handwriting tracks.Owing to adopting data subduction algorithm smoothing, after level and smooth, the point coordinate of handwriting trace can reduce, and spacing distance is different in size, and this is unfavorable for the data processing in later stage, therefore the present embodiment is along track data inserting point at equal intervals after smoothly, and the point on track is evenly distributed.Based on this, above-mentioned steps S104 specifically comprises: the time order and function order that (1) writes a little according to each sorts to writing track data; (2) Douglas-Pu Ke smoothing processing is carried out to the writing track data after sequence; (3) the writing track data equal intervals data inserting point after smoothing processing.
Above-mentioned employing Douglas-Pu grams according to the smoothing method of subduction algorithm be one preferred embodiment, in actual applications, can choose other smoothing algorithm according to computing velocity and accuracy requirement, the above-mentioned concrete mode of the present embodiment does not limit the scope of the invention.
Step S106, writes a corresponding angle changing value in the writing track data after check processing, and some angle changing value being exceeded setting threshold value is defined as unique point.
The present embodiment is by judging that angle change point is greatly defined as unique point, the turning point namely between pen section (or stroke section).The process detected is: each point on traversal stroke track, calculate this point and the more front straight line that form and and the rear angle a bit formed between straight line, first point of track is set to 180 degree with last angle put.Two angle thresholds can be set: entering angle threshold value, leave angle threshold value, suppose that these two values are all set to 160 degree.Institute again on traversal track a little, judges the angle of current point, if be less than entering angle threshold value, then mark turnover detects and starts, and compare and record the point of minimum angle, when the angle put be greater than leave angle threshold value time current turnover detect end, minimum clamp angle point is unique point.Based on this, above-mentioned steps S106 specifically comprises the steps (1)-(3):
(1) each point in the writing track data after traversal processing, calculate straight line and current data point that current data point and last data point form and a rear group of data points be in line between angle;
(2) if the angle of current data point is less than default entering angle threshold value, the turnover of mark first paragraph detects and starts, record the angle of the data point of follow-up traversal, until the angle of data point of record is greater than default when leaving angle threshold value, terminates first paragraph turnover and detect; Data point corresponding for angle minimum in the angle of the data point of record is defined as first paragraph to transfer the unique point detected;
(3) continue the follow-up data point of traversal and carry out next section of turning point detection, until each the some traversal in writing track data is complete.
The detection mode of this unique point can find each turning point in handwriting trace more accurately, and reliability is stronger.
Above-mentioned feature point detection mode is only citing, and in actual applications, can convert it according to computing velocity and accuracy requirement or choose other detection mode, the above-mentioned concrete mode of the present embodiment limit the scope of the invention.
Step S108, adjacent unique point is connected the multiple stroke sections obtaining writing track data, above-mentioned multiple stroke section is divided into chief editor's section of picture and auxiliary stroke section by the length according to stroke section.
A stroke is made up of multiple stroke section, and such as cross break comprises horizontal and perpendicular two strokes, and in addition, as previously mentioned, writing brush needs the action such as Zang Feng, a pen when writing, this also can produce stroke section.Adjacent unique point is connected and just defines stroke section.After obtaining stroke section, can calculate the parameter of stroke section, the angle (angle of the straight line that stroke section two end points are formed) of such as stroke section and the length of stroke section; In order to simplify calculating and logic complexity, stroke section is divided into 8 directions according to the angle of stroke section by the present embodiment, be divided into: the right side, bottom right, under, lower-left, a left side, upper left, upper, upper right 8 directions, for simplicity, stroke section angle schematic diagram shown in Figure 2, above-mentioned 8 direction number consecutivelies are 0,1,2,3,4,5,6,7 by the present embodiment.Angle between these 8 directions is also incomplete same, rule of thumb the angular range of upper and lower, left and right is decided to be 30 °, and the angular range of upper left, lower-left, upper right, bottom right is 60 °.8 directions are as above categorized as according to the deflection of stroke section.
When Feature point recognition, sometimes due to the fluctuating of row style line or bending, unnecessary unique point may be identified, again because direction is reduced to 8 directions, so just there will be the stroke section that adjacent direction is consistent, easy in order to Stroke discrimination below, can merge the stroke section of this equidirectional in practical application.
Above-mentioned stroke section had both comprised chief editor's section of picture (also can be called main stroke section) of mark stroke type, also comprised the auxiliary stroke section (also can be called auxiliary stroke section) of to carry out Zang Feng, a pen etc. in order to write out font attractive in appearance and wieling the pen.Auxiliary stroke section and main stroke section can be distinguished by stroke segment length, the present embodiment setting pen wide with a multiplication as the boundary identifying main stroke section and auxiliary stroke section, if length is less than this boundary, think auxiliary stroke section, otherwise think main stroke section, this coefficient can value be 1.2.Based on this, above-mentioned steps S110 specifically comprises: the length detecting current stroke section; Judge whether the length of current stroke section is less than the length threshold of setting; Wherein, this length threshold is the wide value with setting multiplication of pen; If be less than, determine that current stroke section is auxiliary stroke section; If be not less than, determine that current stroke section is chief editor's section of picture.The realistic row of a differentiation mode style of this stroke section, the identification for follow-up stroke provides reliable data.
Step S110, determine the feature of corresponding stroke section according to chief editor's section of picture and the intersegmental annexation of auxiliary stroke, the feature of this stroke section comprises: first stroke of a Chinese character Zang Feng, the first stroke of a Chinese character pause pen, the first stroke of a Chinese character turn to, receive a Hui Feng, receive pen pause pen, to receive pen full to the brim and receive pen and turn to.
According to " feature of wieling the pen of Chinese calligraphy ", the details of wieling the pen can learning by detecting pen picture head portion and stroke afterbody can judge the Morphological Features of this stroke, such as hides the cutting edge of a knife or a sword first stroke of a Chinese character or the dew peak first stroke of a Chinese character etc.The feature of stroke section is divided into by the present embodiment: first stroke of a Chinese character Zang Feng, the first stroke of a Chinese character pause pen, the first stroke of a Chinese character turn to, receive a Hui Feng, receive pen pause pen, receive pen full to the brim, receive pen and turn to this 7 kinds of features.
One, first stroke of a Chinese character Zang Feng: this is a Boolean type parameter, is worth for true respresentation hides the cutting edge of a knife or a sword first stroke of a Chinese character, and hiding the cutting edge of a knife or a sword first stroke of a Chinese character needs first to wield the pen in the other direction when the first stroke of a Chinese character, and then pause pen, more just march forward.When judging that this indicates, first a main pen section is found, if have at least two auxiliary pen sections before this main pen section, and with have one in main pen section non-conterminous auxiliary pen section at least with the direction of main pen section close to contrary, then think that this stroke is first stroke of a Chinese character Zang Feng.
Two, the first stroke of a Chinese character is paused pen: this is a Boolean type parameter, and be worth for true respresentation is paused pen, a pen alleged is here the stroke very little along of stroke progress path longitudinal direction when writing.Method of this mark of interpretation is: if not first stroke of a Chinese character Zang Feng, and have at least one auxiliary pen section before first main pen section, then think that the first stroke of a Chinese character is paused pen.
Three, the first stroke of a Chinese character turns to: here turn to as sense of rotation, both clockwise, counterclockwise and directly to, because writing brush is when stroke writing, Zang Feng or a pen might not turn to along fixed-direction, in the horizontal stroke of the inverse peak first stroke of a Chinese character, the first stroke of a Chinese character is according to turning to counterclockwise, and the perpendicular middle first stroke of a Chinese character of pen is received according to moving towards clockwise in time peak.The present embodiment can be judged clockwise or counterclockwise by the differential seat angle between the main pen section of calculating first and previous auxiliary pen section, does not have auxiliary pen section this situation before only having first main pen section for the first stroke of a Chinese character, just can be labeled as directly to.
Four, receive a Hui Feng: hide cutting edge of a knife or a sword with the first stroke of a Chinese character similar, receive the method for wieling the pen to opposite direction when a Hui Feng is receipts.Whether reverse with last main pen section according to pen section direction non-conterminous after last main pen section when judging that this indicates.
Five, receive pen to pause pen: similar with the first stroke of a Chinese character pen that pauses, difference judges last main Duan Yuqi auxiliary pen section below.
Six, receive pen full to the brim: this situation occurs in the ending stroke full to the brim such as slashs, hook, both do not had Hui Feng also not pause pen if in fact receive pen, and represented full to the brim, this mark of increase is to simplify decision logic separately.
Seven, receive pen to turn to: turn to the first stroke of a Chinese character, what only record is the sense of rotation receiving pen.
Based on the feature of the above-mentioned various vigour of style in writing, above-mentioned steps S110 specifically comprises the following steps (1)-(4):
(1) two auxiliary stroke sections whether are had before judging first chief editor's section of picture at least, and with first non-conterminous auxiliary stroke section of chief editor's section of picture in have at least one reverse with the direction of first chief editor's section of picture, if so, determine that the stroke section at first chief editor's section of picture place is first stroke of a Chinese character Zang Feng; If not, and before first chief editor's section of picture, there is at least one auxiliary stroke section, determine that the stroke section at first chief editor's section of picture place is that the first stroke of a Chinese character is paused pen;
(2) calculate the differential seat angle between first chief editor's section of picture and previous auxiliary stroke section, determine that the stroke section at first chief editor's section of picture place is that up time turns to or the inverse time turns to according to differential seat angle; When there is no auxiliary stroke section before first chief editor's section of picture, determine the stroke Duan Weizhi at first chief editor's section of picture place to;
(3) judge that whether the direction of the direction of non-conterminous auxiliary stroke section after last chief editor's section of picture and last chief editor's section of picture is reverse, if so, determine last chief editor's section of picture place stroke Duan Weishou Hui Feng; If not, and after last chief editor's section of picture, there is at least one auxiliary stroke section, determine that the stroke Duan Weishou pen at last chief editor's section of picture place pauses pen;
(4) calculate last chief editor and draw differential seat angle between the auxiliary stroke section of Duan Yuhou mono-, determine that the stroke section at last chief editor's section of picture place is that up time turns to or the inverse time turns to according to differential seat angle; After last chief editor's section of picture, there is no auxiliary stroke section, determine that the stroke Duan Weishou pen at last chief editor's section of picture place is full to the brim.
Step S112, determines the direction of above-mentioned chief editor's section of picture from all directions to rule according to the stroke section preset.
Here the stroke section preset all directions can be that the direction shown in Fig. 2 arranges rule to rule, by this rule, the direction of each chief editor's section of picture above-mentioned can be determined, and the direction of each chief editor's section of picture determines the current stroke write of user and is specially which kind of stroke, and then provide reliable data for the identification of follow-up stroke.
Step S114, by the feature of the direction of the above-mentioned chief editor's section of picture determined and above-mentioned stroke section (this stroke section comprises chief editor's section of picture and auxiliary stroke section) and the stroke Sample Storehouse comparison of setting up in advance, the stroke corresponding according to the result identification writing track data of comparison.
Because there is multiple style handwriting in Chinese calligraphy, such as Ouyang Style, the Yan style, the Liu style, the calligraphy style of Zhao Mengfu of the Yuan Dynasty etc., different style strokes has difference, therefore multiple stroke Sample Storehouse can be set up in advance, first corresponding according to the Feature Selection of above-mentioned stroke section Sample Storehouse, from this Sample Storehouse, determine corresponding stroke according to the Bezier of current stroke section correspondence again, so with the stroke Sample Storehouse comparison of setting up in advance, using successful for comparison stroke as stroke corresponding to above-mentioned writing track data.
The present embodiment is by processing the writing track data gathered, as: stroke feature is analyzed, mark the unique point of each stroke, mark off pen section, calculate the supplemental characteristic of needs, as a segment length, angle between section, tell critical path pen section, and judge stroke feature, as first stroke of a Chinese character Zang Feng, dew peak, receive a Hui Feng, the information such as full to the brim, then from stroke storehouse, this stroke is identified according to critical path pen section, this recognition method can identify the handwriting trace of user more quickly and accurately, and it is lower to the requirement of equipment, reduce the use cost of user.
When after the complete stroke of user writing, first the analytical calculation process of above-mentioned stroke is carried out, then compare with sample in stroke storehouse, concrete comparison process can comprise: the type first determining stroke, as horizontal, vertical, slash, cross break hook etc., and then according to the feature of stroke, the stroke sample be applicable to is selected at such as Zang Feng, dew peak etc. from stroke Sample Storehouse, None-identified is gone out to the use acquiescence sample of stroke, for identifying stroke, but can not determine the acquiescence sample also selecting this stroke of stroke sample.Concrete, the type identification of stroke can adopt following manner to realize: mainly according to 8 direction orders of stroke section, disclosed 8 direction calculating of stroke section, during identification, the direction code of main stroke section is arranged sequentially, contrast one by one with the stroke type in stroke storehouse, if mutual coupling, judge stroke type for this reason.If can not find applicable stroke type in stroke storehouse, then by the process of acquiescence stroke.
The samples selection of stroke can comprise: after identifying stroke type, select the concrete sample of this stroke type, this is mainly according to the stroke feature of previous calculations: first stroke of a Chinese character Zang Feng, the first stroke of a Chinese character pause pen, the first stroke of a Chinese character turn to, receive a Hui Feng, receive pen pause pen, receive pen full to the brim, receive that pen turns to determine, if these features are consistent with certain sample in stroke Sample Storehouse, use this sample, otherwise use the acquiescence sample of this stroke type.
After identifying above-mentioned stroke, can be plotted on corresponding screen, make the person's handwriting being similar to true writing brush stroke be presented on user at the moment.Wanted the stroke write by the row style line identification user writing track data gathered being analyzed to user, can from stroke storehouse, select the stroke be applicable to be shown on screen more accurately, make user can write out the calligraphy consistent with calligraphy famous expert.
Corresponding to said method, the embodiment of the present invention additionally provides a kind of row style line recognition device being applied to brush writing, and this device can be arranged in the terminal (computing machine, panel computer or mobile phone etc.) that is connected with user's handwriting input device.The shown in Figure 3 structured flowchart being applied to the row style line recognition device of brush writing, this device comprises:
Data acquisition module 31, presses the writing track data of writing to lifting in stopping writing process for gathering handwriting input device; Wherein, this writing track data comprises each and writes coordinate a little and time;
Data smoothing and interpolation processing module 32, for write according to each a little time order and function order to the smoothing process of writing track data and interpolation processing;
Feature point detection module 33, for writing a corresponding angle changing value in the writing track data after check processing, the point this angle changing value being exceeded setting threshold value is defined as unique point;
Stroke section divides module 34, and for adjacent unique point being connected the multiple stroke sections obtaining writing track data, multiple stroke section is divided into chief editor's section of picture and auxiliary stroke section by the length according to stroke section;
Stroke section characteristic determination module 35, for determining the feature of corresponding stroke section according to chief editor's section of picture and the intersegmental annexation of auxiliary stroke, the feature of this stroke section comprises: first stroke of a Chinese character Zang Feng, the first stroke of a Chinese character pause pen, the first stroke of a Chinese character turn to, receive a Hui Feng, receive pen pause pen, to receive pen full to the brim and receive pen and turn to;
Stroke section direction determination module 36, for determining the direction of above-mentioned chief editor's section of picture from all directions to rule according to the stroke section preset;
Stroke discrimination module 37, for by the feature in the direction of the above-mentioned chief editor's section of picture determined and above-mentioned stroke section and the stroke Sample Storehouse comparison of to set up in advance, the stroke corresponding according to the result identification writing track data of comparison.
The said apparatus of the present embodiment, by processing the writing track data gathered, as: stroke feature is analyzed, mark the unique point of each stroke, mark off pen section, calculate the supplemental characteristic of needs, as a segment length, angle between section, tell critical path pen section, and judge stroke feature, as first stroke of a Chinese character Zang Feng, dew peak, receive a Hui Feng, the information such as full to the brim, then from stroke storehouse, this stroke is identified according to critical path pen section, this recognition method can identify the handwriting trace of user more quickly and accurately, and it is lower to the requirement of equipment, reduce the use cost of user.
Above-mentioned data smoothing and interpolation processing module 32 comprise: data sorting unit, sort to writing track data for the time order and function order of writing according to each a little; Smoothing processing unit, for carrying out Douglas-Pu Ke smoothing processing to the writing track data after sequence; Interpolation process unit, for the writing track data equal intervals data inserting point after smoothing processing.
Further, above-mentioned feature point detection module 33 comprises: angle calcu-lation unit, for each point in the writing track data after traversal processing, calculate straight line and current data point that current data point and last data point form and a rear group of data points be in line between angle; Unique point determining unit, during for being less than default entering angle threshold value when the angle of current data point, the turnover of mark first paragraph detects and starts, and records the angle of the data point of follow-up traversal, until the angle of data point of record is greater than default when leaving angle threshold value, terminates first paragraph turnover and detect; Data point corresponding for angle minimum in the angle of the data point of record is defined as first paragraph to transfer the unique point detected; Continue the follow-up data point of traversal and carry out next section of turning point detection, until each the some traversal in writing track data is complete.
Above-mentioned stroke section shown in Figure 4 divides the concrete structure block diagram of module, and above-mentioned stroke section divides module 34 and comprises: length detection unit 342, for detecting the length of current stroke section; Length determining unit 344, for judging whether the length of current stroke section is less than the length threshold of setting; Wherein, this length threshold is the wide value with setting multiplication of pen; First determining unit 346, for when the length that the judged result of length determining unit 344 is current stroke section is less than the length threshold of setting, determines that current stroke section is auxiliary stroke section; Second determining unit 348, for when the length that the judged result of length determining unit 344 is current stroke section is not less than the length threshold of setting, determines that current stroke section is chief editor's section of picture.
Above-mentioned stroke section characteristic determination module 35 comprises with lower unit:
(1) cutting edge of a knife or a sword determining unit is hidden in the first stroke of a Chinese character, two auxiliary stroke sections whether were had at least before judging first chief editor's section of picture, and with first non-conterminous auxiliary stroke section of chief editor's section of picture in have at least one reverse with the direction of first chief editor's section of picture, if so, determine that the stroke section at first chief editor's section of picture place is first stroke of a Chinese character Zang Feng;
(2) first stroke of a Chinese character is paused a determining unit, is not first stroke of a Chinese character Zang Feng for the stroke section when first chief editor's section of picture place, and when having at least one auxiliary stroke section before first chief editor's section of picture, determines that the stroke section at first chief editor's section of picture place is that the first stroke of a Chinese character is paused pen;
(3) first stroke of a Chinese character turns to determining unit, for calculating the differential seat angle between first chief editor's section of picture and previous auxiliary stroke section, determines that the stroke section at first chief editor's section of picture place is that up time turns to or the inverse time turns to according to differential seat angle; When there is no auxiliary stroke section before first chief editor's section of picture, determine the stroke Duan Weizhi at first chief editor's section of picture place to;
(4) receive pen and return peak determining unit, whether the direction for the direction and last chief editor's section of picture that judge non-conterminous auxiliary stroke section after last chief editor's section of picture is reverse, if so, determines last chief editor's section of picture place stroke Duan Weishou Hui Feng;
(5) receive pen to pause a determining unit, for not being receive a Hui Feng when last chief editor's section of picture place stroke section, and when having at least one auxiliary stroke section after last chief editor's section of picture, determine that the stroke Duan Weishou pen at last chief editor's section of picture place pauses pen;
(6) receive pen and turn to determining unit, drawing differential seat angle between the auxiliary stroke section of Duan Yuhou mono-for calculating last chief editor, determining that the stroke section at last chief editor's section of picture place is that up time turns to or the inverse time turns to according to differential seat angle; After last chief editor's section of picture, there is no auxiliary stroke section, determine that the stroke Duan Weishou pen at last chief editor's section of picture place is full to the brim.
The device that the embodiment of the present invention provides, its technique effect realizing principle and generation is identical with preceding method embodiment, is concise and to the point description, and the not mentioned part of device embodiment part can with reference to corresponding contents in preceding method embodiment.
Process flow diagram in accompanying drawing and block diagram show system according to multiple embodiment of the present invention, the architectural framework in the cards of method and computer program product, function and operation.In this, each square frame in process flow diagram or block diagram can represent a part for module, program segment or a code, and a part for described module, program segment or code comprises one or more executable instruction for realizing the logic function specified.Also it should be noted that at some as in the realization of replacing, the function marked in square frame also can be different from occurring in sequence of marking in accompanying drawing.Such as, in fact two continuous print square frames can perform substantially concurrently, and they also can perform by contrary order sometimes, and this determines according to involved function.Also it should be noted that, the combination of the square frame in each square frame in block diagram and/or process flow diagram and block diagram and/or process flow diagram, can realize by the special hardware based system of the function put rules into practice or action, or can realize with the combination of specialized hardware and computer instruction.
The embodiment of the present invention additionally provides a kind of computer program being applied to the row style line identification of brush writing, comprise the computer-readable recording medium storing program code, the instruction that described program code comprises can be used for performing the method described in previous methods embodiment, specific implementation see embodiment of the method, can not repeat them here.
In several embodiments that the application provides, should be understood that disclosed apparatus and method can realize by another way.Device embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, again such as, multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some communication interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.
If described function using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection domain of claim.

Claims (10)

1. be applied to a row style line recognition methods for brush writing, it is characterized in that, comprising:
Gather handwriting input device and press the writing track data of writing to lifting in stopping writing process; Wherein, described writing track data comprises each and writes coordinate a little and time;
According to each write a little time order and function order to the smoothing process of described writing track data and interpolation processing;
Write a corresponding angle changing value in described writing track data after check processing, some angle changing value being exceeded setting threshold value is defined as unique point;
Adjacent described unique point is connected the multiple stroke sections obtaining described writing track data, and described multiple stroke section is divided into chief editor's section of picture and auxiliary stroke section by the length according to stroke section;
Determine the feature of corresponding stroke section according to described chief editor's section of picture and the intersegmental annexation of described auxiliary stroke, the feature of described stroke section comprises: first stroke of a Chinese character Zang Feng, the first stroke of a Chinese character pause pen, the first stroke of a Chinese character turn to, receive a Hui Feng, receive pen pause pen, to receive pen full to the brim and receive pen and turn to;
Determine the direction of described chief editor's section of picture from all directions to rule according to the stroke section preset;
By the feature of the direction of the described chief editor's section of picture determined and described stroke section and the stroke Sample Storehouse comparison of setting up in advance, the stroke that writing track data is corresponding according to the result identification of comparison.
2. method according to claim 1, is characterized in that, the time order and function order of writing a little according to each comprises the smoothing process of described writing track data and interpolation processing:
The time order and function order of writing a little according to each sorts to described writing track data;
Douglas-Pu Ke smoothing processing is carried out to the described writing track data after sequence;
Described writing track data equal intervals data inserting point after smoothing processing.
3. method according to claim 1, is characterized in that, writes a corresponding angle changing value in the described writing track data after check processing, and some angle changing value being exceeded setting threshold value is defined as unique point and comprises:
Each point in described writing track data after traversal processing, calculate straight line and described current data point that current data point and last data point form and a rear group of data points be in line between angle;
If the angle of described current data point is less than default entering angle threshold value, the turnover of mark first paragraph detects and starts, record the angle of the data point of follow-up traversal, until the angle of data point of record is greater than default when leaving angle threshold value, terminates the turnover of described first paragraph and detect; Data point corresponding for angle minimum in the angle of the data point of record is defined as described first paragraph to transfer the unique point detected; Continue the follow-up data point of traversal and carry out next section of turning point detection, until each the some traversal in described writing track data is complete.
4. method according to claim 1, is characterized in that, according to the length of stroke section described multiple stroke section is divided into chief editor's section of picture and auxiliary stroke section comprises:
Detect the length of current stroke section;
Judge whether the length of described current stroke section is less than the length threshold of setting; Wherein, described length threshold is the wide value with setting multiplication of pen;
If be less than, determine that described current stroke section is auxiliary stroke section;
If be not less than, determine that described current stroke section is chief editor's section of picture.
5. method according to claim 1, is characterized in that, determines that the feature of corresponding stroke section comprises according to described chief editor's section of picture and the intersegmental annexation of described auxiliary stroke:
Two auxiliary stroke sections whether are had at least before judging first chief editor's section of picture, and with the non-conterminous auxiliary stroke section of described first chief editor's section of picture in have at least one reverse with the direction of described first chief editor's section of picture, if so, the stroke section determining described first chief editor's section of picture place is first stroke of a Chinese character Zang Feng; If not, and before first chief editor's section of picture, there is at least one auxiliary stroke section, determine that the stroke section at described first chief editor's section of picture place is that the first stroke of a Chinese character is paused pen;
Calculate the differential seat angle between first chief editor's section of picture and previous auxiliary stroke section, determine that the stroke section at described first chief editor's section of picture place is that up time turns to or the inverse time turns to according to described differential seat angle; When there is no auxiliary stroke section before first chief editor's section of picture, determine the stroke Duan Weizhi at described first chief editor's section of picture place to;
Judge that whether the direction of the direction of non-conterminous auxiliary stroke section after last chief editor's section of picture and last chief editor's section of picture described is reverse, if so, determine described last chief editor's section of picture place stroke Duan Weishou Hui Feng; If not, and there is at least one auxiliary stroke section after last chief editor's section of picture described, determine that the stroke Duan Weishou pen at last chief editor's section of picture place described pauses pen;
Calculate last chief editor and draw differential seat angle between the auxiliary stroke section of Duan Yuhou mono-, determine that according to described differential seat angle the stroke section at last chief editor's section of picture place described is that up time turns to or the inverse time turns to; After last chief editor's section of picture, there is no auxiliary stroke section, determine that the stroke Duan Weishou pen at last chief editor's section of picture place described is full to the brim.
6. be applied to a row style line recognition device for brush writing, it is characterized in that, comprising:
Data acquisition module, presses the writing track data of writing to lifting in stopping writing process for gathering handwriting input device; Wherein, described writing track data comprises each and writes coordinate a little and time;
Data smoothing and interpolation processing module, for write according to each a little time order and function order to the smoothing process of described writing track data and interpolation processing;
Feature point detection module, for writing a corresponding angle changing value in the described writing track data after check processing, some angle changing value being exceeded setting threshold value is defined as unique point;
Stroke section divides module, and for adjacent described unique point is connected the multiple stroke sections obtaining described writing track data, described multiple stroke section is divided into chief editor's section of picture and auxiliary stroke section by the length according to stroke section;
Stroke section characteristic determination module, for determining the feature of corresponding stroke section according to described chief editor's section of picture and the intersegmental annexation of described auxiliary stroke, the feature of described stroke section comprises: first stroke of a Chinese character Zang Feng, the first stroke of a Chinese character pause pen, the first stroke of a Chinese character turn to, receive a Hui Feng, receive pen pause pen, to receive pen full to the brim and receive pen and turn to;
Stroke section direction determination module, for determining the direction of described chief editor's section of picture from all directions to rule according to the stroke section preset;
Stroke discrimination module, for by the feature in the direction of the described chief editor's section of picture determined and described stroke section and the stroke Sample Storehouse comparison of to set up in advance, the stroke that writing track data is corresponding according to the result identification of comparison.
7. device according to claim 6, is characterized in that, described data smoothing and interpolation processing module comprise:
Data sorting unit, sorts to described writing track data for the time order and function order of writing according to each a little;
Smoothing processing unit, for carrying out Douglas-Pu Ke smoothing processing to the described writing track data after sequence;
Interpolation process unit, for the described writing track data equal intervals data inserting point after smoothing processing.
8. device according to claim 6, is characterized in that, described feature point detection module comprises:
Angle calcu-lation unit, for each point in the described writing track data after traversal processing, calculate straight line and described current data point that current data point and last data point form and a rear group of data points be in line between angle;
Unique point determining unit, during for being less than default entering angle threshold value when the angle of described current data point, the turnover of mark first paragraph detects and starts, record the angle of the data point of follow-up traversal, until the angle of data point of record is greater than default when leaving angle threshold value, terminates the turnover of described first paragraph and detect; Data point corresponding for angle minimum in the angle of the data point of record is defined as described first paragraph to transfer the unique point detected; Continue the follow-up data point of traversal and carry out next section of turning point detection, until each the some traversal in described writing track data is complete.
9. device according to claim 6, is characterized in that, described stroke section divides module and comprises:
Length detection unit, for detecting the length of current stroke section;
Length determining unit, for judging whether the length of described current stroke section is less than the length threshold of setting; Wherein, described length threshold is the wide value with setting multiplication of pen;
First determining unit, for when the judged result of described length determining unit be the length of described current stroke section be less than the length threshold of described setting time, determine that described current stroke section is auxiliary stroke section;
Second determining unit, for when the judged result of described length determining unit be the length of described current stroke section be not less than the length threshold of described setting time, determine that described current stroke section is chief editor's section of picture.
10. device according to claim 6, is characterized in that, described stroke section characteristic determination module comprises:
Cutting edge of a knife or a sword determining unit is hidden in the first stroke of a Chinese character, two auxiliary stroke sections whether were had at least before judging first chief editor's section of picture, and with the non-conterminous auxiliary stroke section of described first chief editor's section of picture in have at least one reverse with the direction of described first chief editor's section of picture, if so, the stroke section determining described first chief editor's section of picture place is first stroke of a Chinese character Zang Feng;
The first stroke of a Chinese character is paused a determining unit, is not first stroke of a Chinese character Zang Feng for the stroke section when described first chief editor's section of picture place, and when having at least one auxiliary stroke section before first chief editor's section of picture, determines that the stroke section at described first chief editor's section of picture place is that the first stroke of a Chinese character is paused pen;
The first stroke of a Chinese character turns to determining unit, for calculating the differential seat angle between first chief editor's section of picture and previous auxiliary stroke section, determines that the stroke section at described first chief editor's section of picture place is that up time turns to or the inverse time turns to according to described differential seat angle; When there is no auxiliary stroke section before first chief editor's section of picture, determine the stroke Duan Weizhi at described first chief editor's section of picture place to;
Receive pen and return peak determining unit, whether the direction for the direction and last chief editor's section of picture described that judge non-conterminous auxiliary stroke section after last chief editor's section of picture is reverse, if so, determines described last chief editor's section of picture place stroke Duan Weishou Hui Feng;
Receive pen to pause a determining unit, for when last chief editor's section of picture place stroke section described not being a receipts Hui Feng, and when having at least one auxiliary stroke section after last chief editor's section of picture described, determine that the stroke Duan Weishou pen at last chief editor's section of picture place described pauses pen;
Receiving pen and turn to determining unit, drawing differential seat angle between the auxiliary stroke section of Duan Yuhou mono-for calculating last chief editor, determine that according to described differential seat angle the stroke section at last chief editor's section of picture place described is that up time turns to or the inverse time turns to; After last chief editor's section of picture, there is no auxiliary stroke section, determine that the stroke Duan Weishou pen at last chief editor's section of picture place described is full to the brim.
CN201510401749.1A 2015-07-09 2015-07-09 Row style line recognition methods and device applied to brush writing Active CN104951811B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510401749.1A CN104951811B (en) 2015-07-09 2015-07-09 Row style line recognition methods and device applied to brush writing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510401749.1A CN104951811B (en) 2015-07-09 2015-07-09 Row style line recognition methods and device applied to brush writing

Publications (2)

Publication Number Publication Date
CN104951811A true CN104951811A (en) 2015-09-30
CN104951811B CN104951811B (en) 2018-05-29

Family

ID=54166451

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510401749.1A Active CN104951811B (en) 2015-07-09 2015-07-09 Row style line recognition methods and device applied to brush writing

Country Status (1)

Country Link
CN (1) CN104951811B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107273806A (en) * 2017-05-18 2017-10-20 上海斐讯数据通信技术有限公司 A kind of painting and calligraphy exercising method and system based on virtual reality
CN108958455A (en) * 2018-07-10 2018-12-07 深圳闳宸科技有限公司 Handwriting trace projecting method and device
CN110070053A (en) * 2019-04-24 2019-07-30 北京盛世宣合信息科技有限公司 A kind of character feature extracting method and device
CN114585992A (en) * 2020-09-29 2022-06-03 京东方科技集团股份有限公司 Writing track processing method, touch control equipment, writing system and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1121662C (en) * 1995-06-05 2003-09-17 摩托罗拉公司 Method and microprocessor for preprocessing handwriting having characters compesed of preponderance of straight line segments
US7302099B2 (en) * 2003-11-10 2007-11-27 Microsoft Corporation Stroke segmentation for template-based cursive handwriting recognition
CN101882026A (en) * 2010-06-30 2010-11-10 北京捷通华声语音技术有限公司 Method and device for handwriting and training method and device of handwriting template classifier

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1121662C (en) * 1995-06-05 2003-09-17 摩托罗拉公司 Method and microprocessor for preprocessing handwriting having characters compesed of preponderance of straight line segments
US7302099B2 (en) * 2003-11-10 2007-11-27 Microsoft Corporation Stroke segmentation for template-based cursive handwriting recognition
CN101882026A (en) * 2010-06-30 2010-11-10 北京捷通华声语音技术有限公司 Method and device for handwriting and training method and device of handwriting template classifier

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
樊庆林: "基于笔画的联机手写汉字识别系统的研究与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107273806A (en) * 2017-05-18 2017-10-20 上海斐讯数据通信技术有限公司 A kind of painting and calligraphy exercising method and system based on virtual reality
CN108958455A (en) * 2018-07-10 2018-12-07 深圳闳宸科技有限公司 Handwriting trace projecting method and device
CN110070053A (en) * 2019-04-24 2019-07-30 北京盛世宣合信息科技有限公司 A kind of character feature extracting method and device
CN110070053B (en) * 2019-04-24 2022-03-15 北京盛世宣合信息科技有限公司 Font feature extraction method and device
CN114585992A (en) * 2020-09-29 2022-06-03 京东方科技集团股份有限公司 Writing track processing method, touch control equipment, writing system and storage medium
CN114585992B (en) * 2020-09-29 2024-06-11 京东方科技集团股份有限公司 Writing track processing method, touch control equipment, writing system and storage medium

Also Published As

Publication number Publication date
CN104951811B (en) 2018-05-29

Similar Documents

Publication Publication Date Title
CN105046730A (en) Writing trace demonstration method and apparatus applied to writing brush
JP4787275B2 (en) Segmentation-based recognition
CN108073913B (en) Handwriting datamation data acquisition method
US6600834B1 (en) Handwriting information processing system with character segmentation user interface
US9141134B2 (en) Utilization of temporal and spatial parameters to enhance the writing capability of an electronic device
US7302099B2 (en) Stroke segmentation for template-based cursive handwriting recognition
US9360955B2 (en) Text entry for electronic devices
JP2008250375A (en) Character input device, method, and program
CN106325737A (en) Method and equipment for erasing writing path
CN104951811A (en) Handwriting trace recognition method and device for writing with writing brush
CN109886256A (en) Intelligence evaluation and test equipment and system
CN107944451B (en) Line segmentation method and system for ancient Tibetan book documents
CN106650648A (en) Identification method and system for erasing handwriting
CN112836542B (en) Handwriting practicing method and system based on dot matrix codes and computer readable medium
KR102677200B1 (en) Gesture stroke recognition in touch-based user interface input
CN114253435A (en) Handwriting display method and device, electronic equipment and storage medium
CN109086336A (en) Paper date storage method, device and electronic equipment
CN104978581B (en) The handwriting trace method of sampling and device applied to writing brush
CN101697234A (en) Stroke segmentation modeling-based handwritten Chinese character Lishu beautifying method
CN109472257B (en) Character layout determining method and device
CN104794485A (en) Method and device for recognizing written words
CN101364271B (en) Method for recognizing hand-written Chinese character strokes and recognition device
CN112580574A (en) Intelligent learning method and device based on handwritten character recognition
CN210038810U (en) Intelligent evaluation equipment and system
CN109758763B (en) Character input method and device based on game paddle

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant