Beautifying method and device for handwritten strokes of ink screen, electronic equipment and storage medium

By acquiring and enhancing the reporting data of handwritten strokes on the e-ink screen in real time, and driving the display with different refresh modes, the display latency problem of handwritten input on the e-ink screen is solved, achieving instant enhancement effects and improving the user experience.

CN121481891APending Publication Date: 2026-02-06ONYX INT
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511536515.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-10-27
Publication Date
2026-02-06

AI Technical Summary

Technical Problem

When using e-ink screens for handwriting input, there is a serious display delay problem. Existing beautification methods cannot provide beautification effects in real time during the user's input process, resulting in a poor user experience.

Method used

The system acquires real-time data of handwritten strokes on the e-ink screen, generates the first handwritten stroke, and enhances its shape according to preset rules to generate the second handwritten stroke. At the same time, different refresh modes are used to drive the display of the first and second handwritten strokes to reduce latency.

Benefits of technology

It enables real-time beautification of the display during handwriting, improves the handwriting beautification effect of the e-ink screen, reduces display latency, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121481891A_ABST
    Figure CN121481891A_ABST
Patent Text Reader

Abstract

The invention provides an ink screen handwritten stroke beautifying method and device, electronic equipment and a storage medium. The beautifying method comprises the steps of obtaining handwritten stroke report data input by a handwriting pen; generating a first handwritten stroke according to the handwritten stroke report data; driving and displaying the first handwritten stroke on the ink screen; beautifying the appearance of the first handwritten stroke according to a first preset rule to obtain a second handwritten stroke, wherein a pixel region corresponding to the second handwritten stroke covers a pixel region corresponding to the first handwritten stroke; and driving and displaying the second handwritten stroke on the ink screen. The handwritten strokes can be beautified and displayed in the handwriting process, beautified display does not need to be carried out after the strokes are completed, and the handwriting beautified display effect of the ink screen is obviously improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the handwriting field, and particularly relates to a method and device for beautifying ink screen handwriting strokes, an electronic device and a storage medium. BACKGROUND

[0002] With the development and popularity of touch screen technology, handwriting input is also more and more widely used in electronic devices such as mobile phone terminals, tablet computers, handwriting boards and smart televisions. Compared with keyboard input, handwriting input has the advantages of being more intuitive, convenient and user-friendly. However, if the electronic device directly displays the strokes corresponding to the handwriting input report point data, the strokes appear to be rigid and lack of aesthetic sense, and the user experience is poor. In order to improve the user experience, in recent years, various methods for beautifying the handwriting in the style of calligraphy based on user input have appeared. The existing handwriting beautifying methods generally beautify the handwriting strokes, and some of the beautifying methods are performed after a character is written by the user, and some of the beautifying methods are performed after a stroke is written by the user. These methods have achieved some beautifying effects, but because there is a certain delay compared with the user input, the user cannot obtain timely feedback and good user experience. In particular, when handwriting is input on an ink screen, the display delay problem is more obvious, because compared with the liquid crystal display screen of a general electronic device, the display frame rate of the ink screen is much slower, and if the beautifying is performed after a character or a stroke is written by the user, the display delay will be more obvious. SUMMARY

[0003] The present application provides a method and device for beautifying ink screen handwriting strokes, an electronic device and a storage medium to improve the handwriting beautifying display effect of the ink screen.

[0004] In a first aspect, the present application provides a method for beautifying ink screen handwriting strokes, which comprises: obtaining handwriting stroke report point data input by a handwriting pen; generating a first handwriting stroke according to the handwriting stroke report point data; driving the first handwriting stroke to be displayed on the ink screen; performing shape beautifying on the first handwriting stroke according to a first preset rule to obtain a second handwriting stroke, and a pixel area corresponding to the second handwriting stroke covers a pixel area corresponding to the first handwriting stroke; driving the second handwriting stroke to be displayed on the ink screen.

[0005] In some embodiments of the present application, the step of driving the second handwriting stroke to be displayed on the ink screen comprises: removing an area of the second handwriting stroke that overlaps with the first handwriting stroke to obtain a third handwriting stroke; driving and displaying the third handwriting stroke on the ink screen.

[0006] In some embodiments of the present application, the step of driving and displaying the first handwriting stroke on the ink screen comprises: obtaining a first driving waveform of the first handwriting stroke according to a first refresh mode; driving the ink screen to display the first handwriting stroke according to the first driving waveform; the step of driving and displaying the second handwriting stroke on the ink screen comprises: obtaining a second driving waveform of the second handwriting stroke according to a second refresh mode; driving the ink screen to display the second handwriting stroke according to the second driving waveform; the first refresh mode is different from the second refresh mode, and the refresh time length of the first refresh mode is less than the refresh time length of the second refresh mode.

[0007] In some embodiments of the present application, the first refresh mode is a DU refresh mode, and the second refresh mode is a GU refresh mode.

[0008] In some embodiments of the present application, the step of obtaining the second handwriting stroke by performing shape beautification on the first handwriting stroke according to a first preset rule comprises: dividing the first handwriting stroke into a head section, an intermediate section and a tail section, obtaining the number of points or the length of the head section according to the speed of the handwriting pen, obtaining the number of points or the length of the tail section according to the current speed of the pen nib outside the head section area, and obtaining the number of points of the intermediate section by subtracting the number of points of the head section and the number of points of the tail section from the number of points of the first handwriting stroke or obtaining the length of the intermediate section by subtracting the length of the head section and the length of the tail section from the length of the first handwriting stroke; obtaining a first beautification width of the starting end of the head section, a first beautification width of the end of the head section, a first beautification width of the starting end of the tail section and a first beautification width of the end of the tail section, wherein the first beautification width of the starting end of the head section is less than or equal to the first beautification width of the end of the head section, the first beautification width of the part between the starting end of the head section and the end of the head section is smooth, the first beautification width of the end of the head section, the first beautification width of the intermediate section and the first beautification width of the starting end of the tail section are the same, the first beautification width of the starting end of the tail section is greater than or equal to the first beautification width of the end of the tail section, and the first beautification width of the part between the starting end of the tail section and the end of the tail section is smooth; The first handwriting stroke is beautified according to the first beautifying width of the start end of the head section, the first beautifying width of the end of the head section, the first beautifying width of the start end of the tail section and the first beautifying width of the end of the tail section to obtain a second handwriting stroke.

[0009] In some embodiments of the present application, the step of obtaining the number of points or the length of the tail section according to the current speed of the pen tip of the handwriting pen outside the head section area comprises: obtaining a first number of points or a first length according to the current speed of the pen tip of the handwriting pen outside the head section area; judging whether the number of points of the first handwriting stroke is greater than the sum of the number of points of the head section and the first number of points or whether the length of the first handwriting stroke is greater than the sum of the length of the head section and the first length; if yes, the number of points of the tail section is the first number of points and the length of the tail section is the first length; if no, the number of points of the tail section is obtained by subtracting the number of points of the head section from the number of points of the first handwriting stroke, and the length of the tail section is obtained by subtracting the length of the head section from the length of the first handwriting stroke.

