Handwriting display method, touch display device, computer device and medium

By using the actual and predicted coordinate ratios of handwriting points in the electronic paper touch display device, the problem of delayed handwriting display is solved, the user experience is improved, and more accurate and smooth handwriting display is achieved.

CN115237320BActive Publication Date: 2025-01-17BOE TECHNOLOGY GROUP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210859276.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-21
Publication Date
2025-01-17
Estimated Expiration
2042-07-21

AI Technical Summary

Technical Problem

In the prior art, due to the limitations of screen refresh rate and data processing speed, electronic paper touch display devices have serious problems of display delay in writing handwriting, which affects user experience.

Method used

By obtaining the actual coordinates of the handwriting point entered by the user, and making predictions based on the actual coordinates of the previous handwriting point, the predicted coordinates are calculated to ensure that the distance ratio between the predicted coordinate and the actual coordinate is greater than or equal to the actual coordinate and the previous handwriting point. The distance between the handwriting can be extended and the display delay is reduced.

Benefits of technology

It effectively improves the display delay of writing handwriting and improves the user's writing experience. By dynamically adjusting the dot distance extension multiple, the extension distance and error of the predicted coordinates are balanced, ensuring the accuracy and fluency of the handwriting display.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115237320B_ABST
    Figure CN115237320B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a handwriting display method, a touch display device, a computer device and a medium. In a specific implementation, the method includes: obtaining the actual coordinates of the i-th handwriting point input by the user; obtaining the predicted coordinates of the i-th handwriting point according to the actual coordinates of the i-th handwriting point and the actual coordinates of the (i-1)-th handwriting point, wherein the distance between the predicted coordinates of the i-th handwriting point and the actual coordinates of the (i-1)-th handwriting point is greater than or equal to the distance between the actual coordinates of the i-th handwriting point and the actual coordinates of the (i-1)-th handwriting point, and the ratio of the distance between the predicted coordinates of the i-th handwriting point and the actual coordinates of the i-th handwriting point to the distance between the actual coordinates of the i-th handwriting point and the actual coordinates of the (i-1)-th handwriting point is N. i , N i ≥0; the handwriting is displayed according to the predicted coordinates of the i-th handwriting point. This implementation can improve the display delay of the handwriting and enhance the user's writing experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of display technology, and more specifically to a handwriting display method, a touch display device, a computer device and a medium. Background Art

[0002] At present, with the rapid development of information technology, the technology of handwriting input by holding a pen or finger on a touch display device such as an electronic paper touch display device is becoming more and more mature. However, due to various reasons such as display refresh rate and data processing speed, the problem of display delay of handwriting has not been solved. In particular, for electronic paper touch display devices, the problem of display delay of handwriting is more serious, affecting the writing experience of users. Summary of the invention

[0003] The object of the present invention is to provide a handwriting display method, a touch display device, a computer device and a medium to solve at least one of the problems existing in the prior art.

[0004] In order to achieve the above object, the present invention adopts the following technical solutions:

[0005] A first aspect of the present invention provides a handwriting display method, comprising:

[0006] Get the actual coordinates of the i-th handwriting point input by the user;

[0007] According to the actual coordinates of the i-th handwriting point and the actual coordinates of the (i-1)-th handwriting point, the predicted coordinates of the i-th handwriting point are obtained, wherein the distance between the predicted coordinates of the i-th handwriting point and the actual coordinates of the (i-1)-th handwriting point is greater than or equal to the distance between the actual coordinates of the i-th handwriting point and the actual coordinates of the (i-1)-th handwriting point, and the ratio of the distance between the predicted coordinates of the i-th handwriting point and the actual coordinates of the i-th handwriting point to the distance between the actual coordinates of the i-th handwriting point and the actual coordinates of the (i-1)-th handwriting point is N. i , N i ≥0; and

[0008] The handwriting display is realized according to the predicted coordinates of the i-th handwriting point.

[0009] Optionally, obtaining the predicted coordinates of the i-th handwriting point according to the actual coordinates of the i-th handwriting point and the actual coordinates of the (i-1)-th handwriting point comprises:

[0010] The ratio N of the distance between the actual coordinates of the (i-1)th handwriting point and the actual coordinates of the i-th handwriting point and the distance between the actual coordinates of the i-th handwriting point and the actual coordinates of the (i-1)th handwriting point is calculated. i The coordinates of are taken as the predicted coordinates of the i-th handwriting point.

[0011] Optionally, N i The value of is determined according to at least one of the first angle between the first line and the second line, the writing speed from the (i-1)th handwriting point to the i-th handwriting point, and the second angle between the first line and the third line, wherein the first line is the line from the actual coordinates of the (i-1)th handwriting point to the actual coordinates of the i-th handwriting point, the second line is the line from the actual coordinates of the (i-2)th handwriting point to the actual coordinates of the (i-1)th handwriting point, and the third line is the line from the actual coordinates of the (i-1)th handwriting point to the predicted coordinates of the (i-1)th handwriting point.

[0012] Optionally, i>2.

[0013] Optionally, when the (i-1)th handwriting point is not predicted, the actual coordinates of the i-th handwriting point are used as the predicted coordinates of the (i-1)th handwriting point.

[0014] Optionally, N i The value of is:

[0015] Determine whether at least one of the following is satisfied: the first angle is less than a preset first angle threshold, the writing speed is less than a preset writing speed threshold, and the second angle is less than a preset second angle threshold:

[0016] If so, then N i =N i-1 +1, where N i-1 is the ratio of the distance between the predicted coordinates of the (i-1)th handwriting point and the actual coordinates of the (i-1)th handwriting point to the distance between the actual coordinates of the (i-1)th handwriting point and the actual coordinates of the (i-2)th handwriting point;

[0017] If not, then N i Get the preset value.

[0018] Optionally, N i The value of is:

[0019] Determine whether the first angle is less than a preset first angle threshold, the writing speed is less than a preset writing speed threshold, and the second angle is less than a preset second angle threshold:

[0020] If so, then N i =N i-1 +1, where N i-1 is the ratio of the distance between the predicted coordinates of the (i-1)th handwriting point and the actual coordinates of the (i-1)th handwriting point to the distance between the actual coordinates of the (i-1)th handwriting point and the actual coordinates of the (i-2)th handwriting point;

[0021] If not, then N i Get the preset value.

[0022] Optionally, N i The value of is:

[0023] Determine whether at least one of the following is satisfied: the first angle is less than a preset first angle threshold, the writing speed is less than a preset writing speed threshold, and the second angle is less than a preset second angle threshold:

[0024] If so, then N i =min((N i-1 +1), N max ), where N i-1 is the ratio of the distance between the predicted coordinates of the (i-1)th handwriting point and the actual coordinates of the (i-1)th handwriting point to the distance between the actual coordinates of the (i-1)th handwriting point and the actual coordinates of the (i-2)th handwriting point, N max is the maximum value of the preset ratio;

[0025] If not, then N i Get the preset value.

[0026] Optionally, N i The value of is:

[0027] Determine whether the first angle is less than a preset first angle threshold, the writing speed is less than a preset writing speed threshold, and the second angle is less than a preset second angle threshold:

[0028] If so, then N i =min((N i-1 +1), N max ), where N i-1 is the ratio of the distance between the predicted coordinates of the (i-1)th handwriting point and the actual coordinates of the (i-1)th handwriting point to the distance between the actual coordinates of the (i-1)th handwriting point and the actual coordinates of the (i-2)th handwriting point, N max is the maximum value of the preset ratio;

[0029] If not, then N i Get the preset value.

