Handwriting display method and device, equipment and storage medium
By predicting the actual touch pressure, the hysteresis problem caused by the transmission delay of the terminal equipment when displaying the handwriting is solved, and a more accurate and realistic handwriting display is achieved.
Patent Information
- Application Number
- CN202311492104.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-09
- Publication Date
- 2025-05-09
AI Technical Summary
In the prior art, when the terminal device displays the handwriting, due to the delay in the touch pressure transmitted by the touch device, the displayed handwriting has a lag and lacks accuracy.
By receiving the transmission touch pressure of the current frame sent by the touch device, and predicting the actual touch pressure based on the transmission touch pressure, the target touch pressure of the previous frame, and the transmission delay between the terminal device and the touch device, the handwriting is displayed in the current frame.
It reduces the lag of handwriting display, improves the accuracy of handwriting display, and makes the handwriting written more realistic.
Smart Images

Figure CN119960620A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to touch screen display technology, and relate to but are not limited to a handwriting display method and device, equipment, and storage medium. Background Art
[0002] When a touch device such as an active pen is used to perform touch operations on a terminal device, such as writing and drawing, the touch device usually needs to transmit corresponding touch pressure, so that the terminal device can display the thickness of the handwriting based on the touch pressure.
[0003] In the prior art, the terminal device usually receives the touch pressure transmitted by the touch device, and then displays the corresponding handwriting according to the touch pressure. However, since there is usually a time delay in the touch pressure transmitted by the touch device to the terminal device, there may be a certain delay in the terminal device displaying the handwriting, resulting in the displayed handwriting not being the handwriting in the current frame.
[0004] Therefore, when handwriting display is performed based on the solution of the prior art, the displayed handwriting may have a certain lag. Summary of the invention
[0005] In view of this, the handwriting display method, device, equipment, and storage medium provided in the embodiments of the present application can reduce the lag of handwriting display and improve the accuracy of handwriting display. The handwriting display method, device, equipment, and storage medium provided in the embodiments of the present application are implemented as follows:
[0006] An embodiment of the present application provides a handwriting display method, which is applied to a terminal device including a touch screen, and includes:
[0007] In the process of performing a touch operation on the touch screen through the touch device, receiving the transmission touch pressure of the current frame sent by the touch device;
[0008] Predicting the actual touch pressure exerted by the touch device on the touch screen in the current frame based on the transmitted touch pressure, the target touch pressure of at least one frame before the current frame, and the transmission delay between the terminal device and the touch device to obtain the predicted touch pressure, wherein there is a transmission delay between the terminal device and the touch device;
[0009] The handwriting of the touch operation in the current frame is displayed on the touch screen according to the predicted touch pressure.
[0010] An embodiment of the present application provides a handwriting display device, which is applied to a terminal device including a touch screen, and includes: a receiving module, a prediction module and a display module;
[0011] A receiving module, used for receiving the transmission touch pressure of the current frame sent by the touch device during the process of performing a touch operation on the touch screen through the touch device;
[0012] A prediction module, configured to predict the actual touch pressure generated by the touch device on the touch screen in the current frame based on the transmitted touch pressure, the target touch pressure of at least one frame before the current frame, and the transmission delay between the terminal device and the touch device, so as to obtain the predicted touch pressure;
[0013] The display module is used to display the handwriting of the touch operation in the current frame on the touch screen according to the predicted touch pressure.
[0014] The computer device provided in the embodiment of the present application includes a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the program, the method described in the embodiment of the present application is implemented.
[0015] The computer-readable storage medium provided in the embodiment of the present application has a computer program stored thereon, and when the computer program is executed by a processor, the method provided in the embodiment of the present application is implemented.
[0016] The handwriting display method, device, computer device and computer-readable storage medium provided in the embodiment of the present application can receive the transmission touch pressure of the current frame sent by the touch device during the touch operation of the touch screen through the touch device; then, based on the transmission touch pressure, the target touch pressure of at least one frame before the current frame and the transmission delay between the terminal device and the touch device, the actual touch pressure generated by the touch device on the touch screen in the current frame can be predicted to obtain the predicted touch pressure; and the handwriting of the touch operation in the current frame can be displayed on the touch screen according to the predicted touch pressure. Among them, by determining the method of predicting the touch pressure, the hysteresis of the pressure transmission caused by the transmission delay can be avoided, that is, the predicted touch pressure after the time equal to the transmission delay can be determined according to the transmission touch pressure of the current frame obtained, and then in the process of handwriting display, the handwriting is displayed based on the predicted touch pressure, so that the hysteresis of the handwriting display can be reduced, the accuracy of the handwriting display can be improved, and the handwriting written is more realistic. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.
[0018] Figure 1 A schematic diagram of an application scenario provided in an embodiment of the present application;
[0019] Figure 2 A schematic diagram of the software structure framework of the terminal device provided in the embodiment of the present application;
[0020] Figure 3 A schematic diagram of the hardware structure framework of a terminal device provided in an embodiment of the present application;
[0021] Figure 4 A flowchart of a handwriting display method provided in an embodiment of the present application;
[0022] Figure 5 Another schematic diagram of the process of the handwriting display method provided in the embodiment of the present application;
[0023] Figure 6 Another schematic diagram of the process of the handwriting display method provided in the embodiment of the present application;
[0024] Figure 7 A schematic diagram of pressure changes corresponding to the handwriting display method provided in an embodiment of the present application;
[0025] Figure 8 Another schematic diagram of the process of the handwriting display method provided in the embodiment of the present application;
[0026] Fig. 9 A schematic diagram of the overall process of the handwriting display method provided in an embodiment of the present application;
[0027] Fig.10 A schematic diagram of the structure of a handwriting display device provided in an embodiment of the present application;
[0028] Fig.11 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the specific technical scheme of the present application will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application, but are not used to limit the scope of the present application.
[0030] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0031] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0032] It should be pointed out that the terms "first\second\third" involved in the embodiments of the present application are used to distinguish similar or different objects, and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.
[0033] In the related art, the communication between the touch device and the terminal device mainly adopts the USI (Universal Stylus Initiative, wireless handwriting) protocol for communication, and the touch screen of the touch device and the terminal device communicate to achieve the transmission of touch pressure.
[0034] However, the wireless communication between the touch device and the touch screen is easily interfered by the outside world, and there is a problem of data transmission stability. In order to solve this problem and improve the stability of data transmission, the commonly used technical means is to collect touch pressure through the touch device, and then transmit it to the terminal device through Bluetooth communication.
[0035] However, in the process of adopting the above-mentioned transmission method, due to the long communication chain, the delay is much larger than the USI protocol solution. The pressure transmission delay causes the touch pressure received by the terminal device to be not real-time touch pressure, and there is a certain delay. When displaying based on the touch pressure, there may be a display lag, resulting in inaccurate displayed handwriting.
[0036] In order to solve the problem of transmission delay existing in the related art, a handwriting display method is provided in an embodiment of the present application. The application scenario of the handwriting display method is explained below.
[0037] Figure 1 This is a schematic diagram of the application scenario provided in the embodiment of this application, please refer to Figure 1, the application scenario may include a terminal device 110 and a touch device 120, wherein the terminal device 110 may be a device with a touch screen, for example: it may be a mobile phone, a tablet computer, a laptop computer, a PDA, a mobile internet device (MID), a wearable device, a virtual reality (VR) device, an augmented reality (AR) device, a smart screen, an artificial intelligence (AI) speaker, a headset, a terminal in industrial control, a terminal in self driving, a terminal in remote medical surgery, a terminal in a smart grid, a terminal in transportation safety, a terminal in a smart city, a terminal in a smart home, a personal digital assistant (PDA), etc., which include a touch screen, and the embodiments of the present application are not limited to this.
[0038] The touch device 120 may be a device for performing touch operations on the touch screen of the terminal device 110 , such as an active pen, an electronic drawing pen, etc., and no specific limitation is made here.
[0039] In some embodiments, the touch screen of the terminal device 110 can be touched by the touch device 120, and then the terminal device 110 displays the corresponding handwriting on the touch screen based on the touch operation. For example, text, drawing, and tapping can be performed on the touch screen of the terminal device 110 by the touch device 120.
[0040] The touch device 120 may determine the touch pressure between the touch device 120 and the touch screen of the terminal device 110, and then send the touch pressure to the terminal device 110. During the sending process, there is a certain transmission delay.
[0041] In order to explain the application scenarios provided by the present application more clearly and comprehensively, the software structure framework of the terminal device provided in the embodiments of the present application is explained below.
[0042] Figure 2 This is a schematic diagram of the software structure framework of the terminal device provided in the embodiment of the present application. Please refer to Figure 2 The terminal device may include: a kernel layer 210, a hardware abstraction layer 220 and an application layer 230.
[0043] The kernel layer 210 may have a driver function, which may include different types of drivers such as sensor drivers and Bluetooth drivers. The terminal device and the touch device may communicate via Bluetooth, and the touch device may transmit the touch pressure to the terminal device via Bluetooth communication, for example, to the Bluetooth driver of the kernel layer 210. The sensor driver may communicate with the sensor controller, and the sensor controller controls the sensor driver to obtain the touch coordinates of the touch device, and then reports the touch coordinates to the application layer 230.
[0044] The hardware abstraction layer 220 (HAL) may include a monitoring process and a Bluetooth protocol stack, wherein the Bluetooth protocol stack may process the touch pressure provided by the Bluetooth driver and may forward it to the application layer 230; the monitoring process may monitor the touch pressure value transmitted by the Bluetooth protocol stack and may also monitor the touch coordinates transmitted by the sensor driver.
[0045] The application layer 230 can perform data processing in the application downloaded in the terminal device according to the touch information transmitted by the sensor driver and the touch pressure forwarded by the Bluetooth protocol stack, so as to complete the corresponding work of displaying handwriting. It can determine the display position based on the touch information and determine the thickness of the displayed handwriting according to the touch pressure.
[0046] The above touch information may include, for example, touch coordinates corresponding to the touch screen when the touch event occurs.
[0047] It should be noted that the software structure framework of the above-mentioned terminal device is only an example. For example, the operating system of the terminal device is Android system. Of course, the terminal device can also use other operating systems, such as Linux operating system, Hongmeng operating system, or IOS operating system, etc. In different operating systems, the software structure framework may change, but as long as the functions implemented by each functional module are similar to the modules in the embodiment of the present application, the handwriting display method provided in the embodiment of the present application can also be implemented, and it should not be understood as a limitation on the software structure framework.
[0048] The hardware structure of the terminal device is described below.
[0049] Figure 3 This is a schematic diagram of the hardware structure framework of the terminal device provided in the embodiment of the present application. Please refer to Figure 3 The terminal device includes components such as a processor 310, a memory 320, a transceiver 330, a touch screen 340, an input unit 350, and a sensor 360.
[0050] The processor 310 is the control center of the terminal device, and uses various interfaces and lines to connect various parts of the entire terminal device. By running or executing software programs and / or modules stored in the memory 320, and calling data stored in the memory 320, the processor 310 performs various functions of the terminal device and processes data, thereby monitoring the terminal device as a whole. Optionally, the processor 310 may include one or more processing units; optionally, the processor 310 may integrate an application processor, which mainly processes operating devices, user interfaces, and application programs, etc. Of course, other processors may also be included, which are not listed here one by one.
[0051] The memory 320 can be used to store software programs and modules. The processor 310 executes various functional applications and data processing of the terminal device by running the software programs and modules stored in the memory 320. The memory 320 mainly includes a program storage area and a data storage area, wherein the program storage area can store operating devices, at least one application required for a function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the terminal device (such as audio data, a phone book, etc.), etc. In addition, the memory 320 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0052] The transceiver 330 can provide wireless communication solutions applied to terminal devices, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. The transceiver 330 can be one or more devices integrating at least one communication processing module, for example, integrating an antenna and a baseband processor into the transceiver 330, or integrating an antenna and a modem processor into the transceiver 330, etc., which are not limited here.
[0053] The touch screen 340 can be used to display information input by the user or information provided to the user and various menus of the terminal device. The touch screen 340 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc., which is not limited here.
[0054] The input unit 350 can be used to receive input digital or character information, and to generate key signal input related to user settings and function control of the terminal device. Among them, the input unit 350 can collect the user's operations on or near it, and drive the corresponding connection device according to a pre-set program. In addition, the input unit 350 may include a touch panel, which can be implemented in various types such as resistive, capacitive, infrared and surface acoustic wave. In addition to the touch panel, the input unit 350 may also include other input devices. Among them, other input devices may include but are not limited to one or more of function keys (such as volume control buttons, switch buttons, etc.), trackballs, joysticks, etc.
[0055] The terminal device may also include at least one sensor 360, such as a gyroscope sensor, a motion sensor, and other sensors. The motion sensor may include an accelerometer sensor for detecting the magnitude of acceleration in all directions, and the magnitude and direction of gravity when stationary, which may be used for applications that identify the posture of the terminal device, such as horizontal and vertical screen switching, related games, magnetometer posture calibration, etc. As for other sensors that may be configured in the terminal device, such as a pressure gauge, a barometer, a hygrometer, a thermometer, an infrared sensor, a fingerprint sensor, etc., they will not be described in detail here.
[0056] It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the terminal device. In other embodiments of the present application, the terminal device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0057] Based on the above introduction to the application scenario and the description of the software and hardware structure in the terminal device, the implementation process of the handwriting display method provided in the embodiment of the present application is explained below.
[0058] Figure 4 For a flow chart of the handwriting display method provided in the embodiment of the present application, please refer to Figure 4 , the method comprising:
[0059] S410: During a touch operation on a touch screen through a touch device, receiving a transmission touch pressure of a current frame sent by the touch device.
[0060] The executor of the method is the above-mentioned terminal device, and the terminal device can receive the transmission touch pressure of the current frame sent by the touch device, wherein the touch pressure can be transmitted to the terminal device by the touch device in frames, and the transmitted frames can be continuous frames.
[0061] It should be noted that in the process of performing touch operations on the touch screen through a touch device, the operation can be a continuous operation, and the touch pressure collected by the touch device can be the touch pressure arranged by frame. In the actual implementation process, the terminal device can receive each frame of touch pressure sent by the touch device in real time. Each time the terminal device receives touch pressure, it can use the frame touch pressure as the transmission touch pressure of the current frame.
[0062] For example, during the use of the device, the user can write or draw on the touch screen of the terminal device through the touch device. When the touch device contacts the terminal device, the touch device can obtain the touch pressure, and then transmit the touch pressure to the terminal device in frames. In the transmission process, for example, Bluetooth transmission can be used, and there may be a certain transmission delay in the transmission process.
[0063] S420: Based on the transmitted touch pressure, the target touch pressure of at least one frame before the current frame, and the transmission delay between the terminal device and the touch device, predict the actual touch pressure generated by the touch device on the touch screen in the current frame to obtain the predicted touch pressure.
[0064] It should be noted that after the terminal device receives the transmitted touch pressure of the current frame, the predicted touch pressure may be determined based on the transmitted touch pressure and the target touch pressure of at least one frame.
[0065] The target touch pressure may be the touch pressure transmitted by the previous frame or previous frames continuous with the current frame, and these pressures may be stored in the terminal device as the target touch pressure. The specific number of frames required may be set according to actual needs and is not specifically limited here.
[0066] For example, if two frames are needed to determine the predicted touch pressure, the actual touch pressure generated by the touch device on the touch screen in the current frame can be predicted based on the transmitted touch pressure of the current frame and the target touch pressure of the previous frame of the current frame, thereby obtaining the predicted touch pressure.
[0067] It should be noted that due to the transmission delay between the touch device and the terminal device, the transmitted touch pressure is not the actual touch pressure generated by the current frame on the touch screen, but the actual touch pressure of the current frame before the transmission delay. The actual touch pressure generated by the current frame on the touch screen can be predicted based on this touch pressure to obtain the predicted touch pressure.
[0068] S430: Displaying the handwriting of the touch operation in the current frame on the touch screen according to the predicted touch pressure.
[0069] It should be noted that after obtaining the predicted touch pressure, the handwriting corresponding to the thickness of the current frame of the touch operation can be displayed on the touch screen according to the size of the predicted touch pressure. The greater the predicted touch pressure, the thicker the handwriting of the current frame. Correspondingly, the smaller the predicted touch pressure, the thinner the handwriting of the current frame. When the predicted touch pressure is less than the preset threshold, the handwriting may not be displayed.
[0070] During the process of the terminal device executing the above steps, the kernel layer of the terminal device can receive the touch pressure of the current frame transmission sent by the touch device, and can perform the above steps to determine the predicted touch pressure, which can then be forwarded to the application layer through the hardware abstraction layer. The application layer displays the handwriting of the touch operation in the current frame on the touch screen according to the forwarded predicted touch pressure. For different applications, the way of displaying handwriting may be different, and no specific limitation is made here.
[0071] For example, if three frames are needed to determine the predicted touch pressure, the actual touch pressure generated by the touch device on the touch screen in the current frame can be predicted based on the transmitted touch pressure of the current frame and the target touch pressure of the two frames before the current frame, thereby obtaining the predicted touch pressure. After obtaining the predicted touch pressure, the handwriting of the touch operation in the current frame can be displayed on the touch screen according to the predicted touch pressure.
[0072] In the handwriting display method provided in the embodiment of the present application, the transmission touch pressure of the current frame sent by the touch device can be received during the touch operation of the touch screen through the touch device; then, based on the transmission touch pressure, the target touch pressure of at least one frame before the current frame, and the transmission delay between the terminal device and the touch device, the actual touch pressure generated by the touch device on the touch screen in the current frame can be predicted to obtain the predicted touch pressure; and the handwriting of the touch operation in the current frame can be displayed on the touch screen according to the predicted touch pressure. Among them, by determining the method of predicting the touch pressure, the hysteresis of the pressure transmission caused by the transmission delay can be avoided, that is, the predicted touch pressure after the time equal to the transmission delay can be determined according to the acquired transmission touch pressure of the current frame, and then in the process of handwriting display, the handwriting is displayed based on the predicted touch pressure, so that the hysteresis of the handwriting display can be reduced, the accuracy of the handwriting display can be improved, and the handwriting written is more realistic.
[0073] The following is an explanation of the implementation process of determining the predicted touch pressure in the note display method provided in the embodiment of the present application.
[0074] Figure 5For another flow chart of the handwriting display method provided in the embodiment of the present application, please refer to Figure 5 , based on the transmitted touch pressure, the target touch pressure of at least one frame before the current frame, and the transmission delay between the terminal device and the touch device, predicting the actual touch pressure generated by the touch device on the touch screen in the current frame to obtain the predicted touch pressure, including:
[0075] S510: Determine a pressure change per unit time based on the transmitted touch pressure and a target touch pressure of at least one frame before the current frame.
[0076] It should be noted that the pressure change per unit time may refer to, for example, the pressure change within 1 second or the pressure change within 1 ms, which may be selected and set according to actual conditions and is not specifically limited here.
[0077] Based on different numbers of target touch pressures, different calculation methods may be used to determine the pressure change per unit time.
[0078] It should be noted that during the pressure collection and transmission process, the collection and transmission can be performed according to a certain pressure sampling frequency, and the time interval between two adjacent frames can be calculated based on the pressure sampling frequency, thereby more accurately determining the pressure change per unit time.
[0079] For example, if a linear relationship is used to represent the change in pressure over time, the pressure change per unit time can be the slope of the linear relationship, which is used to represent the change in pressure per unit time. For example, if the pressure change per unit time is a positive number, it can be determined that the pressure has increased; if the pressure change per unit time is a negative number, it can be determined that the pressure has decreased; if the pressure change per unit time is 0, it can be determined that the pressure has not changed.
[0080] S520: Determine the predicted touch pressure based on the pressure change per unit time and the transmission delay.
[0081] It should be noted that after the pressure change per unit time is determined based on the above method, the overall change of pressure during this period can be determined according to the transmission delay, and then the predicted touch pressure can be determined.
[0082] In one embodiment, determining the predicted touch pressure based on the pressure change per unit time and the transmission delay includes:
[0083] The pressure change after the target time length is determined based on the pressure change per unit time and the transmission delay; the sum of the transmitted touch pressure and the pressure change after the target time length is used as the predicted touch pressure.
[0084] The target duration is equal to the duration of the transmission delay, and the specific calculation formula is as follows:
[0085] ΔF=T0×K0;
[0086] Among them, ΔF is the pressure change after the target time, K0 is the pressure change per unit time, and T0 is the transmission delay.
[0087] When determining the predicted touch pressure, the specific calculation formula is as follows:
[0088] F = F0 + ΔF;
[0089] Wherein, F0 is the transmitted touch pressure, and F is the predicted touch pressure.
[0090] That is to say, the overall formula for calculating the predicted touch pressure can be expressed as:
[0091] F = F0 + T0 × K0;
[0092] In a handwriting display method provided in an embodiment of the present application, the pressure change per unit time can be determined based on the transmitted touch pressure and the target touch pressure of at least one frame before the current frame; the predicted touch pressure can be determined based on the pressure change per unit time and the transmission delay. The predicted touch pressure can be determined more accurately through the pressure change per unit time, thereby improving the accuracy of the obtained predicted touch pressure.
[0093] The following will explain respectively the implementation process of determining the pressure change per unit time when the number of target touch pressures is different.
[0094] In one embodiment, the pressure change per unit time is determined based on the transmitted touch pressure and the target touch pressure of at least one frame before the current frame, including: if the current frame includes a frame before it, the pressure change per unit time is determined based on the transmitted touch pressure, the target touch pressure of the frame before the current frame, and the time difference between the current frame and the previous frame.
[0095] It should be noted that the specific formula for determining the pressure change per unit time is as follows:
[0096] K0=(F0-F1) / ΔT;
[0097] Wherein, F1 is the target touch pressure of the previous frame of the current frame, and ΔT is the time difference between the current frame and the previous frame.
[0098] The time difference ΔT between the current frame and the previous frame can be obtained according to the pressure sampling frequency. The specific calculation formula is as follows:
[0099] ΔT = 1 / f;
[0100] Where f is the pressure sampling frequency.
[0101] In the above, only one target touch pressure is taken as an example to determine the pressure change per unit time. In the following, multiple target touch pressures are taken as an example to determine the pressure change per unit time.
[0102] In one embodiment, the pressure change per unit time is determined based on the transmitted touch pressure and the target touch pressure of at least one frame before the current frame, including: if there are at least two frames before the current frame, respectively determine the difference in target touch pressure between each two adjacent frames; determine the weighted pressure change according to the difference in target touch pressure between each two adjacent frames and a preset weight; determine the pressure change per unit time according to the time difference between two adjacent frames and the weighted pressure change.
[0103] It should be noted that the current frame may include N frames, and the target touch pressures of the N frames may be obtained respectively. The N frames may be consecutive frames, and the difference in target touch pressures between two adjacent frames may be calculated respectively. The specific calculation formula is as follows:
[0104] ΔF1=F0-F1;
[0105] ΔF2 = F1 - F2;
[0106] …
[0107] ΔF N =F N-1 -F N ;
[0108] Among them, ΔF1-ΔF N That is, the difference in target touch pressure between two adjacent frames, which can be N in total; F1-F N That is, the previous frame to the previous N frames of the current frame.
[0109] After obtaining the target touch pressure differences between two adjacent frames, the weighted pressure change can be determined based on the corresponding preset weights. The specific calculation formula is as follows:
[0110] F Q =A1×ΔF1+A2×ΔF2+…+A N ×ΔF N ;
[0111] Among them, A1-A N That is, the preset weight corresponding to the difference in target touch pressure between two adjacent frames. The preset weight can be set according to actual needs. For example, the preset weight of the difference in target touch pressure between two adjacent frames closer to the current frame is larger. Q This is the weighted pressure change.
[0112] After obtaining the weighted pressure change, the specific calculation formula for determining the pressure change per unit time is as follows:
[0113] K0=F Q / (ΔT×N);
[0114] For example, if there are N+1 touch pressures in total, that is, there are N frames before the current frame, and accordingly, there are N pressure changes in total, and there are differences in target touch pressures between N adjacent frames. Different weights can be assigned to the differences in target touch pressures between these N adjacent frames.
[0115] For example, if N=4, you can choose A1=0.40, A2=0.25, A3=0.20, A4=0.15 as weights, then the weighted pressure change F Q =0.4*ΔF1+0.25*ΔF2+0.2*ΔF3+0.15*ΔF4.
[0116] For example, if the pressure sampling rate is 60Hz, the time difference between two adjacent frames is about 16.67ms, and the pressure change per unit time is: F Q / (16.67×4), the predicted touch pressure is F0+T0×F Q / (16.67×4).
[0117] In a handwriting display method provided in an embodiment of the present application, different calculation methods can be used according to the number of frames before the current frame to determine the pressure change per unit time, and then calculate the predicted touch pressure, which can more accurately and comprehensively determine the predicted touch pressure, thereby improving the accuracy and applicability of the determination.
[0118] Another specific implementation process of the handwriting display method provided in the embodiment of the present application is explained below.
[0119] Figure 6 For another flow chart of the handwriting display method provided in the embodiment of the present application, please refer to Figure 6 , based on the transmitted touch pressure, the target touch pressure of at least one frame before the current frame, and the transmission delay between the terminal device and the touch device, predicting the actual touch pressure generated by the touch device on the touch screen in the current frame, before obtaining the predicted touch pressure, the method further includes:
[0120] S610: Determine whether the number of target touch pressures in consecutive frames before the current frame satisfies N.
[0121] Wherein, N is a positive integer greater than or equal to 1.
[0122] It should be noted that after the terminal device receives the touch pressure sent by the touch device, the accumulated number can be recorded. For example, when the user writes or draws through the touch device, multiple frames of transmission pressure will be transmitted in chronological order. After receiving a touch pressure, the touch pressure can be stored and recorded, and the current accumulated number of touch pressures can be counted each time the touch pressure is received. The number N of target touch pressures can be set according to actual needs, and there is no specific restriction here, which can correspond to the aforementioned N frames.
[0123] After each touch pressure is received, it may be determined whether the number of target touch pressures in consecutive frames before the current frame satisfies N.
[0124] Predicting the actual touch pressure generated by the touch device on the touch screen in the current frame based on the transmitted touch pressure, the target touch pressure of at least one frame before the current frame, and the transmission delay between the terminal device and the touch device to obtain the predicted touch pressure includes:
[0125] S620: When the number of target touch pressures in consecutive frames before the current frame satisfies N, based on the transmitted touch pressure and the N target touch pressures, predict the actual touch pressure generated by the touch device on the touch screen in the current frame to obtain the predicted touch pressure.
[0126] It should be noted that, when it is determined that the number of target touch pressures in the continuous frames before the current frame is greater than or equal to N, the actual touch pressure generated by the touch device on the touch screen in the current frame can be predicted based on the transmitted touch pressure and the N target touch pressures to obtain the predicted touch pressure. Accordingly, when the number of target touch pressures in the continuous frames before the current frame is less than N, the transmitted touch pressure of the current frame is directly reported to the application layer of the terminal device, and the handwriting is displayed based on the transmitted touch pressure of the current frame.
[0127] In a handwriting display method provided by an embodiment of the present application, it can be determined whether the number of target touch pressures of consecutive frames before the current frame meets N; when the number of target touch pressures of consecutive frames before the current frame meets N, the actual touch pressure generated by the touch device on the touch screen in the current frame is predicted based on the transmitted touch pressure and the N target touch pressures to obtain the predicted touch pressure. Before determining the predicted touch pressure, by determining the number of target touch pressures, it can be more accurately determined whether the predicted touch pressure can be calculated based on the above calculation method, and in the case of insufficient target touch pressure, other calculation methods can be used to display the handwriting, thereby avoiding the situation where the handwriting is not displayed on the touch screen, and improving the applicability of the touch screen to display handwriting.
[0128] The following explains the corresponding pressure changes during the actual application of the handwriting display method provided in the embodiment of the present application.
[0129] Figure 7 For a schematic diagram of pressure changes corresponding to the handwriting display method provided in the embodiment of the present application, please refer to Figure 7 , Figure 7 The left sub-graph in the middle shows the pressure change between the transmitted touch pressure and the actual touch pressure; the right sub-graph shows the pressure change based on the predicted touch pressure to represent the actual touch pressure.
[0130] Among them, the left sub-graph includes two pressure change lines, one of which represents the change of the transmitted touch pressure, and the other represents the change of the actual touch pressure. In the actual implementation process, due to the transmission delay between the terminal device and the touch device, the transmitted touch pressure cannot represent the actual touch pressure of the current frame.
[0131] Therefore, based on Figure 7 The method in the right sub-figure is based on the left sub-figure to predict the touch pressure. It should be noted that: Figure 7 Taking N=1 as an example, that is, when the second frame is the current frame, the predicted touch pressure obtained by the above method is used, and the pressure change of the actual touch pressure is represented based on the predicted touch pressure, thereby avoiding the influence of transmission delay. The actual touch pressure of the current frame can be represented based on the predicted touch pressure, and then the handwriting is displayed based on the change of the predicted touch pressure, which can reduce the influence of transmission delay and improve the accuracy and timeliness of handwriting display.
[0132] The following is an explanation of the implementation process of handwriting display in the handwriting display method provided in the embodiment of the present application.
[0133] Figure 8 For another flow chart of the handwriting display method provided in the embodiment of the present application, please refer to Figure 8 , the Act also includes:
[0134] S810: Acquire the touch coordinates of the transmitted touch pressure of the current frame on the touch screen.
[0135] It should be noted that the touch coordinates can be obtained by sensors set on the touch screen. Since the touch coordinates are directly obtained by the terminal device, there is no transmission delay. That is to say, the touch coordinates of the touch screen obtained by the transmission touch pressure of the current frame are the actual touch coordinates.
[0136] For example, a sensor may be provided on the touch screen of the terminal device. After the touch device contacts the touch screen and generates pressure, the sensor may determine the actual position where the pressure is generated, and then obtain the touch coordinates of the transmitted touch pressure of the current frame on the touch screen.
[0137] This process can be determined by the kernel layer of the terminal device, and the touch coordinates of the transmitted touch pressure on the touch screen of each frame can be obtained frame by frame, and these touch coordinates can be reported to the application layer of the terminal device frame by frame.
[0138] Display the handwriting of the touch operation in the current frame on the touch screen according to the predicted touch pressure, including:
[0139] S820: Displaying the handwriting of the touch operation in the current frame at the touch coordinates on the touch screen according to the predicted touch pressure.
[0140] It should be noted that after the application layer of the terminal device receives the touch coordinates, the handwriting of the touch operation in the current frame can be displayed at the touch coordinates on the touch screen based on the predicted touch pressure. The displayed position can be determined based on the touch coordinates, and the thickness of the displayed handwriting can be determined by the predicted touch pressure.
[0141] In a handwriting display method provided by an embodiment of the present application, the touch coordinates of the transmitted touch pressure of the current frame on the touch screen can be obtained; and the handwriting of the touch operation in the current frame is displayed at the touch coordinates on the touch screen according to the predicted touch pressure. Among them, by determining the touch coordinates of the current frame, the handwriting display corresponding to the predicted touch pressure can be more accurately matched, thereby improving the accuracy of the handwriting display, reducing the lag of the handwriting writing, and making the handwriting more realistic.
[0142] In order to more comprehensively explain the handwriting display method provided in the embodiment of the present application, the overall implementation process of the handwriting display method is explained below.
[0143] Fig. 9 For the overall flow chart of the handwriting display method provided in the embodiment of the present application, please refer to Fig. 9In the process of displaying handwriting, the terminal device may first receive the transmission touch pressure of the current frame sent by the touch device, and then determine whether there is a target touch pressure of the frame N before the current frame. If so, the pressure change per unit time may be determined based on the transmission touch pressure of the current frame and the target touch pressure of the frame N before the current frame, and then the predicted touch pressure may be determined based on the transmission touch pressure of the current frame, the pressure change per unit time, and the transmission delay, and the predicted touch pressure may be reported to the application layer, and the handwriting may be displayed according to the predicted touch pressure. If there is no target touch pressure of the frame N before the current frame, the transmission touch pressure of the current frame may be directly reported to the application layer, and the handwriting may be displayed according to the transmission touch pressure.
[0144] Taking N as 1 as an example, assuming that the pressure sampling rate is 60Hz, the time interval between two adjacent frames is about 16.67ms, the target touch pressure of the previous frame of the current frame is 100, and the transmission touch pressure of the current frame is 160, then the pressure change per unit time is (160-100) / 16.67≈3.6; in addition, assuming that the transmission delay is 15ms, when the terminal device receives a pressure of 160, the actual pressure at this time has become 160+15×3.6=214, that is, the pressure received by the application layer of the terminal device is 214, and the handwriting can be displayed based on this pressure, which can overcome the pressure change lag problem caused by the pressure transmission delay.
[0145] It should be understood that, although the steps in the above-mentioned flowcharts are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the above-mentioned flowcharts may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0146] Based on the foregoing embodiments, an embodiment of the present application provides a handwriting display device, which includes the modules included and the units included in the modules, which can be implemented by a processor; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.
[0147] Fig.10 For a structural diagram of the handwriting display device provided in the embodiment of the present application, please refer to Fig.10 , the device includes: a receiving module 1010, a prediction module 1020 and a display module 1030;
[0148] The receiving module 1010 is used to receive the transmission touch pressure of the current frame sent by the touch device during the touch operation on the touch screen by the touch device;
[0149] A prediction module 1020, configured to predict an actual touch pressure generated by the touch device on the touch screen in the current frame based on the transmitted touch pressure, the target touch pressure of at least one frame before the current frame, and the transmission delay between the terminal device and the touch device, to obtain a predicted touch pressure;
[0150] The display module 1030 is used to display the handwriting of the touch operation in the current frame on the touch screen according to the predicted touch pressure.
[0151] In one embodiment, the prediction module 1020 is specifically used to determine the pressure change per unit time based on the transmitted touch pressure and the target touch pressure of at least one frame before the current frame; and determine the predicted touch pressure based on the pressure change per unit time and the transmission delay.
[0152] In one embodiment, the prediction module 1020 is specifically used to determine the pressure change per unit time based on the transmitted touch pressure, the target touch pressure of the previous frame of the current frame, and the time difference between the current frame and the previous frame when there is a frame before the current frame.
[0153] In one embodiment, the prediction module 1020 is specifically used to determine the difference in target touch pressure between each two adjacent frames when there are at least two frames before the current frame; determine the weighted pressure change according to the difference in target touch pressure between each two adjacent frames and a preset weight; and determine the pressure change per unit time according to the time difference between two adjacent frames and the weighted pressure change.
[0154] In one embodiment, the prediction module 1020 is specifically used to determine the pressure change after the target time length based on the pressure change per unit time and the transmission delay; and the sum of the transmitted touch pressure and the pressure change after the target time length is used as the predicted touch pressure.
[0155] In one embodiment, the prediction module 1020 is also used to determine whether the number of target touch pressures in consecutive frames before the current frame satisfies N, where N is a positive integer greater than or equal to 1; when the number of target touch pressures in consecutive frames before the current frame satisfies N, based on the transmitted touch pressure and the N target touch pressures, the actual touch pressure generated by the touch device on the touch screen in the current frame is predicted to obtain the predicted touch pressure.
[0156] In one embodiment, the display module 1030 is further used to obtain the touch coordinates of the transmitted touch pressure of the current frame on the touch screen; and display the handwriting of the touch operation in the current frame at the touch coordinates on the touch screen according to the predicted touch pressure.
[0157] In the handwriting display device provided in the embodiment of the present application, the transmission touch pressure of the current frame sent by the touch device can be received during the touch operation of the touch screen through the touch device; then, based on the transmission touch pressure, the target touch pressure of at least one frame before the current frame, and the transmission delay between the terminal device and the touch device, the actual touch pressure generated by the touch device on the touch screen in the current frame can be predicted to obtain the predicted touch pressure; and the handwriting of the touch operation in the current frame can be displayed on the touch screen according to the predicted touch pressure. Among them, by determining the method of predicting the touch pressure, the hysteresis of the pressure transmission caused by the transmission delay can be avoided, that is, the predicted touch pressure after the time equal to the transmission delay can be determined according to the acquired transmission touch pressure of the current frame, and then in the process of handwriting display, the handwriting is displayed based on the predicted touch pressure, so that the hysteresis of the handwriting display can be reduced, the accuracy of the handwriting display can be improved, and the handwriting written is more realistic.
[0158] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.
[0159] It should be noted that in the embodiments of this application Fig.10 The division of modules in the handwriting display device shown is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units. It may also be implemented in the form of a combination of software and hardware.
[0160] It should be noted that in the embodiment of the present application, if the above method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions to enable an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.
[0161] Fig.11 For a schematic diagram of the structure of the computer device provided in the embodiment of the present application, please refer to Fig.11 , an embodiment of the present application provides a computer device, which may be the above-mentioned terminal device, and its internal structure diagram may be as shown in Fig.11 As shown. The computer device includes a processor 1120, a memory and a network interface 1140 connected via a system bus 1110. Among them, the processor 1120 of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium 1131 and an internal memory 1132. The non-volatile storage medium 1131 stores an operating system, a computer program and a database. The internal memory 1132 provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The network interface 1140 of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor 1120, the above method is implemented.
[0162] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the method provided in the above embodiment are implemented.
[0163] An embodiment of the present application also provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the steps of the method provided in the above method embodiment.
[0164] Those skilled in the art will understand that Fig.11 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0165] In one embodiment, the handwriting display device provided by the present application can be implemented in the form of a computer program. The computer program can be Fig.11 The computer device shown in the figure can be run. The memory of the computer device can store various program modules constituting the above-mentioned device. The computer program composed of various program modules enables the processor to execute the steps of the method of each embodiment of the present application described in this specification.
[0166] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium, storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
[0167] It should be understood that "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in one embodiment" or "in some embodiments" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. The above description of each embodiment tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. For the sake of brevity, this article will not repeat them.
[0168] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, object A and / or object B can represent three situations: object A exists alone, object A and object B exist at the same time, and object B exists alone.
[0169] It should be noted that, in this article, the terms "include", "comprises" or any other variations 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, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0170] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as: multiple modules or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or modules can be electrical, mechanical or other forms.
[0171] The modules described above as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules; they may be located in one place or distributed on multiple network units; some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0172] In addition, all functional modules in the embodiments of the present application may be integrated into one processing unit, or each module may be a separate unit, or two or more modules may be integrated into one unit; the above-mentioned integrated modules may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0173] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.
[0174] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0175] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0176] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0177] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0178] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A handwriting display method, characterized in that: The method is applied to a terminal device including a touch screen, and the method includes: In the process of performing a touch operation on the touch screen through a touch device, receiving a transmission touch pressure of a current frame sent by the touch device; Predicting the actual touch pressure generated by the touch device on the touch screen in the current frame based on the transmitted touch pressure, the target touch pressure of at least one frame before the current frame, and the transmission delay between the terminal device and the touch device to obtain the predicted touch pressure; The handwriting of the touch operation in the current frame is displayed on the touch screen according to the predicted touch pressure.
2. The method according to claim 1, characterized in that The predicting, based on the transmitted touch pressure, the target touch pressure of at least one frame before the current frame, and the transmission delay between the terminal device and the touch device, the actual touch pressure generated by the touch device on the touch screen in the current frame to obtain the predicted touch pressure includes: determining a pressure change per unit time based on the transmitted touch pressure and a target touch pressure of at least one frame before the current frame; The predicted touch pressure is determined based on the pressure change per unit time and the transmission delay.
3. The method according to claim 2, characterized in that The determining the pressure change per unit time based on the transmitted touch pressure and the target touch pressure of at least one frame before the current frame includes: If the current frame includes a frame before it, the pressure change per unit time is determined based on the transmitted touch pressure, the target touch pressure of a frame before the current frame, and the time difference between the current frame and the frame before it.
4. The method according to claim 2, characterized in that: The determining the pressure change per unit time based on the transmitted touch pressure and the target touch pressure of at least one frame before the current frame includes: If the current frame includes at least two frames before it, respectively determine the difference in target touch pressure between each two adjacent frames; Determine a weighted pressure change according to a target touch pressure difference between two adjacent frames and a preset weight; The pressure change per unit time is determined according to the time difference between two adjacent frames and the weighted pressure change.
5. The method according to claim 2, characterized in that: The determining the predicted touch pressure based on the pressure change per unit time and the transmission delay includes: Determine the pressure change after the target time length based on the pressure change per unit time and the transmission delay; The sum of the transmitted touch pressure and the pressure change after the target time duration is used as the predicted touch pressure.
6. The method according to claim 1, characterized in that Before predicting the actual touch pressure generated by the touch device on the touch screen in the current frame based on the transmitted touch pressure, the target touch pressure of at least one frame before the current frame, and the transmission delay between the terminal device and the touch device, and obtaining the predicted touch pressure, the method further includes: Determine whether the number of target touch pressures in consecutive frames before the current frame satisfies N, where N is a positive integer greater than or equal to 1; The predicting, based on the transmitted touch pressure, the target touch pressure of at least one frame before the current frame, and the transmission delay between the terminal device and the touch device, the actual touch pressure generated by the touch device on the touch screen in the current frame to obtain the predicted touch pressure includes: When the number of target touch pressures in consecutive frames before the current frame satisfies N, the actual touch pressure generated by the touch device on the touch screen in the current frame is predicted based on the transmitted touch pressure and the N target touch pressures to obtain the predicted touch pressure.
7. The method according to claim 1, characterized in that The method further comprises: Acquire the touch coordinates of the transmitted touch pressure of the current frame on the touch screen; The step of displaying the handwriting of the touch operation in the current frame on the touch screen according to the predicted touch pressure includes: The handwriting of the touch operation in the current frame is displayed at the touch coordinates on the touch screen according to the predicted touch pressure.
8. A handwriting display device, characterized in that: The device is applied to a terminal device including a touch screen, and the device includes: a receiving module, a prediction module and a display module; The receiving module is used to receive the transmission touch pressure of the current frame sent by the touch device during the process of performing a touch operation on the touch screen through the touch device; The prediction module is used to predict the actual touch pressure generated by the touch device on the touch screen in the current frame based on the transmitted touch pressure, the target touch pressure of at least one frame before the current frame, and the transmission delay between the terminal device and the touch device, so as to obtain the predicted touch pressure; The display module is used to display the handwriting of the touch operation in the current frame on the touch screen according to the predicted touch pressure.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, wherein: When the processor executes the program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.