[0010] In some embodiments of the present application, the first beautifying width of the start end of the head section, the first beautifying width of the end of the head section, the first beautifying width of the start end of the tail section and the first beautifying width of the end of the tail section are all preset widths.

[0011] In some embodiments of the present application, the step of obtaining the first beautifying width of the start end of the head section, the first beautifying width of the end of the head section, the first beautifying width of the start end of the tail section and the first beautifying width of the end of the tail section comprises: obtaining the first beautifying width of the start end of the head section and the first beautifying width of the end of the head section according to the speed of the handwriting pen; obtaining the first beautifying width of the end of the tail section according to the current speed of the pen tip of the handwriting pen outside the head section area.

[0012] In some embodiments of the present application, the beautifying method further comprises: detecting an end signal of handwriting pen stroke input; when the end signal of handwriting pen stroke input is detected, obtaining the number of points of the handwriting stroke or the length of the handwriting stroke according to the latest handwriting stroke point data; judging whether the number of points of the handwriting stroke is greater than the number threshold or whether the length of the handwriting stroke is greater than the length threshold; if no, beautifying the latest handwriting stroke point data according to a second preset rule to obtain a fourth handwriting stroke; obtaining a fourth handwriting stroke according to the fourth handwriting stroke report data and a second preset rule; displaying the fourth handwriting stroke according to the fourth driving waveform.

[0013] In some embodiments of the present application, the step of obtaining the fourth handwriting stroke according to the latest handwriting stroke report data and the second preset rule comprises: dividing the latest handwriting stroke report data into a head section, a middle section and a tail section according to a preset proportion; obtaining a second beautifying width of a starting end of the head section, a second beautifying width of an ending end of the head section, a second beautifying width of a starting end of the tail section and a second beautifying width of an ending end of the tail section, the second beautifying width of the starting end of the head section being smaller than the second beautifying width of the ending end of the head section, the second beautifying width of the part between the starting end of the head section and the ending end of the head section being smooth, the second beautifying width of the ending end of the head section, the second beautifying width of the middle section and the second beautifying width of the starting end of the tail section being the same, the second beautifying width of the starting end of the tail section being larger than the second beautifying width of the ending end of the tail section, and the second beautifying width of the part between the starting end of the tail section and the ending end of the tail section being smooth; obtaining the fourth handwriting stroke according to the second beautifying width of the starting end of the head section, the second beautifying width of the ending end of the head section, the second beautifying width of the starting end of the tail section and the second beautifying width of the ending end of the tail section.

[0014] In some embodiments of the present application, the step of dividing the latest handwriting stroke report data into a head section, a middle section and a tail section according to a preset proportion comprises: dividing the number of points of the latest handwriting stroke report data according to a preset proportion to divide the latest handwriting stroke report data into a head section, a middle section and a tail section; or dividing the length corresponding to the latest handwriting stroke report data according to a preset proportion to divide the latest handwriting stroke report data into a head section, a middle section and a tail section.

[0015] In some embodiments of the present application, the end signal comprises pen-up information of the handwriting pen.

[0016] In some embodiments of the present application, the step of obtaining the second beautifying width of the starting end of the head section, the second beautifying width of the ending end of the head section, the second beautifying width of the starting end of the tail section and the second beautifying width of the ending end of the tail section comprises: a second embellished width of a starting end of the head section and a second embellished width of an ending end of the head section are obtained according to the reported point number or length of the head section; a second embellished width of an ending end of the tail section is obtained according to the reported point number or length of the tail section.

[0017] In a second aspect, the embodiments of the present application further provide an ink screen handwriting stroke beautifying device, which comprises: a first obtaining module, configured to obtain handwriting stroke reported point data input by a handwriting pen; a generating module, configured to generate a first handwriting stroke according to the handwriting stroke reported point data; a first driving module, configured to drive display of the first handwriting stroke on the ink screen; a first beautifying module, configured to perform shape beautification on the first handwriting stroke according to a first preset rule to obtain a second handwriting stroke, wherein a pixel area corresponding to the second handwriting stroke covers a pixel area corresponding to the first handwriting stroke; a second driving module, configured to drive display of the second handwriting stroke on the ink screen.

[0018] In a third aspect, the embodiments of the present application further provide an electronic device, which comprises: one or more processors; a memory, configured to store one or more programs; when the one or more programs are executed by the one or more processors, the electronic device implements the beautifying method according to any one of the first aspect.

[0019] In a fourth aspect, the embodiments of the present application further provide a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the beautifying method according to any one of the first aspect.

[0020] The application provides a handwriting beautification method and device for an ink screen, electronic equipment and a storage medium, wherein the beautification method comprises the following steps: acquiring handwriting stroke report point data input by a handwriting pen; generating a first handwriting stroke according to the handwriting stroke report point data; driving and displaying the first handwriting stroke on the ink screen; performing shape beautification on the first handwriting stroke according to a first preset rule to obtain a second handwriting stroke, wherein a pixel area corresponding to the second handwriting stroke covers a pixel area corresponding to the first handwriting stroke; and driving and displaying the second handwriting stroke on the ink screen. In the handwriting process of the handwriting pen, the first handwriting stroke is generated according to the handwriting stroke report point data, the first handwriting stroke is driven and displayed on the ink screen, the second handwriting stroke is obtained by performing shape beautification on the first handwriting stroke according to the first preset rule, and then the second handwriting stroke is driven and displayed on the ink screen. That is, the handwriting stroke can be beautified and displayed in the handwriting process, without waiting for the handwriting stroke to be completed before beautification and display, so that the handwriting beautification display effect of the ink screen is obviously improved. BRIEF DESCRIPTION OF DRAWINGS

[0021] Figure 1 A flowchart of an embodiment one of the handwriting beautification method for an ink screen provided by the application; Figure 2 A flowchart of an embodiment one of step S50 of the handwriting beautification method for an ink screen provided by the application; Figure 3 A flowchart of step S30 of the handwriting beautification method for an ink screen provided by the application; Figure 4 A flowchart of an embodiment two of step S30 of the handwriting beautification method for an ink screen provided by the application; Figure 5 A flowchart of step S40 of the handwriting beautification method for an ink screen provided by the application; Figure 6 A flowchart of step S42 of the handwriting beautification method for an ink screen provided by the application; Figure 7 A flowchart of step S41 of the handwriting beautification method for an ink screen provided by the application; Figure 8 A flowchart of an embodiment two of the handwriting beautification method for an ink screen provided by the application; Figure 9 A flowchart of step S90 of the handwriting beautification method for an ink screen provided by the application; Figure 10 A flowchart of step S92 of the handwriting beautification method for an ink screen provided by the application; Figure 11The structure schematic diagram of the ink screen handwriting pen stroke beautifying device provided in the application is shown in the figure; Figure 12 The structure schematic diagram of the electronic device provided in the application is shown in the figure. DETAILED DESCRIPTION

