A handwriting data processing method, system, computer equipment and storage medium

By receiving, preprocessing and displaying handwriting data on the system motherboard, the handwriting data processing steps are shortened, and the problem of delayed handwriting display in the prior art is solved, and faster handwriting display is achieved, reducing the user's sense of delay.

CN112783346BActive Publication Date: 2024-11-29SHENZHEN HAOLI INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110069060.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-19
Publication Date
2024-11-29
Estimated Expiration
2041-01-19

AI Technical Summary

Technical Problem

In the prior art, the handwriting processing steps of writing software have more steps to lead to a greater sense of delay in the display of handwriting on the display screen, and the user will feel a significant delay when writing.

Method used

The handwriting data is received through the touchpad and sent to the reading module of the system motherboard, preprocessing is performed to obtain coordinate data, write to the frame cache, generate a handwriting screen and display it on the display screen, shortening the processing steps to reduce the sense of delay.

Benefits of technology

The process from handwriting operation to display is achieved faster, reducing the sense of delay during handwriting, and shortening the total processing time to about 40ms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112783346B_ABST
    Figure CN112783346B_ABST
Patent Text Reader

Abstract

The present invention discloses a handwriting data processing method, system, computer equipment and storage medium. The method comprises a touch panel receiving handwriting data written by a touch pen and sending the handwriting data to a reading module of a system mainboard; the reading module pre-processes the handwriting data and obtains coordinate data, and writes the coordinate data into a frame buffer of the system mainboard; a handwriting picture is generated according to the coordinate data and displayed on a display screen, and the handwriting picture is sent to a storage area synchronously through an application program. The present invention shortens the steps of handwriting data processing, so that the process from operation to display of handwritten handwriting is faster, and has the advantage of reducing the sense of delay during handwriting.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing, and in particular to a handwriting data processing method, system, computer equipment and storage medium. Background Art

[0002] At present, the process of handwriting APP from handwriting operation to display is as follows: physical interruption (triggered by handwriting), system input, connector (ViewRoot), application, frame buffer driver, and display. There are many processing steps in this process, which takes more than 80ms. The whole response process is slow. When users are handwriting, they will feel that there is a significant delay in the display of notes. Summary of the invention

[0003] The purpose of the present invention is to provide a handwriting data processing method, system, computer equipment and storage medium, aiming to solve the problem that the existing technology has many steps in processing the handwriting written on the touch panel, resulting in a large sense of delay in the handwriting display on the display screen.

[0004] In a first aspect, an embodiment of the present invention provides a method for processing handwriting data, which comprises:

[0005] The touch panel receives the handwriting data written by the stylus pen and sends it to the reading module of the system mainboard;

[0006] The reading module pre-processes the handwriting data to obtain coordinate data, and writes the coordinate data into the frame buffer of the system mainboard;

[0007] A handwriting picture is generated according to the coordinate data and displayed on a display screen, and the handwriting picture is sent to a storage area synchronously through an application program.

[0008] In a second aspect, an embodiment of the present invention provides a handwriting data processing system, which includes:

[0009] The touch panel is used to receive handwriting data written by the user and send it to the reading module of the system mainboard;

[0010] The reading module is used to read the handwriting data and obtain coordinate data, and write the coordinate data into the frame buffer of the system mainboard;

[0011] A handwriting picture is generated according to the coordinate data and displayed on a display screen, and the handwriting picture is sent to a storage area synchronously through an application program.

[0012] In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the handwriting data processing method described in the first aspect when executing the computer program.

[0013] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the handwriting data processing method described in the first aspect above.

[0014] The embodiment of the present invention discloses a handwriting data processing method, system, computer equipment and storage medium. The method includes a touch panel receiving handwriting data written by a stylus and sending it to a reading module of a system mainboard; the reading module pre-processes the handwriting data and obtains coordinate data, and writes the coordinate data into the frame buffer of the system mainboard; generates a handwriting picture according to the coordinate data and displays it on a display screen, and sends the handwriting picture to a storage area through synchronization with an application. The embodiment of the present invention shortens the steps of handwriting data processing, making the process from operation to display of handwritten handwriting faster, and has the advantage of reducing the sense of delay during handwriting. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.

[0016] Figure 1 A flowchart of a handwriting data processing method provided by an embodiment of the present invention;

[0017] Figure 2 A schematic diagram of a sub-flow chart of a handwriting data processing method provided by an embodiment of the present invention;

[0018] Figure 3 A schematic diagram of another sub-flow of the handwriting data processing method provided by an embodiment of the present invention;

[0019] Figure 4 A schematic block diagram of a handwriting data processing system provided by an embodiment of the present invention;

[0020] Figure 5 A schematic block diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0021] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0022] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0023] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0024] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0025] See also Figure 1 , Figure 1 A flowchart of a handwriting data processing method provided by an embodiment of the present invention;

