US 12,353,651 B2
Method and device for predicting drawn point of stylus
Da Wu, Shanghai (CN); Yedong Wang, Shanghai (CN); Rui Yan, Shenzhen (CN); and Feng Sun, Shanghai (CN)
Assigned to HUAWEI TECHNOLOGIES CO., LTD., Shenzhen (CN)
Appl. No. 17/778,622
Filed by Huawei Technologies Co., Ltd., Shenzhen (CN)
PCT Filed Nov. 23, 2020, PCT No. PCT/CN2020/130866
§ 371(c)(1), (2) Date May 20, 2022,
PCT Pub. No. WO2021/098878, PCT Pub. Date May 27, 2021.
Claims priority of application No. 201911155366.5 (CN), filed on Nov. 22, 2019; and application No. 202011058380.6 (CN), filed on Sep. 30, 2020.
Prior Publication US 2022/0413637 A1, Dec. 29, 2022
Int. Cl. G06F 3/0354 (2013.01); G06F 3/038 (2013.01); G06F 3/04883 (2022.01); G06N 5/02 (2023.01); G06N 5/022 (2023.01)
CPC G06F 3/03545 (2013.01) [G06F 3/038 (2013.01); G06F 3/04883 (2013.01); G06N 5/022 (2013.01)] 20 Claims
OG exemplary drawing
 
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.