[0022] The application examples are further described in detail below in combination with the drawings and examples. It can be understood that the specific examples described herein are only used to explain the application examples, but not to limit the application examples. In addition, it should be noted that, for the convenience of description, only the parts related to the application examples are shown in the drawings, but not all the structures.

[0023] The terms "first", "second" and the like in the specification and claims of the 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 exchanged under appropriate circumstances, so that the application examples can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second" and the like are usually a kind, 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 means at least one of the connected objects, and the character " / ", generally means that the front and rear associated objects are in an "or" relationship. In addition, unless otherwise specified and limited, the terms "set", "install", "connect", "connect", "connect in series" should be understood broadly, for example, it can be fixedly connected, or it can be detachably connected, or integrally connected; it can be mechanically connected, or it can be electrically connected; it can be directly connected, or it can be indirectly connected through an intermediate medium, or it can be connected inside two elements. For those skilled in the art, the specific meaning of the above terms in the application can be understood according to the specific circumstances.

[0024] The beautifying method provided by the application examples can be used on the ink screen, especially on the electronic device with the ink screen. The electronic device can be a tablet computer, a mobile phone, an electronic reader, a personal digital assistant (PDA) and the like based on the ink screen. Specifically, the electronic device can include an ink screen, a communication module, a digital signal processor, an image processing module, a microcontroller, a screen driving module, a timing control circuit, and a power supply control circuit.

[0025] The application examples are described in detail below.

[0026] Figure 1The flowchart of the embodiment one of the ink screen handwriting stroke beautifying method provided in the application can be executed by a display device, which can be realized by hardware and / or software and integrated in an ink screen.

[0027] The ink screen handwriting stroke beautifying method executed by a display device is described below. Referring to Figure 1 A method for beautifying ink screen handwriting strokes, the method comprising: In step S10, handwriting stroke report point data input by a handwriting pen is acquired.

[0028] After the ink screen enters a handwriting mode, a user inputs handwriting strokes by a handwriting pen, and handwriting stroke report point data is formed on the ink screen by the handwriting pen input. It can be understood that the report point data herein refers to data of a series of continuous or discontinuous handwriting report points drawn by the user on the ink screen, and the report point data includes but is not limited to coordinate information, time information, handwriting type and handwriting width, handwriting pressure information and handwriting tilt information, etc. The report point data can be acquired by real-time reading by a handwriting pen sensing device, or by reading touch point coordinates by the ink screen, which is not limited herein.

[0029] In addition, the handwriting pressure information and the handwriting tilt information can be acquired based on the handwriting pen. For example, the handwriting pen feeds back corresponding handwriting pressure information and handwriting tilt information to the ink screen in real time based on the tip pressure and the body tilt angle detected by the handwriting pen; or the ink screen detects the tip pressure and the body tilt angle of the handwriting pen to obtain the handwriting pressure information and the handwriting tilt information. Meanwhile, the ink screen determines report point coordinates and report point time based on handwriting operation, and determines handwriting input information based on the report point coordinates and the report point time, the handwriting pressure information and / or the handwriting tilt information. The handwriting type and the handwriting width are pre-set or set by the user in the ink screen.

[0030] In step S20, a first handwriting stroke is generated according to the handwriting stroke report point data.

[0031] Specifically, the handwriting stroke report point data is rendered and drawn to generate the first handwriting stroke.

[0032] In step S30, the first handwriting stroke is driven and displayed on the ink screen.

[0033] In the embodiment of the application, when the handwriting stroke input has not ended, handwriting stroke report point data input by the handwriting pen is continuously acquired according to the frequency of acquiring the report point data by the ink screen, and the first handwriting stroke is generated according to the handwriting stroke report point data, and the first handwriting stroke is continuously driven and displayed on the ink screen.

[0034] In step S40, the first handwriting stroke is beautified according to a first preset rule to obtain a second handwriting stroke, and a pixel area corresponding to the second handwriting stroke covers a pixel area corresponding to the first handwriting stroke.

[0035] In the application, the first handwriting stroke is taken as a skeleton, and the first handwriting stroke is beautified on the basis of the first handwriting stroke to obtain the second handwriting stroke. Moreover, a pixel area corresponding to the second handwriting stroke covers a pixel area corresponding to the first handwriting stroke. Therefore, the pen width of the first handwriting stroke is usually set as a standard width, and then the first handwriting stroke is beautified according to the first preset rule, for example, the first handwriting stroke is formed to have a thin starting end, a thick middle part and a thin ending end, so as to obtain the second handwriting stroke. In this way, the second handwriting stroke has artistic beauty, and the user experience is better.

[0036] In step S50, the second handwriting stroke is driven and displayed on the ink screen.

[0037] That is, the first handwriting stroke is driven and displayed on the ink screen, and the first handwriting stroke is beautified according to the first preset rule to obtain the second handwriting stroke. Then, the second handwriting stroke is driven and displayed on the ink screen. In this way, the handwriting stroke can be beautified and displayed during handwriting, and the handwriting stroke does not need to be beautified and displayed after being completed. Therefore, the handwriting beautification and display effect of the ink screen is obviously improved.

[0038] Please refer to Figure 2 , Figure 2 The flow chart of the embodiment one of step S50 of the handwriting stroke beautification method of the ink screen provided by the application is provided. Further, on the basis of the beautification method provided by the application, Figure 1 The step of driving and displaying the second handwriting stroke on the ink screen includes: In step S51, the area of the second handwriting stroke that overlaps the first handwriting stroke is removed to obtain a third handwriting stroke. In step S52, the third handwriting stroke is driven and displayed on the ink screen.

[0039] Since the pixel area corresponding to the second handwriting stroke covers the pixel area corresponding to the first handwriting stroke, the second handwriting stroke and the first handwriting stroke have an overlapping area. When actually displaying, the area of the second handwriting stroke overlapping with the first handwriting stroke has been refreshed in the display of the first handwriting stroke, so when displaying the second handwriting stroke, only the area of the second handwriting stroke not overlapping with the first handwriting stroke, i.e. the third handwriting stroke, can be refreshed, or the second handwriting stroke can be refreshed once. In the embodiment of the present application, the third handwriting stroke is obtained by removing the area of the second handwriting stroke overlapping with the first handwriting stroke, and then the third handwriting stroke is driven and displayed on the ink screen, so that the second handwriting stroke is completely displayed, which is beneficial to reduce the display energy consumption and improve the processing performance.