[0026] like Figure 1 As shown, the method includes steps S101 to S103.

[0027] S101, the touch panel receives handwriting data written by the touch pen and sends it to a reading module of the system mainboard.

[0028] In this embodiment, the handwriting screen of the touch panel is an electromagnetic screen. The user writes on the electromagnetic screen with a stylus and generates handwriting data. The physical interruption of the electromagnetic screen is up to 200 times per second, and effective reporting is 100 to 125 times. In this step, the time taken from receiving the handwriting data and sending it to the reading module is 8 to 10 ms.

[0029] In one embodiment, if Figure 2 As shown, the step S101 includes:

[0030] S201, the touch panel receives each writing track of the stylus on the screen and calculates a plurality of handwriting coordinate points of the writing track and a generation time of each handwriting coordinate point, and obtains handwriting data corresponding to the writing track according to the plurality of handwriting coordinate points and the generation time of each handwriting coordinate point;

[0031] S202: The touch panel sends the handwriting data to a reading module of the system mainboard.

[0032] In this embodiment, during the user's handwriting process, the first handwriting coordinate point begins to be generated at the moment the stylus touches the touchpad, and during the continuous handwriting, multiple handwriting coordinate points are continuously generated along the handwriting trajectory until the last handwriting coordinate point is generated after the stylus leaves the touchpad. This process is a complete writing trajectory; while generating the handwriting coordinate points, the generation time of each handwriting coordinate point is recorded, and the handwriting data of the corresponding writing trajectory is obtained based on the handwriting coordinate points and the generation time of each handwriting coordinate point.

[0033] The handwriting data is sent to the reading module of the system mainboard via the touch panel. The system mainboard may be an Android system mainboard, and the reading module is an Android system component.

[0034] S102, the reading module pre-processes the handwriting data to obtain coordinate data, and writes the coordinate data into the frame buffer of the system mainboard.

[0035] Specifically, step S102 includes:

[0036] The reading module reads the received handwriting data and obtains the corresponding handwriting coordinate points, and filters the handwriting coordinate points to obtain multiple key coordinate points and the generation time of each key coordinate point, and obtains the coordinate data of the handwriting data based on the multiple key coordinate points and the generation time of each key coordinate point, and then writes the coordinate data into the frame buffer of the system motherboard.

[0037] In this embodiment, after the reading module receives and reads the handwriting data, it obtains all the handwriting coordinate points of the handwriting data. In order to improve the response time of handwriting processing, the handwriting coordinate points are filtered and key coordinate points are obtained. The processing time is reduced by reducing the number of the handwriting coordinate points. Specifically, the handwriting coordinate points can be sorted according to the generation time, and the number of the remaining handwriting coordinate points is calculated and compared with the preset number. If the number of the handwriting coordinate points is greater than the preset number, half of the handwriting coordinate points are selected by interval selection and eliminated, and then the number of the remaining handwriting coordinate points is calculated. If the remaining handwriting coordinate points are If the number of coordinate points is greater than the preset number, continue to eliminate half of the handwriting coordinate points in an interval selection manner until the number of the remaining handwriting coordinate points is less than the preset number, and use the last remaining handwriting coordinate points as key coordinate points; then obtain the coordinate data of the handwriting data based on the key coordinate points and the generation time of each key coordinate point. At this time, the data volume of the coordinate data is greatly reduced, which effectively improves the transmission speed; finally, write the coordinate data into the frame cache of the system motherboard; in this step, it takes 8 to 10 ms to process the handwriting data from the reading module and write it into the frame cache of the system motherboard.

[0038] It should be noted that this embodiment controls the number of handwriting coordinate points of each handwriting data by setting the preset number; specifically, when the handwriting trajectory is long and the generated handwriting coordinate points are large, the handwriting features will not be lost by eliminating the number of handwriting coordinate points for many times; when the handwriting trajectory is short and the generated handwriting coordinate points are small, the number of eliminations is relatively small, which also avoids the loss of handwriting features.

[0039] S103, generating a handwriting picture according to the coordinate data and displaying it on a display screen, and sending the handwriting picture to a storage area synchronously through an application program.

[0040] Specifically, Figure 3 As shown, the step S103 includes:

[0041] S301, reading the coordinate data from the frame buffer, obtaining the key coordinate points and the generation time of each key coordinate point from the coordinate data, connecting the key coordinate points in the order of generation time to form a handwriting picture corresponding to the coordinate data, and displaying it on a display screen;

[0042] S302, sending the handwriting picture to the storage area through application synchronization.