[0030] Optionally, when the (i-1)th handwriting point is not predicted, N i-1 Get the preset value.

[0031] Optionally, the preset value is 0, 1 or 2.

[0032] Optionally, the preset maximum ratio N max The value is 5-7.

[0033] Optionally, displaying the handwriting according to the predicted coordinates of the i-th handwriting point includes: optimizing the pen shape according to the predicted coordinates of the i-th handwriting point and preset pen shape parameters, and displaying the optimized handwriting.

[0034] A second aspect of the present invention provides a touch display device, including a touch display screen and a processor, wherein the processor includes:

[0035] An acquisition module, used for acquiring relevant parameters of the i-th handwriting point input by the user, wherein the relevant parameters include actual coordinates and acquisition time;

[0036] A prediction module, a prediction module, used for obtaining the predicted coordinates of the i-th handwriting point according to the actual coordinates of the i-th handwriting point and the actual coordinates of the (i-1)-th handwriting point, wherein the distance between the predicted coordinates of the i-th handwriting point and the actual coordinates of the (i-1)-th handwriting point is greater than or equal to the distance between the actual coordinates of the i-th handwriting point and the actual coordinates of the (i-1)-th handwriting point, and the ratio of the distance between the predicted coordinates of the i-th handwriting point and the actual coordinates of the i-th handwriting point to the distance between the actual coordinates of the i-th handwriting point and the actual coordinates of the (i-1)-th handwriting point is N i , N i ≥0; and

[0037] The control module is used to control the touch display screen to display handwriting according to the predicted coordinates of the i-th handwriting point.

[0038] Optionally, the touch display device is an electronic paper touch display device.

[0039] The third aspect of the present invention provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the handwriting display method provided in the first aspect of the present invention when executing the program.

[0040] A fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the handwriting display method provided by the first aspect of the present invention.

[0041] The beneficial effects of the present invention are as follows:

[0042] The technical solution of the present invention can improve the display delay of handwriting and enhance the user's writing experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The specific implementation modes of the present invention are further described in detail below in conjunction with the accompanying drawings.

[0044] Figure 1 A schematic flow chart of a handwriting display method provided by an embodiment of the present invention is shown.

[0045] Figure 2 A schematic diagram showing the first angle.

[0046] Figure 3 A schematic diagram showing the second angle.

[0047] Figure 4 A schematic diagram showing handwriting display.

[0048] Figure 5 A schematic diagram showing the structure of a computer system for implementing the touch display device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0049] In order to explain the present invention more clearly, the present invention is further described below in conjunction with embodiments and drawings. Similar components in the drawings are represented by the same reference numerals. It should be understood by those skilled in the art that the content specifically described below is illustrative rather than restrictive, and the protection scope of the present invention should not be limited thereto.

[0050] At present, with the rapid development of information technology, the technology of handwriting input by holding a pen or finger on a touch display device such as an electronic paper touch display device is becoming more and more mature. However, due to various reasons such as screen refresh rate, hardware data transmission speed, software data processing speed, etc., the problem of display delay of handwriting has not been solved. In particular, for electronic paper touch display devices, the problem of display delay of handwriting is more serious, affecting the user's writing experience.

[0051] In view of this, an embodiment of the present invention provides a handwriting display method, comprising:

[0052] Get the actual coordinates of the i-th handwriting point input by the user;

[0053] According to the actual coordinates of the i-th handwriting point and the actual coordinates of the (i-1)-th handwriting point, the predicted coordinates of the i-th handwriting point are obtained, wherein the distance between the predicted coordinates of the i-th handwriting point and the actual coordinates of the (i-1)-th handwriting point is greater than or equal to the distance between the actual coordinates of the i-th handwriting point and the actual coordinates of the (i-1)-th handwriting point, and the ratio of the distance between the predicted coordinates of the i-th handwriting point and the actual coordinates of the i-th handwriting point to the distance between the actual coordinates of the i-th handwriting point and the actual coordinates of the (i-1)-th handwriting point is N. i , N i ≥0; and

[0054] The handwriting display is realized according to the predicted coordinates of the i-th handwriting point.

[0055] The handwriting display method provided in this embodiment predicts the current handwriting point to obtain the predicted coordinates of the current handwriting point, wherein the predicted coordinates are farther away from the actual coordinates of the previous handwriting point than the actual coordinates of the current handwriting point, and handwriting display is realized based on the predicted coordinates of the current handwriting point with the point distance extended, which can improve the display delay of the written handwriting and enhance the user's writing experience.

[0056] Figure 1 A schematic flow chart of a handwriting display method provided for the present embodiment. For example, the handwriting processing method is applied to a computing device, and the computing device includes any electronic device with computing functions, such as a mobile phone, a laptop computer, a tablet computer, a desktop computer, a server, etc., and the embodiments of the present disclosure are not limited to this. For example, the computing device has a central processing unit (CPU) or a graphics processing unit (GPU), and also includes a memory. The memory is, for example, a non-volatile memory (such as a read-only memory (ROM)), on which the code of the operating system is stored. For example, the memory also stores codes or instructions, and by running these codes or instructions, the handwriting display method provided in the present embodiment can be implemented.

[0057] For example, the computing device may also include a touch screen to obtain handwriting points formed on the working surface of the touch screen when the user writes. The touch screen can not only receive handwriting points but also display them accordingly. The user can write directly on the working surface of the touch screen with a finger, or use an active stylus or a passive stylus to write on the working surface of the touch screen, and this embodiment does not limit this. Here, the working surface refers to a surface used to detect the user's touch operation, such as the touch surface of a touch screen.

[0058] like Figure 1 As shown, the handwriting display method provided in this embodiment includes the following steps:

[0059] S110, obtaining the actual coordinates of the i-th handwriting point input by the user.

[0060] For example, the i-th handwriting point is one of a plurality of continuous handwriting points written and input by the user on the touch display screen. Assume that the actual coordinates of the i-th handwriting point are P i (x i ,y i ), it is understandable that the input time of the i-th handwriting point input by the user can be obtained and recorded at the same time as the actual coordinates of the i-th handwriting point input by the user.

[0061] S120. Obtain the predicted coordinates of the i-th handwriting point according to the actual coordinates of the i-th handwriting point and the actual coordinates of the (i-1)-th handwriting point, wherein the distance between the predicted coordinates of the i-th handwriting point and the actual coordinates of the (i-1)-th handwriting point is greater than or equal to the distance between the actual coordinates of the i-th handwriting point and the actual coordinates of the (i-1)-th handwriting point, and the ratio of the distance between the predicted coordinates of the i-th handwriting point and the actual coordinates of the i-th handwriting point to the distance between the actual coordinates of the i-th handwriting point and the actual coordinates of the (i-1)-th handwriting point is N. i , N i ≥0.

[0062] S130, realizing handwriting display according to the predicted coordinates of the i-th handwriting point.

[0063] It is understandable that after the prediction is performed in step S120, the distance between the predicted coordinates of the i-th handwriting point and the actual coordinates of the (i-1)-th handwriting point is greater than or equal to the distance between the actual coordinates of the i-th handwriting point and the actual coordinates of the (i-1)-th handwriting point, N i It can be understood as the multiple of the distance between the ith predicted handwriting point and the ith actual handwriting point extended by the actual coordinate prediction of the ith handwriting point. For example, assuming that the N corresponding to the 5th handwriting point is 5 =4, then the distance between the 5th predicted handwriting point and the 5th actual handwriting point is extended by 4 times by predicting the handwriting point of the 5th handwriting point. It can be seen that step S120 predicts the current handwriting point (i.e., the i-th handwriting point) to obtain the predicted coordinates of the current handwriting point, wherein the predicted coordinates are farther from the actual coordinates of the previous handwriting point (the (i-1)th handwriting point) than the actual coordinates of the current handwriting point. Therefore, step S130 can realize handwriting display according to the predicted coordinates of the current handwriting point with the extended distance, so that the display delay of the handwriting can be improved and the user's writing experience can be enhanced.

