Method, system, device and medium for always displaying handwriting data in a positive direction

By collecting and processing handwriting data, it automatically determines the writing direction and adjusts the paper direction, which solves the problem of handwriting data not being displayed in the forward direction on electronic devices, realizes adaptive multi-lingual forward display, and improves user experience and product convenience. sex.

CN114691009BActive Publication Date: 2024-10-01HANVON UGEE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210248797.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-14
Publication Date
2024-10-01
Estimated Expiration
2042-03-14

AI Technical Summary

Technical Problem

In the existing technology, when handwriting data is displayed on an electronic device, the user needs to manually rotate it to achieve forward display, and the real-time detection cost of text recognition technology is high and it is not suitable for multi-lingual writing directions, resulting in poor user experience.

Method used

By collecting handwriting data, the writing direction is determined and the paper direction is adjusted according to the preset direction, invalid stroke data is removed, ratio and speed are used to determine the writing direction, and confidence correction is used to ensure that the data is always displayed in the forward direction.

Benefits of technology

It realizes adaptive forward display of various languages ​​and contents, improving the convenience and user experience of writing tablet products without increasing hardware costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114691009B_ABST
    Figure CN114691009B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, system, device and storage medium for always displaying handwriting data in a positive direction. The method determines the writing direction by acquiring the handwriting data; then determines the paper direction according to the writing direction and the preset writing direction; and thus ensures that the handwriting data can always be displayed in a positive direction. The present invention automatically determines the writing direction based on the handwriting data, and can adapt to various contents and languages ​​of handwriting input; at the same time, it can improve the convenience of using the writing board product and increase the added value of the product without increasing the hardware cost. The present invention can be widely used in the fields of information perception technology and human-computer interaction technology.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of information perception technology and human-computer interaction technology, and in particular to a method, system, device and storage medium for always displaying handwriting data in a positive direction. Background Art

[0002] With the development of computer science and technology, human-computer interaction has gradually evolved from keyboard and mouse interaction to natural interaction methods such as pen, voice and vision. Among these interaction methods, pen interaction is the most ideal interaction method in terms of convenience, naturalness and controllability. Based on these advantages of pen interaction, various handwriting input devices have emerged in recent years. They can capture the writing trajectory of users' handwriting more accurately, and the implementation of handwriting input in computers provides a broader development prospect. Completing handwriting input on computers through handwriting input devices is a basic function of pen interaction. Pen interaction technology is an important interaction method in human-computer interaction technology, especially multi-channel interaction technology. By providing interaction methods such as sketching and writing gestures, users can achieve efficient interaction as quickly as possible. Handwriting is an important way for people to interact with each other. With the development of the Internet, handwriting can also be used as an important interaction tool between people and between people and computers. From the development history of computers, traditional desktop computers have gradually been replaced by mobile computers, and are now developing towards tablet computers. This also means a major change in the way people interact with computers. Human-computer interaction technologies based on natural computing methods, including pen-based, visual and voice, will be more widely used.

[0003] The common pen input devices on the market are smart pens or handwriting tablets. For example, handwriting tablets generally use a special pen or fingers to write in a specific area to collect handwriting data; while smart pens calculate handwriting data based on the position movement of the pen and paper measured by the pen. The above devices are collectively referred to as pen input devices. Pen input devices record the trajectory of the pen or finger through various methods. While recording, data processing can be performed, such as text recognition, data conversion, data sharing, real-time collaboration, etc. Pen input is one of the natural ways of human expression, especially for people who do not like to use keyboards or are not used to using input methods, and are not used to writing or drawing on electronic screens. It is very useful because it does not require learning how to use it and is not easily disturbed by information from electronic devices.

[0004] When a user writes on a pen input device, the pen input device has the function of storing the written content as an electronic document. The electronic document will be stored on an electronic device such as a mobile phone and displayed and interacted with by the user on the screen of the electronic device.

[0005] When a user writes, he or she may write on the pen input device in a horizontal direction (turning the tablet sideways), vertical direction, or reverse direction, that is, there are many possibilities for the paper direction. However, electronic documents stored in electronic devices have only one fixed paper direction. In order to display electronic documents in the forward direction, users need to rotate and view them one by one on the electronic device, which is a cumbersome and time-consuming process.