[0043] In this embodiment, the frame buffer is a virtual buffer created in the Linux system, which is a direct image of the picture displayed on the screen. Each storage unit of the frame buffer corresponds to a key coordinate point pixel on the screen. After connecting each of the key coordinate points in the order of generation time, a handwriting picture corresponding to the coordinate data can be formed in the frame buffer and displayed on the display screen.

[0044] After the handwriting picture is displayed on the display screen, it is sent by the application program to a storage area for storage.

[0045] In one embodiment, the displaying on the display screen includes:

[0046] The handwriting picture is sent to the display screen through a bus and displayed on the screen of the display screen.

[0047] In this embodiment, the display screen is provided with an interface connected to the frame buffer. The display screen is connected to the frame buffer via a bus, so that the handwriting image can be sent to the display screen via the bus, and is controlled by the Linux system and displayed on the screen of the display screen.

[0048] In one embodiment, the step of sending the handwriting picture to the display screen via a bus and displaying it on the screen of the display screen comprises:

[0049] The handwriting picture is displayed on the display screen in a vertical synchronization manner.

[0050] In this embodiment, the handwriting image is scanned and a vertical synchronization signal is generated by the vertical synchronization method, and the vertical synchronization signal is sent to the image processing module, so that the image processing module is restricted by the vertical synchronization signal when processing the handwriting image. This can prevent the handwriting image from being torn during display, thereby better displaying the handwriting image. The process of reading from the frame buffer and displaying on the display screen in this step takes about 12ms.

[0051] In one embodiment, the reading module is in communication with the frame buffer, and the frame buffer is created through an Android surface window.

[0052] In this embodiment, the reading module and the frame buffer are in communication with each other so that the handwriting data can be stably transmitted; the frame buffer can be created and managed through the Android surface window, so that the frame buffer can realize stable storage of the handwriting data.

[0053] The present invention also provides a handwriting data processing system, which is used to execute any embodiment of the handwriting data processing method described above. Figure 4 , Figure 4 It is a schematic block diagram of a handwriting data processing system provided by an embodiment of the present invention.

[0054] like Figure 4 As shown, the handwriting data processing system 400 includes: a touch panel 401, a system main board 402 and a display screen 403, wherein the system main board 402 includes a reading module 4021, a frame buffer 4022, an application 4023 and a storage area 4024;

[0055] The touch panel 401 is used to receive handwriting data written by the user and send it to the reading module of the system mainboard;

[0056] The reading module 4021 is used to read the handwriting data and obtain coordinate data, and write the coordinate data into the frame buffer 4022 of the system mainboard;

[0057] A handwriting picture is generated according to the coordinate data and displayed on the display screen, and the handwriting picture is synchronously sent to the storage area 4024 via the application 4023.

[0058] The system shortens the steps of handwriting data processing, making the process from operation to display of handwriting faster. The total processing time is only about 40ms, which has the advantage of reducing the sense of delay when handwriting.

[0059] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0060] The handwriting data processing system can be implemented in the form of a computer program. Figure 5 Runs on the computer device shown.

[0061] See also Figure 5 , Figure 5 5 is a schematic block diagram of a computer device provided by an embodiment of the present invention. The computer device 500 is a server, which can be an independent server or a server cluster composed of multiple servers.

[0062] See also Figure 5 The computer device 500 includes a processor 502 , a memory and a network interface 505 connected via a system bus 501 , wherein the memory may include a non-volatile storage medium 503 and an internal memory 504 .

[0063] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, the processor 502 can execute the handwriting data processing method.

[0064] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500 .

[0065] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute the handwriting data processing method.

[0066] The network interface 505 is used for network communication, such as providing data information transmission, etc. Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device 500 to which the solution of the present invention is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0067] Those skilled in the art will understand that Figure 5 The embodiments of the computer device shown in the figure do not constitute a limitation on the specific composition of the computer device. In other embodiments, the computer device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. For example, in some embodiments, the computer device may only include a memory and a processor. In such embodiments, the structure and function of the memory and the processor are the same as those of the embodiment of the present invention. Figure 5 The embodiments shown are consistent and will not be described again here.

[0068] It should be understood that in the embodiment of the present invention, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0069] In another embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium may be a non-volatile computer-readable storage medium. The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the handwriting data processing method of the embodiment of the present invention is implemented.

[0070] The storage medium is a physical, non-transient storage medium, for example, it can be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk, etc., which can store program codes.

