| CPC G06F 3/03545 (2013.01) [G06F 3/038 (2013.01); G06F 3/04883 (2013.01); G06N 5/022 (2013.01)] | 20 Claims |

|
1. A method comprising:
obtaining a plurality of reported points of a stylus;
calculating, based on the reported points, a movement speed of the stylus;
calculating an error between at least one predicted point and an actual reported point corresponding to the at least one predicted point;
setting a maximum quantity of predicted points as an upper limit of predicted points;
adjusting, based on the movement speed and the error, a first quantity of predicted points to a second quantity of predicted points in a next prediction, wherein each of the first quantity and the second quantity is less than the maximum quantity;
dividing the reported points into first coordinates in an X-axis direction and a second coordinates in a Y-axis direction;
generating, based on the first coordinates, a first reported point prediction model in the X-axis direction, wherein the first reported point prediction model is a first curve or a first straight line in the X-axis direction that fits a track of the stylus;
generating, based on the second coordinates, a second reported point prediction model in the Y-axis direction, wherein the second reported point prediction model is a second curve or a second straight line in the Y-axis direction that fits the track of the stylus;
adjusting, after generating the first reported point prediction model and based on speed and acceleration information of the reported points, a first polynomial parameter of the first curve to update the first reported point prediction model;
obtaining, using the updated first reported point prediction model, X coordinates of the at least one predicted point;
adjusting, after generating the second reported point prediction model and based on the speed and acceleration information of the reported points, a second polynomial parameter of the second curve to update the second reported point prediction model;
obtaining, using the updated second reported point prediction model, Y coordinates of the at least one predicted point;
drawing, using the X coordinates and the Y coordinates, the at least one predicted point to obtain a drawn predicted point; and
displaying the drawn predicted point.
|