[0006] There is also an existing method that detects the writing direction through text recognition technology to ensure that the handwritten electronic document can always be displayed in the positive direction. However, this method requires a large amount of computation through text recognition, has a high cost for real-time detection, and cannot adaptively detect the writing direction of multiple languages. Summary of the invention

[0007] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention provides a method, system, device and storage medium for always displaying handwriting data in a positive direction.

[0008] The technical solution adopted by the present invention is:

[0009] In one aspect, an embodiment of the present invention includes a method for displaying handwriting data in a positive direction at all times, comprising:

[0010] Collect handwriting data;

[0011] Determining the writing direction according to the handwriting data;

[0012] Determining the paper direction according to the writing direction and the preset writing direction;

[0013] The handwriting data is processed according to the paper direction so that the handwriting data is always displayed in the positive direction.

[0014] Furthermore, after collecting the handwriting data, the method further includes:

[0015] Remove invalid stroke data;

[0016] The handwriting data is cleaned according to the invalid data characteristics.

[0017] Furthermore, the step of determining the writing direction according to the handwriting data includes:

[0018] Get handwriting coordinate data;

[0019] According to the handwriting coordinate data, a first ratio and a writing speed are obtained, wherein the first ratio is a ratio of a proportion of the handwriting in a horizontal direction to a proportion of the handwriting in a vertical direction, and the writing speed includes a first speed and a second speed, wherein the first speed is a moving speed of the handwriting coordinate in a horizontal direction, and the second speed is a moving speed of the handwriting coordinate in a vertical direction;

[0020] The writing direction is determined according to the first ratio and the writing speed.

[0021] Furthermore, the step of determining the writing direction according to the first ratio and the writing speed specifically includes:

[0022] comparing the first ratio with a first threshold;

[0023] If the absolute value of the first ratio is greater than the first threshold, it is determined to be horizontal writing;

[0024] Determine whether the first speed is greater than 0;

[0025] If the first speed is greater than 0, confirming that the horizontal writing direction is the same as the preset horizontal writing direction;

[0026] If the first speed is less than 0, it is confirmed that the horizontal writing direction is opposite to the preset horizontal writing direction.

[0027] Furthermore, the step of determining the writing direction according to the first ratio and the writing speed specifically includes:

[0028] comparing the first ratio with a second threshold;

[0029] If the absolute value of the first ratio is less than the second threshold, it is determined to be vertical writing;

[0030] Determine whether the second speed is greater than 0;

[0031] If the second speed is greater than 0, confirming that the longitudinal writing direction is the same as the preset longitudinal writing direction;

[0032] If the first speed is less than 0, it is confirmed that the longitudinal writing direction is opposite to the preset longitudinal writing direction.

[0033] Furthermore, the method further includes correcting the writing direction by confidence, specifically including:

[0034] Acquire a first parameter group, the first parameter group including writing time, number of writing strokes and writing displacement length;

[0035] Calculating the confidence level according to the first parameter group;

[0036] The writing direction is corrected according to the confidence level.

[0037] Furthermore, the method further includes correcting the writing direction of the entire page by using the entire page confidence, specifically including:

[0038] Obtain a first array, where the first array is a set of the confidences of each writing area of ​​the current page;

[0039] Determine the whole page confidence according to the first array, wherein the whole page confidence is the maximum value of the confidences of the various writing areas;

[0040] The writing direction of the entire page is corrected according to the entire page confidence.

[0041] On the other hand, an embodiment of the present invention further includes a system for always displaying handwriting data in a positive direction, comprising:

[0042] A collection module, used for collecting handwriting data;

[0043] A first determination module, used for determining a writing direction according to the handwriting data;

[0044] A second determination module, used to determine the paper direction according to the writing direction and a preset writing direction;

[0045] The processing module is used to process the handwriting data according to the paper direction so that the handwriting data is always displayed in the positive direction.

[0046] On the other hand, an embodiment of the present invention further includes a device for always displaying handwriting data in a positive direction, comprising:

[0047] at least one processor;

[0048] at least one memory for storing at least one program;

[0049] When the at least one program is executed by the at least one processor, the at least one processor implements the method of always displaying handwriting data in the positive direction.

