Patent ID: 11900568
Assignee: BOE TECHNOLOGY GROUP CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 0:
1. A writing trajectory processing method, comprising:
obtaining writing data of an original writing trajectory, wherein the writing data comprise a plurality of first trajectory points and a plurality of first contact areas corresponding to the plurality of first trajectory points one to one;
smoothing the writing data to obtain smoothed writing data; wherein the smoothed writing data comprise a plurality of second trajectory points and a plurality of second contact areas corresponding to the plurality of second trajectory points one to one;
determining a plurality of trajectory line widths corresponding to the plurality of second trajectory points one to one based on the plurality of second contact areas; and
displaying the writing trajectory based on the plurality of second trajectory points and the plurality of trajectory line widths,
wherein determining the plurality of trajectory line widths corresponding to the plurality of second trajectory points one to one based on the plurality of second contact areas, comprises:
scaling the plurality of second contact areas with a preset scaling factor to obtain the plurality of trajectory line widths, and
wherein scaling the plurality of second contact areas with the preset scaling factor to obtain the plurality of trajectory line widths, comprises:
calculating to obtain the plurality of trajectory line widths with the following formula:

Sa′=k2*Sa/k1 

wherein, Sa represents the second contact area, Sa′ represents the trajectory line width, the preset scaling coefficients comprise: a preset first coefficient and a preset second coefficient, k1 represents the preset first coefficient and k2 represents the preset second coefficient,
wherein obtaining the writing data of the original writing trajectory, comprises:
during a process of inputting the original writing trajectory by a user, obtaining the plurality of first trajectory points through an interface for obtaining coordinates of touch events, and obtaining a plurality of parameters of touch elliptical regions corresponding to the plurality of first trajectory points one to one through an interface for obtaining the parameters of the touch elliptical regions of the touch events, wherein the parameters of each touch elliptical region comprises a length of a long axis and a short axis of the touch elliptical region; and
calculating the plurality of first contact areas based on the plurality of parameters of the touch elliptical regions,
an area of each elliptical region is calculated by the following formula:

S=πab/4

wherein S is the area of each elliptical region, a is the length of the long axis, b is the length of the short axis and π is a circular constant (Pi).