[0040] Further, refer to Figure 3 and Figure 4 , Figure 3 the flowchart of step S30 of the beautifying method of the handwriting stroke of the ink screen provided in the present application, Figure 4 the flowchart of the second embodiment of step S30 of the beautifying method of the handwriting stroke of the ink screen provided in the present application. In Figure 1 the beautifying method provided, in an embodiment of the present application, the step of driving and displaying the first handwriting stroke on the ink screen comprises: step S31, obtaining a first driving waveform of the first handwriting stroke according to a first refresh mode; step S32, driving the ink screen to display the first handwriting stroke according to the first driving waveform; the step of driving and displaying the second handwriting stroke on the ink screen comprises: step S53, obtaining a second driving waveform of the second handwriting stroke according to a second refresh mode; step S54, driving the ink screen to display the second handwriting stroke according to the second driving waveform; the first refresh mode is different from the second refresh mode, and the refresh time length of the first refresh mode is less than the refresh time length of the second refresh mode.

[0041] That is, in the embodiment of the present application, the first handwriting stroke and the second handwriting stroke are displayed by using different refresh modes respectively, that is, a first driving waveform of the first handwriting stroke is obtained according to a first refresh mode, and the ink screen is driven according to the first driving waveform to display the first handwriting stroke; then a second driving waveform of the second handwriting stroke is obtained according to a second refresh mode, and the ink screen is driven according to the second driving waveform to display the second handwriting stroke. Moreover, the refresh time length of the first refresh mode is less than that of the second refresh mode, because when the first handwriting stroke is displayed, the first handwriting stroke needs to be displayed quickly, so the first refresh mode is used to drive the first handwriting stroke to reduce the delay of handwriting stroke display; and when the second handwriting stroke is displayed, the display quality needs to be emphasized, so the second refresh mode is used to drive the second handwriting stroke to improve the display quality of handwriting stroke.

[0042] Further, in the embodiment of the present application, the first refresh mode is a DU refresh mode, and the second refresh mode is a GU refresh mode. Of course, it is easily thought that the first refresh mode and the second refresh mode can also be other refresh modes, as long as the refresh time length of the first refresh mode is less than that of the second refresh mode.

[0043] The refresh modes of the ink screen include: an A2 refresh mode, a DU refresh mode, a GC refresh mode (including a GC4 refresh mode, a GC8 refresh mode and a GC16 refresh mode), a GU refresh mode, a GL refresh mode and a GLR refresh mode. Specifically: The A2 refresh mode: the originally displayed gray scale content is presented in black and white to reduce the time and power consumption caused by rendering gray scale, and the refresh speed is the fastest.

[0044] The DU refresh mode: the originally displayed gray scale content is presented in black and white, and the refresh speed is only second to the A2 refresh mode, but the ghosting is less than that of the A2 refresh mode.

[0045] The GC refresh mode: all pixels are re-output, and a screen clearing operation is performed before output, which can be subdivided into a GC4 refresh mode, a GC8 refresh mode and a GC16 refresh mode, which respectively represent that 4, 8 and 16 gray scales can be supported, and the refresh speed is the slowest, but the ghosting is the least. The GC refresh mode is also called full screen refresh, that is, the entire page is refreshed once, regardless of whether the gray scale of the same pixel changes before and after.

[0046] GU refresh mode: no clearing operation before data output, directly outputting pixels changed from the last output, including GU8 refresh mode, GU16 refresh mode, etc., representing support for 8 and 16 gray scales respectively, which is slower than A2 refresh mode and DU refresh mode, but faster than GC refresh mode. GU refresh mode is also called partial refresh, which is acceptable in terms of speed and smoothness of page changes.

[0047] GL refresh mode: no clearing operation before data output, generally GL16 refresh mode, that is, supporting 16 gray scales, which is slower than A2 refresh mode and DU refresh mode, but faster than GC refresh mode. GL refresh mode is also a partial refresh.

[0048] GLR refresh mode: also known as "regal", generally GLR16 refresh mode, that is, supporting 16 gray scales, similar to partial refresh, the refresh mode depends on the difference between the previous and subsequent pictures, and the special feature is that if the previous and subsequent pictures are black to black, it will go through black-white-black flashing. The refresh speed is close to the aforementioned partial refresh mode, and the residual image is less.

[0049] Please refer to Figure 5 , Figure 5 The flowchart of step S40 of the ink screen handwriting stroke beautification method provided in the present application. Further, on the basis of the beautification method provided in Figure 1 In an embodiment of the present application, the step of beautifying the first handwriting stroke according to the first preset rule to obtain a second handwriting stroke includes: Step S41, divide the first handwriting stroke into a head section, a middle section and a tail section, obtain the point number or length of the head section according to the speed of the handwriting pen, obtain the point number or length of the tail section according to the current speed of the pen nib outside the head section area, and obtain the point number of the middle section by subtracting the point number of the head section and the point number of the tail section from the point number of the first handwriting stroke, or obtain the length of the middle section by subtracting the length of the head section and the length of the tail section from the length of the first handwriting stroke. Step S42, obtaining a first beautifying width of a start end of the head section, a first beautifying width of an end of the head section, a first beautifying width of a start end of the tail section, and a first beautifying width of an end of the tail section, wherein the first beautifying width of the start end of the head section is less than or equal to the first beautifying width of the end of the head section, the first beautifying width of the section between the start end of the head section and the end of the head section is smoothly changed, the first beautifying width of the end of the head section, the first beautifying width of the middle section, and the first beautifying width of the start end of the tail section are the same, the first beautifying width of the start end of the tail section is greater than or equal to the first beautifying width of the end of the tail section, and the first beautifying width of the section between the start end of the tail section and the end of the tail section is smoothly changed. Step S43, performing shape beautification on the first handwriting stroke according to the first beautifying width of the start end of the head section, the first beautifying width of the end of the head section, the first beautifying width of the start end of the tail section, and the first beautifying width of the end of the tail section to obtain a second handwriting stroke.

[0050] Specifically, first, the first handwriting stroke is divided into a head section, a middle section, and a tail section, then the number of points or length of the head section is obtained according to the speed of the handwriting pen when the handwriting pen starts to write, that is, when the handwriting pen starts to write, the speed of the handwriting pen can be obtained, then the number of points or length of the tail section is obtained according to the current speed of the pen nib outside the head section area when the handwriting pen writes the middle section and the tail section, so the number of points or length of the tail section is obtained according to the current speed of the pen nib, and the change of the current speed of the pen nib corresponds to the change of the number of points or length of the tail section; finally, the number of points of the middle section is obtained by subtracting the number of points of the head section and the number of points of the tail section from the number of points of the first handwriting stroke, or the length of the middle section is obtained by subtracting the length of the head section and the length of the tail section from the length of the first handwriting stroke. That is, the number of points or length of the middle section is obtained by subtracting the number of points or length of the head section and the number of points or length of the tail section from the number of points or length of the first handwriting stroke in turn after the number of points or length of the head section and the number of points or length of the tail section are determined. When the result of subtracting the number of points or length of the head section and the number of points or length of the tail section from the number of points or length of the first handwriting stroke in turn is zero or negative, it represents that the number of points or length of the middle section is zero, and at this time, the middle section of the first handwriting stroke does not exist; when the result of subtracting the number of points or length of the head section and the number of points or length of the tail section from the number of points or length of the first handwriting stroke in turn is positive, the middle section of the first handwriting stroke is displayed.