[0050] On the other hand, the embodiment of the present invention further includes a computer-readable storage medium on which a program executable by a processor is stored. When the program executable by the processor is executed by the processor, it is used to implement the method of always displaying handwriting data in the positive direction.

[0051] The beneficial effects of the present invention are:

[0052] The present invention proposes a method for displaying handwriting data in a positive direction at all times, by obtaining the handwriting data to determine the writing direction; then determining the paper direction according to the writing direction and the preset writing direction; thereby ensuring that the handwriting data can always be displayed in a positive direction. The present invention automatically determines the writing direction based on the handwriting data, and can adapt to various contents and languages ​​of handwriting input, that is, whether the user inputs English, Chinese, Korean, Japanese and other languages, or inputs other contents such as numbers and graphics, the writing direction can be adaptively determined; at the same time, the ease of use of the writing board product can be improved without increasing the hardware cost, and the added value of the product can be increased.

[0053] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0055] Figure 1 A flowchart of the steps of the method for always displaying handwriting data in a positive direction according to an embodiment of the present invention;

[0056] Figure 2 A schematic diagram of the relationship between confidence and writing time according to an embodiment of the present invention;

[0057] Figure 3 A schematic diagram of the relationship between the confidence level and the number of strokes in writing according to an embodiment of the present invention;

[0058] Figure 4 A schematic diagram of the relationship between the confidence level and the writing displacement length according to an embodiment of the present invention;

[0059] Figure 5 A schematic diagram of the structure of a system for always displaying handwriting data in a positive direction according to an embodiment of the present invention;

[0060] Figure 6 This is a schematic diagram of the structure of a device for always displaying handwriting data in a positive direction according to an embodiment of the present invention. DETAILED DESCRIPTION

[0061] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0062] In the description of the present invention, it should be understood that descriptions involving orientations, such as up, down, front, back, left, right, etc., and orientations or positional relationships indicated are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.

[0063] In the description of the present invention, "several" means one or more, "more" means more than two, and "greater than", "less than", "exceed" etc. are understood to exclude the number itself. If there is a description of the first, second, third, etc., it is only used for the purpose of distinguishing the technical features, and cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

[0064] In the description of the present invention, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in the present invention based on the specific content of the technical solution.

[0065] Reference Figure 1 The embodiment of the present invention provides a method for displaying handwriting data in a positive direction all the time, comprising:

[0066] S100. Collecting handwriting data;

[0067] S200. Determine the writing direction according to the handwriting data;

[0068] S300. Determine the paper direction according to the writing direction and the preset writing direction;

[0069] S400. Process the handwriting data according to the paper direction so that the handwriting data is always displayed in the positive direction.

[0070] In this embodiment, the handwriting data generated by the user is continuously collected, mainly collecting handwriting coordinate data. Based on the handwriting data, the user's writing direction can be automatically determined, and then the paper direction is determined according to the writing direction and the preset writing direction. Specifically, for example, if the preset writing direction is from left to right and from top to bottom, if the user's writing direction is determined to be from left to right, the paper direction is determined to be the positive horizontal direction; if the user's writing direction is determined to be from right to left, the paper direction is determined to be the reverse horizontal direction. Similarly, if the user's writing direction is determined to be from top to bottom, the paper direction is determined to be the positive vertical direction, and if the user's writing direction is determined to be from bottom to top, the paper direction is determined to be the reverse vertical direction. After determining the paper direction, the display mode and zoom ratio of the data can be determined according to the display device or storage device. This ensures that the handwriting data can always be displayed in the positive direction.

[0071] In this embodiment, the real-time handwriting data generated by the user can be continuously collected, and the collected and saved handwriting data can also be analyzed in batches. When analyzing the collected and saved handwriting data, the handwriting data is first saved in a streaming manner and then processed in the same way.

[0072] In this embodiment, after the handwriting data is collected, that is, after step S100, the following steps will be performed:

[0073] S101. Remove invalid stroke data;

[0074] S102. Clean the handwriting data according to the invalid data characteristics.

[0075] In this embodiment, considering that different users have different writing habits, and that users may have extra strokes or long intervals between characters during the writing process, after the handwriting data is collected, it is necessary to further clean the collected handwriting data. Specifically, it is necessary to remove invalid stroke data, and according to the characteristics of invalid data, clean the handwriting data with short displacement, large span, too single line, short displacement and long time.

