Unlock instant, AI-driven research and patent intelligence for your innovation.

Method for realizing curve smoothing of original handwriting

An implementation method and original handwriting technology, applied in the generation of 2D images, input/output process of data processing, instruments, etc., can solve the problems of large data storage and slow drawing efficiency

Inactive Publication Date: 2020-10-30
江西金格科技有限公司
View PDF8 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, due to the large number of points on the curve, the drawing efficiency is slow and the data storage capacity is large. After the data is enlarged, there will be obvious stroke effects (such as figure 1 shown)

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for realizing curve smoothing of original handwriting
  • Method for realizing curve smoothing of original handwriting
  • Method for realizing curve smoothing of original handwriting

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0034] Obtain the original sampling points of the stylus as s1, s2, s3...sn, the sampling point s1 is expressed as s1(x1, y1, q1), x1 is the abscissa of the current sampling point, y1 is the ordinate of the current sampling point, q1 is the pressure value of the current sampling point, and sn is expressed as sn(xn,yn,qn) according to this rule (such as figure 2 shown).

[0035] 1) After smooth fitting of s1, s2, s3...sn, the smoothed fitting points p1, p2, p3...pn are obtained, and pn is expressed as (xn, yn, qn) (such as image 3 shown).

[0036] 2) According to the pen width calculation formula w=kq, w is the pen width, k is the preset pen width constant, and q is the pressure value. Through calculation, the pen width w1, w2, w3...wn of each fitting point of p1, p2, p3...pn can be obtained.

[0037] 3) Calculate the midpoint p23 of the two fitting points of p2 and p3, x23 = (x2 + x3) / 2, y23 = (y2 + y3) / 2, q23 = (q2 + q3) / 2, p23(x23, y23 , q23) (eg Figure 4 shown)...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for realizing curve smoothing of original handwriting. The method comprises the following steps: acquiring coordinates and pressure values of original sampling pointsof a handwriting pen; fitting the sampling points through a smooth fitting algorithm to obtain a stroke track and obtain smooth coordinate points; calculating the pen width, namely the pen width required by passing through the sampling point, according to the pressure sensitivity of the sampling point; respectively calculating vertical line segments passing through the connecting line of the two sampling points, and taking the sampling points as the center and the pen width as the length of the line segments; obtaining four key point coordinates of the line segment; and connecting the four keypoints by using a Bezier curve to form a closed graph, and filling the whole graph. According to the invention, each point is ensured to be connected together, the change of the width is smooth, theamplification is also smooth, and a bamboo joint result is not generated. The handwriting is smooth and round, the change of the pen point is uniform, the pen point is smooth without bamboo joints, and the writing hand feeling is silky, smooth and controllable.

Description

technical field [0001] The invention relates to the technical field of electronic drawing, in particular to a method for realizing the smooth drawing of curves and stroke effects in the process of drawing original handwriting. Background technique [0002] Now there are more and more screens, tablets, and mobile phones that support stylus. Handwriting input technology has also provided a substitute for the original pen and paper. People hope that electronic handwriting is more in line with the actual handwriting on paper. However, the existing related technologies cannot make electronic handwriting similar to actual handwriting on paper, and cannot meet the writing needs of users. [0003] The existing handwriting algorithm uses a curve fitting algorithm, such as Bezier, which first stores the coordinates and pressure values ​​of the sample points collected by the stylus, and then fits these sample points. In order to draw an approximate curve, each point on the curve needs...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F3/0354G06F3/041G06T11/20
CPCG06F3/03545G06F3/0412G06F3/0414G06F3/0416G06T11/203
Inventor 刘鹏刘勇军徐根英
Owner 江西金格科技有限公司