[0051] Secondly, a first beautifying width of the start end of the head section, a first beautifying width of the end of the head section, a first beautifying width of the start end of the tail section and a first beautifying width of the end of the tail section are obtained, wherein the first beautifying width of the start end of the head section is less than or equal to the first beautifying width of the end of the head section, the first beautifying width of the section between the start end of the head section and the end of the head section is changed smoothly, the first beautifying width of the end of the head section, the first beautifying width of the middle section and the first beautifying width of the start end of the tail section are the same, the first beautifying width of the start end of the tail section is greater than or equal to the first beautifying width of the end of the tail section, and the first beautifying width of the section between the start end of the tail section and the end of the tail section is changed smoothly. The first beautifying width of the section between the start end of the head section and the end of the head section can be changed linearly or curvilinearly, and the first beautifying width of the section between the start end of the tail section and the end of the tail section can be changed linearly or curvilinearly.

[0052] Finally, the first handwriting stroke is beautified according to the first beautifying width of the start end of the head section, the first beautifying width of the end of the head section, the first beautifying width of the start end of the tail section and the first beautifying width of the end of the tail section to obtain a second handwriting stroke.

[0053] Further, in an embodiment of the present application, the first beautifying width of the start end of the head section, the first beautifying width of the end of the head section, the first beautifying width of the start end of the tail section and the first beautifying width of the end of the tail section are all preset widths. At this time, the first handwriting stroke is beautified according to the head section, the middle section and the tail section of the first handwriting stroke to obtain a second handwriting stroke.

[0054] Please refer to Figure 6 , Figure 6 The flow chart of step S42 of the method for beautifying the ink screen handwriting stroke provided by the present application. Further, in Figure 5 the method provided by the present application, the step of obtaining the first beautifying width of the start end of the head section, the first beautifying width of the end of the head section, the first beautifying width of the start end of the tail section and the first beautifying width of the end of the tail section comprises: Step S421, obtaining the first beautifying width of the start end of the head section and the first beautifying width of the end of the head section according to the speed of the handwriting pen when landing; Step S422, obtaining the first beautifying width of the end of the tail section according to the current speed of the nib of the handwriting pen outside the head section area.

[0055] That is, in the embodiment of the present application, the first beautifying width of the start end of the head section and the first beautifying width of the end of the head section are obtained according to the pen-down speed of the handwriting pen, and the first beautifying width of the end of the tail section is obtained according to the current pen tip speed of the handwriting pen outside the head section area. At this time, the first mapping relationship of the pen-down speed and the first beautifying width of the start end of the head section and the first beautifying width of the end of the head section, and the second mapping relationship of the current pen tip speed of the handwriting pen outside the head section area and the first beautifying width of the end of the tail section can be preset, the first beautifying width of the start end of the head section and the first beautifying width of the end of the head section can be obtained by querying the first mapping relationship according to the pen-down speed, and the first beautifying width of the end of the tail section can be obtained by querying the second mapping relationship according to the current pen tip speed of the handwriting pen outside the head section area.

[0056] Please refer to Figure 7 , Figure 7 The flow chart of step S41 of the ink screen handwriting stroke beautifying method provided by the present application. Further, on the basis of the beautifying method provided by the present application, in an embodiment of the present application, the step of obtaining the point number or length of the tail section according to the current pen tip speed of the handwriting pen outside the head section area comprises: Figure 5 Step S411, obtaining a first point number or a first length according to the current pen tip speed of the handwriting pen outside the head section area; Step S412, judging whether the point number of the first handwriting stroke is greater than the sum of the point number of the head section and the first point number, or judging whether the length of the first handwriting stroke is greater than the sum of the length of the head section and the first length; Step S413, if yes, the point number of the tail section is the first point number, and the length of the tail section is the first length; Step S414, if no, the point number of the tail section is obtained by subtracting the point number of the head section from the point number of the first handwriting stroke, and the length of the tail section is obtained by subtracting the length of the head section from the length of the first handwriting stroke.

[0057] ​The first point number or the first length is obtained according to the current stylus tip speed outside the head section area. A mapping relationship between the current stylus tip speed and the point number or the length can be preset. Then, when the current stylus tip speed outside the head section area is obtained, the first point number or the first length corresponding to the current stylus tip speed can be obtained on the mapping relationship. Then, it is judged whether the point number of the first handwriting stroke is greater than the sum of the point number of the head section and the first point number, or whether the length of the first handwriting stroke is greater than the sum of the length of the head section and the first length. When the point number of the first handwriting stroke is greater than the sum of the point number of the head section and the first point number, or the length of the first handwriting stroke is greater than the sum of the length of the head section and the first length, the point number of the tail section is the first point number, and the length of the tail section is the first length.

[0058] When the point number of the first handwriting stroke is less than or equal to the sum of the point number of the head section and the first point number, or the length of the first handwriting stroke is less than or equal to the sum of the length of the head section and the first length, it is represented that the middle section of the first handwriting stroke does not exist at this time. The point number of the tail section is obtained by subtracting the point number of the head section from the point number of the first handwriting stroke, and the length of the tail section is obtained by subtracting the length of the head section from the length of the first handwriting stroke.

[0059] Please refer to Figure 8 , Figure 8 The flow chart of Embodiment Two of the handwriting stroke beautifying method of the ink screen provided in the present application is provided. Further, on the basis of the beautifying method provided in the present application, in an embodiment of the present application, the beautifying method further comprises: Figure 1 Step S60, detecting an end signal of handwriting stroke input; Step S70, when the end signal of handwriting stroke input is detected, obtaining the point number of the handwriting stroke or the length of the handwriting stroke according to the latest handwriting stroke point data; Step S80, judging whether the point number of the handwriting stroke is greater than the quantity threshold value or judging whether the length of the handwriting stroke is greater than the length threshold value; Step S90, if not, performing shape beautification on the latest handwriting stroke point data according to a second preset rule to obtain a fourth handwriting stroke; Step SA0, obtaining a fourth driving waveform according to the fourth handwriting stroke; Step SB0, driving the ink screen according to the fourth driving waveform to display the fourth handwriting stroke.

