Handwriting display method and device of ink screen, electronic equipment and storage medium
By introducing pre-handwriting mode into ink screen electronic devices, the background screen data is processed in advance, the problem of delay in handwriting display is solved, and more efficient data processing and display speed is achieved.
Patent Information
- Application Number
- CN202411984780.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-05-02
- Estimated Expiration
- 2044-12-30
AI Technical Summary
There is a delay in the handwriting display process of existing ink screen electronic devices, which mainly affects the processing speed of handwriting data due to the update of background screen display data.
The background screen display data in the first cache unit is sent in advance to the second cache unit by using the pre-written mode, and the handwriting data is acquired and processed in real time during the handwriting mode, and a driving waveform is generated to improve the display speed.
By processing background screen data in advance, the data processing delay in handwriting mode is reduced, and the display speed and user experience of handwriting are improved.
Smart Images

Figure CN119916962A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of display technology, and in particular to a handwriting display method, device, electronic device and storage medium for an ink screen. Background Art
[0002] In recent years, with the development of information technology and electronic technology, electronic devices have continued to penetrate from personal entertainment terminals to education, business and other industries. Touch handwriting technology has also been widely used in electronic devices, but handwriting latency is a key indicator that affects the input experience. According to statistics, in electronic devices that support touch handwriting technology, the delay time of handwriting display from loading screen handwriting data to displaying handwriting is generally between 20ms and 30ms.
[0003] The process of handwriting display in electronic devices specifically includes: obtaining point reporting data, then rendering and drawing the point reporting data to obtain handwriting data, and displaying the handwriting on the electronic device according to the handwriting data. During the handwriting process, the background screen display data update of the electronic device will affect the processing speed of the handwriting data, thereby affecting the handwriting display speed, especially for electronic devices with ink screens, because the refresh speed of the ink screen is slower than other types of displays. Therefore, in order to improve the handwriting display speed of the ink screen, technicians in this field use a first cache unit to store background screen display data and a second cache unit to store handwriting data. When switching from other modes to the handwriting mode, in order to improve data processing efficiency, the background screen display data in the first cache unit will be sent to the second cache unit, and the handwriting data will be received and stored by the second cache unit, and then the background screen display data and the handwriting data will be combined for display to improve the display speed. However, in the above method, the background image display data in the first cache unit is sent to the second cache unit only after entering the handwriting mode, and the background image display data and the handwriting data are combined and displayed only after receiving the handwriting data, thus causing a delay in the handwriting display. Summary of the invention
[0004] The present application provides a handwriting display method, device, electronic device and storage medium for an ink screen to improve the handwriting display speed.
[0005] In a first aspect, the present application provides a handwriting display method for an ink screen, the ink screen comprising a first cache unit and a second cache unit, the handwriting display method comprising: detecting a first signal of a pre-handwriting mode; When the first signal is detected, the pre-handwriting mode is entered, and during the pre-handwriting mode, the screen display data in the first buffer unit is sent to the second buffer unit; detecting a second signal of a handwriting mode; When the second signal is detected, the handwriting mode is entered, a first set of dot reporting data of handwriting is acquired during the handwriting mode, and first handwriting data is obtained according to the first set of dot reporting data; Generate a first driving waveform according to the first handwriting data and the screen display data; The first driving waveform is used to drive the ink screen to display an image.
[0006] In some embodiments of the present application, the handwriting display method further includes: During the handwriting mode, detecting whether data in the first cache unit is updated; If yes, generating a first update driving waveform according to the latest handwriting data and the screen update data, and using the first update driving waveform to drive the ink screen display screen; If not, a latest handwriting driving waveform is generated according to the latest handwriting trace data, and the ink screen display screen is driven by the latest handwriting driving waveform.
[0007] In some embodiments of the present application, during a non-handwriting mode, a first screen drive waveform is generated based on the screen display data in the first cache unit, and the first screen drive waveform is used to drive the ink screen display screen; during a handwriting mode, a drive waveform is generated based on the data in the second cache unit, and then the ink screen display screen is driven using the drive waveform.
[0008] In some embodiments of the present application, the display interface of the ink screen includes a handwriting area and a non-handwriting area, the first signal includes a signal generated by the stylus touching the non-handwriting area, and the second signal includes a signal generated by the stylus touching the handwriting area.
[0009] In some embodiments of the present application, the step of generating a first driving waveform according to the first handwriting data and the screen display data includes: Obtaining a first non-overlapping pixel in the screen display data that is not located at the same position as the first handwriting data; Obtaining first non-overlapping display data of a first non-overlapping pixel in the screen display data; Generate a first non-overlapping driving waveform according to the first non-overlapping display data, and generate a first handwriting driving waveform according to the first handwriting data, wherein the first driving waveform includes the first non-overlapping driving waveform and the first handwriting driving waveform; The step of using the first driving waveform to drive the ink screen to display an image includes: The ink screen display screen is driven simultaneously by using the first non-overlapping driving waveform and the first handwriting driving waveform.
[0010] In some embodiments of the present application, the step of generating a first driving waveform according to the first handwriting data and the screen display data includes: Generate a second picture driving waveform according to the picture display data, and generate a first handwriting driving waveform according to the first handwriting data, wherein the first driving waveform includes the second picture driving waveform and the first handwriting driving waveform; The step of using the first driving waveform to drive the ink screen to display an image includes: The ink screen display image is driven by using the second image driving waveform and the first handwriting driving waveform in sequence.
[0011] In some embodiments of the present application, the step of generating a first update driving waveform according to the latest handwriting data and the screen update data, and using the first update driving waveform to drive the ink screen display screen includes: Determine whether the handwriting data is updated; If yes, generate a first update driving waveform using the latest handwriting data and the screen update data, and use the first update driving waveform to drive the ink screen to display the screen; If not, a first update driving waveform is generated according to the screen update data, and the ink screen display screen is driven by using the first update driving waveform.
[0012] In some embodiments of the present application, the step of generating a first update drive waveform using the latest handwriting data and the screen update data, and driving the ink screen display screen using the first update drive waveform includes: Obtaining a second non-overlapping pixel of the screen update data that is not located at the same position as any one of the latest handwriting data and the previous handwriting data, wherein the previous handwriting data is the handwriting data that has been displayed on the ink screen; Obtaining second non-overlapping update data of second non-overlapping pixels in the picture update data; Generate a second non-overlapping update driving waveform according to the second non-overlapping update data, generate a latest handwriting driving waveform according to the latest handwriting data, the first update driving waveform includes the second non-overlapping update driving waveform and the latest handwriting driving waveform; The ink screen display screen is driven simultaneously by using the second non-overlapping update driving waveform and the latest handwriting driving waveform.
[0013] In some embodiments of the present application, the step of generating a first update drive waveform using the latest handwriting data and the screen update data, and driving the ink screen display screen using the first update drive waveform includes: Obtaining a first overlapping pixel in the latest handwriting data having the same position as the screen update data; Obtaining first overlapping handwriting data of a first overlapping pixel in the latest handwriting data, and first non-overlapping handwriting data of other pixels in the latest handwriting data except the first overlapping pixel; Acquire a third non-overlapping pixel in the screen update data that is not in the same position as the previous handwriting data, wherein the previous handwriting data is the handwriting data that has been displayed on the ink screen; Obtaining third non-overlapping update data of a third non-overlapping pixel in the picture update data; Combining the first non-overlapping handwriting data and the third non-overlapping update data to obtain first sub-update data; Generate a first sub-update driving waveform according to the first sub-update data, generate a first overlapped handwriting driving waveform according to the first overlapped handwriting data, the first update driving waveform includes a first sub-update driving waveform and a first overlapped handwriting driving waveform; The ink screen display screen is driven by using the first sub-update driving waveform and the first overlapping handwriting driving waveform in sequence.
[0014] In some embodiments of the present application, the step of generating a first update driving waveform according to the screen update data, and using the first update driving waveform to drive the ink screen to display the screen includes: Acquiring the previous handwriting data displayed on the ink screen; Obtaining a fourth non-overlapping pixel in the screen update data that is not located at the same position as the previous handwriting data; Obtaining fourth non-overlapping update data of a fourth non-overlapping pixel in the picture update data; generating a first update drive waveform according to the fourth non-overlapping update data; The ink screen display is driven by using the first update driving waveform.
[0015] In some embodiments of the present application, the handwriting display method further includes: detecting an exit signal of the handwriting mode; When the exit signal is detected, the handwriting mode is exited and a screen update driving waveform is generated according to the screen update data in the first cache unit, and the ink screen display screen is driven by the screen update driving waveform.
[0016] In some embodiments of the present application, the step of exiting the handwriting mode and driving the ink screen to display the screen according to the screen update data in the first cache unit includes: Exiting the handwriting mode, and detecting whether the data in the first cache unit is updated; If yes, generating a picture update driving waveform according to the picture update data in the first cache unit, and using the picture update driving waveform to drive the ink screen to display the picture; If not, the ink screen is not driven to be refreshed.
[0017] In a second aspect, an embodiment of the present application further provides a handwriting display device of an ink screen, wherein the ink screen includes a first cache unit and a second cache unit, and the handwriting display device includes: A first detection module, the first detection module is used to detect a first signal of a pre-handwriting mode; a pre-handwriting module, which enters the pre-handwriting mode when the first signal is detected, and is used to send the screen display data in the first cache unit to the second cache unit during the pre-handwriting mode; A second detection module, the second detection module is used to detect a second signal of a handwriting mode; a handwriting module, which enters the handwriting mode when the second signal is detected, and is used to obtain a first set of dot reporting data of handwriting during the handwriting mode, and obtain first handwriting data according to the first set of dot reporting data; A generating module, the generating module is used to generate a first driving waveform according to the first handwriting data and the screen display data; A driving module, wherein the driving module is used to drive the ink screen to display an image using the first driving waveform.
[0018] In a third aspect, an embodiment of the present application further provides an electronic device, including: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the electronic device implements the handwriting display method as described in any one of the first aspects.
[0019] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the handwriting display method as described in any one of the first aspects is implemented.
[0020] The present application provides a handwriting display method, device, electronic device and storage medium of an ink screen, wherein the ink screen includes a first cache unit and a second cache unit, and the handwriting display method includes: detecting a first signal of a pre-handwriting mode; when the first signal is detected, entering the pre-handwriting mode, and during the pre-handwriting mode, sending the screen display data in the first cache unit to the second cache unit; detecting a second signal of a handwriting mode; when the second signal is detected, entering the handwriting mode, obtaining a first set of point reporting data of handwriting during the handwriting mode, and obtaining first handwriting data according to the first set of point reporting data; generating a first driving waveform according to the first handwriting data and the screen display data; and driving the ink screen to display a screen using the first driving waveform. The present application is provided with a pre-handwriting mode, so that the screen display data in the first cache unit is sent to the second cache unit in advance, thereby reducing the waiting time, and there is no need to wait until the handwriting mode is entered to send the screen display data in the first cache unit to the second cache unit, thereby improving the display speed of the handwriting. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 A flowchart of Embodiment 1 of the handwriting display method of the ink screen provided by the present application; Figure 2 A flowchart of Embodiment 2 of the handwriting display method of the ink screen provided by the present application; Figure 3 This is a flowchart of step S50 of the first embodiment of the handwriting display method of the ink screen provided by the present application; Figure 4 This is a flowchart of the first embodiment of step S60 of the handwriting display method of the ink screen provided by the present application; Figure 5 This is a flowchart of step S50 of the second embodiment of the handwriting display method of the ink screen provided by the present application; Figure 6 This is a flowchart of the second embodiment of step S60 of the handwriting display method of the ink screen provided by the present application; Figure 7 A flowchart of step S80 of the handwriting display method of the ink screen provided in this application; Figure 8 This is a flowchart of step S82 of the first embodiment of the handwriting display method of the ink screen provided by the present application; Fig. 9 This is a flowchart of step S82 of the second embodiment of the handwriting display method of the ink screen provided by the present application; Fig.10 A flowchart of step S83 of the handwriting display method of the ink screen provided in this application; Fig.11A flowchart of Embodiment 3 of the handwriting display method of the ink screen provided by the present application; Fig.12 A flowchart of step S110 of the handwriting display method of the ink screen provided in this application; Fig.13 A schematic diagram of the structure of the ink screen handwriting display device provided in this application; Fig.14 A schematic diagram of the structure of the electronic device provided in this application. DETAILED DESCRIPTION
[0022] The embodiments of the present application are further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the embodiments of the present application, rather than to limit the embodiments of the present application. It should also be noted that, for ease of description, only parts related to the embodiments of the present application are shown in the accompanying drawings, rather than all structures.
[0023] The terms "first", "second", etc. in the specification and claims of this application are used to distinguish similar objects, but not to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more, and it cannot be understood as indicating or implying relative importance. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship. In addition, unless otherwise clearly specified and limited, the terms "set", "install", "connect", "connect", and "connect in series" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected, or indirectly connected through an intermediate medium, or it can be a connection between two elements. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood in specific circumstances.
[0024] The handwriting display method provided in the embodiment of the present application can be used on an ink screen, especially on an electronic device equipped with an ink screen. The electronic device can be an electronic device based on an ink screen, such as a tablet computer, a mobile phone, an e-reader, a personal digital assistant (PDA), etc. Specifically, the electronic device may include an ink screen, a communication module, a digital signal processor, an image processing module, a microcontroller, a screen driver module, a timing control circuit, and a power control circuit.
[0025] The following is a detailed description of the various embodiments of the present application.
[0026] Figure 1 This is a flowchart of Example 1 of the handwriting display method for the ink screen provided in the present application. The handwriting display method for the ink screen provided in the embodiment of the present application can be executed by a handwriting display device, which can be implemented by hardware and / or software and integrated in the ink screen.
[0027] The following description takes the handwriting display method executed by the handwriting display device on the ink screen as an example. Figure 1 , the ink screen includes a first cache unit and a second cache unit, and the handwriting display method includes: Step S10: Detecting a first signal in a pre-handwriting mode.
[0028] Step S20: When the first signal is detected, the pre-handwriting mode is entered. During the pre-handwriting mode, the screen display data in the first cache unit is sent to the second cache unit.
[0029] Among them, as long as the first signal of the pre-handwriting mode is detected, the pre-handwriting mode is entered, and then during the pre-handwriting mode, the screen display data in the first cache unit is sent to the second cache unit. That is, as long as it is in the pre-handwriting mode, when the screen display data in the first cache unit is updated, the latest screen display data in the first cache unit is sent to the second cache unit. In this way, the screen display data in the first cache unit is sent to the second cache unit in advance, reducing the waiting time. There is no need to wait until the handwriting mode is entered before sending the screen display data in the first cache unit to the second cache unit. Therefore, when entering the handwriting mode, as long as the handwriting handwriting data is received, the handwriting handwriting data and the screen display data can be combined for display, thereby improving the display speed of the handwriting handwriting.
[0030] Step S30: Detect a second signal in handwriting mode.
[0031] Step S40: when the second signal is detected, entering the handwriting mode, acquiring a first set of dot reporting data of handwriting during the handwriting mode, and obtaining first handwriting data according to the first set of dot reporting data.
[0032] The first signal is a signal different from the second signal. That is, when the first signal is detected, the pre-handwriting mode is entered, and the second signal of the handwriting mode is kept detected. When the second signal is detected, the handwriting mode is entered, and the first set of handwriting point reporting data is obtained during the handwriting mode, and the first handwriting data is obtained according to the first set of point reporting data.
[0033] In one embodiment of the present application, the display interface of the ink screen includes a handwriting area and a non-handwriting area, the first signal includes a signal generated by the stylus touching the non-handwriting area, and the second signal includes a signal generated by the stylus touching the handwriting area.
[0034] In other embodiments of the present application, the second signal includes a signal generated by the stylus touching the handwriting area, and the first signal is a signal different from the second signal. For example, the first signal is a signal generated by the stylus being in an on state and approaching the ink screen or the screen of the ink screen. Of course, the first signal or the second signal may also be a signal generated by other means, as long as the first signal is a signal different from the second signal.
[0035] Step S50: generating a first driving waveform according to the first handwriting data and the screen display data.
[0036] Step S60: using the first driving waveform to drive the ink screen to display an image.
[0037] When entering the handwriting mode, the ink screen may be refreshing the display using a driving waveform generated according to the screen display data of the first cache unit. If the driving waveform generated according to the first handwriting data is used to drive the ink screen to display the handwriting after the refresh display is completed, the handwriting display speed will be too slow. Therefore, in the above-mentioned refresh display process, the present application generates a first driving waveform according to the first handwriting data and the screen display data, and uses the first driving waveform to drive the ink screen to display the screen. There is no need to interrupt the display of the screen display data, and there is no need to wait until the screen display data is fully displayed before processing the handwriting data, thereby improving the display speed of the handwriting data.
[0038] In summary, the present application provides a pre-handwriting mode, so that the screen display data in the first cache unit can be sent to the second cache unit in advance. There is no need to wait until the handwriting mode is entered to send the screen display data in the first cache unit to the second cache unit, thereby reducing the waiting time. Therefore, when entering the handwriting mode, as long as the handwriting data is received, the first driving waveform is generated according to the handwriting data and the screen display data. There is no need to interrupt the display of the screen display data, and there is no need to wait until the screen display data is fully displayed before processing the handwriting data, thereby improving the display speed of the handwriting.
[0039] Please refer to Figure 2 , Figure 2 This is a flow chart of the second embodiment of the handwriting display method of the ink screen provided by the present application. Figure 1Based on the provided handwriting display method, in one embodiment of the present application, the handwriting display method further includes: Step S70, during the handwriting mode, detecting whether the data in the first cache unit is updated; Step S80: if yes, generate a first update driving waveform according to the latest handwriting data and the screen update data, and use the first update driving waveform to drive the ink screen to display the screen; Step S90: If not, generate a newest handwriting drive waveform according to the newest handwriting data, and use the newest handwriting drive waveform to drive the ink screen display.
[0040] That is, in this embodiment, the present application keeps detecting whether the data in the first cache unit is updated during the handwriting mode. When the data in the first cache unit is updated, the first update drive waveform is generated according to the latest handwriting data and the screen update data, and the ink screen display screen is driven by the first update drive waveform; when the data in the first cache unit is not updated, the latest handwriting drive waveform is generated according to the latest handwriting data, and the ink screen display screen is driven by the latest handwriting drive waveform. This ensures that the screen update data can be displayed in time during the handwriting mode, which is conducive to improving the user experience.
[0041] Furthermore, in one embodiment of the present application, during a non-handwriting mode, a first screen drive waveform is generated based on the screen display data in the first cache unit, and the first screen drive waveform is used to drive the ink screen display screen; during a handwriting mode, a drive waveform is generated based on the data in the second cache unit, and then the ink screen display screen is driven using the drive waveform.
[0042] That is, during the non-handwriting mode, the ink screen only generates the first screen drive waveform according to the screen display data in the first cache unit, and then uses the first screen drive waveform to drive the ink screen display screen, and the ink screen does not update the data in the second cache unit; and during the handwriting mode, the drive waveform is directly generated according to the data in the second cache unit, and then the drive waveform is used to drive the ink screen display screen. The present application uses different cache units to store data during the non-handwriting mode and the handwriting mode, which is conducive to improving data processing efficiency and the response speed of the ink screen.
[0043] During the handwriting mode, when the data in the first cache unit is updated, the screen update data in the first cache unit can be sent to the second cache unit, and then the first update drive waveform is generated according to the latest handwriting data and the screen update data, thereby ensuring that the screen update data can be displayed in time and improving the user experience.
[0044] Please refer to Figure 3 and Figure 4 , Figure 3 This is a flowchart of step S50 of the first embodiment of the handwriting display method of the ink screen provided by the present application. Figure 4 This is a flow chart of step S60 of the first embodiment of the handwriting display method of the ink screen provided by the present application. In this embodiment, Figure 1 Based on the provided handwriting display method, further, the step of generating a first driving waveform according to the first handwriting data and the screen display data includes: Step S51, obtaining a first non-overlapping pixel in the screen display data that is not located at the same position as the first handwriting data; Step S52, obtaining first non-overlapping display data of a first non-overlapping pixel in the screen display data; Step S53, generating a first non-overlapping driving waveform according to the first non-overlapping display data, and generating a first handwriting driving waveform according to the first handwriting data, wherein the first driving waveform includes the first non-overlapping driving waveform and the first handwriting driving waveform; The step of using the first driving waveform to drive the ink screen to display an image includes: Step S61: using the first non-overlapping driving waveform and the first handwriting driving waveform to simultaneously drive the ink screen display screen.
[0045] That is, the present application obtains the first non-overlapping display data of the first non-overlapping pixel in the screen display data, then generates a first non-overlapping driving waveform according to the first non-overlapping display data, generates a first handwriting driving waveform according to the first handwriting data, and then uses the first non-overlapping driving waveform and the first handwriting driving waveform to simultaneously drive the ink screen display screen, that is, removes the part of the screen display data that overlaps with the first handwriting data, thereby realizing the simultaneous display of the screen display data and the handwriting data, and further improving the display speed of the handwriting.
[0046] Please refer to Figure 5 and Figure 6 , Figure 5 This is a flowchart of step S50 of the second embodiment of the handwriting display method of the ink screen provided by the present application. Figure 6This is a flow chart of step S60 of the second embodiment of the handwriting display method of the ink screen provided by the present application. In this embodiment, Figure 1 Based on the provided handwriting display method, further, the step of generating a first driving waveform according to the first handwriting data and the screen display data includes: Step S54, generating a second picture driving waveform according to the picture display data, and generating a first handwriting driving waveform according to the first handwriting data, wherein the first driving waveform includes the second picture driving waveform and the first handwriting driving waveform; The step of using the first driving waveform to drive the ink screen to display an image includes: Step S62: sequentially use the second picture driving waveform and the first handwriting driving waveform to drive the ink screen display picture.
[0047] That is, the present application generates a second screen driving waveform according to the screen display data, and generates a first handwriting driving waveform according to the first handwriting data, the first driving waveform includes the second screen driving waveform and the first handwriting driving waveform, and then the second screen driving waveform and the first handwriting driving waveform are used in sequence to drive the ink screen display screen, thereby realizing the sequential display of the screen display data and the handwriting data.
[0048] Please refer to Figure 7 , Figure 7 This is a flowchart of step S80 of the handwriting display method of the ink screen provided by this application. Figure 2 On the basis of the provided handwriting display method, further, the step of generating a first update drive waveform according to the latest handwriting data and the screen update data, and using the first update drive waveform to drive the ink screen display screen includes: Step S81, determining whether the handwriting data is updated; Step S82: if yes, generate a first update drive waveform using the latest handwriting data and the screen update data, and use the first update drive waveform to drive the ink screen to display the screen; Step S83: If not, generate a first update driving waveform according to the screen update data, and use the first update driving waveform to drive the ink screen to display the screen.
[0049] Before generating the update drive waveform, first determine whether the handwriting data is updated. If the handwriting data is updated, generate the first update drive waveform using the latest handwriting data and the screen update data; if the handwriting data is not updated, generate the first update drive waveform according to the screen update data; then use the first update drive waveform to drive the ink screen to display the screen. Because in actual use, during the handwriting mode, if the user finishes writing a stroke, there may be other things being processed and there is no time to write the next stroke. At this time, the data in the first cache unit is updated, then the screen update data can be displayed first, without waiting for the handwriting data to be updated before displaying the screen update data, which is conducive to improving user experience.
[0050] Please refer to Figure 8 , Figure 8 This is a flow chart of step S82 of the first embodiment of the handwriting display method of the ink screen provided by the present application. Figure 7 Based on the provided handwriting display method, in this embodiment, the step of generating a first update drive waveform using the latest handwriting data and the screen update data, and driving the ink screen display screen using the first update drive waveform includes: Step S821, obtaining a second non-overlapping pixel of the screen update data that is not located at the same position as any one of the latest handwriting data and the previous handwriting data, wherein the previous handwriting data is the handwriting data that has been displayed on the ink screen; Step S822, obtaining second non-overlapping update data of a second non-overlapping pixel in the picture update data; Step S823, generating a second non-overlapping update driving waveform according to the second non-overlapping update data, generating a latest handwriting driving waveform according to the latest handwriting data, wherein the first update driving waveform includes the second non-overlapping update driving waveform and the latest handwriting driving waveform; Step S824: using the second non-overlapping updated driving waveform and the latest handwriting driving waveform to simultaneously drive the ink screen display.
[0051] Since there is already handwriting data displayed on the ink screen before the screen update data, the present application obtains a second non-overlapping pixel of the screen update data that is not in the same position as any of the latest handwriting data and the previous handwriting data, that is, the second non-overlapping pixel neither overlaps with the pixel of the latest handwriting data nor overlaps with the pixel of the previous handwriting data, so that the screen update data can avoid covering the handwriting. Then, the second non-overlapping update data of the second non-overlapping pixel in the screen update data is obtained, and a second non-overlapping update drive waveform is generated according to the second non-overlapping update data, and a latest handwriting drive waveform is generated according to the latest handwriting data. Finally, the second non-overlapping update drive waveform and the latest handwriting drive waveform are used to simultaneously drive the ink screen display screen, which is conducive to improving the data display speed.
[0052] Please refer to Fig. 9 , Fig. 9 This is a flow chart of step S82 of the second embodiment of the handwriting display method of the ink screen provided by the present application. Figure 7 Based on the provided handwriting display method, in one embodiment of the present application, the step of generating a first update drive waveform using the latest handwriting data and the screen update data, and driving the ink screen display screen using the first update drive waveform includes: Step S825, obtaining the first overlapping pixel in the latest handwriting data that has the same position as the screen update data; Step S826, obtaining first overlapping handwriting data of a first overlapping pixel in the latest handwriting data, and first non-overlapping handwriting data of other pixels in the latest handwriting data except the first overlapping pixel; Step S827, obtaining a third non-overlapping pixel in the screen update data that is not in the same position as the previous handwriting data, wherein the previous handwriting data is the handwriting data that has been displayed on the ink screen; Step S828, obtaining third non-overlapping update data of a third non-overlapping pixel in the picture update data; Step S829, merging the first non-overlapping handwriting data and the third non-overlapping update data to obtain first sub-update data; Step S82A, generating a first sub-update driving waveform according to the first sub-update data, generating a first overlapped handwriting driving waveform according to the first overlapped handwriting data, wherein the first update driving waveform includes a first sub-update driving waveform and a first overlapped handwriting driving waveform; Step S82B, using the first sub-update driving waveform and the first overlapping handwriting driving waveform in sequence to drive the ink screen display screen.
[0053] Since there may be some pixels in the screen update data that overlap with the previous handwriting data, the present application obtains a third non-overlapping pixel in the screen update data that is not in the same position as the previous handwriting data and obtains the third non-overlapping update data of the third non-overlapping pixel in the screen update data; obtains the first overlapping pixel in the latest handwriting data that is in the same position as the screen update data, and obtains the first overlapping handwriting data of the first overlapping pixel in the latest handwriting data, as well as the first non-overlapping handwriting data of other pixels in the latest handwriting data except the first overlapping pixel, and then merges the first non-overlapping handwriting data and the third non-overlapping update data to obtain the first sub-update data; then generates a first sub-update drive waveform according to the first sub-update data, and generates a first overlapping handwriting drive waveform according to the first overlapping handwriting data, the first update drive waveform includes a first sub-update drive waveform and a first overlapping handwriting drive waveform; finally, the first sub-update drive waveform and the first overlapping handwriting drive waveform are used in sequence to drive the ink screen display screen.
[0054] Please refer to Fig.10 , Fig.10 This is a flowchart of step S83 of the handwriting display method of the ink screen provided by this application. Figure 7 On the basis of the provided handwriting display method, further, in an embodiment of the present application, the step of generating a first update drive waveform according to the screen update data, and using the first update drive waveform to drive the ink screen display screen includes: Step S831, obtaining the previous handwriting data displayed on the ink screen; Step S832, obtaining a fourth non-overlapping pixel in the screen update data that is not located at the same position as the previous handwriting data; Step S833, obtaining fourth non-overlapping update data of a fourth non-overlapping pixel in the picture update data; Step S834, generating a first update driving waveform according to the fourth non-overlapping update data; Step S835: Use the first updated driving waveform to drive the ink screen to display an image.
[0055] During the handwriting mode, if the user finishes writing a stroke of handwriting, he may be dealing with other things and has not had time to write the next stroke of handwriting, that is, the handwriting data has not been updated. At this time, the data in the first cache unit is updated, and the screen update data is displayed first. At this time, since the previous handwriting data has been displayed on the ink screen, there may be some pixels in the screen update data that overlap with the previous handwriting data, so the fourth non-overlapping pixel in the screen update data that is not in the same position as the previous handwriting data is obtained, and then the fourth non-overlapping update data of the fourth non-overlapping pixel in the screen update data is obtained, and the first update drive waveform is generated according to the fourth non-overlapping update data. Finally, the first update drive waveform is used to drive the ink screen to display the screen, so as to avoid the screen update data from covering the previous handwriting.
[0056] Please refer to Fig.11 , Fig.11 This is a flow chart of the third embodiment of the handwriting display method of the ink screen provided by this application. Figure 1 Based on the provided handwriting display method, further, in an embodiment of the present application, the handwriting display method further includes: Step S100, detecting an exit signal of the handwriting mode; Step S110: when the exit signal is detected, the handwriting mode is exited and a screen update drive waveform is generated according to the screen update data in the first cache unit, and the ink screen display screen is driven by the screen update drive waveform.
[0057] That is, in this embodiment, when the exit signal is detected, the handwriting mode is exited and a screen update drive waveform is generated according to the screen update data in the first cache unit, and the ink screen display screen is driven by the screen update drive waveform.
[0058] For further information, please refer to Fig.12 , Fig.12 This is a flowchart of step S110 of the handwriting display method of the ink screen provided in the present application. The step of exiting the handwriting mode and driving the ink screen to display the screen according to the screen update data in the first cache unit includes: Step S111, exiting the handwriting mode, and detecting whether the data in the first cache unit is updated; Step S112: if yes, generate a picture update driving waveform according to the picture update data in the first cache unit, and use the picture update driving waveform to drive the ink screen to display the picture; Step S113: If not, the ink screen is not driven to be refreshed.
[0059] After exiting the handwriting mode, if the data in the first cache unit is updated, a screen update drive waveform is generated according to the screen update data in the first cache unit, and the screen update drive waveform is used to drive the ink screen to display the screen; if the data in the first cache unit is not updated, the ink screen is not driven to refresh, which is beneficial to reducing the power consumption of the ink screen.
[0060] Fig.13 This is a schematic diagram of the structure of the ink screen handwriting display device provided by this application. Fig.13 The ink screen includes a first cache unit and a second cache unit, and the handwriting display device includes: a first detection module 10, a pre-handwriting module 20, a second detection module 30, a handwriting module 40, a generation module 50 and a driving module 60.
[0061] Wherein, the first detection module is used to detect a first signal of a pre-handwriting mode; When the first signal is detected, the pre-handwriting mode is entered, and the pre-handwriting module is used to send the screen display data in the first cache unit to the second cache unit during the pre-handwriting mode; The second detection module is used to detect a second signal in a handwriting mode; When the second signal is detected, the handwriting mode is entered, and the handwriting module is used to obtain a first set of dot reporting data of handwriting during the handwriting mode, and obtain first handwriting data according to the first set of dot reporting data; The generating module is used to generate a first driving waveform according to the first handwriting data and the screen display data; The driving module is used to drive the ink screen to display an image using the first driving waveform.
[0062] The present application is provided with a pre-handwriting mode, so that the screen display data in the first cache unit is sent to the second cache unit in advance, and there is no need to wait until the handwriting mode is entered to send the screen display data in the first cache unit to the second cache unit, thereby reducing the waiting time. Therefore, when entering the handwriting mode, as long as the handwriting data is received, the first driving waveform is generated according to the handwriting data and the screen display data, and there is no need to interrupt the display of the screen display data, and there is no need to wait until the screen display data is fully displayed before processing the handwriting data, thereby improving the display speed of the handwriting.
[0063] In one embodiment of the present application, the handwriting display device further includes: a third detection module, during the handwriting mode, the third detection module is used to detect whether the data in the first cache unit is updated; A first driving module, if yes, the first driving module is used to generate a first update driving waveform according to the latest handwriting data and the screen update data, and use the first update driving waveform to drive the ink screen to display the screen; The second driving module, if not, then the second driving module is used to generate the latest handwriting driving waveform according to the latest handwriting data, and use the latest handwriting driving waveform to drive the ink screen display screen.
[0064] The handwriting display device of the ink screen provided in the embodiment of the present application is included in the ink screen, and can be used to execute any handwriting display method provided in the above embodiments, and has corresponding functions and beneficial effects.
[0065] It is worth noting that in the embodiment of the above-mentioned ink screen handwriting display device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application.
[0066] Fig.14 A schematic diagram of the structure of the electronic device provided in this application, such as Fig.14 As shown, the electronic device includes one or more processors; a memory for storing one or more programs; when the one or more programs are executed by the one or more processors, the electronic device implements the ink screen handwriting display method as described above, Fig.14 A processor 201 is taken as an example.
[0067] The memory 202, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules. The processor 201 executes various functional applications and data processing of the electronic device by running the software programs, instructions and modules stored in the memory 202, that is, implements the above-mentioned handwriting display method.
[0068] The memory 202 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 202 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 non-volatile solid-state storage device. In some instances, the memory 202 may further include a memory remotely arranged relative to the processor 201, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0069] The electronic device mentioned above includes a handwriting input device, which can be used to execute any of the handwriting display methods mentioned above and has corresponding functions and beneficial effects.
[0070] The present application also provides a storage medium containing computer executable instructions, which are used to perform the handwriting display method when executed by a computer processor. The computer program can also implement the relevant operations in the handwriting display method provided in any embodiment of the present application when executed by the processor, and has corresponding functions and beneficial effects.
[0071] Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems, or computer program products.
[0072] Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the process Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the functions specified in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0073] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory. The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0074] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0075] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity 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, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0076] Note that the above are only preferred embodiments of the present application and the technical principles used. Those skilled in the art will understand that the present application is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the appended claims.
Claims
1. A handwriting display method for an ink screen, the ink screen comprising a first cache unit and a second cache unit, characterized in that: include: detecting a first signal of a pre-handwriting mode; When the first signal is detected, the pre-handwriting mode is entered, and during the pre-handwriting mode, the screen display data in the first buffer unit is sent to the second buffer unit; detecting a second signal of a handwriting mode; When the second signal is detected, the handwriting mode is entered, a first set of dot reporting data of handwriting is acquired during the handwriting mode, and first handwriting data is obtained according to the first set of dot reporting data; Generate a first driving waveform according to the first handwriting data and the screen display data; The first driving waveform is used to drive the ink screen to display an image.
2. The handwriting display method according to claim 1, characterized in that: The handwriting display method also includes: During the handwriting mode, detecting whether data in the first cache unit is updated; If yes, generating a first update driving waveform according to the latest handwriting data and the screen update data, and using the first update driving waveform to drive the ink screen display screen; If not, a latest handwriting driving waveform is generated according to the latest handwriting trace data, and the ink screen display screen is driven by the latest handwriting driving waveform.
3. The handwriting display method according to claim 1, characterized in that: During the non-handwriting mode, a first picture driving waveform is generated according to the picture display data in the first buffer unit, and the first picture driving waveform is used to drive the ink screen to display a picture; During the handwriting mode, a driving waveform is generated according to the data in the second cache unit, and then the ink screen display screen is driven by the driving waveform.
4. The handwriting display method according to claim 1, characterized in that: The display interface of the ink screen includes a handwriting area and a non-handwriting area, the first signal includes a signal generated when the stylus touches the non-handwriting area, and the second signal includes a signal generated when the stylus touches the handwriting area.
5. The handwriting display method according to claim 1, characterized in that: The step of generating a first driving waveform according to the first handwriting data and the screen display data comprises: Obtaining a first non-overlapping pixel in the screen display data that is not located at the same position as the first handwriting data; Obtaining first non-overlapping display data of a first non-overlapping pixel in the screen display data; Generate a first non-overlapping driving waveform according to the first non-overlapping display data, and generate a first handwriting driving waveform according to the first handwriting data, wherein the first driving waveform includes the first non-overlapping driving waveform and the first handwriting driving waveform; The step of using the first driving waveform to drive the ink screen to display an image includes: The ink screen display screen is driven simultaneously by using the first non-overlapping driving waveform and the first handwriting driving waveform.
6. The handwriting display method according to claim 1, characterized in that: The step of generating a first driving waveform according to the first handwriting data and the screen display data comprises: Generate a second picture driving waveform according to the picture display data, and generate a first handwriting driving waveform according to the first handwriting data, wherein the first driving waveform includes the second picture driving waveform and the first handwriting driving waveform; The step of using the first driving waveform to drive the ink screen to display an image includes: The ink screen display image is driven by using the second image driving waveform and the first handwriting driving waveform in sequence.
7. The handwriting display method according to claim 2, characterized in that: The step of generating a first update driving waveform according to the latest handwriting data and the screen update data, and using the first update driving waveform to drive the ink screen display screen includes: Determine whether the handwriting data is updated; If yes, generate a first update driving waveform using the latest handwriting data and the screen update data, and use the first update driving waveform to drive the ink screen to display the screen; If not, a first update driving waveform is generated according to the screen update data, and the ink screen display screen is driven by using the first update driving waveform.
8. The handwriting display method according to claim 7, characterized in that: The step of generating a first update driving waveform using the latest handwriting data and the screen update data, and using the first update driving waveform to drive the ink screen display screen includes: Obtaining a second non-overlapping pixel of the screen update data that is not located at the same position as any one of the latest handwriting data and the previous handwriting data, wherein the previous handwriting data is the handwriting data that has been displayed on the ink screen; Obtaining second non-overlapping update data of second non-overlapping pixels in the picture update data; Generate a second non-overlapping update driving waveform according to the second non-overlapping update data, generate a latest handwriting driving waveform according to the latest handwriting data, the first update driving waveform includes the second non-overlapping update driving waveform and the latest handwriting driving waveform; The ink screen display screen is driven simultaneously by using the second non-overlapping update driving waveform and the latest handwriting driving waveform.
9. The handwriting display method according to claim 7, characterized in that: The step of generating a first update driving waveform using the latest handwriting data and the screen update data, and using the first update driving waveform to drive the ink screen display screen includes: Obtaining a first overlapping pixel in the latest handwriting data having the same position as the screen update data; Obtaining first overlapping handwriting data of a first overlapping pixel in the latest handwriting data, and first non-overlapping handwriting data of other pixels in the latest handwriting data except the first overlapping pixel; Acquire a third non-overlapping pixel in the screen update data that is not in the same position as the previous handwriting data, wherein the previous handwriting data is the handwriting data that has been displayed on the ink screen; Obtaining third non-overlapping update data of a third non-overlapping pixel in the picture update data; Combining the first non-overlapping handwriting data and the third non-overlapping update data to obtain first sub-update data; Generate a first sub-update driving waveform according to the first sub-update data, generate a first overlapped handwriting driving waveform according to the first overlapped handwriting data, the first update driving waveform includes a first sub-update driving waveform and a first overlapped handwriting driving waveform; The ink screen display screen is driven by using the first sub-update driving waveform and the first overlapping handwriting driving waveform in sequence.
10. The handwriting display method according to claim 7, characterized in that: The step of generating a first update driving waveform according to the screen update data and using the first update driving waveform to drive the ink screen to display the screen includes: Acquiring the previous handwriting data displayed on the ink screen; Obtaining a fourth non-overlapping pixel in the screen update data that is not located at the same position as the previous handwriting data; Obtaining fourth non-overlapping update data of a fourth non-overlapping pixel in the picture update data; generating a first update drive waveform according to the fourth non-overlapping update data; The ink screen display is driven by using the first update driving waveform.
11. The handwriting display method according to claim 1, characterized in that: The handwriting display method also includes: Detecting an exit signal of the handwriting mode; When the exit signal is detected, the handwriting mode is exited and a screen update driving waveform is generated according to the screen update data in the first cache unit, and the ink screen display screen is driven by the screen update driving waveform.
12. The handwriting display method according to claim 11, characterized in that: The step of exiting the handwriting mode and driving the ink screen to display the picture according to the picture update data in the first cache unit includes: Exiting the handwriting mode, and detecting whether the data in the first cache unit is updated; If yes, generating a picture update driving waveform according to the picture update data in the first cache unit, and using the picture update driving waveform to drive the ink screen to display the picture; If not, the ink screen is not driven to be refreshed.
13. A handwriting display device of an ink screen, the ink screen comprising a first cache unit and a second cache unit, characterized in that: The handwriting display device comprises: A first detection module, the first detection module is used to detect a first signal of a pre-handwriting mode; a pre-handwriting module, which enters the pre-handwriting mode when the first signal is detected, and is used to send the screen display data in the first cache unit to the second cache unit during the pre-handwriting mode; A second detection module, the second detection module is used to detect a second signal of a handwriting mode; a handwriting module, which enters the handwriting mode when the second signal is detected, and is used to obtain a first set of dot reporting data of handwriting during the handwriting mode, and obtain first handwriting data according to the first set of dot reporting data; A generating module, the generating module is used to generate a first driving waveform according to the first handwriting data and the screen display data; A driving module, wherein the driving module is used to drive the ink screen to display an image using the first driving waveform.
14. An electronic device, characterized in that: include: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the electronic device implements the handwriting display method as described in any one of claims 1-12.
15. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the handwriting display method according to any one of claims 1 to 12 is implemented.
Citation Information
Patent Citations
Method for moving cursor on handwriting image, input method and input system
CN103049204A
Method and device for displaying 3D (Three-Dimensional) painting and calligraphy
CN103501433A
Dual system-based handwriting display method and system, storage medium and device
CN107422974A
Method, computer program and apparatus for generating an image
CN112997245A
Writing acceleration method and device supporting transparency
CN118466769A