CN109284059B - Handwriting drawing method and device, interactive intelligent panel and storage medium - Google Patents

Handwriting drawing method and device, interactive intelligent panel and storage medium Download PDF

Info

Publication number
CN109284059B
CN109284059B CN201810987750.0A CN201810987750A CN109284059B CN 109284059 B CN109284059 B CN 109284059B CN 201810987750 A CN201810987750 A CN 201810987750A CN 109284059 B CN109284059 B CN 109284059B
Authority
CN
China
Prior art keywords
point
touch
width
points
handwriting
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.)
Active
Application number
CN201810987750.0A
Other languages
Chinese (zh)
Other versions
CN109284059A (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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201810987750.0A priority Critical patent/CN109284059B/en
Publication of CN109284059A publication Critical patent/CN109284059A/en
Application granted granted Critical
Publication of CN109284059B publication Critical patent/CN109284059B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • 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/32Digital ink

Abstract

The invention relates to a handwriting drawing method and device, an interactive intelligent panel and a storage medium, which are applied to the interactive intelligent panel. The method comprises the following steps: acquiring a touch point; the touch points are points triggered by handwriting writing events on the interactive intelligent flat touch screen; calculating the width of the touch point and a skeleton line of the handwriting corresponding to the touch point; determining the outline of the handwriting; the contour line is obtained by calculation according to the width of the touch point; acquiring an inflection point in a contour line, and generating a Bezier curve corresponding to the inflection point as the smoothed contour line; the trend of the Bezier curve is determined by the trend of the skeleton line; and drawing the handwriting according to the smoothed contour line. The embodiment of the invention solves the problem that the edge of the drawn handwriting is relatively hard, and improves the handwriting writing effect based on the interactive intelligent panel.

Description

Handwriting drawing method and device, interactive intelligent panel and storage medium
Technical Field
The invention relates to the technical field of interactive intelligent panels, in particular to a handwriting drawing method and device on an interactive intelligent panel, the interactive intelligent panel and a storage medium.
Background
In the field of interactive intelligent panels, handwriting writing functions are one of more and more important functions of the interactive intelligent panels, and are widely applied to work and study of people, so that the work and study effects of people are greatly improved. For example, in a teaching scene, a teacher can write handwriting on a current interactive smart tablet, and a student can view the handwriting written by the teacher through the interactive smart tablet.
The handwriting writing function can be realized through software and related hardware in the interactive intelligent panel, after the touch screen detects a handwriting writing event, the touch screen hardware collects touch information and sends the touch information to a system in the interactive intelligent panel, and after the system obtains a touch point through analysis, handwriting can be drawn on a display screen of the interactive intelligent panel based on the touch point. In the process of implementing the invention, the inventor finds that the following problems exist in the prior art, and the handwriting drawing effect is poor due to the fact that the edge of the handwriting displayed by the display screen of the interactive intelligent panel is relatively hard.
Disclosure of Invention
Therefore, it is necessary to provide a handwriting drawing method and apparatus for an interactive intelligent tablet, the interactive intelligent tablet, and a storage medium, for solving the problem that the edge of the handwriting drawn on the interactive intelligent tablet is hard in the existing manner.
According to a first aspect of the invention, a handwriting drawing method on an interactive intelligent tablet is provided, which comprises the following steps:
acquiring a touch point; the touch points are points triggered by handwriting writing events on the interactive intelligent flat touch screen;
calculating the width of the touch point and calculating a skeleton line of the handwriting corresponding to the touch point;
determining the outline of the handwriting; the contour line is obtained according to the touch point and the width of the touch point;
acquiring an inflection point in a contour line, and generating a Bezier curve corresponding to the inflection point as the smoothed contour line; the trend of the Bezier curve is determined by the trend of the skeleton line;
and drawing the handwriting according to the smoothed contour line.
In one embodiment, the generating a bezier curve corresponding to the inflection point includes:
drawing a straight line perpendicular to the skeleton line through the reference point; the reference point is the central point of two adjacent touch points;
acquiring the intersection point of the straight line and the contour line as a fixed point;
determining inflection points in the contour line as control points;
and generating a Bezier curve according to the control point and the fixed point to obtain the Bezier curve corresponding to the inflection point.
In one embodiment, the calculating a skeleton line of the handwriting corresponding to the touch point includes:
connecting two adjacent touch points to obtain a touch point connecting line;
and obtaining skeleton lines of the handwriting according to the touch point connecting lines.
In one embodiment, the obtaining a skeleton line of the handwriting according to the connection line of the touch points includes:
acquiring an included angle of a connecting line of two adjacent touch points;
if the target included angle exists, taking a touch point at the target included angle as a dividing point, and dividing the touch point into a first touch point set and a second touch point set; the target included angle is an included angle which is smaller than or equal to 90 degrees in the included angles;
respectively obtaining a first Bezier curve corresponding to the first touch point set and a second Bezier curve corresponding to the second touch point set;
and communicating the first Bezier curve and the second Bezier curve at the segmentation point in a corner mode to obtain a skeleton line of the handwriting.
In one embodiment, the obtaining, based on the bezier algorithm, a first bezier curve corresponding to the first set of touch points and a second bezier curve corresponding to the second set of touch points respectively includes:
determining the central points of two adjacent touch points as fixed points, and determining the two adjacent touch points as control points;
and making a Bezier curve according to the control points and the fixed points to obtain a first Bezier curve corresponding to the first touch point set and a second Bezier curve corresponding to the second touch point set.
In one embodiment, the method further comprises the following steps:
and if the target included angle does not exist, generating a Bezier curve corresponding to the touch point as a skeleton line of the handwriting.
In one embodiment, the calculating the width of the touch point includes:
identifying a pen point and a non-pen point in the touch points;
and respectively calculating the widths of the pen front points and the non-pen front points.
In one embodiment, the calculating the width of the non-peak point and the first peak point includes:
acquiring the writing speed of the touch point;
obtaining the width of a touch point according to the writing speed; the width corresponding to the touch point with the higher writing speed is larger than the width corresponding to the touch point with the lower writing speed.
In one embodiment, the acquiring the writing speed of the touch point includes:
and acquiring a touch point and a distance between adjacent touch points before the touch point, and taking the distance as the writing speed of the touch point.
In one embodiment, calculating the width of the non-peak point and the first peak point comprises:
and the width corresponding to the first touch point in the touch points is equal to the preset default width.
In one embodiment, the calculating the widths of the non-peak point and the first peak point further includes:
for touch points other than the first touch point, determining the width of the touch point by adopting the formula (1):
Figure 439465DEST_PATH_IMAGE001
(1)
wherein the content of the first and second substances,
Figure 887764DEST_PATH_IMAGE002
Figure 198659DEST_PATH_IMAGE003
which represents the width of the touch point,
Figure 623562DEST_PATH_IMAGE004
indicating a writing speed of the touch point,
Figure 969093DEST_PATH_IMAGE005
are all preset empirical values, and are,
Figure 322714DEST_PATH_IMAGE006
is a preset default width.
In one embodiment, calculating the width of the pen point other than the first pen point comprises:
acquiring the width corresponding to the first pen point as the initial width of the pen point;
obtaining the distance between a pen point and a first pen point;
obtaining the width of the pen point according to the initial width and the distance;
the larger the distance between the pen point and the first pen point is, the smaller the corresponding width is.
In one embodiment, the outline of the tip point portion forms a triangle.
In one embodiment, the determining the contour line of the handwriting includes:
and connecting the widths of the touch points to obtain the contour line of the handwriting.
In one embodiment, the acquiring the touch point includes:
acquiring touch data transmitted by a USB interface; the USB interface is a connection interface between the touch screen and a mainboard of the interactive intelligent panel;
and analyzing the touch data to obtain touch points.
According to a second aspect of the present invention, there is provided a handwriting drawing device on an interactive smart tablet, comprising:
the input acquisition module is used for acquiring touch points; the touch points are points triggered by handwriting writing events on the interactive intelligent flat touch screen;
the width and skeleton determining module is used for calculating the width of the touch point and calculating a skeleton line of the handwriting corresponding to the touch point;
the outline determining module is used for determining the outline of the handwriting; the contour line is obtained according to the touch point and the width of the touch point;
the smoothing module is used for acquiring an inflection point in the contour line and generating a Bezier curve corresponding to the inflection point as the smoothed contour line; the trend of the Bezier curve is determined by the trend of the skeleton line;
and the rendering module is used for drawing the handwriting according to the smoothed contour line.
In one embodiment, the smoothing module comprises:
the fixed point determining unit is used for drawing a straight line perpendicular to the skeleton line through the reference point; the reference point is the central point of two adjacent touch points; acquiring the intersection point of the straight line and the contour line as a fixed point;
a control point determining unit for determining an inflection point in the contour line as a control point;
and the curve determining unit is used for generating a Bezier curve according to the control point and the fixed point to obtain the Bezier curve corresponding to the inflection point.
In one embodiment, the width and skeleton determination module comprises:
the framework determining unit is used for connecting two adjacent touch points to obtain a touch point connecting line; and obtaining skeleton lines of the handwriting according to the touch point connecting lines.
In one embodiment, the skeleton determining unit includes:
the angle acquisition subunit is used for acquiring an included angle between connecting lines of two adjacent touch points;
the touch point dividing subunit is used for dividing the touch points into a first touch point set and a second touch point set by taking the touch points at the target included angles as dividing points if the target included angles exist; the target included angle is an included angle which is smaller than or equal to 90 degrees in the included angles;
the curve determining subunit is used for respectively obtaining a first Bezier curve corresponding to the first touch point set and a second Bezier curve corresponding to the second touch point set;
and the first skeleton determining subunit is used for communicating the first Bezier curve and the second Bezier curve at the segmentation point in a corner angle mode to obtain a skeleton line of the handwriting.
In one embodiment, the skeleton determining unit further includes:
and the second skeleton determining subunit is used for generating a Bezier curve corresponding to the touch point as a skeleton line of the handwriting if the target included angle does not exist.
In one embodiment, the width and skeleton determining module further comprises:
the width determining unit is used for identifying the pen point and the non-pen point in the touch points; and respectively calculating the widths of the pen front points and the non-pen front points.
In one embodiment, the width determining unit includes:
the speed acquisition subunit is used for acquiring the writing speed of the touch point; the touch point is a non-pen point and a first pen point;
the first width calculating subunit is used for obtaining the width of the touch point according to the writing speed; the width corresponding to the touch point with the higher writing speed is larger than the width corresponding to the touch point with the lower writing speed.
In one embodiment, the speed obtaining subunit is specifically configured to obtain a touch point and a distance between adjacent touch points before the touch point, and use the distance as the writing speed of the touch point.
In one embodiment, the first width calculating subunit is further configured to determine a width corresponding to a first touch point of the touch points as a preset default width.
In one embodiment, the width determining unit further includes:
the second width calculating subunit is used for acquiring the width corresponding to the first pen front point as the initial width of the pen front point; obtaining the distance between a pen point and a first pen point; obtaining the width of the pen point according to the initial width and the distance;
the larger the distance between the pen point and the first pen point is, the smaller the corresponding width is.
In one embodiment, the input acquisition module comprises:
the acquisition unit is used for acquiring touch data transmitted by the USB interface; the USB interface is a connection interface between the touch screen and a mainboard of the interactive intelligent panel;
and the analyzing unit is used for analyzing the touch data to obtain a touch point.
According to a third aspect of the present invention, there is provided an interactive smart tablet, comprising a memory, a display screen with touch functionality, and a processor; the memory is used for storing a computer program; the computer program, when executed by the processor, causes the processor to implement the steps of the handwriting drawing method of any of the embodiments described above.
According to a fourth aspect of the present invention, there is provided a computer storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the method of handwriting rendering as in any of the embodiments described above.
According to the embodiment provided by the invention, after a user writes handwriting on the interactive intelligent tablet, based on the collected touch points, firstly, calculating the skeleton line of the handwriting and the corresponding width of the touch points; then, determining the contour line of the handwriting, wherein the contour line is obtained according to the touch point and the width of the touch point; finally, acquiring an inflection point in the contour line, and generating a Bezier curve corresponding to the inflection point, wherein the trend of the Bezier curve is determined by the trend of the skeleton line and is used as the smoothed contour line; and drawing the handwriting according to the smoothed contour line, thereby obtaining smooth and smooth handwriting and improving the handwriting drawing effect.
Drawings
FIG. 1 is a diagram of a hardware environment in which a handwriting rendering method on an interactive smart tablet is applicable in one embodiment;
FIG. 2 is a schematic flow diagram of a method for handwriting rendering on an interactive smart tablet, according to an embodiment;
FIG. 3 is a schematic logic flow diagram of acquiring touch data according to an embodiment;
FIG. 4 is a schematic effect diagram of calculating handwriting skeleton lines and touch point widths of an embodiment;
FIG. 5 is a schematic effect diagram of determining a handwriting outline according to one embodiment;
FIG. 6 is a schematic effect diagram of inflection points and fixes for an embodiment;
FIG. 7 is a schematic effect diagram of a straight line perpendicular to the skeleton line according to an embodiment;
FIG. 8A is a schematic diagram of acquired touch points, according to an embodiment;
FIG. 8B is a schematic diagram of a segmentation of the touch points of FIG. 8A;
FIG. 8C is a schematic diagram of skeleton lines corresponding to the touch points of FIG. 8A;
FIG. 9 is a schematic diagram of a touch point width and a tip contour line of a tip according to an embodiment;
FIG. 10 is a schematic block diagram of a handwriting drawing apparatus of an embodiment;
FIG. 11 is an internal block diagram of an interactive smart tablet in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The handwriting drawing method provided by the application can be applied to a hardware environment as shown in FIG. 1. A variety of applications may be installed in the interactive smart tablet 100, such as a text editing application, a document presentation application, an instant messaging application, an image editing application, and so on. The system comprises a text editing application program, a document demonstration application program, an instant messaging application program and a video conference application program, wherein the text editing application program comprises an electronic whiteboard application and an electronic blackboard application, the document demonstration application program comprises a wireless screen projection application, and the instant messaging application program comprises a video conference application.
In an embodiment, the interactive smart tablet integrates one or more functions of a projector, an electronic whiteboard, a curtain, a sound, a television, a video conference terminal and the like, and controls content displayed on the tablet and realizes man-machine interaction operation through a touch technology.
In an embodiment, the display screen of the interactive smart tablet 100 is a touch screen, which may include: capacitive screen, electromagnetic screen or infrared screen, etc. Generally, the touch screen may receive a touch operation input by a user through a finger or an input device. Wherein the input device includes but is not limited to: capacitive pens, electromagnetic pens and/or infrared pens, etc.
Optionally, the application software for handwriting writing is installed in the interactive smart tablet 100, and the application software may be installed in the interactive smart tablet 100 in advance, or may be downloaded from a third-party device or a server and installed for use after the interactive smart tablet 100 is started. The third-party device is not limited in the embodiment. Specifically, the application software is configured to draw corresponding handwriting on the display screen of the interactive smart tablet 100 according to a handwriting writing event (belonging to a touch event) of the user on the touch screen.
In one embodiment, as shown in fig. 2, there is provided a method of handwriting drawing, comprising the steps of:
s110, acquiring a touch point; the touch points are points triggered by handwriting writing events on the interactive intelligent flat touch screen.
The step of acquiring the touch point may be understood as a step of acquiring touch data input by the touch screen. For the interactive smart tablet, the manner of acquiring the touch data input by the touch screen can adopt the existing input acquisition manner, namely, the hardware collects the touch message and sends the touch message to the PC system of the interactive intelligent tablet, taking the PC system as a Windows system as an example, on one hand, the Windows system collects the touch data through the WISP process, while on the other hand triggering a mouse message and telling the WPF program (microsoft provided interface framework), which, upon receiving the mouse message, querying whether the WISP process collected touch data at the corresponding time, if the WISP process collected touch data at the corresponding time, the WPF program may determine that the system currently received a touch message, the WPF program further acquires touch data from the WISP process, analyzes the touch data to obtain touch points, and draws handwriting on a display screen of the interactive intelligent panel based on the touch points; the logic flow for its implementation is shown in fig. 3. The method for acquiring the touch data input by the touch screen has the problems of more steps and low input acquisition efficiency.
In order to solve the problem of low input acquisition efficiency, in an embodiment, a touch point is acquired by adopting a mode of acquiring touch data transmitted by a USB interface, wherein the USB interface is a connection interface between a touch screen and a mainboard of an interactive intelligent flat panel; and analyzing the touch data to obtain a touch point. The method directly obtains the touch data from the hardware, so that the touch data obtaining efficiency is improved.
In the interactive intelligent panel, the touch screen is connected with a mainboard of the interactive intelligent panel in a USB mode, and the touch screen can send a touch message to the mainboard through a USB interface; therefore, the touch data can be acquired by directly reading the USB interface. Specifically, the step of acquiring the touch point may include: and acquiring the touch frame through the PID/VID of the USB interface in the starting process, creating a thread to detect whether the touch frame sends data in real time, and analyzing the touch data to obtain a touch point if the touch data sent by the touch frame is received. Wherein, according to the specification of the USB specification, all USB devices have a Vendor Id (VID) and a product identification code (PID), and the host distinguishes between different USB devices by different VIDs and PIDs.
And S120, calculating the width of the touch point and a skeleton line of the handwriting corresponding to the touch point.
In step S120, the calculation is divided into two parts, namely a skeleton and a width, where skeleton lines of the handwriting can be understood as writing tracks of the handwriting, and after the touch point is obtained, the touch point needs to be converted into a line, where the line is used as a skeleton line of the handwriting, and the specific implementation manner is, for example: connecting two adjacent touch points to obtain a touch point connecting line; and further obtaining skeleton lines of the handwriting according to the touch point connecting lines, as shown in fig. 4.
In addition, the user can write handwriting with different thicknesses through the touch screen, and correspondingly, the width corresponding to the touch point, which needs to be calculated in this step, can be understood as the thickness of the handwriting, as shown in fig. 4.
S130, determining the outline of the handwriting; and the contour line is obtained according to the touch point and the width of the touch point.
After obtaining each touch point and its width, the outline of the handwriting can be preliminarily determined by connecting the envelopes corresponding to the widths, as shown in fig. 5.
S140, acquiring an inflection point in the contour line, and generating a Bezier curve corresponding to the inflection point as the smoothed contour line; the trend of the Bezier curve is determined by the trend of the skeleton line.
As shown in fig. 6, there are some inflection points in the outline of the handwriting, which may cause the drawn handwriting to be unsmooth if the handwriting is directly drawn according to the outline. In this embodiment, the bezier curve corresponding to the inflection point is generated as the smoothed contour line, so that the inflection point in the contour line can be eliminated to obtain the smoothed contour line.
As shown in fig. 7, in an embodiment, the bezier curve corresponding to the inflection point is generated by, for example: drawing a straight line perpendicular to the skeleton line through the reference point; the reference point is the central point of two adjacent touch points; acquiring the intersection point of the straight line and the contour line as a fixed point; determining inflection points in the contour line as control points; and generating a Bezier curve according to the control point and the fixed point to obtain the Bezier curve corresponding to the inflection point. The direction of the Bezier curve obtained by the method is determined by the routing of the skeleton line.
And S150, drawing the handwriting according to the smoothed contour line.
The handwriting drawing method may adopt an existing handwriting rendering method, for example, a touch message is converted into a mouse message, a line is drawn from a Down Move Up of the mouse message, the line is drawn at the Down, the Move calculates a line to be drawn, and the line is drawn at the Up. And drawing the handwriting through the smoothed contour line, thereby obtaining smooth handwriting.
In the interactive intelligent tablet, the Path of the WPF is usually adopted for rendering the handwriting, but the rendering of the WPF needs to wait for the rendering of other interface elements, the rendering time cannot be controlled, so that the handwriting cannot be quickly rendered, and handwriting delay exists. To address this problem, in an embodiment, the step of drawing the handwriting according to the smoothed contour line may include: when handwriting is required to be drawn, a thread is created, the thread is only used for rendering the handwriting, interface elements are not rendered, and the problem of handwriting delay is solved by drawing the handwriting through the thread.
According to the handwriting drawing method on the interactive intelligent panel, after a user writes handwriting on the interactive intelligent panel, firstly, the skeleton line of the handwriting and the corresponding width of the touch point are obtained based on the collected touch point; then, determining the contour line of the handwriting, wherein the contour line is obtained according to the touch point and the width of the touch point; finally, acquiring an inflection point in the contour line, and generating a Bezier curve corresponding to the inflection point, wherein the trend of the Bezier curve is determined by the trend of the skeleton line and is used as the smoothed contour line; and drawing the handwriting according to the smoothed contour line, thereby obtaining smooth and smooth handwriting and improving the handwriting drawing effect.
On the interactive intelligent tablet, the handwriting of the user can comprise Chinese characters, numbers, English letters or figures and the like; taking the example of writing Chinese characters and English letters by users, the differences include that edges and corners of strokes exist in Chinese character writing, namely turning of the strokes, and the edges and corners do not exist in English letter writing. However, the existing handwriting drawing methods cannot be distinguished, so that the places which are supposed to be drawn as edges and corners are drawn as circular arcs when the Chinese characters are written, and the existing handwriting drawing methods also have the problem of unsatisfactory handwriting drawing effect.
In order to solve the problem that the handwriting drawing effect is not ideal, in one embodiment, in the process of calculating skeleton lines of the handwriting according to the touch points, the method specifically comprises two steps of dividing the points and drawing the points into lines. The point segmentation refers to identifying whether the current handwriting written by the user is a Chinese character, if so, taking the turning point of the stroke as a segmentation point, and segmenting the touch point to obtain two touch points; the point drawing as the line means that the skeleton of the two touch points obtained by division can be calculated according to the conventional mode, and the edge angle mode is adopted to draw the line at the division point so as to embody the characteristics of the Chinese characters.
In an example, the step of obtaining a skeleton line of the handwriting according to the connection of the touch points includes: acquiring an included angle of a connecting line of two adjacent touch points; if the target included angle exists, taking a touch point at the target included angle as a dividing point, and dividing the touch point into a first touch point set and a second touch point set; the target included angle is an included angle which is smaller than or equal to 90 degrees in the included angles; respectively obtaining a first Bezier curve corresponding to the first touch point set and a second Bezier curve corresponding to the second touch point set based on a Bezier algorithm; and communicating the first Bezier curve and the second Bezier curve at the segmentation point in a corner mode to obtain a skeleton line of the handwriting.
In other embodiments, if there is no included angle smaller than or equal to 90 degrees, a bezier curve corresponding to the touch point may be directly generated as a skeleton line of the handwriting. For example: determining the central points of two adjacent touch points as fixed points, and determining the two adjacent touch points as control points; and making a Bezier curve according to the determined control point and the determined fixed point to obtain the Bezier curve corresponding to the touch point.
In order to better understand the above-mentioned skeleton line determination process of handwriting, the calculation process of skeleton lines is described below with reference to fig. 8A to 8C. As shown in fig. 8A, the touch points 71-75 are collected, two adjacent touch points are connected to obtain an included angle of the connecting line, a target included angle (included angle a) is found, the touch points 71-75 are divided into two parts based on a dividing point 73, one part is the touch points 71, 72 and 73, and the other part is the touch points 73, 74 and 75; generating Bezier curves corresponding to the touch points 71, 72 and 73, generating Bezier curves corresponding to the touch points 73, 74 and 75, and connecting the intersection of the two Bezier curves at the division point 73 in a corner mode to obtain skeleton lines of handwriting as shown in FIG. 8C.
Whether English or Chinese is expected to be written by a user is judged through the angle of the connecting line included angle of the touch points, and whether a skeleton line needs to be generated in a corner mode or not is judged, so that the attractiveness of handwriting drawing is improved.
Further, in one embodiment, the method for calculating the widths corresponding to the touch points includes: identifying a pen point and a non-pen point in the touch points; and respectively calculating the widths of the pen front points and the non-pen front points. The first stroke point is adjacent to the last non-stroke point, so that the width of the first stroke point can be calculated by adopting a width calculation mode of the non-stroke points.
The method for identifying the pen front point in the touch points may be as follows: the handwriting can be divided into multiple segments from the input, and the segments are grouped by using the angle of the line drawn by the user and the point set existing between Down Up. And taking 35 points drawn at the last in one segment or points drawn in 6ms (more than 35 points) as the pen point, and taking other points as normal pens. The normal pen uses the algorithm of the normal pen, and the pen tip uses the algorithm of the pen tip.
In one example, the manner of calculating the width of the non-peak and the first peak may include: acquiring the writing speed of the touch point; obtaining the width of a touch point according to the writing speed; the width corresponding to the touch point with the higher writing speed is larger than the width corresponding to the touch point with the lower writing speed.
Generally, a touch screen cannot obtain the writing force of a user, but can obtain the writing speed of the user, wherein the method for obtaining the writing speed of the user is to record collection time from collected touch points, and the more the number of the collected touch points is within a certain time, the faster the writing speed of the user is proved; and calculating the distance between the touch point and the touch point, and calculating the writing speed by calculating the distance between the two touch points and the collection time difference of the two touch points. Since the time interval of the collected touch points is only a small error, in order to optimize the calculation, in one embodiment, the direct distance between two touch points may be taken as the writing speed v of the touch points, that is, the writing speed of the touch points may be obtained as follows: and acquiring a touch point and a distance between adjacent touch points before the touch point, and taking the distance as the writing speed of the touch point.
Based on the writing speed determination method, the width corresponding to the first touch point (non-tip point) of the touch points may be equal to the default width, that is, the user may set the width of the line, where the set width is the initial width.
In one example, the method of calculating the width of the non-peak point and the first peak point may be: for touch points other than the first touch point, determining the width of the touch point by adopting the following formula (1):
Figure 917643DEST_PATH_IMAGE001
(1)
wherein the content of the first and second substances,
Figure 850964DEST_PATH_IMAGE007
Figure 582160DEST_PATH_IMAGE003
which represents the width of the touch point,
Figure 106682DEST_PATH_IMAGE004
indicating a writing speed of the touch point,
Figure 893635DEST_PATH_IMAGE008
are all constant (all preset according to empirical values),
Figure 161805DEST_PATH_IMAGE006
is a preset default width.
The user can preset the highest speed and the lowest speed, wherein the highest speed is obtained by analyzing the data used by the user and is 5 units and 1 millisecond, and the unit length is a unit corresponding to the collected coordinates of the points. The length of the touch data report of the touch screen is related to the screen size dpi, but the unit length is related to the user's vision, i.e., the unit size of the touch screen has only a small error in different resolutions and different sizes of screens.
Figure 216349DEST_PATH_IMAGE009
The calculation method of (2) needs to satisfy the following conditions: setting the user's normal minimum speed
Figure 974089DEST_PATH_IMAGE010
For example, will
Figure 746873DEST_PATH_IMAGE010
Set to a value between 0 and 1, using
Figure 553155DEST_PATH_IMAGE011
Aimed at preventing access while writing is stationary
Figure 727784DEST_PATH_IMAGE009
Is a negative number, wherein the value of the constant x needs to be greater than 0. In addition, in order to prevent the user from writing too fast,
Figure 86785DEST_PATH_IMAGE012
is small, resulting in too thin a handwriting width, by
Figure 346865DEST_PATH_IMAGE002
In
Figure 691259DEST_PATH_IMAGE013
Is adjusted to prevent
Figure 517132DEST_PATH_IMAGE012
Is too small, e.g.
Figure 819938DEST_PATH_IMAGE013
Cannot be greater than 5.
By the above
Figure 301735DEST_PATH_IMAGE009
The finally obtained width Thiness corresponding to the touch point meets the condition: when the writing speed of the user is high, the width corresponding to the touch point can not be lower than 80% of the default width at minimum; when the user writes handwriting at a slow speed, the width corresponding to the touch point cannot exceed 120% of the default width at most, so that the constant value is constant
Figure 715398DEST_PATH_IMAGE014
Can be that
Figure 100506DEST_PATH_IMAGE014
=
Figure 574212DEST_PATH_IMAGE015
Therefore, if a user writes quickly, the displayed handwriting is slightly thin, and if the user writes slowly, the displayed handwriting is slightly wide, but the thickness of the handwriting is in a certain range, so that the phenomenon that the handwriting is too wide or too thin or the thickness of the handwriting is not uniform is avoided.
Further, for the width calculation of the pen front, unlike the width calculation of the non-pen front portion, for example, the method of calculating the width of the pen front point other than the first pen front point may be:
acquiring the width corresponding to the first pen point as the initial width of the pen point; obtaining the distance between a pen point and a first pen point; obtaining the width of the pen point according to the initial width and the distance; the larger the distance between the pen point and the first pen point is, the smaller the corresponding width is.
In one example, the outline of the nib thus obtained may be as shown in fig. 9, and the outline of the nib point portion forms a triangle. The width of the top is the width of the first pen point, and the width of each of the remaining pen points is the width calculated by the distance between the first pen point and the point.
And finally, connecting a closed image based on the calculated width and skeleton line of the touch point to obtain a contour line of the handwriting, then obtaining a smooth contour line by a quadratic Bezier curve method, and performing handwriting drawing by starting an independent thread in a rendering stage, wherein the step of filling the color of the handwriting based on the contour line is performed to finish the drawing of the handwriting.
Through the handwriting drawing method on the interactive intelligent tablet, on one hand, smooth handwriting drawing effect can be obtained, on the other hand, the handwriting drawing efficiency is improved, and the effect of writing and displaying can be realized.
It should be understood that for the foregoing method embodiments, although the steps in the flowcharts are shown in order indicated by the arrows, the steps are not necessarily performed in order indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in the flow charts of the method embodiments may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least a portion of the sub-steps or stages of other steps.
Based on the same idea as the handwriting drawing method in the above embodiment, a handwriting drawing apparatus is also provided herein.
In one embodiment, as shown in fig. 10, the handwriting drawing apparatus of the present embodiment includes: an input acquisition module 501, a width and skeleton determination module 502, a contour determination module 503, a smoothing module 504, and a rendering module 505, wherein each module is detailed as follows:
an input obtaining module 501, configured to obtain a touch point; the touch points are points triggered by handwriting writing events on the interactive intelligent flat touch screen;
a width and skeleton determining module 502, configured to calculate a width of the touch point and calculate a skeleton line of a handwriting corresponding to the touch point;
a contour determination module 503, configured to determine a contour line of the handwriting; the contour line is obtained according to the touch point and the width of the touch point;
a smoothing module 504, configured to obtain an inflection point in a contour line, and generate a bezier curve corresponding to the inflection point as a smoothed contour line; the trend of the Bezier curve is determined by the trend of the skeleton line;
and a rendering module 505, configured to draw the handwriting according to the smoothed contour line.
In one embodiment, the smoothing module 504 further comprises:
the fixed point determining unit is used for drawing a straight line perpendicular to the skeleton line through the reference point; the reference point is the central point of two adjacent touch points; acquiring the intersection point of the straight line and the contour line as a fixed point;
a control point determining unit for determining an inflection point in the contour line as a control point;
and the curve determining unit is used for generating a Bezier curve according to the control point and the fixed point to obtain the Bezier curve corresponding to the inflection point.
In one embodiment, the width and skeleton determination module 502 comprises:
the framework determining unit is used for connecting two adjacent touch points to obtain a touch point connecting line; and obtaining skeleton lines of the handwriting according to the touch point connecting lines.
In an embodiment, the skeleton determining unit further comprises:
the angle acquisition subunit is used for acquiring an included angle between connecting lines of two adjacent touch points;
the touch point dividing subunit is used for dividing the touch points into a first touch point set and a second touch point set by taking the touch points at the target included angles as dividing points if the target included angles exist; the target included angle is an included angle which is smaller than or equal to 90 degrees in the included angles;
the curve determining subunit is used for respectively obtaining a first Bezier curve corresponding to the first touch point set and a second Bezier curve corresponding to the second touch point set;
and the first skeleton determining subunit is used for communicating the first Bezier curve and the second Bezier curve at the segmentation point in a corner angle mode to obtain a skeleton line of the handwriting.
In an embodiment, the skeleton determining unit further includes:
and the second skeleton determining subunit is used for generating a Bezier curve corresponding to the touch point as a skeleton line of the handwriting if the target included angle does not exist.
In one embodiment, the width and skeleton determining module further comprises:
the width determining unit is used for identifying the pen point and the non-pen point in the touch points; and respectively calculating the widths of the pen front points and the non-pen front points.
In an embodiment, the width determining unit may specifically include:
the speed acquisition subunit is used for acquiring the writing speed of the touch point; the touch point is a non-pen point and a first pen point;
the first width calculating subunit is used for obtaining the width of the touch point according to the writing speed; the width corresponding to the touch point with the higher writing speed is larger than the width corresponding to the touch point with the lower writing speed.
In an embodiment, the speed obtaining subunit is specifically configured to obtain a touch point and a distance between adjacent touch points before the touch point, and use the distance as the writing speed of the touch point.
In an embodiment, the first width calculating subunit is further configured to determine a width corresponding to a first touch point of the touch points as a preset default width.
In an embodiment, the width determining unit further includes:
the second width calculating subunit is used for acquiring the width corresponding to the first pen front point as the initial width of the pen front point; obtaining the distance between a pen point and a first pen point; obtaining the width of the pen point according to the initial width and the distance;
the larger the distance between the pen point and the first pen point is, the smaller the corresponding width is.
The input acquisition module 501 includes:
the acquisition unit is used for acquiring touch data transmitted by the USB interface; the USB interface is a connection interface between the touch screen and the tablet system;
and the analyzing unit is used for analyzing the touch data to obtain a touch point.
For the specific definition of the handwriting drawing device, reference may be made to the definition of the handwriting drawing method above, and details are not described here. The modules in the handwriting drawing device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the interactive intelligent panel, and can also be stored in a memory in the interactive intelligent panel in a software form, so that the processor can call and execute the corresponding operations of the modules.
In addition, in the above-mentioned exemplary embodiment of the handwriting drawing apparatus, the logical division of each program module is only an example, and in practical applications, the above-mentioned function distribution may be performed by different program modules according to needs, for example, due to the configuration requirements of corresponding hardware or the convenience of implementation of software, that is, the internal structure of the handwriting drawing apparatus is divided into different program modules to perform all or part of the above-mentioned functions.
In one embodiment, an interactive smart tablet is provided, the internal structure of which may be as shown in fig. 11. The interactive intelligent tablet comprises a processor, a memory, a network interface, a display screen and an input device which are connected through a system bus. Wherein the processor is configured to provide computing and control capabilities; the memory comprises a nonvolatile storage medium and an internal memory, wherein the nonvolatile storage medium stores an operating system and a computer program, and the internal memory provides an environment for the operation of the operating system and the computer program in the nonvolatile storage medium; the network interface is used for connecting and communicating with an external terminal through a network; the computer program when executed by a processor to implement a method of handwriting rendering; the display screen can be a liquid crystal display screen or an electronic ink display screen; the input device can be a touch layer covered on a display screen, a key, a track ball or a touch pad arranged on an interactive intelligent tablet shell, an external touch pad or a mouse and the like.
Those skilled in the art will appreciate that the structure shown in fig. 11 is a block diagram of only a portion of the structure associated with the present application and does not constitute a limitation on the interactive smart tablet to which the present application is applied, and that a particular interactive smart tablet may include more or less components than those shown, or combine certain components, or have a different arrangement of components.
In one embodiment, an interactive smart tablet is provided that includes a memory, a display screen with touch functionality, and a processor; the memory for storing a computer program; the computer program, when executed by the processor, causes the processor to carry out the steps of:
acquiring a touch point; the touch points are points triggered by handwriting writing events on the interactive intelligent flat touch screen;
calculating the width of the touch point and calculating a skeleton line of the handwriting corresponding to the touch point;
determining the outline of the handwriting; the contour line is obtained according to the touch point and the width of the touch point;
acquiring an inflection point in a contour line, and generating a Bezier curve corresponding to the inflection point as the smoothed contour line; the trend of the Bezier curve is determined by the trend of the skeleton line;
and drawing the handwriting according to the smoothed contour line.
In one embodiment, the computer program, when executed by the processor, further causes the processor to implement the steps of the handwriting rendering methods of the other embodiments described above.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring a touch point; the touch points are points triggered by handwriting writing events on the interactive intelligent flat touch screen;
calculating the width of the touch point and calculating a skeleton line of the handwriting corresponding to the touch point;
determining the outline of the handwriting; the contour line is obtained according to the touch point and the width of the touch point;
acquiring an inflection point in a contour line, and generating a Bezier curve corresponding to the inflection point as the smoothed contour line; the trend of the Bezier curve is determined by the trend of the skeleton line;
and drawing the handwriting according to the smoothed contour line.
In one embodiment, the computer program, when executed by the processor, also implements the steps of the handwriting rendering methods of the other embodiments described above.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features. The above description of each embodiment has different emphasis, and reference may be made to related descriptions of other embodiments for parts that are not described in detail in a certain embodiment.
The terms "comprising" and "having" and any variations thereof in the embodiments are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or (module) elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The "plurality" mentioned in the embodiments means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
In the embodiments, the references to "first \ second" are merely to distinguish similar objects and do not represent a specific ordering for the objects, and it is to be understood that "first \ second" may be interchanged with a specific order or sequence, where permitted. It should be understood that "first \ second" distinct objects may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced in sequences other than those illustrated or described herein.
The above examples only express several embodiments of the present invention, but are not to be construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (24)

1. A handwriting drawing method on an interactive intelligent tablet is characterized by comprising the following steps:
acquiring a touch point; the touch points are points triggered by handwriting writing events on the interactive intelligent flat touch screen;
calculating the width of the touch point and calculating a skeleton line of the handwriting corresponding to the touch point;
determining the outline of the handwriting; the contour line is obtained according to the touch point and the width of the touch point;
acquiring an inflection point in a contour line, and generating a Bezier curve corresponding to the inflection point as the smoothed contour line; the trend of the Bezier curve is determined by the trend of the skeleton line;
drawing handwriting according to the smoothed contour line;
the calculating of the skeleton line of the handwriting corresponding to the touch point comprises the following steps:
connecting two adjacent touch points to obtain a touch point connecting line;
acquiring an included angle of a connecting line of two adjacent touch points;
if the target included angle exists, taking a touch point at the target included angle as a dividing point, and dividing the touch point into a first touch point set and a second touch point set; the target included angle is an included angle which is smaller than or equal to 90 degrees in the included angles;
respectively obtaining a first Bezier curve corresponding to the first touch point set and a second Bezier curve corresponding to the second touch point set;
and communicating the first Bezier curve and the second Bezier curve at the segmentation point in a corner mode to obtain a skeleton line of the handwriting.
2. The method of claim 1, wherein the generating the bezier curve corresponding to the inflection point comprises:
drawing a straight line perpendicular to the skeleton line through the reference point; the reference point is the central point of two adjacent touch points;
acquiring the intersection point of the straight line and the contour line as a fixed point;
determining inflection points in the contour line as control points;
and generating a Bezier curve according to the control point and the fixed point to obtain the Bezier curve corresponding to the inflection point.
3. The method of claim 1, wherein obtaining a first Bezier curve corresponding to the first set of touch points and a second Bezier curve corresponding to the second set of touch points respectively comprises:
determining the central points of two adjacent touch points as fixed points, and determining the two adjacent touch points as control points;
and making a Bezier curve according to the control points and the fixed points to obtain a first Bezier curve corresponding to the first touch point set and a second Bezier curve corresponding to the second touch point set.
4. The method of claim 1, further comprising:
and if the target included angle does not exist, generating a Bezier curve corresponding to the touch point as a skeleton line of the handwriting.
5. The method of claim 1, wherein the calculating the width of the touch point comprises:
identifying a pen point and a non-pen point in the touch points;
and respectively calculating the widths of the pen front points and the non-pen front points.
6. The method of claim 5, wherein calculating the width of the non-nib and the first nib comprises:
acquiring the writing speed of the touch point;
obtaining the width of a touch point according to the writing speed; the width corresponding to the touch point with the higher writing speed is smaller than the width corresponding to the touch point with the lower writing speed.
7. The method of claim 6, wherein obtaining the writing speed of the touch point comprises:
and acquiring a touch point and a distance between adjacent touch points before the touch point, and taking the distance as the writing speed of the touch point.
8. The method of claim 7, wherein calculating the width of the non-nib and the first nib comprises:
and the width corresponding to the first touch point in the touch points is equal to the preset default width.
9. The method of claim 8, wherein calculating the width of the non-nib and the first nib further comprises:
for touch points other than the first touch point, determining the width of the touch point by adopting the formula (1):
Figure 743867DEST_PATH_IMAGE001
(1)
wherein the content of the first and second substances,
Figure 798410DEST_PATH_IMAGE002
Figure 54686DEST_PATH_IMAGE003
which represents the width of the touch point,
Figure 561891DEST_PATH_IMAGE004
indicating a writing speed of the touch point,
Figure 368173DEST_PATH_IMAGE005
are all preset empirical values, and are,
Figure 339540DEST_PATH_IMAGE006
is a preset default width.
10. The method of claim 5, wherein calculating the width of the nib outside the first nib comprises:
acquiring the width corresponding to the first pen point as the initial width of the pen point;
obtaining the distance between a pen point and a first pen point;
obtaining the width of the pen point according to the initial width and the distance;
the larger the distance between the pen point and the first pen point is, the smaller the corresponding width is.
11. The method of claim 10, wherein the contour lines of the nib portions form a triangle.
12. The method of claim 1, wherein the determining an outline of the writing comprises:
and connecting the widths of the touch points to obtain the contour line of the handwriting.
13. The method of claim 1, wherein the obtaining the touch point comprises:
acquiring touch data transmitted by a USB interface; the USB interface is a connection interface between the touch screen and a mainboard of the interactive intelligent panel;
and analyzing the touch data to obtain touch points.
14. A device is drawn to handwriting on mutual intelligence flat board which characterized in that includes:
the input acquisition module is used for acquiring touch points; the touch points are points triggered by handwriting writing events on the interactive intelligent flat touch screen;
the width and skeleton determining module is used for calculating the width of the touch point and calculating a skeleton line of the handwriting corresponding to the touch point;
the outline determining module is used for determining the outline of the handwriting; the contour line is obtained according to the touch point and the width of the touch point;
the smoothing module is used for acquiring an inflection point in the contour line and generating a Bezier curve corresponding to the inflection point as the smoothed contour line; the trend of the Bezier curve is determined by the trend of the skeleton line;
the rendering module is used for drawing the handwriting according to the smoothed contour line;
wherein the width and skeleton determination module comprises:
the framework determining unit is used for connecting two adjacent touch points to obtain a touch point connecting line; acquiring an included angle of a connecting line of two adjacent touch points; if the target included angle exists, taking a touch point at the target included angle as a dividing point, and dividing the touch point into a first touch point set and a second touch point set; the target included angle is an included angle which is smaller than or equal to 90 degrees in the included angles; respectively obtaining a first Bezier curve corresponding to the first touch point set and a second Bezier curve corresponding to the second touch point set; and communicating the first Bezier curve and the second Bezier curve at the segmentation point in a corner mode to obtain a skeleton line of the handwriting.
15. The apparatus of claim 14, wherein the smoothing module comprises:
the fixed point determining unit is used for drawing a straight line perpendicular to the skeleton line through the reference point; the reference point is the central point of two adjacent touch points; acquiring the intersection point of the straight line and the contour line as a fixed point;
a control point determining unit for determining an inflection point in the contour line as a control point;
and the curve determining unit is used for generating a Bezier curve according to the control point and the fixed point to obtain the Bezier curve corresponding to the inflection point.
16. The apparatus of claim 14, wherein the skeleton determination unit further comprises:
and the second skeleton determining subunit is used for generating a Bezier curve corresponding to the touch point as a skeleton line of the handwriting if the target included angle does not exist.
17. The apparatus of claim 14, wherein the width and skeleton determination module further comprises:
the width determining unit is used for identifying the pen point and the non-pen point in the touch points; and respectively calculating the widths of the pen front points and the non-pen front points.
18. The apparatus of claim 17, wherein the width determining unit comprises:
the speed acquisition subunit is used for acquiring the writing speed of the touch point; the touch point is a non-pen point and a first pen point;
the first width calculating subunit is used for obtaining the width of the touch point according to the writing speed; the width corresponding to the touch point with the higher writing speed is smaller than the width corresponding to the touch point with the lower writing speed.
19. The apparatus according to claim 18, wherein the speed obtaining subunit is configured to obtain a touch point and a distance between adjacent touch points before the touch point, and use the distance as the writing speed of the touch point.
20. The apparatus of claim 19, wherein the first width calculating subunit is further configured to determine a width corresponding to a first touch point of the touch points as a preset default width.
21. The apparatus of claim 18, wherein the width determination unit further comprises:
the second width calculating subunit is used for acquiring the width corresponding to the first pen front point as the initial width of the pen front point; obtaining the distance between a pen point and a first pen point; obtaining the width of the pen point according to the initial width and the distance;
the larger the distance between the pen point and the first pen point is, the smaller the corresponding width is.
22. The apparatus of claim 20, wherein the input acquisition module comprises:
the acquisition unit is used for acquiring touch data transmitted by the USB interface; the USB interface is a connection interface between the touch screen and a mainboard of the interactive intelligent panel;
and the analyzing unit is used for analyzing the touch data to obtain a touch point.
23. An interactive smart tablet comprises a memory, a display screen with a touch function and a processor;
the memory is used for storing a computer program; it is characterized in that the preparation method is characterized in that,
the computer program, when executed by the processor, causes the processor to carry out the steps of the method of any one of claims 1 to 13.
24. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, causes the processor to carry out the steps of the method of any one of claims 1 to 13.
CN201810987750.0A 2018-08-28 2018-08-28 Handwriting drawing method and device, interactive intelligent panel and storage medium Active CN109284059B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810987750.0A CN109284059B (en) 2018-08-28 2018-08-28 Handwriting drawing method and device, interactive intelligent panel and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810987750.0A CN109284059B (en) 2018-08-28 2018-08-28 Handwriting drawing method and device, interactive intelligent panel and storage medium

Publications (2)

Publication Number Publication Date
CN109284059A CN109284059A (en) 2019-01-29
CN109284059B true CN109284059B (en) 2020-11-24

Family

ID=65184009

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810987750.0A Active CN109284059B (en) 2018-08-28 2018-08-28 Handwriting drawing method and device, interactive intelligent panel and storage medium

Country Status (1)

Country Link
CN (1) CN109284059B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111524209B (en) * 2019-02-02 2022-07-19 北京易真学思教育科技有限公司 Electronic writing method, device, terminal and storage medium
CN110263636A (en) * 2019-05-15 2019-09-20 赞同科技股份有限公司 A kind of lossless person's handwriting restoring method and system
CN111124180B (en) * 2019-12-23 2023-04-25 江苏欧帝电子科技有限公司 Method and device for generating handwriting lines
CN111142770B (en) * 2019-12-23 2023-04-25 江苏欧帝电子科技有限公司 Method and processing device for generating strokes
CN111223165A (en) * 2020-01-03 2020-06-02 福建升腾资讯有限公司 Method, device and equipment for generating saw-free signature picture
CN111273807B (en) * 2020-01-07 2024-03-29 通彩视听科技(上海)有限公司 Handwriting realization and optimization method and device and computer equipment
CN111427499B (en) * 2020-03-19 2021-10-19 广州视源电子科技股份有限公司 Handwriting drawing method, device, equipment and storage medium
CN111796700A (en) * 2020-07-20 2020-10-20 广州炫视智能科技有限公司 Method and system for adjusting writing effect based on writing speed
CN111782131A (en) * 2020-07-27 2020-10-16 深圳市千分一智能技术有限公司 Pen point implementation method, device, equipment and readable storage medium
CN112083870B (en) * 2020-09-09 2022-03-22 青岛海信商用显示股份有限公司 Information identification method and equipment
CN111931735B (en) * 2020-09-26 2020-12-29 绿漫科技有限公司 Handwritten signature method suitable for iOS application
CN112433666B (en) * 2020-12-14 2022-04-05 四川长虹电器股份有限公司 Method for drawing curve by touch based on browser kernel
CN112802089B (en) * 2021-02-05 2023-09-01 重庆大学 Point cloud skeleton line extraction method and system based on automatic bifurcation quantity estimation
CN113760432A (en) * 2021-08-30 2021-12-07 浙江万朋教育科技股份有限公司 Graffiti method for restoring handwriting based on H5Canvas
CN114356201B (en) * 2021-12-23 2024-02-20 科大讯飞股份有限公司 Writing beautifying method, device, equipment and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8896606B2 (en) * 2010-06-07 2014-11-25 Samsung Electronics Co., Ltd. Touch screen and display method
CN104821005A (en) * 2015-05-12 2015-08-05 南京师范大学 Method of writing process dynamic reproduction of Chinese character calligraphy works, capable of simulating gesture style
WO2016154466A1 (en) * 2015-03-25 2016-09-29 Alibaba Group Holding Limited Method and apparatus for generating text line classifier

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902407B (en) * 2012-09-12 2015-08-05 青岛海信移动通信技术股份有限公司 A kind of touch-screen output display touches the method and apparatus of person's handwriting
CN103064554A (en) * 2012-12-17 2013-04-24 上海海知信息技术有限公司 Chirography smoothing method of handwriting input method and handwriting input method
CN105046730B (en) * 2015-07-09 2018-11-02 北京盛世宣合信息科技有限公司 Written handwriting rendering method and device applied to writing brush
CN105225260B (en) * 2015-09-25 2019-01-08 中国电子科技集团公司第三十二研究所 Method for realizing original handwriting
CN106547433B (en) * 2016-11-07 2019-12-06 青岛海信电器股份有限公司 handwriting determining method and device
CN108228057B (en) * 2018-02-11 2021-03-02 海信视像科技股份有限公司 Touch inflection point correction method and device and touch screen

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8896606B2 (en) * 2010-06-07 2014-11-25 Samsung Electronics Co., Ltd. Touch screen and display method
WO2016154466A1 (en) * 2015-03-25 2016-09-29 Alibaba Group Holding Limited Method and apparatus for generating text line classifier
CN104821005A (en) * 2015-05-12 2015-08-05 南京师范大学 Method of writing process dynamic reproduction of Chinese character calligraphy works, capable of simulating gesture style

Also Published As

Publication number Publication date
CN109284059A (en) 2019-01-29

Similar Documents

Publication Publication Date Title
CN109284059B (en) Handwriting drawing method and device, interactive intelligent panel and storage medium
EP1950705B1 (en) Varying hand-drawn line width for display
US9141134B2 (en) Utilization of temporal and spatial parameters to enhance the writing capability of an electronic device
CN111381754B (en) Handwriting processing method, equipment and medium
US7870501B2 (en) Method for hollow selection feedback
US9207858B2 (en) Method and apparatus for drawing and erasing calligraphic ink objects on a display surface
JP5423525B2 (en) Handwriting input device, handwriting input method, and handwriting input program
CN108829327B (en) Writing method and device of interactive intelligent equipment
EP3104305A2 (en) Apparatus and method of reducing storage of handwritten strokes
JP5664164B2 (en) Electronic information board device, information display method, program
US8542207B1 (en) Pencil eraser gesture and gesture recognition method for touch-enabled user interfaces
CN111078035B (en) Drawing method based on HTML5Canvas
WO2022077827A1 (en) Graph drawing method and apparatus, storage medium, and terminal device
EP3413179B1 (en) Rejecting extraneous touch inputs in an electronic presentation system
US7454699B2 (en) Smart content insertion
JP6613338B2 (en) Information processing apparatus, information processing program, and information processing method
US11137903B2 (en) Gesture-based transitions between modes for mixed mode digital boards
WO2015078127A1 (en) Document presentation method and user terminal
JP6352801B2 (en) Information processing apparatus, information processing program, and information processing method
WO2017041588A1 (en) Eraser box range determination method and system
CN107544743B (en) Method and device for adjusting characters and electronic equipment
US20230343125A1 (en) Handwriting Recognition Method and Apparatus, Handwriting Recognition System and Interactive Display
CN114745579A (en) Interaction method based on space writing interface, terminal and storage medium
JP6408273B2 (en) Information processing apparatus, information processing program, and information processing method
US11900568B2 (en) Writing trajectory processing method, touch control device, writing system and storage medium

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