[0060] ​That is, the application detects an end signal of the handwriting pen stroke input, wherein in an embodiment of the application, the end signal includes pen-up information of the handwriting pen, that is, when the pen-up information of the handwriting pen is detected, it is judged that the handwriting pen stroke input has ended. When the end signal of the handwriting pen stroke input is detected, the number of points of the handwriting pen stroke or the length of the handwriting pen stroke is obtained according to the latest handwriting pen stroke point reporting data, and then it is judged whether the number of points of the handwriting pen stroke is greater than the number threshold or whether the length of the handwriting pen stroke is greater than the length threshold, that is, if the number of points of the handwriting pen stroke is greater than the number threshold or the length of the handwriting pen stroke is greater than the length threshold, it indicates that the number of points of the handwriting pen stroke or the length of the handwriting pen stroke is large enough to form a complete stroke, so the second handwriting pen stroke is a complete stroke and does not need to be re-beautified.

[0061] If the number of points of the handwriting pen stroke is less than or equal to the number threshold or the length of the handwriting pen stroke is less than or equal to the length threshold, it indicates that the number of points of the handwriting pen stroke or the length of the handwriting pen stroke is small, and the second handwriting pen stroke is not a complete stroke, for example, after the handwriting pen stroke input ends, the second handwriting pen stroke displayed on the ink screen only has a head segment and a tail segment and does not have a middle segment, or the second handwriting pen stroke displayed on the ink screen only has a head segment and does not have a tail segment and a middle segment, so the fourth handwriting pen stroke is obtained by re-beautifying the shape of the latest handwriting pen stroke point reporting data according to a second preset rule, and then a fourth driving waveform is obtained according to the fourth handwriting pen stroke; and the fourth handwriting pen stroke is displayed on the ink screen according to the fourth driving waveform. According to the second preset rule, the fourth handwriting pen stroke is obtained by re-beautifying the shape of the latest handwriting pen stroke point reporting data, so that the handwriting pen stroke beautification shape can be adjusted again according to the handwriting result, which is beneficial to improve the beauty of the handwriting pen stroke and the user experience.

[0062] Please refer to Figure 9 , Figure 9 The flowchart of step S90 of the handwriting pen stroke beautification method provided by the application is provided. Further, on the basis of the beautification method provided by Figure 8 In an embodiment of the application, the step of obtaining the fourth handwriting pen stroke by beautifying the shape of the latest handwriting pen stroke point reporting data according to a second preset rule includes: Step S91, dividing the latest handwriting pen stroke point reporting data into a head segment, a middle segment and a tail segment according to a preset ratio; In step S92, a second beautifying width of the start end of the head section, a second beautifying width of the end end of the head section, a second beautifying width of the start end of the tail section, and a second beautifying width of the end end of the tail section are obtained, the second beautifying width of the start end of the head section is less than the second beautifying width of the end end of the head section, the second beautifying width of the section between the start end of the head section and the end end of the head section is smoothly changed, the second beautifying width of the end end of the head section, the second beautifying width of the middle section, and the second beautifying width of the start end of the tail section are the same, the second beautifying width of the start end of the tail section is greater than the second beautifying width of the end end of the tail section, and the second beautifying width of the section between the start end of the tail section and the end end of the tail section is smoothly changed. In step S93, the latest hand-written stroke report point data is beautified in shape according to the second beautifying width of the start end of the head section, the second beautifying width of the end end of the head section, the second beautifying width of the start end of the tail section, and the second beautifying width of the end end of the tail section to obtain a fourth hand-written stroke.

[0063] That is, in the embodiment of the present application, when the report point number of the hand-written stroke is less than or equal to the number threshold value or the length of the hand-written stroke is less than or equal to the length threshold value, the latest hand-written stroke report point data is divided into a head section, a middle section, and a tail section according to a preset ratio, then a second beautifying width of the start end of the head section, a second beautifying width of the end end of the head section, a second beautifying width of the start end of the tail section, and a second beautifying width of the end end of the tail section are obtained, and then the latest hand-written stroke report point data is beautified in shape according to the second beautifying width of the start end of the head section, the second beautifying width of the end end of the head section, the second beautifying width of the start end of the tail section, and the second beautifying width of the end end of the tail section to obtain a fourth hand-written stroke. The second beautifying width of the section between the start end of the head section and the end end of the head section can be linearly smoothly changed or can be curvedly smoothly changed, and the second beautifying width of the section between the start end of the tail section and the end end of the tail section can be linearly smoothly changed or can be curvedly smoothly changed.

[0064] In an embodiment of the present application, the ratio of the head section, the middle section, and the tail section is 1:0:0, that is, only the head section is displayed without the middle section and the tail section. Of course, it is easily thought that the ratio of the head section, the middle section, and the tail section can also be other values, but the ratio value of the head section is not zero.

[0065] In addition, in another embodiment of the present application, the preset ratio of the head section, the middle section, and the tail section can be obtained according to one of a pen-down speed, a pen-up speed, and an average speed of a hand-writing pen in a hand-writing process.

[0066] In yet another embodiment of the present application, the preset proportions of the head section, the middle section and the tail section can be calculated according to the pen-down speed, the pen-up speed and the average speed of the stylus during the handwriting process.

[0067] Further, based on the beautifying method provided, Figure 9 In an embodiment of the present application, based on the beautifying method provided, the step of dividing the latest stylus stroke report point data into a head section, a middle section and a tail section according to preset proportions comprises: dividing the report point number of the latest stylus stroke report point data according to preset proportions so as to divide the latest stylus stroke report point data into a head section, a middle section and a tail section; or dividing the length corresponding to the latest stylus stroke report point data according to preset proportions so as to divide the latest stylus stroke report point data into a head section, a middle section and a tail section.

[0068] Still further, please refer to Figure 10 , Figure 10 The flow chart of the step S92 of the beautifying method of the ink screen stylus stroke provided by the present application. In Figure 9 In an embodiment of the present application, based on the beautifying method provided, the step of obtaining the second beautifying width of the starting end of the head section, the second beautifying width of the ending end of the head section, the second beautifying width of the starting end of the tail section and the second beautifying width of the ending end of the tail section comprises: Step S921, obtaining the second beautifying width of the starting end of the head section and the second beautifying width of the ending end of the head section according to the report point number or the length of the head section; Step S922, obtaining the second beautifying width of the ending end of the tail section according to the report point number or the length of the tail section.

[0069] Specifically, first, the latest stylus stroke report point data is divided into a head section, a middle section and a tail section according to preset proportions, and then the second beautifying width of the starting end of the head section and the second beautifying width of the ending end of the head section are obtained according to the report point number or the length of the head section, and the second beautifying width of the ending end of the tail section is obtained according to the report point number or the length of the tail section.