[0071] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described equipment, devices and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0072] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A handwriting data processing method, characterized in that: include: The touch panel receives the handwriting data written by the stylus pen and sends it to the reading module of the system mainboard; The reading module pre-processes the handwriting data to obtain coordinate data, and writes the coordinate data into the frame buffer of the system mainboard; Generate a handwriting picture according to the coordinate data and display it on a display screen, and send the handwriting picture to a storage area synchronously through an application program; The touch panel receives the handwriting data written by the stylus pen and sends it to the reading module of the system mainboard, including: the touch panel receives each writing track of the stylus pen on the screen and calculates a plurality of handwriting coordinate points of the writing track and the generation time of each handwriting coordinate point, and obtains the handwriting data corresponding to the writing track according to the plurality of handwriting coordinate points and the generation time of each handwriting coordinate point; the touch panel sends the handwriting data to the reading module of the system mainboard; Wherein, the reading module pre-processes the handwriting data and obtains coordinate data, and writes the coordinate data into the frame buffer of the system motherboard, including: the reading module reads the received handwriting data and obtains the corresponding handwriting coordinate points, and filters the handwriting coordinate points to obtain multiple key coordinate points and the generation time of each key coordinate point, sorts the handwriting coordinate points according to the generation time, and calculates the number of the remaining handwriting coordinate points, and compares them with the preset number. If the number of the handwriting coordinate points is greater than the preset number, half of the handwriting coordinate points are selected and eliminated in an interval selection manner, and then the number of the remaining handwriting coordinate points is calculated. If the number of the remaining handwriting coordinate points is greater than the preset number, half of the handwriting coordinate points are continuously eliminated in an interval selection manner until the number of the remaining handwriting coordinate points is less than the preset number, and the last remaining handwriting coordinate points are used as key coordinate points; and the coordinate data of the handwriting data is obtained according to the multiple key coordinate points and the generation time of each key coordinate point, and then the coordinate data is written into the frame buffer of the system motherboard.

2. The handwriting data processing method according to claim 1, characterized in that: Generating a handwriting picture according to the coordinate data and displaying it on a display screen, and sending the handwriting picture to a storage area synchronously through an application program, including: Reading the coordinate data from the frame buffer, acquiring the key coordinate points and the generation time of each key coordinate point from the coordinate data, connecting the key coordinate points in the order of generation time to form a handwriting picture corresponding to the coordinate data, and displaying it on a display screen; The handwriting picture is sent to the storage area through application synchronization.

3. The handwriting data processing method according to claim 2, characterized in that: The displaying on the display screen includes: The handwriting picture is sent to the display screen through a bus and displayed on the screen of the display screen.

4. The handwriting data processing method according to claim 3, characterized in that: The step of sending the handwriting picture to the display screen via a bus and displaying it on the screen of the display screen comprises: The handwriting picture is displayed on the display screen in a vertical synchronization manner.

5. The handwriting data processing method according to claim 1, characterized in that: The reading module is in communication with the frame buffer, and the frame buffer is created through an Android surface window.

6. A handwriting data processing system, characterized in that: It includes: a touch panel, a system main board and a display screen, wherein the system main board includes a reading module, a frame buffer, an application program and a storage area; The touch panel is used to receive handwriting data written by the user and send it to the reading module of the system mainboard; The reading module is used to read the handwriting data and obtain coordinate data, and write the coordinate data into the frame buffer of the system mainboard; Generate a handwriting picture according to the coordinate data and display it on a display screen, and send the handwriting picture to a storage area synchronously through an application program; The touch panel is used to receive handwriting data written by the user and send it to the reading module of the system mainboard, including: the touch panel receives each writing track of the stylus on the screen and calculates a plurality of handwriting coordinate points of the writing track and the generation time of each handwriting coordinate point, and obtains the handwriting data corresponding to the writing track according to the plurality of handwriting coordinate points and the generation time of each handwriting coordinate point; the touch panel sends the handwriting data to the reading module of the system mainboard; Wherein, the reading module is used to read the handwriting data and obtain coordinate data, and write the coordinate data into the frame buffer of the system motherboard, including: the reading module reads the received handwriting data and obtains the corresponding handwriting coordinate points, and filters the handwriting coordinate points to obtain multiple key coordinate points and the generation time of each key coordinate point, sorts the handwriting coordinate points according to the generation time, and calculates the number of the remaining handwriting coordinate points, and compares them with the preset number. If the number of the handwriting coordinate points is greater than the preset number, half of the handwriting coordinate points are selected and eliminated in an interval selection manner, and then the number of the remaining handwriting coordinate points is calculated. If the number of the remaining handwriting coordinate points is greater than the preset number, half of the handwriting coordinate points are further eliminated in an interval selection manner until the number of the remaining handwriting coordinate points is less than the preset number, and the last remaining handwriting coordinate points are used as key coordinate points; and the coordinate data of the handwriting data is obtained according to the multiple key coordinate points and the generation time of each key coordinate point, and then the coordinate data is written into the frame buffer of the system motherboard.

7. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for processing handwriting data as described in any one of claims 1 to 5 is implemented.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, enables the processor to perform the method for processing handwriting data as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Method and device for processing handwriting data

    CN105868590A

  • Handwriting display method, device and apparatus and computer storage medium

    CN111651079A