[0076] In this embodiment, step S200, i.e., the step of determining the writing direction according to the handwriting data, includes:

[0077] S201. Obtain handwriting coordinate data;

[0078] S202. According to the handwriting coordinate data, a first ratio and a writing speed are obtained, wherein the first ratio is the ratio of the proportion of the handwriting in the horizontal direction to the proportion of the handwriting in the vertical direction, and the writing speed includes a first speed and a second speed, wherein the first speed is the moving speed of the handwriting coordinate in the horizontal direction, and the second speed is the moving speed of the handwriting coordinate in the vertical direction;

[0079] S203. Determine the writing direction according to the first ratio and the writing speed.

[0080] In this embodiment, the collected handwriting data is handwriting coordinate data, which is recorded as (x1, y1)(x2, y2)…(x n ,y n ), where x represents the horizontal coordinate and y represents the vertical coordinate. The time duration for generating the handwriting coordinate data is recorded as t. Through the handwriting coordinate data, the coordinate ranges of the upper left, upper right, lower left, and lower left can be obtained, and then the writing area can be determined. Specifically, the proportion of the handwriting in the horizontal direction can be obtained, recorded as D x At the same time, the proportion of the handwriting in the vertical direction can be obtained, which is recorded as Dy Therefore, the first ratio R can be obtained, where R = |D x / D y |. At the same time, the corresponding writing speed can be obtained through the writing displacement length and writing time in the writing handwriting coordinate data, including the moving speed V of the writing handwriting coordinate in the horizontal direction. x , and the vertical moving speed V of the writing handwriting coordinates y Then, the first ratio R and the writing speed V can be further calculated. x 、V y Determine the writing direction of the user in the writing area.

[0081] Specifically, in this embodiment, step S203, that is, the step of determining the writing direction according to the first ratio and the writing speed, specifically includes:

[0082] S203-1. Compare the first ratio with the first threshold;

[0083] S203-2. If the absolute value of the first ratio is greater than the first threshold, it is determined to be horizontal writing;

[0084] S203-3. Determine whether the first speed is greater than 0;

[0085] S203-4. If the first speed is greater than 0, confirming that the horizontal writing direction is the same as the preset horizontal writing direction;

[0086] S203-5. If the first speed is less than 0, confirm that the horizontal writing direction is opposite to the preset horizontal writing direction.

[0087] In this embodiment, the first ratio R is first compared with the first threshold R1, and then the writing speed is further determined according to the comparison result to determine the writing direction of the user in the current writing area. Specifically, if the absolute value of the first ratio R of the current writing area is greater than the first threshold R1, that is, |D x / D y |>R1, it is determined that the user's writing direction in the current writing area is horizontal, that is, writing from left to right or from right to left. In order to further determine whether the user's writing direction in the current writing area is from left to right or from right to left, it is necessary to further calculate the horizontal moving speed V of the handwriting coordinates. x Specifically, if V x >0, it is confirmed that the horizontal writing direction is the same as the preset horizontal writing direction. In this embodiment, if the preset horizontal writing direction is from left to right, then if V x >0, indicating that the user is writing from left to right in the current writing area. x<0, it is confirmed that the horizontal writing direction is opposite to the preset horizontal writing direction. Similarly, in this embodiment, if the preset horizontal writing direction is from left to right, then if V x <0, indicating that the user's writing direction in the current writing area is from right to left.

[0088] In this embodiment, the preset writing direction is from left to right and from top to bottom. If it is determined that the writing direction of the user in the current writing area is from left to right, the paper direction is determined to be the positive horizontal direction; if it corresponds to the writing board, it means that the user is writing on the writing board in the positive direction. If it is determined that the writing direction of the user in the current writing area is from right to left, the paper direction is determined to be the reverse horizontal direction. If it corresponds to the writing board, it means that the user is writing on the writing board in the reverse direction. Considering that the default writing habit is generally from left to right and from top to bottom, it is considered that the user turned the writing board left and right during the writing process.

[0089] In this embodiment, in addition to determining whether the user's writing direction is horizontal, it is also possible to determine whether the user's writing direction is vertical. That is, step S203, that is, the step of determining the writing direction according to the first ratio and the writing speed, specifically includes:

[0090] S203-a. Comparing the first ratio with the second threshold;

[0091] S203-b. If the absolute value of the first ratio is less than the second threshold, it is determined to be vertical writing;

[0092] S203-c determines whether the second speed is greater than 0;

[0093] S203-d. If the second speed is greater than 0, confirming that the longitudinal writing direction is the same direction as the preset longitudinal writing direction;

[0094] S203-e. If the first speed is less than 0, confirm that the longitudinal writing direction is opposite to the preset longitudinal writing direction.

[0095] In this embodiment, the first ratio R is compared with the second threshold 1 / R2, and then the writing speed is further determined according to the comparison result to determine the writing direction of the user in the current writing area. Specifically, if the absolute value of the first ratio R of the current writing area is less than the second threshold 1 / R2, that is, |D x / D y |<1 / R2, it is determined that the user's writing direction in the current writing area is vertical, that is, writing from top to bottom or from bottom to top. In order to further determine whether the user's writing direction in the current writing area is from top to bottom or from bottom to top, it is necessary to further calculate the moving speed V of the handwriting coordinates in the vertical direction. y Specifically, if V y>0, it is confirmed that the vertical writing direction is the same as the preset vertical writing direction. In this embodiment, if the preset vertical writing direction is from top to bottom, then if V y >0, indicating that the user is writing from top to bottom in the current writing area. y <0, it is confirmed that the vertical writing direction is opposite to the preset vertical writing direction. Similarly, in this embodiment, if the preset vertical writing direction is from bottom to top, then if V y <0, indicating that the user is writing from bottom to top in the current writing area.

[0096] In this embodiment, the preset writing direction is from left to right and from top to bottom. If it is determined that the writing direction of the user in the current writing area is from top to bottom, the paper direction is determined to be the positive vertical direction; if it corresponds to the writing board, it means that the user is writing on the writing board in the positive direction. If it is determined that the writing direction of the user in the current writing area is from top to bottom, the paper direction is determined to be the reverse vertical direction. If it corresponds to the writing board, it means that the user is writing on the writing board upside down. Considering that the default writing habit is generally from left to right and from top to bottom, it is considered that the user turned the writing board upside down during the writing process.

[0097] In this embodiment, if the x and y coordinates in the collected handwriting data are continuous, the writing area is continuously updated until the x and y coordinates are discontinuous, which corresponds to the user writing a line. In other words, according to the writing direction of the user in the current writing area, the writing direction of the user writing the line can also be further determined.

[0098] In this embodiment, Figure 1 The method shown also includes correcting the writing direction by confidence, specifically including:

[0099] D100. Obtain a first parameter group, the first parameter group including writing time, number of writing strokes and writing displacement length;

[0100] D200. Calculate the confidence level according to the first parameter group;

[0101] D300. Correct the writing direction based on the confidence level.

[0102] In this embodiment, in order to further improve the accuracy of writing direction judgment, the writing direction can be corrected by confidence. Specifically, the writing time, number of writing strokes and writing displacement length of the first writing area are obtained, and the relationship between the confidence and the writing time, number of writing strokes and writing displacement length is observed, so as to determine the confidence of the first writing area. Figure 2-Figure 4 ,in Figure 2 This is a diagram showing the relationship between confidence and writing time. Figure 3 It is a schematic diagram of the relationship between confidence and the number of strokes. Figure 4 The figure is a schematic diagram of the relationship between confidence and writing displacement length. According to this method, the confidence of each writing area can be obtained; then, by discarding the judgment with low confidence and retaining the judgment with high confidence, the writing area can be judged as a whole. For example, when the user writes a line of data, when writing 1 / 3 of the line of data, the first judgment is made, corresponding to the first confidence value; when writing 2 / 3 of the line of data, the second judgment is made, corresponding to the second confidence value; when writing the entire line of data, the third judgment is made, corresponding to the third confidence value; at this time, the judgment with the highest confidence is selected as the final judgment.

[0103] In this embodiment, Figure 1 The method shown also includes correcting the writing direction of the entire page by using the confidence of the entire page, specifically including:

[0104] P100. Get a first array, which is a collection of confidences of each writing area of ​​the current page;