[0070] Figure 11 The structural schematic diagram of the beautifying device of the ink screen stylus stroke provided by the present application. Referring to Figure 11 , the display device comprises a first acquisition module 10, a generation module 20, a first driving module 30, a first beautifying module 40 and a second driving module 50.

[0071] The first acquisition module is configured to acquire stylus stroke report point data input by a stylus. The generating module is configured to generate a first handwriting stroke according to the handwriting stroke report point data; The first driving module is configured to drive the ink screen to display the first handwriting stroke; The first beautifying module is configured to perform shape beautification on the first handwriting stroke according to a first preset rule to obtain a second handwriting stroke, and a pixel area corresponding to the second handwriting stroke covers a pixel area corresponding to the first handwriting stroke; The second driving module is configured to drive the ink screen to display the second handwriting stroke.

[0072] In the handwriting process, the handwriting stroke report point data is used to generate a first handwriting stroke, the first handwriting stroke is displayed on the ink screen, and a second handwriting stroke is obtained by performing shape beautification on the first handwriting stroke according to a first preset rule, and then the second handwriting stroke is displayed on the ink screen. That is, the handwriting stroke can be beautified and displayed during handwriting, without waiting for the handwriting stroke to be completed before beautifying and displaying, thereby obviously improving the handwriting beautification display effect of the ink screen.

[0073] The beautifying device further includes: A detecting module configured to detect an end signal of handwriting stroke input of the handwriting pen; A second obtaining module configured to obtain a report point number of the handwriting stroke or a length of the handwriting stroke according to the latest handwriting stroke report point data when the end signal of handwriting stroke input of the handwriting pen is detected; A judging module configured to judge whether the report point number of the handwriting stroke is greater than the number threshold or whether the length of the handwriting stroke is greater than the length threshold; A second beautifying module configured to perform shape beautification on the latest handwriting stroke report point data according to a second preset rule to obtain a fourth handwriting stroke if the report point number of the handwriting stroke is not greater than the number threshold or the length of the handwriting stroke is not greater than the length threshold; A third waveform module configured to obtain a fourth driving waveform according to the fourth handwriting stroke; A third driving module configured to drive the ink screen to display the fourth handwriting stroke according to the fourth driving waveform.

[0074] The beautifying device of the handwriting stroke of the ink screen provided by the embodiment of the present application is contained in the ink screen, and can be used to execute any beautifying method provided in the above embodiments, and has the corresponding functions and beneficial effects.

[0075] It is worth noting that in the above-mentioned embodiments of the ink screen handwriting stroke beautifying device, the various units and modules included are only divided according to functional logic, and are not limited to the above-mentioned division, as long as the corresponding functions can be realized. In addition, the specific names of the various functional units are only for the convenience of mutual differentiation, and do not serve to limit the protection scope of the present application.

[0076] Figure 12 A structural schematic diagram of an electronic device provided by the present application is shown in FIG. 1, which 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 stroke beautifying method as described above, Figure 12 Figure 12 The processor 201 is taken as an example in the present application.

[0077] The memory 202 is a kind of computer readable storage medium, which can be used to store software programs, computer executable programs and modules. The processor 201 executes the software programs, instructions and modules stored in the memory 202, thereby performing various functional applications and data processing of the electronic device, i.e. implementing the beautifying method described above.

[0078] The memory 202 can mainly include a program storage area and a data storage area. The program storage area can store an operating system and at least one application program required by a function. The data storage area can store data created according to the use of the electronic device, etc. In addition, the memory 202 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some examples, the memory 202 can further include a memory remotely arranged with respect to the processor 201, which can be connected to the electronic device through 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 a combination thereof.

[0079] The above-mentioned electronic device contains a handwriting input device, which can be used to execute any beautifying method described above, and has corresponding functions and advantages.

[0080] The present application also provides a storage medium containing computer executable instructions, which are used to execute the beautifying method when executed by a computer processor. The computer program executed by the processor can also implement the related operations in the beautifying method provided by any embodiment of the present application, and has corresponding functions and advantages.

[0081] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product.

[0082] ​Therefore, this application may take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application may take the form of a computer program product embodied 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. This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, produce implementations of the flowchart... Figure 1 One or more processes and / or boxes Figure 1 The computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The functions specified in one or more boxes. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable apparatus for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0083] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory. Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0084] Computer-readable media includes permanent and non-permanent, movable and non-movable media that can be implemented by any method or technology to store information. The 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 technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information accessible to a computing device. According to the definition herein, computer-readable media does not include transitory media such as modulated data signals and carriers.

[0085] It should also be noted that the terms "comprising", "containing", or any other variant thereof are intended to cover non-exclusive inclusions, so that a process, method, article or apparatus that includes a list of elements not only includes those elements, but also includes other elements not explicitly listed, or inherent to such a process, method, article or apparatus. Without more limitations, the element defined by the statement "comprising a" does not exclude the presence of additional identical elements in the process, method, article or apparatus that includes the element.

[0086] Note that the above are only the preferred embodiments of the present application and the principles of technology 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 the present application. Therefore, although the present application has been described in detail through the above embodiments, the present application is not limited to the above embodiments, and can 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 method for enhancing the aesthetics of handwritten strokes on an e-ink screen, characterized in that: Acquire handwriting pen drawing point data input by the stylus; Generate the first handwritten stroke based on the handwritten stroke reporting data; The first handwritten stroke is driven to be displayed on the ink screen; The first handwritten stroke is beautified according to the first preset rule to obtain the second handwritten stroke, and the pixel area corresponding to the second handwritten stroke covers the pixel area corresponding to the first handwritten stroke. The second handwritten stroke is driven to be displayed on the ink screen.

2. The beautification method according to claim 1, characterized in that, The step of driving the display of the second handwritten stroke on the e-ink screen includes: The third handwritten stroke is obtained by removing the area in the second handwritten stroke that overlaps with the first handwritten stroke. The third handwritten stroke is driven to be displayed on the e-ink screen.

3. The beautification method according to claim 1, characterized in that, The step of driving the display of the first handwritten stroke on the e-ink screen includes: The first driving waveform of the first handwritten stroke is obtained according to the first refresh mode; The first handwritten stroke is displayed on the e-ink screen according to the first driving waveform. The step of driving the display of the second handwritten stroke on the e-ink screen includes: The second driving waveform of the second handwriting stroke is obtained according to the second refresh mode; The second handwritten stroke is displayed on the e-ink screen according to the second driving waveform; the first refresh mode is different from the second refresh mode, and the refresh duration of the first refresh mode is less than that of the second refresh mode.

4. The beautification method according to claim 3, characterized in that, The first refresh mode is DU refresh mode, and the second refresh mode is GU refresh mode.