[0064] In a possible implementation, in step S120, obtaining the predicted coordinates of the i-th handwriting point according to the actual coordinates of the i-th handwriting point and the actual coordinates of the (i-1)-th handwriting point includes:

[0065] The ratio of the distance between the actual coordinates of the (i-1)th handwriting point and the actual coordinates of the i-th handwriting point and the distance between the actual coordinates of the i-th handwriting point and the actual coordinates of the (i-1)th handwriting point is N. i The coordinates of are taken as the predicted coordinates of the i-th handwriting point.

[0066] In a specific example, let the actual coordinates of the i-th handwriting point be P i (x i ,y i ), the actual coordinates of the (i-1)th handwriting point are P i-1 (x i-1 ,y i-1 ), then the predicted coordinates of the i-th handwriting point P′ i (x′ i , y′ i ) Determine in P i-1 (x i-1 ,y i-1 ) to P i (x i ,y i ) On the top, the predicted coordinates of the i-th handwriting point P′ i (x′ i , y′ i ) and the actual coordinates P of the i-th handwriting point i (x i ,y i ) and the actual coordinates P of the i-th handwriting point i (x i ,y i ) and the actual coordinates P of the (i-1)th handwriting point i-1 (x i-1 ,y i-1 ) The ratio is N i ,Right now

[0067]

[0068] Then, given the actual coordinates P of the (i-1)th handwriting point i-1 (x i-1 ,y i-1), the actual coordinates P of the i-th handwriting point i (x i ,y i ) and N i In the case of taking values, the predicted coordinates P′ of the i-th handwriting point can be calculated by, for example, the following formula i (x′ i , y′ i ):

[0069] (x′ i -x i , y′ i -y i )=N i ·(x i -x i-1 ,y i -y i-1 )

[0070] x′ i =N i ·(x i -x i-1 )+x i Formula (1)

[0071] y′ i =N i ·(y i -y i-1 )+y i Formula (2)

[0072] It is understandable that, although the handwriting display based on the predicted coordinates with extended dot spacing when the handwriting input by the user changes in angle will cause certain errors, the method provided in this embodiment is to determine the predicted coordinates of the current handwriting point based on the actual coordinates of the current handwriting point and the actual coordinates of the previous handwriting point (it should be noted that it is not the predicted coordinates of the previous handwriting point), and the handwriting composed of the predicted coordinates can change with the change of the angle of the handwriting, and for example, the sampling frequency of the handwriting point sampling device of the touch display screen is usually high, so the dot spacing between adjacent handwriting points is itself very short, therefore, this error can be controlled within an acceptable range, for example, by extending the dot spacing by a multiple N. i The value-taking method is designed to control the balance between the extended distance of the predicted coordinates and the error of the predicted coordinates.

[0073] In addition, it is understandable that, at present, the common sampling frequency is 144Hz, and some touch screens can reach above 270Hz. Therefore, even if the user's handwriting speed is fast, the angle between the lines connecting the actual coordinates of adjacent handwriting points will not be greater than 90°. Therefore, there is no contradiction between "the predicted coordinates of the i-th handwriting point are on the extension line of the first line from the actual coordinates of the (i-1)-th handwriting point to the actual coordinates of the i-th handwriting point" and "the distance between the predicted coordinates of the i-th handwriting point and the actual coordinates of the (i-1)-th handwriting point is greater than or equal to the distance between the actual coordinates of the i-th handwriting point and the actual coordinates of the (i-1)-th handwriting point".

[0074] This embodiment uses a dot pitch extension multiple N i Dynamic value method, specifically, in one possible implementation, N i The value of is determined according to at least one of the first angle between the first line and the second line, the writing speed from the (i-1)th handwriting point to the i-th handwriting point, and the second angle between the first line and the third line, wherein the first line is the line from the actual coordinates of the (i-1)th handwriting point to the actual coordinates of the i-th handwriting point, the second line is the line from the actual coordinates of the (i-2)th handwriting point to the actual coordinates of the (i-1)th handwriting point, and the third line is the line from the actual coordinates of the (i-1)th handwriting point to the predicted coordinates of the (i-1)th handwriting point.

[0075] The inventors have found that the three situations of a large change in the handwriting angle, a fast writing speed and a large deviation from the previous prediction are likely to cause a large deviation in the current prediction. Based on this, the present implementation method uses at least one of the angle change of the current handwriting point (the first angle between the first connecting line and the second connecting line), the current writing speed and the prediction deviation of the previous prediction (the second angle between the first connecting line and the third connecting line) as a judgment condition to extend the point distance multiple N. i Dynamic value selection can ensure the accuracy of the prediction while extending the distance of the predicted coordinates, thereby bringing a better user writing experience.

[0076] Furthermore, in a possible implementation, i>2, that is, i is an integer greater than or equal to 3. Thus, for a plurality of consecutive handwriting points input by the user, the point distance extension multiple N may be adopted point by point starting from the third handwriting point. i The prediction is made in a dynamic value-taking way. Not predicting the second handwriting point can also be understood as directly taking the actual coordinates of the second handwriting point as the predicted coordinates, which can correspond to N of the second handwriting point. 2 = 0, that is, the distance between the predicted coordinates of the second handwriting point and the actual coordinates of the second handwriting point is zero; or, N of the second handwriting point can be set 2=1 or N 2 =2 to predict the second handwriting point and use the point distance extension multiple N from the third handwriting point point by point i Prediction is performed using a dynamic value-taking method.

[0077] Furthermore, in a possible implementation, when the (i-1)th handwriting point is not predicted, the actual coordinates of the i-th handwriting point are used as the predicted coordinates of the (i-1)th handwriting point.

[0078] For example, if handwriting points are selected for prediction at fixed or dynamic intervals or prediction is started from a handwriting point in the middle of a continuous handwriting, the predicted coordinates of the (i-1)th handwriting point may not exist when predicting the i-th handwriting point. In this way, if it is necessary to predict the i-th handwriting point based on the prediction deviation of the previous prediction, the actual coordinates of the i-th handwriting point can be used as the predicted coordinates of the (i-1)th handwriting point to determine the prediction deviation of the previous prediction, thereby completing the prediction of the i-th handwriting point.

[0079] For another example, when prediction is performed point by point starting from the third handwriting point, the predicted coordinates of the (i-1)=2nd handwriting point required for the prediction of the third handwriting point do not exist. In this way, if the third handwriting point needs to be predicted based on the prediction deviation of the previous prediction, the actual coordinates of the third handwriting point can be used as the predicted coordinates of the second handwriting point (or the predicted coordinates of the second handwriting point can be directly selected as the actual coordinates of the third point) to determine the prediction deviation of the previous prediction, thereby completing the prediction of the third handwriting point. In addition, the N of the second handwriting point can also be directly set 2 =1 or N 2 =2, to predict the second handwriting point and obtain the predicted coordinates of the second handwriting point.

[0080] Furthermore, in a possible implementation, the point spacing is extended by a multiple of N. i The first specific way of dynamic value acquisition includes:

[0081] Determine whether at least one of the following is satisfied: the first angle is less than a preset first angle threshold, the writing speed is less than a preset writing speed threshold, and the second angle is less than a preset second angle threshold:

[0082] If so, then N i =N i-1 +1, where N i-1 is the ratio of the distance between the predicted coordinates of the (i-1)th handwriting point and the actual coordinates of the (i-1)th handwriting point to the distance between the actual coordinates of the (i-1)th handwriting point and the actual coordinates of the (i-2)th handwriting point;

[0083] If not, then N i Get the preset value.

[0084] It is understandable that when predicting the i-th handwriting point, the point distance is extended by a multiple of N. i The larger the value, the larger the predicted dot distance, the longer the predicted handwriting, and theoretically the more the writing delay is reduced. i The larger the value, the lower the probability that the predicted coordinates are consistent with or close to the actual handwriting, that is, the greater the probability of prediction deviation.

[0085] In summary, the above point distance extension multiple N i The first specific way of dynamic value selection is that when predicting the current handwriting point, as long as one of the following conditions is met: the writing angle change of the current handwriting point is small, the writing speed is slow, and the prediction deviation of the previous prediction is small, it is considered that the risk of a large deviation in the current or this stage prediction is small, and the current predicted point distance is extended by a multiple of N. i The value is (N i-1 +1) to gradually expand the predicted dot spacing and enhance the effect of improving display delay. When the three conditions of small change in the writing angle of the handwriting point, slow writing speed, and small prediction deviation of the previous prediction are not met, that is, the writing angle changes greatly, the writing speed is fast, and the prediction deviation of the previous prediction is large, it is considered that the risk of large deviation in the current or this stage prediction is high, and the current predicted dot spacing is extended by a multiple of N i The value is a smaller value such as 1 to timely control the deviation. In this way, in the continuous prediction, the point distance extension multiple can be dynamically selected for each handwriting point, and the accuracy of the prediction can be guaranteed while realizing the extended distance of the predicted coordinates, thereby bringing a better user writing experience.

[0086] In a possible implementation, for the point distance extension multiple N i The first specific way of dynamic value selection is that when the (i-1)th handwriting point is not predicted, for example, when the handwriting points are selected at fixed or dynamic intervals for prediction, prediction is started from a certain handwriting point in the middle of a continuous handwriting, or prediction is performed point by point starting from the third handwriting point, and there is no predicted coordinate of the second handwriting point, N i-1 Get the preset value.

[0087] In a possible implementation, for the point distance extension multiple N i The first specific method of dynamic value acquisition, the preset value is 0, 1 or 2.

[0088] In a specific example, taking the preset value as 1, the dot spacing extension multiple N i The first specific way of dynamic value acquisition can be expressed as the following nonlinear mapping function:

[0089]

[0090] Among them, θ i is the first angle between the first connecting line "the connecting line from the actual coordinates of the (i-1)th handwriting point to the actual coordinates of the i-th handwriting point" and the second connecting line "the connecting line from the actual coordinates of the (i-2)th handwriting point to the actual coordinates of the (i-1)th handwriting point", which represents the change in the writing angle of the i-th handwriting point; θ th is the preset first angle threshold; v i is the writing speed from the (i-1)th handwriting point to the i-th handwriting point; v th is the preset writing speed threshold; i is the second angle between the first connecting line "the connecting line from the actual coordinates of the (i-1)th handwriting point to the actual coordinates of the i-th handwriting point" and the third connecting line "the connecting line from the actual coordinates of the (i-1)th handwriting point to the predicted coordinates of the (i-1)th handwriting point", which represents the prediction deviation or prediction error of the (i-1)th handwriting point; δ th is the preset second angle threshold. th 、v th and δ th The three thresholds can be selected according to factors such as the performance and settings of a computing device including a touch display screen, such as an actual electronic paper touch display device.

[0091] For example, Figure 2 As shown, the first angle θ between the first connecting line "the connecting line from the actual coordinates of the (i-1)th handwriting point to the actual coordinates of the i-th handwriting point" and the second connecting line "the second connecting line is the connecting line from the actual coordinates of the (i-2)th handwriting point to the actual coordinates of the (i-1)th handwriting point" that represents the change in the writing angle of the i-th handwriting point i The calculation formula is as follows: Figure 2 The actual coordinates of the i-th handwriting point marked as 203 are P i (x i ,y i ), Figure 2 The actual coordinates of the (i-1)th handwriting point marked as 202 are P i-1 (x i-1 ,y i-1 ), Figure 2 The actual coordinates of the (i-2)th handwriting point marked as 201 are P i-2 (x i-2 ,y i-2 ), then we have the vector:

[0092]

[0093]

[0094] Then, we can get That is, the first angle θ that represents the change in the writing angle of the i-th handwriting point i for:

[0095]

[0096] For example, the writing speed v from the (i-1)th handwriting point to the i-th handwriting point i It can be calculated based on the actual coordinates of the (i-1)th handwriting point and the i-th handwriting point and the input time:

[0097]

[0098] Among them, t i is the input time of the i-th handwriting point, t i-1 is the input time of the (i-1)th handwriting point.

[0099] For example, Figure 3 As shown, the second angle δ between the first connecting line "the connecting line from the actual coordinates of the (i-1)th handwriting point to the actual coordinates of the i-th handwriting point" and the third connecting line "the connecting line from the actual coordinates of the (i-1)th handwriting point to the predicted coordinates of the (i-1)th handwriting point" represents the prediction deviation of the (i-1)th handwriting point. i The calculation formula is as follows: Figure 3 The actual coordinates of the i-th handwriting point marked as 302 in the figure are P i (x i ,y i ), Figure 3 The actual coordinates of the (i-1)th handwriting point marked as 301 are P i-1 (x i-1 ,y i-1 ), Figure 3 The predicted coordinates of the (i-1)th handwriting point marked as 301` are P′ i-1 (x′ i-1 , y′ i-1 ), then we have the vector:

[0100]

[0101]

[0102] Then, we can get That is, the second angle δ represents the prediction deviation of the (i-1)th handwriting point i for:

[0103]

[0104] In a specific example, combined with the above-mentioned point distance extension multiple N i The first specific way of dynamic value selection is to take point-by-point prediction as an example. Figure 4 The handwriting display process of the first five handwriting points of the handwriting shown is as follows:

[0105] After obtaining the actual coordinates P of the first handwriting point marked as 401 1 (x 1 ,y 1 ), according to the actual coordinates P of the first handwriting point 1 (x 1 ,y 1 ) starting a handwriting display process for the handwriting including the first handwriting point, for example, including triggering a touch drive signal, reporting coordinate data, processing by a timing controller of the touch display screen, and refreshing a display screen;

[0106] After obtaining the actual coordinates P of the second handwriting point marked as 402 2 (x 2 ,y 2 ), the actual coordinates of the first handwriting point P 1 (x 1 ,y 1 ), the actual coordinates of the second handwriting point P 2 (x 2 ,y 2 ) and the dot distance extension multiple N corresponding to the second handwriting point 2 = 1 Substitute into formula (1) and (2) to calculate the predicted coordinate P′ of the second handwriting point marked as 402` 2 (x′ 2 , y′ 2 ), and according to the predicted coordinates P′ of the second handwriting point 2 (x′ 2 , y′ 2 ), combined with the actual coordinates P of the first handwriting point 1 (x 1 ,y 1 ), start the handwriting display process from the first handwriting point to the second handwriting point;