[0105] P200. According to the first array, determine the confidence of the whole page, the confidence of the whole page is the maximum value of the confidence of each writing area;

[0106] P300. According to the confidence of the whole page, correct the writing direction of the whole page.

[0107] In this embodiment, considering that there may be short-term differences in writing behavior during the writing process, it is necessary to comprehensively judge the writing direction of the entire page, and output the judgment result in combination with the confidence of the entire page. The writing direction of the entire page is the judgment of the writing direction corresponding to the maximum confidence value of each writing area. Similarly, for example, if the user writes 5 lines of data on a whole page, there is a corresponding judgment of the writing direction for each line, and at the same time, each line of the writing direction judgment has a corresponding confidence value. Combined with the confidence value corresponding to each line of the 5 lines of data, the final judgment result is output.

[0108] The embodiment of the present invention provides a method for displaying handwriting data in a positive direction all the time, which has the following technical effects:

[0109] The embodiment of the present invention proposes a method for displaying handwriting data in a positive direction at all times, by obtaining the handwriting data to determine the writing direction; then determining the paper direction according to the writing direction and the preset writing direction; thereby ensuring that the handwriting data can always be displayed in a positive direction. The present invention automatically determines the writing direction based on the handwriting data, and can adapt to various contents and languages ​​of handwriting input; at the same time, it can improve the convenience of using the writing board product and increase the added value of the product without increasing the hardware cost.

[0110] Reference Figure 5The embodiment of the present invention also provides a system for displaying handwriting data in a positive direction, comprising:

[0111] The collection module 100 is used to collect handwriting data;

[0112] A first determination module 200, for determining a writing direction according to handwriting data if the absolute value of the first ratio is less than the second threshold value;

[0113] A second determination module 300, for determining a paper direction according to a writing direction and a preset writing direction if the absolute value of the first ratio is less than the second threshold value;

[0114] The processing module 400 is used to process the handwriting data if the absolute value of the first ratio is less than the second threshold according to the paper direction if the absolute value of the first ratio is less than the second threshold, so that the handwriting data if the absolute value of the first ratio is less than the second threshold is always displayed in the positive direction.

[0115] Figure 1 The contents of the method embodiment shown are all applicable to the system embodiment, and the functions specifically implemented by the system embodiment are the same as those in the embodiment of the present invention. Figure 1 The method embodiment shown is the same as that of Figure 1 The beneficial effects achieved by the method embodiments shown are also the same.

[0116] Reference Figure 6 The embodiment of the present invention also provides a device for displaying handwriting data in a positive direction all the time, which specifically includes:

[0117] at least one processor 210;

[0118] At least one memory 220, used to store at least one program;

[0119] When at least one program is executed by at least one processor 210, the at least one processor 210 implements the following Figure 1 The method shown.

[0120] Among them, the memory 220 is a non-transitory computer-readable storage medium that can be used to store non-transitory software programs and non-transitory computer executable programs. The memory 220 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory 220 may optionally include a remote memory remotely arranged relative to the processor 210, and these remote memories may be connected to the processor 210 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0121] It can be understood that Figure 6 The device structure shown in the figure does not constitute a limitation of the device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0122] like Figure 6 In the device shown, the processor 210 can call the program stored in the memory 220 and execute but is not limited to Figure 1 Steps of the illustrated embodiment.

[0123] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the embodiments.

[0124] The embodiment of the present invention further provides a computer-readable storage medium, which stores a program executable by a processor. When the program executable by the processor is executed by the processor, it is used to implement the following Figure 1 The method shown.

[0125] The present application also discloses a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device can read the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes Figure 1 The method shown.

[0126] It is understood that all or some steps and systems in the disclosed method above can be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, and the computer-readable medium can include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those of ordinary skill in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassette, magnetic tape, disk storage or other magnetic storage device, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0127] The embodiments of the present invention are described in detail above with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge scope of ordinary technicians in the technical field without departing from the purpose of the present invention.

Claims