5. The beautification method according to claim 1, characterized in that, The step of beautifying the shape of the first handwritten stroke according to the first preset rule to obtain the second handwritten stroke includes: The first handwritten stroke is divided into a head segment, a middle segment, and a tail segment. The number of points or the length of the head segment are obtained based on the pen's stroke speed. The number of points or the length of the tail segment are obtained based on the current pen tip speed outside the head segment area. The number of points in the middle segment is obtained by subtracting the number of points in the head segment and the number of points in the tail segment from the number of points in the first handwritten stroke, or the length of the middle segment is obtained by subtracting the length of the head segment and the length of the tail segment from the length of the first handwritten stroke. The first beautification width of the starting end of the head segment, the first beautification width of the ending end of the head segment, the first beautification width of the starting end of the tail segment, and the first beautification width of the ending end of the tail segment are obtained, wherein the first beautification width of the starting end of the head segment is less than or equal to the first beautification width of the ending end of the head segment, the first beautification width of the portion of the head segment located between the starting end and the ending end of the head segment changes smoothly, the first beautification width of the ending end of the head segment, the first beautification width of the middle segment, and the first beautification width of the starting end of the tail segment are the same, the first beautification width of the starting end of the tail segment is greater than or equal to the first beautification width of the ending end of the tail segment, and the first beautification width of the portion of the tail segment located between the starting end and the ending end of the tail segment changes smoothly; The first handwritten stroke is beautified by the first beautification width of the beginning end of the head segment, the first beautification width of the end of the head segment, the first beautification width of the beginning end of the tail segment, and the first beautification width of the end of the tail segment to obtain the second handwritten stroke.

6. The beautification method according to claim 5, characterized in that, The step of obtaining the number of dots or length of the tail segment based on the current pen tip speed outside the head segment region includes: The first number of dots or the first length is obtained based on the current pen tip speed outside the head section area; Determine whether the number of reported points of the first handwritten stroke is greater than the sum of the number of reported points of the head segment and the first number of reported points, or determine whether the length of the first handwritten stroke is greater than the sum of the length of the head segment and the first length; If so, the number of points reported in the tail segment is the first number of points reported, and the length of the tail segment is the first length; If not, the number of points reported in the tail segment is obtained by subtracting the number of points reported in the head segment from the number of points reported in the first handwritten stroke, and the length of the tail segment is obtained by subtracting the length of the head segment from the length of the first handwritten stroke.

7. The beautification method according to claim 5, characterized in that, The first beautification width at the beginning of the head segment, the first beautification width at the end of the head segment, the first beautification width at the beginning of the tail segment, and the first beautification width at the end of the tail segment are all preset widths.

8. The beautification method according to claim 5, characterized in that, The step of obtaining the first beautification width of the starting end of the head segment, the first beautification width of the ending end of the head segment, the first beautification width of the starting end of the tail segment, and the first beautification width of the ending end of the tail segment includes: The first beautification width of the starting end of the head segment and the first beautification width of the ending end of the head segment are obtained based on the pen's stroke speed. The first beautification width of the end of the tail segment is obtained based on the current pen tip speed outside the head segment area.

9. The beautification method according to claim 1, characterized in that, The beautification method also includes: Detect the end signal of handwriting input; When the end signal of handwriting input is detected, the number of handwriting points or the length of the handwriting stroke is obtained based on the latest handwriting stroke reporting data. Determine whether the number of reported points of the handwritten stroke is greater than the quantity threshold or whether the length of the handwritten stroke is greater than the length threshold; If not, the latest handwritten stroke reporting data is beautified according to the second preset rule to obtain the fourth handwritten stroke. The fourth driving waveform is obtained based on the fourth handwritten stroke; The fourth driving waveform drives the e-ink screen to display the fourth handwritten stroke.

10. The beautification method according to claim 9, characterized in that, The step of beautifying the shape of the latest handwritten stroke data according to the second preset rule to obtain the fourth handwritten stroke includes: The latest handwritten pen drawing point data is divided into a head segment, a middle segment, and a tail segment according to a preset ratio; The second beautification width of the starting end of the head segment, the second beautification width of the ending end of the head segment, the second beautification width of the starting end of the tail segment, and the second beautification width of the ending end of the tail segment are obtained. The second beautification width of the starting end of the head segment is smaller than the second beautification width of the ending end of the head segment. The second beautification width of the portion of the head segment located between the starting end and the ending end of the head segment changes smoothly. The second beautification width of the ending end of the head segment, the second beautification width of the middle segment, and the second beautification width of the starting end of the tail segment are the same. The second beautification width of the starting end of the tail segment is larger than the second beautification width of the ending end of the tail segment. The second beautification width of the portion of the tail segment located between the starting end and the ending end of the tail segment changes smoothly. The fourth handwritten stroke is obtained by beautifying the shape of the latest handwritten stroke reporting data based on the second beautification width of the starting end of the head segment, the second beautification width of the ending end of the head segment, the second beautification width of the starting end of the tail segment, and the second beautification width of the ending end of the tail segment.

11. The beautification method according to claim 10, characterized in that, The step of dividing the latest handwritten pen drawing point data into a head segment, a middle segment, and a tail segment according to a preset ratio includes: The latest handwritten stroke reporting data is divided into a head segment, a middle segment, and a tail segment according to a preset ratio. Alternatively, the length of the latest handwritten stroke reporting data can be divided according to a preset ratio to form a head segment, a middle segment, and a tail segment.

12. The beautification method according to claim 9, characterized in that, The termination signal includes information about lifting the stylus.

13. The beautification method according to claim 9, characterized in that, The step of obtaining the second beautification width of the starting end of the head segment, the second beautification width of the ending end of the head segment, the second beautification width of the starting end of the tail segment, and the second beautification width of the ending end of the tail segment includes: The second beautification width of the starting end of the head segment and the second beautification width of the ending end of the head segment are obtained based on the number of points or length of the head segment. The second beautification width of the end of the tail segment is obtained based on the number of points reported or the length of the tail segment.

14. A device for enhancing handwritten strokes on an e-ink screen, characterized in that, include: The first acquisition module is used to acquire handwriting pen drawing point data input by the handwriting pen. The generation module is used to generate a first handwritten stroke based on the handwritten stroke reporting data; A first driving module is used to drive the display of the first handwritten stroke on the e-ink screen; The first beautification module is used to beautify the shape of the first handwritten stroke according to the first preset rule to obtain the second handwritten stroke, and the pixel area corresponding to the second handwritten stroke covers the pixel area corresponding to the first handwritten stroke. The second driving module is used to drive the display of the second handwritten stroke on the e-ink screen.

15. An electronic device, characterized in that, include: One or more processors; Memory, used to store one or more programs; When the one or more programs are executed by the one or more processors, the electronic device implements the beautification method as described in any one of claims 1-13.

16. A computer-readable storage medium storing a computer program thereon, characterized in that, When the computer program is executed by the processor, it implements the beautification method as described in any one of claims 1-13.