[0107] After obtaining the actual coordinates P of the third handwriting point marked as 403 3 (x 3 ,y 3 ) and then judge θ 3 <θ th 、v 3 <v th ,δ 3<δ th Is there at least one item in the equation? If at least one item is true ( Figure 4 It can be roughly seen that θ 3 <θ th Established, and another δ 3 =0,δ 3 <δ th If true, then determine N 3 =N 2 +1=1+1=2, the actual coordinates of the second handwriting point P 2 (x 2 ,y 2 ), the actual coordinates of the third handwriting point P 3 (x 3 ,y 3 ) and the dot distance extension multiple N corresponding to the third handwriting point 3 =2 Substituting into formula (1) and (2) we can calculate the predicted coordinates P′ of the third handwriting point marked as 403` 3 (x′ 3 , y′ 3 ), and based on the predicted coordinates P′ of the third handwriting point 3 (x′ 3 , y′ 3 ), combined with the predicted coordinates P′ of the second handwriting point 2 (x′ 2 , y′ 2 ), start the handwriting display process from the second handwriting point to the third handwriting point;

[0108] After obtaining the actual coordinates P of the fourth handwriting point marked as 404 4 (x 4 ,y 4 ) and then judge θ 4 <θ tb 、v 4 <v th ,δ 4 <δ th Is there at least one item in the equation? If at least one item is true ( Figure 4 It can be roughly seen that θ 3 <θ th and δ 4 <δ th If true, then determine N 4 =N 3 +1=2+1=3, the actual coordinates of the third handwriting point P 3 (x 3 ,y 3 ), the actual coordinates of the fourth handwriting point P 4 (x 4 ,y 4) and the dot distance extension multiple N corresponding to the fourth handwriting point 4 =3 Substitute into formula (1) and (2) to calculate the predicted coordinates P′ of the fourth handwriting point marked as 404` 4 (x′ 4 , y′ 4 ), and based on the predicted coordinates P′ of the fourth handwriting point 4 (x′ 4 , y′ 4 ), combined with the predicted coordinates P′ of the third handwriting point 3 (x′ 3 , y′ 3 ), start the handwriting display process from the 3rd handwriting point to the 4th handwriting point;

[0109] After obtaining the fifth handwriting point, the actual coordinate P is 405. 5 (x 5 ,y 5 ) and then judge θ 5 <θ th 、v 5 <v th ,δ 5 <δ th Is there at least one item in the equation? If at least one item is true ( Figure 4 It can be roughly seen that θ 5 <θ th and δ 5 <δ th If true, then determine N 5 =N 4 +1=3+1=4, the actual coordinates of the fourth handwriting point P 4 (x 4 ,y 4 ), the actual coordinates of the fifth handwriting point P 5 (x 5 ,y 5 ) and the dot distance extension multiple N corresponding to the fifth handwriting point 5 =4 Substituting into formula (1) and (2) we can calculate the predicted coordinates P′ of the fifth handwriting point marked as 405` 5 (x′ 5 , y′ 5 ), and based on the predicted coordinates P′ of the fifth handwriting point 5 (x′ 5 , y′ 5 ), combined with the predicted coordinates P′ of the fourth handwriting point 4 (x′ 4 , y′ 4 ), start the handwriting display process from the 4th handwriting point to the 5th handwriting point, and display Figure 4 As shown in P 1(x 1 ,y 1 ), P′ 2 (x′ 2 , y′ 2 ), P′ 3 (x′ 3 , y′ 3 ), P′ 4 (x′ 4 , y′ 4 ) and P′ 5 (x′ 5 , y′ 5 ). Assume that the actual writing handwriting point is located at Figure 4 The handwriting point position marked as 4010 in the figure, that is, if there is no handwriting display delay, it should be displayed at the handwriting point position 4010. However, after the handwriting point is actually obtained, due to the limitation of the screen refresh rate and the need to process the handwriting point coordinates, the handwriting is actually located at Figure 4 If no prediction is performed at the handwriting point position marked as 4010, only the fifth handwriting point can be displayed, that is, only the handwriting points indicated by Figure 4 The actual coordinates P of the five handwriting points in 1 (x 1 ,y 1 ), P 2 (x 2 ,y 2 ), P 3 (x 3 ,y 3 ), P 4 (x 4 ,y 4 ) and P 5 (x 5 ,y 5 ), it can be seen that the prediction method proposed in this embodiment can effectively improve the display delay of the written handwriting compared with the display assumption. It should be noted that the algorithm complexity of the prediction method adopted in this embodiment is not high, so the prediction calculation speed can be completed quickly. Then, for the same handwriting point, the data processing time for displaying using the actual coordinates and the predicted coordinates is very small.

[0110] Continuing with the above example, taking the preset value as 1, when predicting the sixth handwriting point, if the θ of the sixth handwriting point is 6 <θ th 、v 6 <v th ,δ 6 <δ th If both are not satisfied, then the point distance corresponding to the sixth handwriting point is extended by a multiple of N 6 = 1, the actual coordinates of the fifth handwriting point P are used for prediction5 (x 5 ,y 5 ), the actual coordinates of the sixth handwriting point P 6 (x 6 ,y 6 ) and the dot distance extension multiple N corresponding to the sixth handwriting point 6 = 1 Substitute into formula (1) and (2) to calculate the predicted coordinates P′ of the sixth handwriting point 6 (x′ 6 , y′ 6 ). Next, when predicting the 7th handwriting point, if the θ of the 7th handwriting point 7 <θ th 、v 7 <v th ,δ 7 <δ th If at least one of the following is satisfied, then the point distance corresponding to the seventh handwriting point is extended by a multiple of N 7 =N 6 +1=1+1=2, when predicting, the actual coordinates of the sixth handwriting point P 6 (x 6 ,y 6 ), the actual coordinates of the seventh handwriting point P 7 (x 7 ,y 7 ) and the dot distance extension multiple N corresponding to the 7th handwriting point 7 =2Substitute into formula (1) and (2) to calculate the predicted coordinates P′ of the seventh handwriting point 7 (x′ 7 , y′ 7 ), and so on for subsequent handwriting points.

[0111] In addition, continuing with the above example, taking the preset value as 0, when predicting the sixth handwriting point, if the θ of the sixth handwriting point is 6 <θ th 、v 6 <v th ,δ 6 <δ th If both are not satisfied, then the point distance corresponding to the sixth handwriting point is extended by a multiple of N 6 = 0, that is, no prediction is made for the sixth handwriting point or the actual coordinates of the sixth handwriting point are directly used as the predicted coordinates. Directly using the actual coordinates of the sixth handwriting point as the predicted coordinates can also correspond to "using the actual coordinates of the fifth handwriting point as the predicted coordinates". 5 (x 5 ,y 5 ), the actual coordinates of the sixth handwriting point P 6 (x 6 ,y 6) and the dot distance extension multiple N corresponding to the sixth handwriting point 6 = 0 Substitute into formula (1) and (2) to calculate the predicted coordinates P′ of the sixth handwriting point 6 (x′ 6 , y′ 6 )=P 6 (x 6 ,y 6 )". Next, when predicting the 7th handwriting point, if the θ of the 7th handwriting point 7 <θ th 、v 7 <v th ,δ 7 <δ th If at least one of the following is satisfied, then the point distance corresponding to the seventh handwriting point is extended by a multiple of N 7 =N 6 +1=0+1=1, when predicting, the actual coordinates of the sixth handwriting point P 6 (x 6 ,y 6 ), the actual coordinates of the seventh handwriting point P7 (x 7 ,y 7 ) and the dot distance extension multiple N corresponding to the 7th handwriting point 7 = 1 Substitute into formula (1) and (2) to calculate the predicted coordinates P′ of the seventh handwriting point 7 (x′ 7 , y′ 7 ), and so on for subsequent handwriting points.

[0112] It is understandable that Figure 4 It can be seen that the distances between adjacent actual coordinates of the actual coordinates of the five handwriting points are roughly the same. Figure 4 The figure shows that the user's writing speed is roughly consistent among the five handwriting points. In addition, when the user's writing speed changes, the prediction method proposed in this embodiment can also improve the handwriting display delay.

[0113] In a possible implementation, the judgment condition is different from that in the first specific implementation in that the dot spacing extension multiple N i The second specific way of dynamic value acquisition includes:

[0114] Determine whether the first angle is less than a preset first angle threshold, the writing speed is less than a preset writing speed threshold, and the second angle is less than a preset second angle threshold:

[0115] If so, then N i =N i-1 +1, where N i-1is the ratio of the distance between the predicted coordinates of the (i-1)th handwriting point and the actual coordinates of the (i-1)th handwriting point to the distance between the actual coordinates of the (i-1)th handwriting point and the actual coordinates of the (i-2)th handwriting point;

[0116] If not, then N i Get the preset value.

[0117] The above point distance is extended by multiple N i The second specific way of dynamic value selection is that when predicting the current handwriting point, only when the three conditions that the writing angle of the current handwriting point changes little, the writing speed is slow, and the prediction deviation of the previous prediction is small are met, it is considered that the risk of a large deviation in the current or this stage prediction is small, and the current predicted point distance is extended by a multiple of N. i The value is (N i-1 +1) to gradually expand the predicted dot spacing and enhance the effect of improving display delay. If any of the three conditions is not met: the writing angle of the handwriting point changes little, the writing speed is slow, and the prediction deviation of the previous prediction is small, it is considered that the risk of a large deviation in the current or this stage prediction is high, and the current predicted dot spacing is extended by a multiple of N i The value is a smaller value such as 1 to timely control the deviation. In this way, in the continuous prediction, the point distance extension multiple can be dynamically selected for each handwriting point, which can better ensure the accuracy of the prediction while realizing the extended distance of the predicted coordinates, thereby bringing a better user writing experience.

[0118] In a possible implementation, for the point distance extension multiple N i The second specific way of dynamic value selection is that when the (i-1)th handwriting point is not predicted, N i-1 Get the preset value.

[0119] In a possible implementation, for the point distance extension multiple N i The second specific method of dynamic value acquisition, the preset value is 1 or 2.

[0120] In a specific example, taking the preset value as 1 as an example, the second specific method of dynamically taking the value of the point spacing extension multiple Ni can be expressed as the following nonlinear mapping function:

[0121]

[0122] In a possible implementation, N is the same as that in the first specific implementation. i The difference in the value is that the point distance extension multiple N i The third specific way of dynamic value acquisition includes:

[0123] Determine whether at least one of the following is satisfied: the first angle is less than a preset first angle threshold, the writing speed is less than a preset writing speed threshold, and the second angle is less than a preset second angle threshold:

[0124] If so, then N i =min((N i-1 +1), N max ), where N i-1 is the ratio of the distance between the predicted coordinates of the (i-1)th handwriting point and the actual coordinates of the (i-1)th handwriting point to the distance between the actual coordinates of the (i-1)th handwriting point and the actual coordinates of the (i-2)th handwriting point, N max is the maximum value of the preset ratio;

[0125] If not, then N i Get the preset value.

[0126] The above point distance is extended by multiple N i The third specific way of dynamic value selection is that when predicting the current handwriting point, as long as one of the following conditions is met: the writing angle change of the current handwriting point is small, the writing speed is slow, and the prediction deviation of the previous prediction is small, it is considered that the risk of a large deviation in the current or this stage prediction is small, and the current predicted point distance is extended by a multiple of N. i The value is (N i-1 +1) and the preset maximum value of the ratio (i.e., the preset maximum dot distance), whichever is smaller, to gradually expand the predicted dot distance and enhance the effect of improving display delay. Among them, limiting the dot distance by the preset maximum value of the ratio can avoid the large error of a single prediction that may be caused by the excessively large predicted coordinate dot distance, which is difficult to correct. When the three conditions that the writing angle of the handwriting point changes slightly, the writing speed is slow, and the prediction deviation of the previous prediction is small are not met, that is, the writing angle changes significantly, the writing speed is fast, and the prediction deviation of the previous prediction is large, it is considered that the risk of a large deviation in the current or this stage prediction is high, and the dot distance of the current prediction is extended by a multiple of N i The value is a smaller value such as 1 to timely control the deviation. In this way, in the continuous prediction, the point distance extension multiple can be dynamically selected for each handwriting point, which can better ensure the accuracy of the prediction while realizing the extended distance of the predicted coordinates, thereby bringing a better user writing experience.

[0127] In a possible implementation, for the point distance extension multiple N i The third specific way of dynamic value selection is that when the (i-1)th handwriting point is not predicted, N i-1 Get the preset value.

[0128] In a possible implementation, for the point distance extension multiple N iThe third specific method of dynamic value acquisition, the preset value is 1 or 2.

[0129] In a specific example, taking the preset value as 1, the dot spacing extension multiple N i The third specific way of dynamic value acquisition can be expressed as the following nonlinear mapping function:

[0130]

[0131] In a possible implementation, combining the second specific method and the third specific method, the point spacing is extended by a multiple N i The fourth specific way of dynamic value acquisition includes:

[0132] Determine whether the first angle is less than a preset first angle threshold, the writing speed is less than a preset writing speed threshold, and the second angle is less than a preset second angle threshold:

[0133] If so, then N i =min((N i-1 +1), N max ), where N i-1 is the ratio of the distance between the predicted coordinates of the (i-1)th handwriting point and the actual coordinates of the (i-1)th handwriting point to the distance between the actual coordinates of the (i-1)th handwriting point and the actual coordinates of the (i-2)th handwriting point, N max is the maximum value of the preset ratio;

[0134] If not, then N i Get the preset value.

[0135] The above point distance is extended by multiple N i The fourth specific way of dynamic value selection is that when predicting the current handwriting point, only when the three conditions that the writing angle of the current handwriting point changes little, the writing speed is slow, and the prediction deviation of the previous prediction is small are met, it is considered that the risk of a large deviation in the current or this stage prediction is small, and the current predicted point distance is extended by a multiple of N. i The value is (N i-1 +1) and the preset maximum value of the ratio (i.e., the preset maximum dot distance), whichever is smaller, to gradually expand the predicted dot distance and enhance the effect of improving display delay. Among them, limiting the dot distance by the preset maximum value of the ratio can avoid the large error of a single prediction that may be difficult to correct due to the excessively large dot distance of the predicted coordinates. If any of the three conditions of the writing angle change of the handwriting point is small, the writing speed is slow, and the prediction deviation of the previous prediction is small is not met, it is considered that the risk of a large deviation in the current or this stage prediction is high, and the dot distance of the current prediction is extended by a multiple of N. iThe value is a smaller value such as 1 to timely control the deviation. In this way, in the continuous prediction, the point distance extension multiple can be dynamically selected for each handwriting point, which can better ensure the accuracy of the prediction while realizing the extended distance of the predicted coordinates, thereby bringing a better user writing experience.

[0136] In a possible implementation, for the point distance extension multiple N i The fourth specific way of dynamic value selection is that when the (i-1)th handwriting point is not predicted, N i-1 Get the preset value.

[0137] In a possible implementation, for the point distance extension multiple N i The fourth specific way of dynamic value selection is to preset a value of 1 or 2 and a preset maximum value of the ratio N. max The value is 5-7.

[0138] In a specific example, taking the preset value as 1 as an example, the fourth specific method of dynamically taking the value of the point distance extension multiple Ni can be expressed as the following nonlinear mapping function:

[0139]

[0140] In a possible implementation, step S130 further includes: optimizing the pen shape according to the predicted coordinates of the i-th handwriting point and preset pen shape parameters, and displaying the optimized handwriting.

[0141] For example, based on the selected pen type (pencil, ballpoint pen, paintbrush, writing brush, etc.) and the predicted coordinates and type of the i-th handwriting point (starting point, middle point or ending point in continuous handwriting), a model pattern or basic shape corresponding to the handwriting point, such as a circle or ellipse, can be determined, and then the i-th handwriting point can be drawn based on the model pattern and connected to the previous handwriting point.

[0142] Another embodiment of the present invention provides a touch display device, including a touch display screen and a processor, wherein the processor includes:

[0143] An acquisition module, used for acquiring relevant parameters of the i-th handwriting point input by the user, wherein the relevant parameters include actual coordinates and acquisition time;

[0144] A prediction module, used for obtaining the predicted coordinates of the i-th handwriting point according to the actual coordinates of the i-th handwriting point and the actual coordinates of the (i-1)-th handwriting point, wherein the distance between the predicted coordinates of the i-th handwriting point and the actual coordinates of the (i-1)-th handwriting point is greater than or equal to the distance between the actual coordinates of the i-th handwriting point and the actual coordinates of the (i-1)-th handwriting point, and the ratio of the distance between the predicted coordinates of the i-th handwriting point and the actual coordinates of the i-th handwriting point to the distance between the actual coordinates of the i-th handwriting point and the actual coordinates of the (i-1)-th handwriting point is N i , N i ≥0; and

[0145] The control module is used to control the touch display screen to display handwriting according to the predicted coordinates of the i-th handwriting point.

[0146] It should be noted that the handwriting display principle and working process of the touch display device provided in this embodiment are similar to the above-mentioned handwriting display method. The relevant parts can be referred to the above description and will not be repeated here.

[0147] Below, an electronic paper touch display device based on the Android operating system is taken as an example to specifically describe the working process of the touch display device provided in this embodiment.

[0148] When the user starts writing on the touch screen with his hand or stylus, the touch driver is triggered; then the application software processing and algorithm processing are executed, and then the driver acceleration library processing is executed, and finally the screen TCON (timing controller) processing and screen display are executed. The specific handwriting event logic processing process is as follows:

[0149] When the user starts writing on the electromagnetic induction (EMR) touch film with a passive pen, the electromagnetic induction touch film receives the EMR interrupt signal (interrupt signal), reports the track point information according to its reporting rate, and then triggers the touch drive signal, reports the coordinate data, etc.;

[0150] After the touch drive signal is transmitted through the Framework layer, the coordinate data of the handwriting point is given to the application software for processing;

[0151] The application software calls the algorithm SDK (Software Development Kit) to process and draw the handwriting;

[0152] The driver accelerates the library processing and passes the signal to TCON;

[0153] After being processed by TCON, the EPD (Electronic Paper Display) screen is refreshed to display the handwriting.

[0154] According to the above handwriting event logic processing process, there is a delay when the user writes on the electronic paper touch display device. The delay time is the time it takes from detecting the touch signal of the pen / hand to the screen displaying the electrical signal of the corresponding track.

[0155] Among them, the application software calls the algorithm SDK to process and draw the handwriting pattern. The algorithm SDK processes and draws the handwriting. For example:

[0156] The handwriting sequence of the selected pen type is sampled point by point, and the original information of the actual coordinates, input time, flag value, initial line width, etc. of a single handwriting point is obtained in turn. Among them, the flag value can distinguish whether the handwriting point is the start / end point;

[0157] During the sampling process, the i-th point (single handwriting point) in the handwriting sequence is predicted in sequence, and the predicted coordinates P′ are output i (x′ i , y′ i );

[0158] For the predicted coordinates P′ i (x′ i , y′ i ), mapped to the corresponding line width according to information such as distance and time;

[0159] For the predicted coordinates P′ i (x′ i , y′ i ), draw the basic shape of a single point;

[0160] Connect the drawn predicted handwriting points in sequence to form a beautified handwriting of the corresponding pen type;

[0161] The beautified handwriting of the corresponding pen type is optimized to form the final beautified handwriting.

[0162] like Figure 5 As shown, a computer system suitable for implementing the touch display device provided in the above embodiment includes a central processing module (CPU), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) or a program loaded from a storage part into a random access memory (RAM). In the RAM, various programs and data required for the operation of the computer system are also stored. The CPU, ROM, and RAM are connected to each other through a bus. An input / output (I / O) interface is also connected to the bus.

[0163] The following components are connected to the I / O interface: an input part including a touch screen, a keyboard, a mouse, etc.; an output part including a touch screen, etc. and a speaker, etc.; a storage part including a hard disk, etc.; and a communication part including a network interface card such as a LAN card, a modem, etc. The communication part performs communication processing via a network such as the Internet. A drive is also connected to the I / O interface as needed. Removable media, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., are installed on the drive as needed so that a computer program read therefrom is installed into the storage part as needed.

[0164] In particular, according to this embodiment, the process described in the flowchart above can be implemented as a computer software program. For example, this embodiment includes a computer program product, which includes a computer program tangibly contained on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part, and / or installed from a removable medium.

[0165] The flow chart and schematic diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product of the present embodiment. In this regard, each square box in the flow chart or schematic diagram can represent a part of a module, program segment or code, and a part of the above-mentioned module, program segment or code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the schematic diagram and / or flow chart, and the combination of the square boxes in the schematic diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0166] The modules involved in the description of this embodiment may be implemented by software or hardware. The modules described may also be set in a processor, for example, may be described as: a processor including an acquisition module, a prediction module and a control module. The names of these modules do not constitute limitations on the modules themselves in certain circumstances. For example, the prediction module may also be described as a "dot pitch enlargement module".

[0167] As another aspect, the present embodiment further provides a nonvolatile computer storage medium, which may be the nonvolatile computer storage medium included in the above-mentioned device in the above-mentioned embodiment, or may be a nonvolatile computer storage medium that exists independently and is not installed in the terminal. The above-mentioned nonvolatile computer storage medium stores one or more programs, and when the above-mentioned one or more programs are executed by a device, the above-mentioned device: obtains the actual coordinates of the i-th handwriting point input by the user; obtains the predicted coordinates of the i-th handwriting point according to the actual coordinates of the i-th handwriting point and the actual coordinates of the (i-1)th handwriting point, wherein the distance between the predicted coordinates of the i-th handwriting point and the actual coordinates of the (i-1)th handwriting point is greater than or equal to the distance between the actual coordinates of the i-th handwriting point and the actual coordinates of the (i-1)th handwriting point, and the ratio of the distance between the predicted coordinates of the i-th handwriting point and the actual coordinates of the i-th handwriting point to the distance between the actual coordinates of the i-th handwriting point and the actual coordinates of the (i-1)th handwriting point is N. i , N i ≥0; the handwriting display is realized according to the predicted coordinates of the nth handwriting point.

[0168] It should be noted that, in the description of the present invention, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0169] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not limitations on the embodiments of the present invention. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is impossible to list all the embodiments here. All obvious changes or modifications derived from the technical solution of the present invention are still within the protection scope of the present invention.

Claims

1. A handwriting display method, characterized in that: include: Get the actual coordinates of the i-th handwriting point input by the user; According to the actual coordinates of the i-th handwriting point and the actual coordinates of the (i-1)-th handwriting point, the predicted coordinates of the i-th handwriting point are obtained, wherein the distance between the predicted coordinates of the i-th handwriting point and the actual coordinates of the (i-1)-th handwriting point is greater than or equal to the distance between the actual coordinates of the i-th handwriting point and the actual coordinates of the (i-1)-th handwriting point, and the ratio of the distance between the predicted coordinates of the i-th handwriting point and the actual coordinates of the i-th handwriting point to the distance between the actual coordinates of the i-th handwriting point and the actual coordinates of the (i-1)-th handwriting point is N. i , N i ≥0; and Implement handwriting display according to the predicted coordinates of the i-th handwriting point; The step of obtaining the predicted coordinates of the i-th handwriting point according to the actual coordinates of the i-th handwriting point and the actual coordinates of the (i-1)-th handwriting point comprises: The ratio of the distance between the actual coordinates of the (i-1)th handwriting point and the actual coordinates of the i-th handwriting point and the distance between the actual coordinates of the i-th handwriting point and the actual coordinates of the (i-1)th handwriting point is N. i The coordinates of are taken as the predicted coordinates of the i-th handwriting point; N i The value of is determined according to at least one of the first angle between the first line and the second line, the writing speed from the (i-1)th handwriting point to the i-th handwriting point, and the second angle between the first line and the third line, wherein the first line is the line from the actual coordinates of the (i-1)th handwriting point to the actual coordinates of the i-th handwriting point, the second line is the line from the actual coordinates of the (i-2)th handwriting point to the actual coordinates of the (i-1)th handwriting point, and the third line is the line from the actual coordinates of the (i-1)th handwriting point to the predicted coordinates of the (i-1)th handwriting point.

2. The method according to claim 1, characterized in that i>2。 3. The method according to claim 1, characterized in that When the (i-1)th handwriting point is not predicted, the actual coordinates of the i-th handwriting point are used as the predicted coordinates of the (i-1)th handwriting point.

4. The method according to claim 1, characterized in that: N i The value of is: Determine whether at least one of the following is satisfied: the first angle is less than a preset first angle threshold, the writing speed is less than a preset writing speed threshold, and the second angle is less than a preset second angle threshold: If so, then N i =N i-1 +1, where N i-1 is the ratio of the distance between the predicted coordinates of the (i-1)th handwriting point and the actual coordinates of the (i-1)th handwriting point to the distance between the actual coordinates of the (i-1)th handwriting point and the actual coordinates of the (i-2)th handwriting point; If not, then N i Get the preset value.

5. The method according to claim 1, characterized in that N i The value of is: Determine whether the first angle is less than a preset first angle threshold, the writing speed is less than a preset writing speed threshold, and the second angle is less than a preset second angle threshold: If so, then N i =N i-1 +1, where N i-1 is the ratio of the distance between the predicted coordinates of the (i-1)th handwriting point and the actual coordinates of the (i-1)th handwriting point to the distance between the actual coordinates of the (i-1)th handwriting point and the actual coordinates of the (i-2)th handwriting point; If not, then N i Get the preset value.

6. The method according to claim 1, characterized in that N i The value of is: Determine whether at least one of the following is satisfied: the first angle is less than a preset first angle threshold, the writing speed is less than a preset writing speed threshold, and the second angle is less than a preset second angle threshold: If so, then N i =min((N i-1 +1),N max ), where N i-1 is the ratio of the distance between the predicted coordinates of the (i-1)th handwriting point and the actual coordinates of the (i-1)th handwriting point to the distance between the actual coordinates of the (i-1)th handwriting point and the actual coordinates of the (i-2)th handwriting point, N max is the maximum value of the preset ratio; If not, then N i Get the preset value.

7. The method according to claim 1, characterized in that N i The value of is: Determine whether the first angle is less than a preset first angle threshold, the writing speed is less than a preset writing speed threshold, and the second angle is less than a preset second angle threshold: If so, then N i =min((N i-1 +1),N max ), where N i-1 is the ratio of the distance between the predicted coordinates of the (i-1)th handwriting point and the actual coordinates of the (i-1)th handwriting point to the distance between the actual coordinates of the (i-1)th handwriting point and the actual coordinates of the (i-2)th handwriting point, N max is the maximum value of the preset ratio; If not, then N i Get the preset value.

8. The method according to any one of claims 4 to 7, characterized in that: In the case where the (i-1)th handwriting point is not predicted, N i-1 Get the preset value.

9. The method according to any one of claims 4 to 7, characterized in that: The preset value is 0, 1 or 2.

10. The method according to claim 6 or 7, characterized in that: The preset maximum ratio N max The value is 5-7.

11. The method according to claim 1, characterized in that: The displaying of handwriting according to the predicted coordinates of the i-th handwriting point includes: optimizing the pen shape according to the predicted coordinates of the i-th handwriting point and preset pen shape parameters, and displaying the optimized handwriting.

12. A touch display device, comprising a touch display screen and a processor, characterized in that: The processor comprises: An acquisition module, used for acquiring relevant parameters of the i-th handwriting point input by the user, wherein the relevant parameters include actual coordinates and acquisition time; A prediction module, used for obtaining the predicted coordinates of the i-th handwriting point according to the actual coordinates of the i-th handwriting point and the actual coordinates of the (i-1)-th handwriting point, wherein the distance between the predicted coordinates of the i-th handwriting point and the actual coordinates of the (i-1)-th handwriting point is greater than or equal to the distance between the actual coordinates of the i-th handwriting point and the actual coordinates of the (i-1)-th handwriting point, and the ratio of the distance between the predicted coordinates of the i-th handwriting point and the actual coordinates of the i-th handwriting point to the distance between the actual coordinates of the i-th handwriting point and the actual coordinates of the (i-1)-th handwriting point is N i , N i ≥0; and A control module, used for controlling the touch screen to display handwriting according to the predicted coordinates of the i-th handwriting point; The prediction module is used to obtain the predicted coordinates of the i-th handwriting point according to the actual coordinates of the i-th handwriting point and the actual coordinates of the (i-1)-th handwriting point, including: setting the ratio of the distance between the actual coordinates of the i-th handwriting point and the actual coordinates of the i-th handwriting point on the extension line of the first connecting line from the actual coordinates of the (i-1)-th handwriting point to the actual coordinates of the i-th handwriting point and the distance between the actual coordinates of the i-th handwriting point and the actual coordinates of the (i-1)-th handwriting point to be N i The coordinates of the i-th handwriting point are taken as the predicted coordinates; where N i The value of is determined according to at least one of the first angle between the first line and the second line, the writing speed from the (i-1)th handwriting point to the i-th handwriting point, and the second angle between the first line and the third line, wherein the first line is the line from the actual coordinates of the (i-1)th handwriting point to the actual coordinates of the i-th handwriting point, the second line is the line from the actual coordinates of the (i-2)th handwriting point to the actual coordinates of the (i-1)th handwriting point, and the third line is the line from the actual coordinates of the (i-1)th handwriting point to the predicted coordinates of the (i-1)th handwriting point.

13. The touch display device according to claim 12, characterized in that: The touch display device is an electronic paper touch display device.

14. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 11 is implemented.

15. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 11 is implemented.

Citation Information

Patent Citations

  • Compression and decompression methods for handwritten terminal trajectories

    CN102299718A

  • Method and system for implementing original handwriting

    CN103310474A