1. A method for displaying handwriting data in a positive direction all the time, characterized in that: include: Collect handwriting data; Determining the writing direction of the user in the current writing area according to the handwriting data; Determining the paper direction according to the writing direction in each writing area and a preset writing direction; Processing the handwriting data according to the paper direction so that the handwriting data is always displayed in the positive direction; The step of determining the writing direction of the user in the current writing area according to the handwriting data includes: Acquire handwriting coordinate data to form a plurality of writing areas; the writing areas are generated by correspondingly updating the handwriting coordinates continuously; According to the handwriting coordinate data in each writing area, a first ratio and a writing speed are obtained, wherein the first ratio is the ratio of the proportion of the handwriting in the current writing area in the horizontal direction to the proportion of the handwriting in the current writing area in the vertical direction, and the writing speed includes a first speed and a second speed, wherein the first speed is the moving speed of the handwriting coordinates in the current writing area in the horizontal direction, and the second speed is the moving speed of the handwriting coordinates in the current writing area in the vertical direction; The writing direction of the user in the current writing area is determined according to the first ratio and the writing speed.

2. A method for displaying handwriting data in a positive direction according to claim 1, characterized in that: After collecting the handwriting data, the method further includes: Remove invalid stroke data; The handwriting data is cleaned according to the invalid data characteristics.

3. A method for displaying handwriting data in a positive direction according to claim 1, characterized in that: The step of determining the writing direction according to the first ratio and the writing speed specifically includes: comparing the first ratio with a first threshold; If the absolute value of the first ratio is greater than the first threshold, it is determined to be horizontal writing; Determine whether the first speed is greater than 0; If the first speed is greater than 0, confirming that the horizontal writing direction is the same as the preset horizontal writing direction; If the first speed is less than 0, it is confirmed that the horizontal writing direction is opposite to the preset horizontal writing direction.

4. A method for displaying handwriting data in a positive direction according to claim 1, characterized in that: The step of determining the writing direction according to the first ratio and the writing speed specifically includes: comparing the first ratio with a second threshold; If the absolute value of the first ratio is less than the second threshold, it is determined to be vertical writing; Determine whether the second speed is greater than 0; If the second speed is greater than 0, confirming that the longitudinal writing direction is the same as the preset longitudinal writing direction; If the second speed is less than 0, it is confirmed that the longitudinal writing direction is opposite to the preset longitudinal writing direction.

5. A method for displaying handwriting data in a positive direction all the time according to claim 1, characterized in that: The method further includes correcting the writing direction according to the confidence level, specifically including: Acquire a first parameter group, the first parameter group including writing time, number of writing strokes and writing displacement length; Calculating the confidence level according to the first parameter group; The writing direction is corrected according to the confidence level.

6. A method for displaying handwriting data in a positive direction according to claim 5, characterized in that: The method further includes correcting the writing direction of the entire page by using the confidence of the entire page, specifically including: Obtain a first array, where the first array is a set of the confidences of each writing area of ​​the current page; Determine the whole page confidence according to the first array, wherein the whole page confidence is the maximum value of the confidences of the various writing areas; The writing direction of the entire page is corrected according to the entire page confidence.

7. A system for displaying handwriting data in a positive direction at all times, characterized in that: include: A collection module, used for collecting handwriting data; The first determination module is used to determine the writing direction of the user in the current writing area according to the handwriting data; wherein the first determination module determines the writing direction of the user in the current writing area according to the handwriting data through the following steps: Obtain handwriting coordinate data to form multiple writing areas; According to the handwriting coordinate data in each writing area, a first ratio and a writing speed are obtained, wherein the first ratio is the ratio of the proportion of the handwriting in the current writing area in the horizontal direction to the proportion of the handwriting in the current writing area in the vertical direction, and the writing speed includes a first speed and a second speed, wherein the first speed is the moving speed of the handwriting coordinates in the current writing area in the horizontal direction, and the second speed is the moving speed of the handwriting coordinates in the current writing area in the vertical direction; determining a writing direction of the user in a current writing area according to the first ratio and the writing speed; A second determination module, configured to determine a paper direction according to the writing direction in each writing area and a preset writing direction; The processing module is used to process the handwriting data according to the paper direction so that the handwriting data is always displayed in the positive direction.

8. A device for displaying handwriting data in a positive direction at all times, characterized in that: include: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that A processor-executable program is stored thereon, and when the processor-executable program is executed by the processor, it is used to implement the method according to any one of claims 1 to 6.