Display device and method for displaying graphs therewith
The display device automatically converts user-drawn data into graphical representations, addressing inefficiencies in traditional graph creation methods and enhancing meeting interactions by providing accurate and interactive data presentation.
Patent Information
- Application Number
- JP2024501580
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-07-20
- Filing Date
- 2021-12-28
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-12-28
AI Technical Summary
Traditional methods of creating graphs on electronic whiteboards are inefficient and difficult to accurately represent data changes, leading to poor interactive experiences in corporate meetings.
A display device equipped with a control circuit and processor that recognizes user-drawn data, automatically determines the graph type, and displays the corresponding graph, enhancing interaction by converting hand-drawn data into graphical representations.
Improves the efficiency and interactivity of meetings by accurately presenting data changes through automated graph drawing, allowing for seamless integration of user input into graphical outputs.
Smart Images

Figure 2024530576000001_ABST
Abstract
Description
[Technical field]
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS This application claims priority based on a Chinese patent application filed with the China Patent Office on July 20, 2021, bearing application number 202110819109.8 and entitled "Electronic whiteboard and method for displaying graphs thereon," the entire disclosure of which is incorporated herein by reference.
[0002] The present invention relates to the field of man-machine interaction technology, and more particularly to a display device and a method for displaying graphs using the same. [Background technology]
[0003] Meetings are one of the most common forms of work, but with the development of the times and the progress of science and technology, the traditional meeting model is no longer suitable for the needs of modern business, and the importance of meeting efficiency and interactive experience in corporate meetings is gradually emerging. Therefore, smart meetings with various functions such as interactive smart whiteboards have been proposed as office products that integrate various devices such as electronic whiteboards, computers, and remote conference terminals.
[0004] With the advancement of high-precision positioning technologies such as infrared, electromagnetic and capacitive touch, electronic whiteboards have become capable of touch writing. However, writing on an electronic whiteboard requires that the data set on the electronic whiteboard be presented in the form of a graph. However, the current method of hand-drawn graphs is not only inefficient, but also makes it difficult to accurately present the change rules of the data set, which introduces unnecessary variation into subsequent analysis. The other method involves creating graphs on a computer and then projecting them onto the electronic whiteboard, which is cumbersome to operate and unsuitable for meeting interaction, resulting in a poor interactive meeting experience. Summary of the Invention [Problem to be solved by the invention]
[0005] The present invention provides a display device and a graph display method thereof, which recognizes table data written by a user, graphs the table data and displays it on a display device, provides an automatic graph drawing method, and accurately presents the change rules of a data set to improve the interactive experience of smart meetings. [Means for solving the problem]
[0006] In a first aspect, a display device provided by an embodiment of the present invention includes a display screen and a control circuit, the display screen is configured to display content; The control circuit includes a processor and a memory, the memory configured to store a program executable by the processor, and the processor configured to read the program in the memory and perform the following steps: Recognizing handwriting trajectory information in a display area of the display screen, and acquiring a data recognition result; In response to a user's command to draw a graph, determine a graph type corresponding to the command; In response to a graph drawing command from a user, a graph of a graph type corresponding to the graph drawing command is drawn based on a data recognition result, and the drawn graph is displayed in the display area.
[0007] In a second aspect, a method for displaying a graph provided by an embodiment of the present invention includes: Recognizing handwriting trajectory information in a display area of the display screen and acquiring a data recognition result; in response to a user's command to draw a graph, determining a graph type corresponding to said command; In response to a user's graph drawing command, the method further comprises the step of drawing a graph of a graph type corresponding to the graph drawing command based on the data recognition result, and displaying the drawn graph in the display area.
[0008] In a third aspect, the present invention further provides a display device for a graph, comprising: A recognition unit configured to recognize writing trajectory information of a display area of the display screen and obtain a data recognition result; a determining unit configured to, in response to a user's graph drawing command, determine a graph type corresponding to the graph drawing command; and a drawing unit configured to, in response to a user's graph drawing command, draw a graph of a graph type corresponding to the graph drawing command based on the data recognition result, and display the drawn graph in the display area.
[0009] In a fourth aspect, the present invention further provides a text recognition model comprising a plurality of RNN network layers, at least two outputs of which are coupled to inputs of any of the RNN network layers except for the first two RNN network layers; The at least two outputs include outputs from any two RNN network layers prior to any of the RNN network layers.
[0010] In a fifth aspect, an automatic grid projection method further provided by an embodiment of the present invention includes: acquiring handwriting trajectory information of a display area of a display screen; determining each row separator line and each column separator line based on a first projection histogram on a first coordinate axis of the handwriting trajectory information and a second projection histogram on a second coordinate axis of the handwriting trajectory information; determining each cell based on each row separator line and each column separator line.
[0011] In a sixth aspect, an electronic device is further provided by an embodiment of the present invention, comprising a processor and a memory, the memory configured to store a program executable by the processor, and the processor configured to read the program in the memory and perform steps of the method according to the first, fourth or fifth aspect above.
[0012] In a seventh aspect, an embodiment of the present invention further provides a computer storage medium storing a computer program, the program being configured to, when executed by a processor, perform the steps of the method according to the first, fourth or fifth aspect above.
[0013] These and other aspects of the present invention will become more apparent in the description of the embodiments that follow. [Brief description of the drawings]
[0014] In order to more clearly describe the technical aspects of the embodiments of the present invention, the following briefly describes the drawings that need to be used in the description of the embodiments. The drawings in the following description are only some embodiments of the present invention, and it is obvious that those skilled in the art can obtain other drawings without creative efforts. [Figure 1] 1 is a block diagram of a display device provided according to an embodiment of the present invention; [Figure 2A] FIG. 2 is a diagram showing the display area of a first type of electronic whiteboard provided by an embodiment of the invention. [Figure 2B] FIG. 2 is a diagram showing the display area of a second type of electronic whiteboard provided by an embodiment of the invention. [Figure 2C] FIG. 2 is a diagram showing the display area of a third type of electronic whiteboard provided by an embodiment of the invention. [Figure 2D] FIG. 2 is a diagram showing the display area of a fourth type of electronic whiteboard provided by an embodiment of the invention. [Diagram 3] FIG. 2 is a schematic diagram of writing trajectory recognition provided by an embodiment of the invention; [Figure 4] FIG. 2 is a schematic diagram for displaying a line graph provided by an embodiment of the invention. [Diagram 5] FIG. 2 is a schematic diagram for displaying a histogram provided by an embodiment of the invention. [Figure 6] FIG. 2 is a schematic diagram for displaying a pie chart display provided by an embodiment of the invention. [Figure 7A] FIG. 2 is a schematic diagram for displaying a first type of writing area and a graph area provided by an embodiment of the invention. [Figure 7B] FIG. 2 is a schematic diagram for displaying a second type of writing area and graph area provided by an embodiment of the invention. [Figure 7C] FIG. 11 is a schematic diagram for displaying a third type of writing area and graph area provided by an embodiment of the invention. [Figure 7D] FIG. 11 is a schematic diagram for displaying a fourth type of writing area and graph area provided by an embodiment of the invention. [Figure 7E] FIG. 11 is a schematic diagram for displaying a fifth type of writing area and graph area provided by an embodiment of the invention. [Figure 8A] FIG. 2 is a diagram showing a comparative example of a first type of handwritten content modification provided by an embodiment of the invention. [Figure 8B] FIG. 13 is a diagram showing a comparative example of a second type of writing content modification provided by an embodiment of the invention. [Figure 9A] FIG. 2 is a schematic diagram of a line graph comparison display provided by an embodiment of the invention. [Figure 9B] FIG. 2 is a schematic diagram of a histogram comparison display provided by an embodiment of the invention. [Figure 9C] FIG. 2 is a schematic diagram of a pie chart comparison display provided by an embodiment of the invention. [Figure 10] 4 is an implementation flowchart of a graph drawing method provided by an embodiment of the invention. [Figure 11] 1 is an implementation flowchart for plotting a line graph provided by an embodiment of the invention. [Figure 12] 1 is an implementation flowchart for plotting a histogram provided by an embodiment of the invention. [Figure 13] 1 is an implementation flowchart for drawing a pie chart provided by an embodiment of the invention. [Figure 14]1 is a flowchart illustrating a method for displaying a graph in a writing scene with a table line provided by an embodiment of the invention. [Figure 15A] 1 is a schematic diagram of a guide template displaying a bar graph provided by an embodiment of the invention. [Figure 15B] FIG. 13 illustrates an editing interface for displaying a bar graph provided by an embodiment of the invention. [Figure 15C] FIG. 1 illustrates a scribing interface displaying a bar graph provided by an embodiment of the present invention. [Figure 15D] FIG. 1 illustrates a full screen interface for displaying a bar graph provided by an embodiment of the present invention. [Figure 15E] FIG. 1 illustrates a full screen interface for displaying a bar graph provided by an embodiment of the invention. [Figure 16A] FIG. 1 illustrates a guide template displaying a radar map provided by an embodiment of the invention. [Figure 16B] FIG. 1 illustrates an editing interface for displaying a radar map provided by an embodiment of the invention. [Figure 16C] FIG. 1 illustrates a scribing interface for displaying a radar map provided by an embodiment of the invention. [Figure 16D] FIG. 1 illustrates a scribing interface for displaying a radar map provided by an embodiment of the invention. [Figure 16E] FIG. 1 illustrates a full screen interface for displaying a radar map provided by an embodiment of the invention. [Figure 17A] FIG. 13 illustrates a guide template displaying a pie chart provided by an embodiment of the invention. [Figure 17B] FIG. 13 illustrates an editing interface for displaying a pie chart provided by an embodiment of the invention. [Figure 17C] FIG. 1 illustrates a scribing interface displaying a pie chart provided by an embodiment of the invention. [Figure 17D]FIG. 13 illustrates an update interface for displaying a pie chart provided by an embodiment of the invention. [Figure 17E] FIG. 1 illustrates a full screen interface for displaying a pie chart provided by an embodiment of the present invention. [Figure 18A] FIG. 13 illustrates a guide template for display line graphs provided by an embodiment of the present invention. [Figure 18B] FIG. 13 illustrates an editing interface for a display line graph provided by an embodiment of the present invention. [Figure 18C] FIG. 2 illustrates a writing interface for displaying line graphs provided by an embodiment of the present invention. [Figure 18D] FIG. 1 illustrates a full-screen interface for displaying line graphs provided by an embodiment of the present invention. [Figure 19] 1 is a flowchart illustrating an implementation of a method for displaying a graph in a writing scene with a title prompt provided by an embodiment of the present invention. [Figure 20] FIG. 1 is a writing schematic diagram of a line graph in a writing scene displaying a title prompt provided by an embodiment of the present invention. [Figure 21] FIG. 2 is a schematic diagram of a matrix partitioning policy provided by an embodiment of the present invention. [Figure 21A] 1 is a projection histogram of the X-axis provided by an embodiment of the present invention. [Figure 21B] 11 is a projected histogram of the X-axis after shrink mapping provided by an embodiment of the present invention. [Figure 21C] 1 is a Y-axis projection histogram provided by an embodiment of the present invention. [Figure 21D] 11 is a projected histogram of the Y-axis after shrink mapping provided by an embodiment of the present invention. [Figure 21E] 1 is a Y-axis projection histogram provided by an embodiment of the present invention. [Figure 21F] 11 is a projected histogram of the Y-axis after shrink mapping provided by an embodiment of the present invention. [Figure 21G] FIG. 2 is a matrix division schematic diagram provided by an embodiment of the present invention; [Fig. 21H] FIG. 2 is a matrix division schematic diagram provided by an embodiment of the present invention; [Figure 22] 1 is a flowchart illustrating a first type of matrix partitioning policy implementation provided by an embodiment of the present invention; [Diagram 23] 1 is a flowchart illustrating a second type of matrix partitioning policy implementation provided by an embodiment of the present invention; [Figure 24] FIG. 2 is a schematic diagram of a text recognition model provided by an embodiment of the present invention. [Diagram 25] 1 is an implementation flowchart of a graph display method provided by an embodiment of the present invention. [Figure 26] 1 is a schematic diagram of a graph display device provided by an embodiment of the present invention; [Figure 27] 1 is an electronic device provided according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0015] In order to make the objectives, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be described clearly and completely with reference to the drawings of the embodiments of the present invention. It is clear that the described embodiments are only a part of the present invention, and are not all of the embodiments. In addition, the embodiments of the present invention and the features of the embodiments may be combined without conflict. Based on the described embodiments of the present invention, all other embodiments obtained by those skilled in the art within the scope of not requiring creative labor belong to the protection scope of the present invention.
[0016] The term "and / or" in the embodiments of the present invention describes a related relationship of related objects, for example, "and / or" can represent three cases: A exists alone, A and B both exist, and B exists alone. The character " / " generally indicates that the related objects before and after it are in an "or" relationship.
[0017] The application scenarios described in the embodiments of the present invention are provided to more clearly explain the technical solutions of the embodiments of the present invention, and are not limited to the technical solutions provided by the present invention. Those skilled in the art will understand that as new application scenarios emerge, the aspects provided by the embodiments of the present disclosure can be similarly applied to similar technical problems. Here, in the description of the present invention, unless otherwise specified, "plurality" means two or more.
[0018] Smart conferences are office products that integrate various equipment such as electronic whiteboards, computers, and remote conference terminals, and are equipped with various functions such as interactive smart whiteboards. With the rise of smart conferences, the importance of meeting efficiency and interactive experience in corporate meetings has become apparent. How to improve the efficiency and interactive experience of smart conferences has also become a matter of concern. With the advancement of high-precision positioning technologies such as infrared, electromagnetic and capacitive touch, electronic whiteboards are now capable of touch writing. However, writing using an electronic whiteboard often requires the data set on the electronic whiteboard to be presented in graph form, but currently hand-drawn graphs are required, which is not only inefficient but also difficult to accurately present the change rules of the data set in hand-drawn graphs, which introduces unnecessary variation into later analysis. On the other hand, the method of projecting a graph on an electronic whiteboard after drawing it using a computer is cumbersome to operate and is not suitable for interactive use in meetings.
[0019] The present embodiment provides a display device and a graph display method thereof, which can automatically recognize trajectory information written by a user, convert the contents written by the user into a graph and display it on an electronic whiteboard. The efficiency of meetings can be improved by automatically generating and displaying a graph based on the contents written by the user, and the interactive experience of users can be improved.
[0020] In some embodiments, the display device in this embodiment includes, but is not limited to, an electronic whiteboard. The electronic whiteboard includes a touch component. The touch component is configured to capture handwriting trajectory information. Optionally, the electronic whiteboard further includes a component such as a camera or a radar for capturing handwriting trajectory information.
[0021] In this embodiment, the electronic whiteboard does not refer to a conventional electronic whiteboard written on with a marker pen or chalk, but refers to a large-sized (generally 50 inches or more) smart interactive display device with a touch handwriting function. This smart interactive display device is equipped with a writing program such as an electronic whiteboard on which a user can write with a finger, an active pen, a passive pen, or the like, and may include a display module such as a liquid crystal display (LCD), an organic electroluminescence display (OLED), and electronic ink. It is possible to display handwriting in real time.
[0022] In this embodiment, when a graph drawing command from a user is received, the acquired writing trajectory information is recognized, and then a graph is drawn and displayed using the data recognition result, so that the contents written by the user can be automatically graphed and displayed, which is effective in improving the interactive experience. Note that the electronic whiteboard provided in this embodiment is capable of receiving the user's writing trajectory information, and in this embodiment, the writing trajectory information and the user's touch command can be received by the configured touch component. In this embodiment, the specific method of acquiring the writing trajectory information is not particularly limited.
[0023] In some embodiments, the display device provided in the present embodiments includes a display screen 100 and a control circuit 101, as shown in FIG.
[0024] The display screen 100 is configured to display content.
[0025] The control circuit 101 includes a processor and a memory, the memory is configured to store a program executable by the processor, and the processor is configured to read the program in the memory and execute the following steps: Recognizing handwriting trajectory information in a display area of the display screen, and acquiring a data recognition result; In response to a user's command to draw a graph, determine a graph type corresponding to the command; In response to a graph drawing command from a user, a graph of a graph type corresponding to the graph drawing command is drawn based on the data recognition result, and the drawn graph is displayed in the display area.
[0026] In some embodiments, the display device in the present embodiment includes, but is not limited to, an electronic whiteboard. The electronic whiteboard includes a touch component. The touch component is configured to obtain handwriting trajectory information. The electronic whiteboard in the present embodiment further includes a component such as a camera or a radar for obtaining handwriting trajectory information. The control circuit in the present embodiment further includes at least one of a drive control circuit, a clock module, and a rendering engine. The memory in the present embodiment may be used to store information having storage needs, such as instructions and data.
[0027] In some embodiments, the present embodiment includes at least one of a touch component, an imaging component, and a radar component of an electronic whiteboard, but is not limited thereto. Alternatively, the handwriting trajectory information written by a user on a terminal communicatively connected to the electronic whiteboard can be acquired in real time through the terminal. The writing scene according to the present embodiment is suitable for a user to write with a finger or a touch pen, and the writing performed by a user through a terminal communicatively connected to the electronic whiteboard can also be applied to writing performed by a user in a non-contact writing (empty writing) manner on a display screen, and the present embodiment is not particularly limited in how to acquire the handwriting trajectory information.
[0028] In addition, in this embodiment, there is no limited priority relationship between the implementation process of recognizing handwriting trajectory information and responding to the user's graph drawing command. In the embodiment, the handwriting trajectory information may be recognized to obtain a data recognition result, and then the user may respond to the user's graph drawing command, or the handwriting trajectory information may be recognized and a data recognition result may be obtained after responding to the user's graph drawing command.
[0029] In this embodiment, the position in the display area where the user's handwriting trajectory information exists does not overlap with the position in the display area where the corresponding graph exists, so the user can simultaneously view the content he or she has written and the drawn graph.By automatically drawing the graph without interfering with normal content interaction, the efficiency of meeting interaction is improved and the user's interactive experience is enhanced.
[0030] In some embodiments, in an intelligent drawing graph mode of a known graph type, the drawing of a graph is triggered after it is determined that the user stops writing and waits a predetermined time. The present embodiment further recognizes writing trajectory information in the display area of the display screen in response to a command triggered after stopping writing and waiting a predetermined time in an intelligent drawing graph mode of a known graph type, and obtains a data recognition result. Based on the data recognition result, a graph is drawn and the graph is displayed. In this embodiment, when a user stops writing in the display area and waits a predetermined time, the writing trajectory information in the display area is recognized, a data recognition result is obtained, and based on the data recognition result, a graph is drawn and the drawn graph is displayed in the display area. In this embodiment, the writing trajectory information may be recognized according to the timing of receiving a graph drawing command, and based on the data recognition result, the timing of drawing and displaying the graph may be determined.
[0031] In some embodiments, the timing of recognition of handwriting trajectory information in this embodiment is such that when the user stops writing and it is determined that no more writing has been performed even after waiting a specified time, the handwriting trajectory information in the display area of the display screen is recognized and the data recognition result is obtained.
[0032] In some embodiments, in an intelligent drawing graph mode of a known graph type, when it is determined that a user gesture command is received, triggering drawing of a graph. The present embodiment further recognizes writing trajectory information of a display area of the display screen in response to a user gesture command in the intelligent drawing graph mode of a known graph type, and obtains a data recognition result. Based on the data recognition result, draw a graph and display the graph.
[0033] In some embodiments, the gesture command includes, but is not limited to, a directional arrow-like gesture command, the arrow gesture command including, but not limited to, at least one of a unidirectional gesture command, a bidirectional arrow gesture command.
[0034] Optionally, the table data corresponding to the X-axis is determined based on the arrow direction in the received gesture command, or the table data corresponding to the Y-axis is determined based on the arrow direction in the received gesture command.
[0035] Alternatively, if the gesture command is a single arrow gesture command, the table data corresponding to the X-axis or the table data corresponding to the Y-axis is determined based on the direction of the single arrow. In this embodiment, for example, the data content in the first column in the table data is specified as the X-axis corresponding table data, and the data content in the second column in the table data is specified as the Y-axis corresponding table data.
[0036] Optionally, when the gesture command is a double-arrow gesture command, the double-arrow gesture command includes a first arrow command and a second arrow command drawn sequentially, where the first arrow command is received earlier than the second arrow command, and the second direction of the second arrow command is different from the first direction. In this case, the table data of the X-axis and the Y-axis are set as follows:
[0037] determining table data corresponding to an X-axis based on a first direction of the first arrow command, and determining table data corresponding to a Y-axis based on a second direction of the second arrow command; or Based on a first direction of the first arrow command, table data corresponding to a Y-axis is determined, and based on a second direction of the second arrow command, table data corresponding to an X-axis is determined.
[0038] The data recognition results in this embodiment include data that can be rendered as a graph, such as table data and data set data, but are not limited to these.
[0039] The above-mentioned table data may be data having row information or column information, or data having both row information and column information at the same time, or data that does not need to completely include the dividing lines of the rows or columns. Any computer data may be referred to as table data as long as it has a data storage form that can represent row or column information of data.
[0040] The table data in this embodiment may include multiple cells, for example, the cells may be arranged in 3 rows and 2 columns (uniformly arranged), the cells may contain user's handwriting trajectory information, or the handwriting trajectory information in the cells may be recognized and then the data content of the cells may be obtained, and a graph may be drawn using the data content in each cell.
[0041] In this embodiment, it is possible to specify a data set from data having column information or row information in the table data. For example, the data content in each cell in the first column of the table data may be the content of the first data set, and the data content in each cell in the second column of the table data may be the content of the second data set. Here, the order of the contents in the data set may be determined by the order of the cells, or the data content in each cell in the first row of the table data may be the content of the first data set, and the data content in each cell in the second row may be the content of the second data set. For example, if the data content in each cell in the first column of the table data is 10, 20, and 30, respectively, the content in the first data set is [10, 20, 30].
[0042] This embodiment is a diagram showing the display area of the display screen of the electronic whiteboard, and as shown in Figures 2A, 2B, 2C and 2D, after a user writes on one side of the display area of the electronic whiteboard, a graph drawing command is triggered to display the corresponding graph on the other side of the display area. In this embodiment, after a user selects a graph type, in the intelligent drawing graph mode of a known graph type, when the user stops writing and waits for a predetermined time, the corresponding graph may be triggered to be drawn and displayed on the other side of the display area.
[0043] In some examples, the method of displaying a graph may include, but is not limited to, a method of displaying both coordinate axes and table data, a method of displaying coordinate axes and then displaying table data, or a method of displaying table data and then displaying coordinate axes. However, the table data is understood as each coordinate point on a line graph, as each rectangle on a histogram, and as blocks of different sizes in a pie chart. In some examples, the present embodiment may display the title of each coordinate axis or may not display the title of each coordinate axis, but the specific method can be determined according to actual demand and is not particularly limited here.
[0044] In some examples, the present embodiment acquires the writing trajectory information of the display area when receiving a graph drawing command from the user, or acquires the writing trajectory information of the display area after determining that the user's writing is completed. In the present embodiment, the timing of acquiring the writing trajectory information is not particularly limited. Here, the determination of the user's writing completion is specifically, when the writing trajectory information is not received within a predetermined time after the last writing trajectory information is received, the user determines that the writing is completed, or when a completion button command triggered by the user is received. Note that the button or key according to the present embodiment includes a virtual button or an entity button, and is not particularly limited here.
[0045] In some embodiments, the methods for identifying handwriting trajectory information provided by the present embodiment can be mainly divided into three types based on different handwriting scenes:
[0046] Type 1: Writing scene with table lines.
[0047] This writing scene mainly recognizes writing trajectory information and recognizes it based on the data contents in the writing presentation table displayed in the display area. In this scene, the position (area size) of each cell in the writing presentation table is known, and even if the writing presentation table can be dynamically expanded while the user is writing, the position (area size) of each cell in the expanded writing presentation table is known. The writing presentation table may be fixed and displayed in the display area before the user writes, or the reference position of the writing presentation table may be dynamically determined according to the position where the user first writes. The user simply writes the contents corresponding to each cell of the writing presentation table, and only the writing trajectory information is recognized in the recognition process, and the position of each cell in each writing presentation table is known, so the data recognition result is divided into each cell of the writing presentation table to obtain a table including the contents entered by the user, and a graph is generated and displayed from the data contents in the table.
[0048] In some embodiments, before recognizing the writing trajectory information of the display area of the display screen and obtaining a data recognition result, the processor is specifically configured to perform the following.
[0049] The processor displays a writing presentation table in the display area, the writing presentation table being presented to a user to write in each cell of the writing presentation table; The writing trajectory information entered by the user in the writing presentation table is received.
[0050] In some embodiments, the processor is specifically configured to perform the following:
[0051] The processor determines a reference position of the writing presentation table based on a position of the writing trajectory information where the user writes for the first time in the display area; A writing presentation table having a fixed number of rows and columns is displayed in the display area according to a reference position of the writing presentation table, and the writing trajectory information written by the user for the first time is located within a cell of the writing presentation table.
[0052] For example, the position of the content that the user writes for the first time in the display area is set to the position of the cell in the first row and first column in the writing presentation table, or the position of the cell in the second row and second column in the writing presentation table, and a writing presentation table with a fixed row and column number is displayed using that position as the reference position of the writing presentation table.
[0053] In some embodiments, after displaying the writing presentation table, the processor is specifically configured to perform any of the methods of increasing the number of rows and columns of the writing presentation table.
[0054] Method 1) When the writing trajectory information of the user's continued writing exceeds the range included in the writing presentation table, the number of rows of the writing presentation table is increased according to the position of the writing trajectory information of the user's continued writing.
[0055] Method 2) When the writing trajectory information of the user's continuing writing exceeds the range included in the writing presentation table, the number of columns of the writing presentation table is increased according to the position of the writing trajectory information of the user's continuing writing.
[0056] Method 3) When the writing trajectory information of the user's continuing writing exceeds the range included in the writing presentation table, the number of rows and the number of columns of the writing presentation table are increased according to the position of the writing trajectory information of the user's continuing writing.
[0057] Method 4) When the writing trajectory information of the user continuing writing is in a critical row of the writing suggestion table, the number of rows of the writing suggestion table is increased.
[0058] Method 5) When the writing trajectory information of the user continues writing is in a critical column of the writing suggestion table, the number of columns of the writing suggestion table is increased.
[0059] Method 6) If the writing trajectory information of the user continuing writing is in a cell of a critical row and a critical column of the writing suggestion table, the number of rows and the number of columns of the writing suggestion table are increased.
[0060] Here, the critical row in this embodiment indicates that the last row of the writing presentation table is about to be reached, for example, the second to last row of the writing presentation table or the last row of the writing presentation table.
[0061] The writing presentation table in this embodiment can dynamically determine a reference position depending on the position where the user first writes, and can automatically dynamically expand the writing presentation table to ensure that the user's writing content is within the range of the writing presentation table just before the user fills up each cell in the writing presentation table or when the writing content exceeds the range contained in the writing presentation table.
[0062] In some embodiments, the processor is specifically configured to perform the following:
[0063] The processor displays a writing presentation table in the display area in response to a user editing command in a smart graph mode of a known graph type, where the number of rows and columns of the writing presentation table is fixed or determined based on user-entered parameters.
[0064] In this embodiment, the timing of displaying the writing presentation table may be after displaying the writing presentation table in response to a user's editing command in the smart graph mode of a known graph type, and the user can further set the rows and columns of the writing presentation table in response to input row parameters and column parameters, respectively. For example, when the user inputs a row parameter of 3 and a column parameter of 5, a writing presentation table with 3 rows and 5 columns is generated and displayed.
[0065] In some embodiments, the cell size of the writing presentation table according to this embodiment may be predefined, may be determined based on cell parameters input by the user, may be determined based on the writing trajectory information written by the user for the first time, or may be determined, for example, by the position of each trajectory point in the writing trajectory information written by the user for the first time, and is not particularly limited.
[0066] In some embodiments, in a writing scene having a table line, the data recognition results include multiple datasets, any one of the datasets including content written by a user in any column of the writing presentation table or content written by a user in any row of the writing presentation table.
[0067] In this embodiment, the multiple data sets are determined as follows.
[0068] When the writing presentation table is displayed in the display area, the contents entered by the user in the writing presentation table are divided into columns or rows to obtain a plurality of data sets; or If the writing presentation table is not displayed in the display area, after each cell is determined, the data content of each cell is divided by column or row to obtain a plurality of data sets.
[0069] An element in any one of the datasets corresponds to the contents of any one of the columns, and the order of elements in the dataset is the same as the order of cells in that column. For example, if a user writes content in four rows and three columns in a writing presentation table, the writing presentation table is divided into three columns, each of which corresponds to three datasets, and the first dataset contains the data contents in the four cells in the first column, i.e., each dataset contains four elements.
[0070] In some embodiments, in a writing scene having table lines, the present embodiment processor specifically determines the data recognition result in one of the following ways:
[0071] Method 1: After determining the trajectory points of the cells, recognize the trajectory points of each cell.
[0072] The writing locus information included in each cell is determined based on the positional relationship between each locus point in the writing locus information and a cell in the writing presentation table.
[0073] The handwriting trajectory information contained in each cell is recognized, and the data contents of each cell are obtained.
[0074] Method 2: Recognize the handwriting trajectory information and then determine the data content in the cell.
[0075] The handwriting trajectory information is recognized, and the contents handwritten by the user and the position of the contents in the display area are obtained.
[0076] The data content of each cell is determined based on the location of the content and the location of the cell in the writing presentation table.
[0077] In a writing scene having table lines, the position and size of each cell in the writing presentation table are known, and when recognizing, the trajectory points (i.e., writing trajectory information) contained in each cell are identified by determining in which cell each trajectory point is located based on the positional relationship between each trajectory point and the cell in the writing trajectory information, and the trajectory points in each cell are recognized to obtain the data content of each cell, and the data content of each cell is divided by column to obtain multiple data sets, or the data content of each cell is divided by row to obtain multiple data sets. A graph is drawn and displayed for each data set.
[0078] Type 2, writing scene without table lines.
[0079] This writing scene needs to be recognized not only by the handwriting trajectory information but also by the clustering algorithm according to the contents written by the user. In this scene, the display area does not display the handwriting presentation table, and the user only needs to enter the data contents in the table. The recognition process requires not only the handwriting recognition algorithm, but also the use of a clustering algorithm without table lines to divide the handwriting trajectory information into different cells, recognize the handwriting trajectory information in each cell to obtain the data contents in each cell, and finally generate and display a graph from the data contents in each cell.
[0080] In some examples, in this scene, the data recognition result in this embodiment includes multiple cells, and the data recognition result includes the position of each cell and the data content in each cell. In this embodiment, the writing trajectory information is recognized to obtain the content actually written by the user, and based on the user's drawing request, the user's writing content is regarded as individual data content, and a graph of a graph type corresponding to the graph drawing command is drawn from each data content in the table, and the drawn graph is displayed in the display area.
[0081] In this scene, in some embodiments, the present embodiment determines the handwriting trajectory information that needs to be displayed as a graph after receiving a graph drawing command from the user. The specific determination method is any of the following, but is not limited to the following:
[0082] Method 1) All the writing trajectory information in the display area is identified as the writing trajectory information that needs to be displayed graphically.
[0083] In a specific embodiment, when a user needs to draw a graph while using the electronic whiteboard, the method sets the display screen of the electronic whiteboard to receive the writing trajectory information used to draw the graph and the display area of the graph, and sets the display screen to hide the contents previously written by the user.
[0084] Method 2) All the handwriting trajectory information within the preset box in the display area is identified as the handwriting trajectory information that needs to be displayed in a graph.
[0085] This method does not hide the contents written by the user on the display screen, but when the user requests graph display, a preset box is displayed in the display area of the display screen, the user writes the contents requiring graph drawing in the preset box, and the corresponding graph is displayed in the other areas of the display area.
[0086] In method 2), when a graph drawing command is received from the user, all writing trajectory information in the display area is recognized, and all table data corresponding to the writing trajectory information is obtained. Here, the writing trajectory information includes, but is not limited to, the writing order and coordinates of each trajectory point. That is, the writing trajectory information includes trajectory points with a writing order before and after. Since the writing trajectory information includes not only the trajectory point coordinates but also the writing order of the trajectory points, the contents written by the user can be recognized more accurately based on the association between the writing order and coordinates of each trajectory point.
[0087] In some embodiments, in the writing scene, the data recognition result includes a plurality of cells, the data recognition result including the location of each cell and the data content within each cell.
[0088] In some examples, the algorithm for specifically performing writing trajectory recognition in the present embodiment includes, but is not limited to, a clustering algorithm and a handwriting recognition algorithm. Here, the clustering algorithm divides all trajectory points into cells by clustering all received writing trajectory information according to the similarity between each trajectory point, and the trajectory points in each cell are of one type and can be understood as the data content in one cell written by the user. The handwriting recognition algorithm is used to recognize the trajectory points in each cell and obtain the data content, which is the final content. Based on each cell position and the data content in the cell, each data content of the table written by the user can be finally identified.
[0089] In this embodiment, after acquiring the handwriting trajectory information, the acquired handwriting trajectory information is identified to acquire the position information of each cell in the table and the data content corresponding to each cell. For example, in a 2×4 table, the position of the first cell is (1, 1), the data content of the first cell is "income", the position of the second cell is (1, 2), and the data content of the second cell is "100".
[0090] In some examples, the present embodiment acquires table data by recognizing writing trajectory information in the display area of the display screen through the following steps.
[0091] Step 1: Each cell is determined, and the writing trajectory information is divided into each cell.
[0092] Here, each of the cells is used to correspond to each cell in the table, and the writing locus information contained in each of the cells is used to correspond to the data content in each cell.
[0093] In this embodiment, after each cell is determined based on the handwriting trajectory information according to a clustering algorithm, the handwriting trajectory information is divided into each cell, and each cell includes data content.
[0094] In some examples, the clustering algorithm in the present embodiment can adopt an adaptive class clustering algorithm such as K-Means (K-means clustering algorithm). Trajectory points with the same writing order and close coordinate distance are grouped into one class, and trajectory information of the same class is divided into the same cell, thereby dividing all writing trajectory information into each cell.
[0095] In this embodiment, each cell may be determined by a clustering algorithm, or the user's handwriting trajectory information may be divided into each cell.
[0096] In this embodiment, the number of clusters of the K-Means algorithm, that is, the total number of cells finally masked, can be set in advance, but the final number of clusters can also be automatically determined by the improved K-Means algorithm that automatically determines the number of clusters. That is, the K-Means algorithm can automatically determine the total number of cells finally masked. Here, the data set of the K-Means algorithm includes N sample points, and each sample point has two features: the writing order of the trajectory point and the coordinate of the trajectory point. The design idea is to calculate the distance between the sample points in each category through a preset loss function so that the error between the sample points of different clusters is large while the distance between the sample points in each cluster is small. The K-Means algorithm first selects L average points, clusters the sample points based on these L average points, removes points with small samples in the cluster, randomly selects one average point from the L1 sample points remaining after the sample removal, finds the value farthest from the average point, and repeats sequentially until K average points are selected. Here, L, L1, and K are all positive integers, and L>L1.
[0097] The specific flow of the K-Means algorithm is as follows:
[0098] Step 1, Initialization,Select K average points.
[0099] Step 2: Classify the sample points into the cluster with the closest average score to them and determine the clustering result.
[0100] By calculating the minimum value of the loss function, the optimal clustering result can be obtained.
[0101] Step 3, update the average score based on the clustering results.
[0102] Step 4: Repeat steps 2 and 3 until the average score does not change any further.
[0103] Step 5: Output the clustering results.
[0104] In some examples, the present embodiment provides two ways to divide the writing trace information into cells.
[0105] The implementation steps of method 1 are as follows:
[0106] Step 1a: obtaining the writing sequence and coordinates of each trajectory point in the writing trajectory information;
[0107] Step 1b: determining the similarity between each of the trajectory points based on the writing sequence and coordinates of each of the trajectory points;
[0108] Step 1c: The trajectory points whose similarity satisfies a predetermined threshold are divided into cells.
[0109] In this embodiment, after obtaining the writing order and coordinates of each trajectory point in the writing trajectory information, each trajectory point may be clustered according to a clustering algorithm, and the trajectory points whose similarity satisfies a predetermined threshold may be divided into one class, and each cell corresponding to the trajectory point in each cluster may be generated.
[0110] The implementation steps of method 2 are as follows:
[0111] Step 2a: converting the writing trajectory information into strokes, and determining the center of gravity of the strokes based on the average coordinate value of the trajectory points in the strokes.
[0112] In some embodiments, the writing trajectory information is obtained after performing a resampling operation on trajectory points in the writing trajectory information, the resampling being configured to increase the number of trajectory points in a corresponding stroke according to the length of each stroke in the writing trajectory information. In this embodiment, the writing trajectory information may be resampled to increase the number of points in a stroke according to the stroke length, and each cell may be determined using the resampled writing trajectory information.
[0113] Step 2b: Divide the stroke into cells based on the positional relationship between the center of gravity of the stroke and each cell.
[0114] In some embodiments, each cell is determined in one or more of the following ways:
[0115] Method 1) A column separator line is determined based on the valley position in a first projection histogram on a first coordinate axis of the writing trajectory information, a row separator line of one of the columns is determined based on the valley position in a second projection histogram on a second coordinate axis of the writing trajectory information contained in one of the columns, and each cell is determined based on the column separator line and the row separator line.
[0116] In this embodiment, the first coordinate axis and the second coordinate axis are in a perpendicular relationship.
[0117] In this embodiment, the column separators are determined as follows.
[0118] A column separator line is determined based on valley locations in the first projection histogram where the valley width is greater than a threshold.
[0119] In this embodiment, the line separator is determined as follows.
[0120] A row separator is determined based on the location of valleys in the second projection histogram whose width is greater than a threshold value.
[0121] In this embodiment, the determination of each cell based on the column separator lines and the row separator lines is specifically performed as follows: The writing trajectory information is divided into a plurality of columns based on the column dividing lines, the writing trajectory information of each column is divided into a plurality of rows based on the row dividing lines, and finally, the border of the table is determined from the minimum and maximum values of the trajectory points in the first and second coordinate axes in the entire writing trajectory information, and the table and the data contents in the table are determined based on the column dividing lines, row dividing lines, border lines, and writing trajectory information. In addition, in the cell determination method in this embodiment, the columns are divided first, and then the rows are divided by column, thereby solving the problem that the user's writing is inappropriate and the contents of different columns are not consistent for each row. Even if the contents belonging to different columns of each row of the user are not the same horizontal line, the method in this embodiment can accurately divide the data contents of each cell, and the division of rows and columns can be accurately realized. By using this embodiment for a vertically written table, the problem that the handwritten columns of the vertically written table are shifted and displayed in the wrong row, which affects recognition, is solved.
[0122] Method 2) A row separator line is determined based on a valley position in a second projection histogram on a second coordinate axis of the handwriting trajectory information. A column separator line of a row is determined based on a valley position in a first projection histogram on a first coordinate axis of the handwriting trajectory information included in the row, and each cell is determined based on the row separator line and the column separator line.
[0123] In this embodiment, the column separators are determined as follows.
[0124] A column separator line is determined based on valley locations in the first projection histogram where the valley width is greater than a threshold.
[0125] The line separators are determined as follows:
[0126] A row separator is determined based on the location of valleys in the second projection histogram whose width is greater than a threshold value.
[0127] In this embodiment, the determination of each cell based on the column separator lines and the row separator lines is specifically performed as follows: The writing trajectory information is divided into multiple rows based on row dividing lines, the writing trajectory information of each row is divided into multiple columns based on column dividing lines, and finally, the frame line of the table is determined from the minimum and maximum values of the trajectory points in the first and second coordinate axes in the entire writing trajectory information, and the table and the data contents in the table are determined based on the column dividing lines, row dividing lines, frame lines, and writing trajectory information. Note that in the cell determination method of this embodiment, row division is first realized, and then column division is performed for each row, which can solve the problem that the user's writing is inappropriate and blank lines occur in the table, but the method of this embodiment can identify blank lines and accurately divide the data contents in each cell, thereby accurately realizing row and column division.
[0128] Method 3) A column separator line is determined based on a valley position in a first projection histogram on a first coordinate axis of the writing trajectory information, a row separator line is determined based on a valley position in a second projection histogram on a second coordinate axis of the writing trajectory information, and each cell is determined based on the row separator line and the column separator line.
[0129] In this embodiment, the column separators are determined as follows.
[0130] A column separator line is determined based on valley locations in the first projection histogram where the valley width is greater than a threshold.
[0131] The line separators are determined as follows:
[0132] A row separator is determined based on the location of valleys in the second projection histogram whose width is greater than a threshold value.
[0133] In this embodiment, the determination of each cell based on the column separator lines and the row separator lines is specifically performed as follows: The writing trajectory information is divided into a plurality of columns based on the column dividing lines, and divided into a plurality of rows based on the row dividing lines. Finally, the table frame line is determined from the minimum and maximum values of the trajectory points in the first and second coordinate axes in the entire writing trajectory information, and the table and the data contents in the table are determined based on the column dividing lines, row dividing lines, frame lines, and writing trajectory information. Note that the cell determination method in this embodiment can solve the problem of the user's writing being inappropriate and blank cells occurring in the table by simultaneously realizing the division of the matrix. According to the method in the embodiment, blank cells, i.e., cells in which no trajectory information is written, can be identified, and the data contents in each cell can be accurately divided to accurately realize the division of rows and columns.
[0134] In some embodiments, the first projected histogram is a projected histogram in which the writing trajectory information is projected onto a first coordinate axis, and is obtained by contraction mapping. The contraction mapping contracts the unit pitch of the first coordinate axis of the projected histogram to a first predetermined pitch, sums up the number of trajectory points projected within the first predetermined pitch, and sets the total value as the number of trajectory points corresponding to a second predetermined pitch. Here, in an example in which the first coordinate axis is the X-axis, the X-axis coordinate of the projected histogram represents the position of the trajectory points in the writing trajectory information in the X-direction, and the Y-axis coordinate represents the number of trajectory points projected to a different X-axis position. For example, the number of trajectory points in the 0-100 interval of the histogram projected onto the X-axis is contracted and mapped to a new 0-10 interval. Specifically, the sum of the number of trajectory points in the 0-10 subinterval of the 0-100 interval is used as the number of trajectory points corresponding to the 0-1 subinterval of the new 0-10 interval, and the sum of the number of trajectory points in the 10-20 subinterval of the 0-100 interval is used as the number of trajectory points corresponding to the 1-2 subinterval of the new 0-10 interval. In this manner, the number of trajectory points in each subinterval in the 0-10 interval is normalized, and the sum of the number of trajectory points corresponding to the 0-1 subinterval is used as the number of trajectory points corresponding to the 0-1 subinterval. Here, the 0-1 subinterval corresponds to the number of one trajectory point, that is, the 0-1 subinterval corresponds to one number.
[0135] The second projected histogram is a projected histogram obtained by projecting the writing trajectory information onto a second coordinate axis, and is obtained by contraction mapping. The contraction mapping contracts the unit pitch of the second coordinate axis of the projected histogram to a second predetermined pitch, sums up the number of trajectory points projected within the second predetermined pitch, and sets the sum value as the number of trajectory points corresponding to the second predetermined pitch. Here, the second coordinate axis is the Y axis, and the Y axis coordinate of the projected histogram indicates the position of the trajectory point in the Y direction in the writing trajectory information, and the X axis coordinate indicates the number of trajectory points mapped to different Y axis positions. For example, the number of trajectory points in the 0 to 100 interval of the Y axis of the projected histogram is contracted and mapped to a new 0 to 10 interval. The specific implementation principle can be referred to the description of the first projected histogram described above, and will be omitted here.
[0136] Here, the projection histogram according to the present embodiment is a statistical diagram representing the number of trajectory points at which the handwriting trajectory information is projected onto a preset coordinate axis.
[0137] Step 2: Recognize the handwriting trajectory information in each cell and obtain the data content in each cell.
[0138] Here, the handwriting trajectory information is recognized based on a handwriting recognition algorithm, and data contents in each cell are obtained. Optionally, the handwriting recognition algorithm according to the present embodiment includes, but is not limited to, at least one of a character recognition algorithm and a digit recognition algorithm.
[0139] Step 3: determining the data recognition result based on the location of each of the cells and the data content in each of the cells.
[0140] As shown in Fig. 3, this embodiment is a diagram showing the recognition of handwriting trajectories. The user's handwriting trajectory information "product, profit, A, B, C, 10000, 20000, 30000" is divided into 8 cells, and all the handwriting trajectory information including the data content in each cell is recognized by a handwriting recognition algorithm, and then the data content in each cell is obtained to determine the data recognition result.
[0141] The table data according to this embodiment is composed of cells, and the data content in the table is composed of the data content in each cell. By recognizing the position and data content of each cell obtained (data content in the cell), the table data can be determined. The data content in each column cell is organized into one array, or the data content in each row cell is organized into one array, and a graph is drawn and displayed based on each array.
[0142] Type 3: A writing scene that displays a title prompt.
[0143] In the writing scene, the title prompt of the display includes, but is not limited to, a horizontal line or a vertical line. Optionally, it includes identification of the writing trajectory information above the horizontal line, recognition of a clustering algorithm and a handwriting recognition algorithm for the writing trajectory information below the horizontal line, or recognition of the writing trajectory information to the left of the vertical line, and recognition of a clustering algorithm and a handwriting recognition algorithm for the writing trajectory information to the right of the vertical line. In the writing scene, only a horizontal line or a vertical line is displayed in the display area. At least one horizontal line or vertical line is displayed, and may be a long horizontal line or multiple short horizontal lines. Alternatively, it may be a long vertical line or multiple short vertical lines. In this embodiment, the style and number of the horizontal line or vertical line displayed is not limited. For example, the user may write the title of each coordinate axis above the horizontal line, or may be one or multiple titles, or may write the content under the title below the horizontal line in association with the title.
[0144] In some embodiments, in the writing scene, before recognizing writing trajectory information in the display area of the display screen and obtaining a data recognition result, the processor is specifically configured to execute the following:
[0145] The processor is configured to display a title prompt in the display area, the title prompt providing a user with a position to write a table title, where when drawing a line graph, the table title represents the title of a coordinate axis, when drawing a bar graph, the table title represents each classification title or cylinder name on a given coordinate axis, when drawing a radar map, the table title represents each vertex title or polar coordinate name, when drawing a pie chart, the table title represents each partition title.
[0146] In a first region corresponding to the title prompt, first writing trajectory information is obtained, and in a second region corresponding to the title prompt, second writing trajectory information is obtained.
[0147] The title prompts in this embodiment not only present the user with a writing position, but also allow the user to write according to the title prompts. This results in narrower spacing between different contents when the user writes different contents, which makes it difficult to perform automatic lattice recognition accurately when using a clustering algorithm, and makes it easy to mistakenly divide some or all of the trajectory points in the same content into other cells, resulting in recognition errors.
[0148] In some embodiments, the title prompt is used to separate the title of each coordinate axis (i.e., table title) written by the user and the content corresponding to the title. In some embodiments, the first region and the second region are separated by the title prompt. In some embodiments, the title prompt includes at least one of a horizontal line, a vertical line, and a symbol.
[0149] In this embodiment, two horizontal lines are displayed, and each horizontal line corresponds to one column in the table. For example, first writing trajectory information representing title 1 is obtained in the area above the first horizontal line, and the first writing trajectory information is recognized as title 1 on the X coordinate axis. Second writing trajectory information representing title 2 is obtained in the area above the second horizontal line, and the first writing trajectory information is recognized as title 2 on the Y coordinate axis. Second writing trajectory information representing content is obtained in the area below the first horizontal line, and the second writing trajectory information is recognized as content corresponding to title 1. Second writing trajectory information representing content is obtained in the area below the second horizontal line, and the second writing trajectory information is recognized as content corresponding to title 2.
[0150] In a writing scene displaying a title prompt, the data recognition result includes a title and a number of cells for each coordinate axis, and the data recognition result includes the position of each cell and the data content within each cell.
[0151] In some embodiments, the data identification result is determined by the following steps.
[0152] Step 3a) Recognizing the writing locus information of the first area and obtaining the title of each coordinate axis.
[0153] Step 3b) Dividing the handwriting locus information in the second area into cells, recognizing the handwriting locus information in each cell, and obtaining data contents in each cell in the second area.
[0154] Here, the writing path is divided into cells in one of the following ways.
[0155] Method 1: converting the writing trajectory information into strokes, determining the center of gravity of the stroke based on the average coordinate value of the trajectory points in the stroke, and dividing the stroke into cells based on the positional relationship between the center of gravity of the stroke and each cell.
[0156] Method 2: obtain the writing order and coordinates of each trajectory point in the writing trajectory information, determine the similarity between each trajectory point based on the writing order and coordinates of each trajectory point, and divide the trajectory points whose similarity meets a predetermined threshold into cells.
[0157] Each cell is determined in one of the following ways:
[0158] Method 1: A column separator line is determined based on a valley position in a first projection histogram on a first coordinate axis of the writing trajectory information, a row separator line of one of the columns is determined based on a valley position in a second projection histogram on a second coordinate axis of the writing trajectory information contained in one of the columns, and each cell is determined based on the column separator line and the row separator line.
[0159] Method 2: A row separator line is determined based on a valley position in a second projection histogram on a second coordinate axis of the writing trajectory information, a column separator line of a row is determined based on a valley position in a first projection histogram on a first coordinate axis of the writing trajectory information contained in any row, and each cell is determined based on the row separator line and the column separator line.
[0160] Method 3: A column separator line is determined based on a valley position in a first projection histogram on a first coordinate axis of the writing trajectory information, a row separator line is determined based on a valley position in a second projection histogram on a second coordinate axis of the writing trajectory information, and each cell is determined based on the row separator line and the column separator line.
[0161] Here, the column separators are determined as follows:
[0162] determining column separator lines based on valley locations in the first projection histogram where the valley width is greater than a threshold; and / or The line separators are determined as follows:
[0163] A row separator is determined based on the location of valleys in the second projection histogram whose width is greater than a threshold value.
[0164] Here, the handwriting trajectory information in methods 1 to 3 is obtained by resampling trajectory points in the handwriting trajectory information written by the user. The resampling is configured to increase the trajectory points in the corresponding stroke according to the length of each stroke in the handwriting trajectory information written by the user.
[0165] The first projected histogram is a projected histogram in which the writing trajectory information is projected onto a first coordinate axis, and is obtained by contraction mapping, which contracts the unit pitch of the first coordinate axis of the projected histogram to a first predetermined pitch, and totals the number of trajectory points projected onto the first predetermined pitch.
[0166] The second projected histogram is a projected histogram obtained by projecting the writing trajectory information onto a second coordinate axis, and is obtained by contraction mapping, which contracts the unit pitch of the second coordinate axis of the projected histogram to a second predetermined pitch, and totals the number of trajectory points projected onto the second predetermined pitch.
[0167] Step 3c) determining the data recognition result based on the title, the data content in each cell of the second area, and the positional relationship between the title and each cell.
[0168] Here, in the writing scene, in addition to recognizing the writing trajectory information in the first area corresponding to the title prompt, the recognition method in the second area can be recognized by the above-mentioned second type of table line-free writing scene recognition method, in this scene, the user writes the title in the first area and writes the content in the second area, so only the first area is identified, and the writing trajectory information in the second area is identified by the clustering algorithm and the handwriting recognition algorithm. First, the writing trajectory information is divided into each cell, and then the writing trajectory information in each cell is recognized, and the data content in each cell is determined. Finally, the data content in the cells in the column corresponding to each title is determined, or the data content in the cells in the row corresponding to each title is determined.
[0169] The data contents in each column cell other than the title are organized into one array, or the data contents in each row cell other than the title are organized into one array, and a graph is drawn and displayed based on each array.
[0170] In this embodiment, the methods for recognizing the above three different scenes and obtaining the recognition results are slightly different, i.e., the recognition method for a scene with a table is different from the recognition method for a scene without a table. Based on the above three different scenes, this embodiment can identify the contents of a table written by the user in each of the different scenes, and identify the contents of any column or any row written by the user.
[0171] In some embodiments, the multiple data sets are determined by dividing the user's writing by columns, or the multiple data sets are determined by dividing the user's writing by rows, where the content of any column written by the user is determined as a single data set, or the content of any row written by the user is determined as a single data set.
[0172] In some embodiments, a graph type is determined according to a graph drawing command, and a graph corresponding to said graph type is drawn based on each data set corresponding to the content written by the user.
[0173] In some embodiments, the content of each column written by the user is determined as each data set based on a preset correspondence between each row and a coordinate axis, or the content of each line written by the user is determined as each data set based on a preset correspondence between each column and a coordinate axis.
[0174] In some embodiments, the content written by the user that is located on a specific row is determined as the title of each of the coordinate axes, and the data content in each of the other cells is determined as the data content; alternatively, the content written by the user that is located on a specific column is determined as the title of each of the coordinate axes, and the data content in each of the other cells is determined as the data content.
[0175] In some embodiments, the data content within each of said cells is determined as the data content.
[0176] In some embodiments, the graph type is determined according to a graph drawing instruction; Based on each data set corresponding to the user's written content, a graph corresponding to the graph type is drawn.
[0177] In this embodiment, whether in table-enabled mode or table-disabled mode, the contents written by the user while drawing the graph are divided into each data set, and a graph corresponding to the graph type is drawn based on each data set corresponding to the contents written by the user.
[0178] Here, in the table-enabled mode, the contents of each column that the user writes on the writing presentation table are treated as one data set, or the contents of each row that the user writes on the writing presentation table are treated as one data set.
[0179] In table-less mode, the contents written by the user are divided into cells, and then the data contents in the cells of a column are treated as one data set, or the data contents in the cells of each row are treated as one data set.
[0180] In some embodiments, if any dataset contains any column content written by the user, different types of graphs can be rendered as follows:
[0181] If the graph type is determined to be a bar graph, determine each classification title on a predetermined coordinate axis based on a data set corresponding to the predetermined column, and determine a cylinder name based on a first content corresponding to a predetermined index value in a data set corresponding to the remaining columns excluding the predetermined column. Determine a cylinder height corresponding to each classification title and cylinder name based on the content excluding the first content in the data set corresponding to the remaining columns, and draw a bar graph based on each classification title, cylinder name, and cylinder height, or If it is determined that the graph type is a radar map, determine a title for each vertex based on a data set corresponding to the predetermined column, determine a polar coordinate name based on a second content corresponding to a predetermined index value in a data set corresponding to the remaining columns excluding the predetermined column, determine polar coordinates corresponding to each title and polar coordinate name based on the content excluding the second content in the data set corresponding to the remaining columns, and draw a radar map based on each title, polar coordinate name, and polar coordinate; or If the graph type is determined to be a line graph, determine a title of a coordinate axis based on the content corresponding to a given index value in the data set. Determine coordinate points based on the content corresponding to the same index value other than the given index value in a different data set. Draw a line graph based on the title of the coordinate axis and the coordinate points, or If the graph type is determined to be a pie chart, a title for each partition is determined based on a data set corresponding to a predetermined column, an occupancy rate for each partition is determined based on a data set corresponding to a column other than the predetermined column, and a pie chart is drawn based on the title and occupancy rate for each partition.
[0182] Here, when drawing a bar graph, the data set according to this embodiment is understood as one sequence. The predetermined index value according to this embodiment is configured to represent the ordinal content in the array. For example, if the predetermined index value is 1, the first content corresponding to the predetermined index value 1 is the first content in the array.
[0183] Here, when drawing a radar map, the polar coordinate names according to this embodiment are used to distinguish different examples. For example, the corresponding data sets in the first column are mathematics, English, and language, the polar coordinate name corresponding to the predetermined index value 1 in the corresponding data set in the second column is called "first set", and the polar coordinate name corresponding to the predetermined index value 1 in the corresponding data set in the third column is called "second set", and "first set" and "second set" are distinguished by different polar coordinate names.
[0184] Here, when drawing a line graph, for example, the first content in the first array whose predetermined index value corresponds to 1 is set as the X-axis title "Month", the first content in the second array whose predetermined index value corresponds to 1 is set as the Y-axis title "Income", and based on the second content 12 in the first array whose predetermined index value corresponds to 2 and the second content 100 in the second array whose predetermined index value corresponds to 2, a coordinate point (12,100) is determined to indicate that the income for December is 100. Each coordinate point of the line graph is determined in sequence and drawn.
[0185] In addition, the method of drawing the above different types of graphs in this embodiment has been described as a scene in which one of the datasets contains the contents of one of the columns written by the user. However, the rows and columns in this embodiment are interchangeable, and the above embodiment is also applicable to a scene in which one of the datasets contains the contents of one of the rows written by the user. It is only necessary to replace the columns in the above embodiment with rows. Based on the above-mentioned implementation principle, whether the contents of the rows are a dataset or the contents of the columns are a dataset, the implementation principle is the same, and since it falls within the scope of protection of the present invention, the explanation will be omitted.
[0186] In some embodiments, taking an example where any data set contains user handwriting in any column of the writing presentation table, the data recognition results determined by different graph types are shown below.
[0187] Case 1, determine that the graph type is a bar graph.
[0188] Based on a data set corresponding to a predetermined column, a classification title for each of the predetermined coordinate axes is determined. Based on a data set corresponding to a column other than the predetermined column, a cylinder height and a cylinder name corresponding to each classification title are determined. A bar graph is drawn based on each of the classification titles and the cylinder height and cylinder name corresponding to each of the classification titles.
[0189] In some embodiments, when the graph type is determined to be a bar graph, the following steps are performed: determining each classification title of a predetermined coordinate axis based on a data set corresponding to a predetermined column; determining a cylinder name based on a first content corresponding to a predetermined index value in a data set corresponding to the remaining columns excluding the predetermined column; determining a cylinder height corresponding to each classification title and cylinder name based on a content excluding the first content in a data set corresponding to the remaining columns; and drawing a bar graph based on each classification title, cylinder name, and cylinder height.
[0190] In this embodiment, as shown in the writing presentation table 1, in a scenario where the graph type is known, the user writes the contents in the writing presentation table 1, and after recognizing the contents written by the user, the data contents in each cell in the writing presentation table are obtained, and the data contents in the cells are used to draw a bar graph. Specifically, it is as follows.
[0191] [Table 1] Here, the writing presentation table may have empty cells.
[0192] For example, each content included in the data set corresponding to the first column is determined as each classification title on the X-coordinate axis. That is, from "Language, Mathematics, English" included in the first column data set, each classification title on the X-coordinate axis is identified as "Language, Mathematics, English", and from the first content corresponding to the first element included in the corresponding data set in the second column, the name of the cylinder is identified as "Set 1", and from the first content corresponding to the first element included in the corresponding data set in the third column, the name of the cylinder is identified as "Set 2". From the content corresponding to the remaining elements (90, 95, 94) in the corresponding data set in the second column, the content corresponding to Language and Set 1 is set to 90, the content corresponding to Mathematics and Set 1 is set to 95, and the content corresponding to English and Set 1 is set to 94. That is, the name of the cylinder is identified as "Set 1", the height of the cylinder with the title "Japanese" is set to 90, and the name of the cylinder is called "Set 1". The height of the cylinder with the title "Mathematics" is set to 95, and the name of the cylinder is called "Set 1". The height of the cylinder with the title "English" is set to 94. Similarly, based on the contents corresponding to the remaining elements (89, 99, 92) in the corresponding dataset in the third column, the height of the cylinder with the cylinder name “Double Group” and the title “Japanese” is 89, the height of the cylinder with the cylinder name “Double Group” and the title “Mathematics” is 99, and the height of the cylinder with the cylinder name “Double Group” and the title “English” is 92. Thus, a bar graph is drawn based on each determined classification title, cylinder name (Double Group, Double Group) and each cylinder height.
[0193] Case 2, determine that the graph type is a radar map.
[0194] A title for each vertex is determined based on a data set corresponding to a predetermined column, and a polar coordinate sum and polar coordinate name corresponding to each title is determined based on a data set corresponding to columns other than the predetermined column. A radar map is drawn based on the title for each vertex and the polar coordinates and polar coordinate names corresponding to each title.
[0195] In some embodiments, when the graph type is determined to be a radar map, a title for each vertex is determined based on a dataset corresponding to a specified column, a polar coordinate name is determined based on second contents corresponding to a specified index value in the dataset corresponding to the remaining columns excluding the specified column, polar coordinates corresponding to each title and polar coordinate name are determined based on contents excluding the second contents in the dataset corresponding to the remaining columns, and a radar map is drawn based on each title, polar coordinate name, and polar coordinate.
[0196] In this embodiment, as shown in the writing presentation table 1, in a scenario where the graph type is known, the user writes content in the writing presentation table 1, and after recognizing the content written by the user, the data content in each cell in the writing presentation table is obtained, and the data content in the cell is used to draw a radar map. For example, each content included in the data set corresponding to the first column is determined as the title of each vertex of the radar map, that is, from "language, mathematics, English" included in the first column data set, the titles of each vertex of the radar map are determined to be "language, mathematics, English", the polar coordinate name is set to "first set" based on the first content corresponding to the first element included in the data set corresponding to the second column, the polar coordinate name is set to "second set" based on the first content corresponding to the first element included in the data set corresponding to the third column, and the content corresponding to the remaining elements (90, 95, 94) in the data set corresponding to the second column is set to 90, the content corresponding to mathematics, first set is set to 95, and the content corresponding to English, first set is set to 94. That is, the polar coordinate name is set to "first set", the title is set to "Japanese", the polar coordinate is set to 90, the polar coordinate name is set to "first set", the title is set to "mathematics", the polar coordinate is set to 95, and the polar coordinate name is set to "first set", the title is set to "English", the polar coordinate is set to 94. Similarly, based on the contents corresponding to the remaining elements (89, 99, 92) in the corresponding data set in the third column, the polar coordinate with the polar coordinate name "Nigumi" and the title "Japanese" is set to 89, the polar coordinate with the polar coordinate name "Nigumi" and the title "Mathematics" is set to 99, and the polar coordinate with the polar coordinate name "Nigumi" and the title "English" is set to 92. In this way, a radar map is drawn based on each determined title, polar coordinate name (Igumi, Nigumi) and each polar coordinate.
[0197] Case 3, determine that the chart type is a line chart.
[0198] A title of a coordinate axis is determined based on content corresponding to a given index value in the data set. Coordinate points are determined based on content corresponding to the same index value other than the given index value in a different data set. A line graph is drawn based on the title of the coordinate axis and the coordinate points.
[0199] In this embodiment, as shown in the writing presentation table 2, in a scenario where the graph type is known, the user writes content in the writing presentation table 2, and the data content in each cell in the writing presentation table is obtained after recognizing the content written by the user, and a line graph is drawn using the data content in the cell. Specifically, it is as follows.
[0200] [Table 2]
[0201] For example, the content corresponding to the first element in the data set corresponding to each column is determined as the title of the coordinate axis. Specifically, the first element "Month" in the data set corresponding to the first column is determined as the title of the X coordinate axis, and the first element "Income" in the data set corresponding to the second column is determined as the title of the Y coordinate axis. Based on the second element in the data set corresponding to the first column and the second element in the data set corresponding to the second column, the coordinate point (3, 32) is determined. Similarly, based on the third element in the data set corresponding to the first column and the third element in the data set corresponding to the second column, the coordinate point (4, 44) is determined. Based on the fourth element in the data set corresponding to the first column and the fourth element in the data set corresponding to the second column, the coordinate point (5, 57) is determined. Based on the fifth element in the data set corresponding to the first column and the fifth element in the data set corresponding to the second column, the coordinate point (6, 14) is determined. Based on the titles of the coordinate axes and each coordinate point, a line graph is drawn.
[0202] Case 4, determine that the chart type is a pie chart.
[0203] A title for each partition is determined based on a data set corresponding to a predetermined column. A percentage for each partition is determined based on a data set corresponding to a column other than the predetermined column, and a pie chart is drawn based on the title and percentage for each partition.
[0204] In this embodiment, as shown in the writing presentation table 3, in a scenario where the graph type is known, the user writes content in the writing presentation table 3, the user writes the content, the data content in each cell in the writing presentation table is obtained, and the data content in the cell is used to draw a pie chart. Specifically, it is as follows.
[0205] [Table 3]
[0206] For example, each content in the data set corresponding to the first column is set as the title of each partition. That is, the titles of each partition are set as February, March, April, and May, respectively, and the partition percentage corresponding to each partition title is determined based on the data set corresponding to the second column. That is, the occupancy rate of the partition with the title February is 10%, the occupancy rate of the partition with the title March is 20%, the occupancy rate of the partition with the title April is 30%, and the occupancy rate of the partition with the title April is 40%. A pie chart is drawn based on the title and occupancy rate of each partition.
[0207] In some embodiments, the graph type may be determined in one of the following ways:
[0208] Method (1): the graph drawing command includes a graph selection command, and in response to a user's graph selection command in an intelligent drawing graph mode, a graph type corresponding to the graph selection command is determined.
[0209] In addition, the intelligent drawing graph mode in this embodiment may include a writing application that allows the user to write by performing some kind of operation and draws the written content as a chart, or the intelligent drawing graph mode in this embodiment may include an intelligent drawing graph mode that is activated in another application, such as a mode having a graph drawing function in a handwriting application of an electronic whiteboard or an electronic interface having a graph drawing function.
[0210] In this embodiment, when the user enters the intelligent drawing graph mode on the electronic whiteboard, multiple graph type keys are displayed on the display screen, and the user forms graph selection commands for different graph types according to different keys. For example, when the intelligent drawing graph mode is entered, the lower left corner of the display area displays a bar graph, a radar graph, a line graph, and a pie chart, and when the user clicks on the bar graph, the display interface enters the intelligent drawing graph editing interface corresponding to the bar graph.
[0211] In some embodiments, in response to a user's graph selection command in an intelligent drawing graph mode, a writing presentation table is displayed in the display area, and writing trajectory information entered by the user in the writing presentation table is received. When the user stops writing and waits a predetermined time, a graph of a graph type corresponding to the graph selection command is drawn and displayed.
[0212] Method (2): The graph drawing command includes a first touch gesture in response to a first touch gesture made by a user in an intelligent drawing graph mode, recognizing a first figure generated from the first touch gesture, and determining a graph type based on the first figure.
[0213] In some embodiments, the graph drawing instructions include at least one of a drawing instruction for an arrow, a drawing instruction for a circle, a drawing instruction for a polygon, a drawing instruction for a cylinder, and a drawing instruction for a rectangle, where the polygon includes a first shape having at least three sides. The drawing instructions for the arrow include a drawing instruction for a single arrow, a drawing instruction for a double arrow, a drawing instruction for two or more arrows, etc. A user can utilize a touch component to draw the first shape on the display interface, and a processor can recognize the first shape type and determine different types of graphs based on the different first shape types.
[0214] In some embodiments, after identifying a first shape corresponding to a graph drawing command, generating a selection menu before determining a graph type is also included; for example, after identifying a first shape, a candidate menu including at least one graph type selection icon or one graph type selection icon and at least one other operation object selection icon is generated, and the graph type is determined based on a user's selection operation (e.g., clicking) on the selection icon.
[0215] In some embodiments, before a user responds to a graph drawing command in an intelligent drawing graph mode, information of a trail of writing written by the user is received, the trail of writing information is recognized, and a data recognition result is obtained; and then, in response to a graph drawing command by the user in the intelligent drawing graph mode, a graph of a graph type corresponding to the graph drawing command is drawn and displayed based on the data recognition result.
[0216] Optionally, the first shape generated based on the first touch gesture includes, but is not limited to, at least one of an arrow shape, a circular shape, a rectangular shape, a cylindrical shape, and a polygonal shape.
[0217] If the first shape is an arrow shape, determine the graph type to be a line graph. If the first shape is a circular shape, determine the graph type to be a pie chart. If the first shape is a rectangular shape, determine the graph type to be a histogram. If the first shape is a bar graph, determine the graph type to be a bar graph. If the first shape is a polygon shape, determine the graph type to be a radar map.
[0218] In this manner, the present embodiment may determine the graph type in any one or more of the following ways:
[0219] Method (2a): if the graph drawing command includes an arrow drawing command, the graph type is determined to be a line graph. In this embodiment, when a user draws a bidirectional arrow, the graph type is determined to be a line graph and generation of the line graph is triggered.
[0220] In some examples, the arrow drawing command in this embodiment may be, for example, a drawing command for a user to draw two arrows vertically, or a drawing command for a user to draw a single double arrow, or a drawing command for a user to draw a single bidirectional arrow "⇔", for example.
[0221] In some examples, when the drawing command for the double arrow includes a first arrow command "→" and a second arrow command "↑", the direction of the X-axis of the drawn graph is determined based on the first direction indicated by the first arrow command, and the direction of the Y-axis of the graph is determined based on the second direction indicated by the second arrow command. Alternatively, when the drawing command for the double arrow includes a first arrow command "↑" and a second arrow command "→", the direction of the X-axis of the drawn graph is determined based on the first direction indicated by the first arrow command. The direction of the Y-axis of the graph is determined based on the second direction indicated by the second arrow command. It should be noted that the drawing command for the arrow may not only be understood as a user-drawn arrow, but may also include an instruction indicating that a figure drawn by a user is recognized as an arrow, that is, that a user-drawn line segment is recognized as an arrow (a line segment hand-drawn by a user that does not include an arrow corresponds to an arrow) using the product presetting procedure in this embodiment.
[0222] In the embodiment, it is also possible to create a graph by determining the directions of the X-axis and Y-axis in the graph by combining the correspondence between the X-axis, Y-axis and the cells of each column. For example, if the left column cell corresponds to the X-axis, the data content in the left column cell is data on the X-axis. Similarly, if the right column cell corresponds to the X-axis, the data content in the right column cell is data on the Y-axis. The graph displayed differs depending on the directions of the X-axis and Y-axis. In this embodiment, the first arrow command with the X-axis direction as the horizontal direction may be received first, or the first arrow command with the X-axis direction as the vertical direction may be received first, that is, the X-axis direction is determined based on the direction of the received first arrow, and the Y-axis direction is further determined, so that the coordinate axis direction of the graph can be adjusted so that the user can obtain more drawing needs.
[0223] Method (2b): if the graph drawing instruction includes a drawing instruction for a circle, determine that the graph type is a pie chart. In this embodiment, if a user draws a circle, or a double arrow and a circle, determine that the graph type is a pie chart and trigger the generation of a pie chart.
[0224] Method (2c): if the graph drawing command includes a drawing command for a rectangle, the graph type is determined to be a histogram. In this embodiment, if the graph drawing command includes a drawing command for a rectangle or a double arrow and a rectangle, the graph type is determined to be a histogram and the generation of a histogram is triggered.
[0225] Method (2d): if the graph drawing command includes a cylinder drawing command, determine that the graph type is a bar graph. In this embodiment, if the user draws a cylinder, determine that the graph type is a bar graph and trigger the generation of a bar graph.
[0226] Method (2e): if the graph drawing command includes a polygon drawing command, the graph type is determined to be a radar map. In this embodiment, if the user draws a polygon, the graph type is determined to be a radar map, and the generation of the radar map is triggered.
[0227] The data set according to this embodiment may be one piece of data content, or may be a plurality of pieces of data content determined based on the contents of a table written by the user in the writing area.
[0228] In some examples, when the data set is two data contents, the data contents in the same column may be the same data set, or the data contents in the same row may be the same data set, as determined according to actual needs, and are not limited in this embodiment. For example, when the drawn graph type is a line graph, the data set includes two data. Here, one data represents an X-axis coordinate value, and the other data represents a Y-axis coordinate value. When the drawn graph type is a pie chart, the data set includes two data. Here, one data represents a type name, and the other data represents data corresponding to the type name. When the drawn graph type is a histogram, the data set includes two data. Here, one data represents an X-axis coordinate value, and the other data represents a Y-axis coordinate value.
[0229] In this embodiment, the data set may be determined in any of the following embodiments.
[0230] 2-1. Based on the preset correspondence between each row and the coordinate axis, the data contents of each column are determined as each data set.
[0231] In this embodiment, when a user writes two rows of data, the number of rows represents the coordinate axes X and Y, and the number of columns represents the number of data sets. Among them, the top row corresponds to the X axis, and the bottom row corresponds to the Y axis, and the data contents of each column determine each data set (X, Y) from top to bottom. Alternatively, the top row corresponds to the Y axis, and the bottom row corresponds to the X axis, and the data contents of each column determine each data set (X, Y) from bottom to top.
[0232] 2-2. Based on the preset correspondence between each column and the coordinate axis, the data content of each row is determined as each data set.
[0233] In this embodiment, when a user writes two columns of data, the number of rows represents the number of data sets, and the number of columns represents the coordinate axes X and Y. The leftmost column corresponds to the X axis, and the rightmost column corresponds to the Y axis, and the data content of each row determines each data set (X, Y) from left to right. Alternatively, the leftmost column corresponds to the Y axis, and the rightmost column corresponds to the X axis, and the data content of each row determines each data set (X, Y) from right to left.
[0234] In some examples, the title of each axis is determined as follows:
[0235] Based on the predetermined correspondence between each column and the coordinate axis, the data content of each row cell is determined as each data set, and here, the content written by the user that is located on a specific row is determined as the title of each coordinate axis, and the data content in each other row cell is determined as each data set.
[0236] Alternatively, based on a preset correspondence between each row and a coordinate axis, the contents of each column written by the user are determined as each data set, and the contents written by the user that are located in a specific column are determined as the title of each coordinate axis, and the data contents in the other column cells are determined as each data set.
[0237] In some examples, the present embodiment can also determine which of the two columns of cells is the X-axis data and which is the Y-axis data based on the order of the drawn arrows, as shown below.
[0238] Here, the data recognition result includes two columns of cells, and the drawing command for the bidirectional arrow includes a first arrow command and a second arrow command that are drawn sequentially, the first arrow command corresponding to a first column of the two columns of cells, and the second arrow command corresponding to a second column of the two columns of cells.
[0239] When the first direction of the first arrow command is the X-axis direction, the first column cells are set as X-axis data of the graph, and the second column cells are set as Y-axis data of the graph.
[0240] When the first direction of the first arrow command is the Y-axis direction, the first column cells are set as Y-axis data of the graph, and the second column cells are set as X-axis data of the graph.
[0241] Here, the reception time of the first arrow command is earlier than the reception time of the second arrow command. The second direction of the second arrow command is different from the first direction. As can be easily understood, if the first direction of the first arrow command is the X-axis direction, the second direction of the second arrow command may be the Y-axis direction, and if the first direction of the first arrow command is the Y-axis direction, the second direction of the second arrow command may be the X-axis direction. Here, the X-axis direction and the Y-axis direction may be predefined. The X-axis direction and the Y-axis direction are perpendicular to each other. When a user draws a first arrow command and a second arrow command, the first direction of the drawn first arrow command and the second direction of the drawn second arrow command are usually not made completely perpendicular. A certain amount of error is allowed in the first direction and the X-axis direction, and similarly a certain amount of error is allowed in the second direction and the Y-axis direction. The first arrow command and the second arrow command drawn within the error allowable range can recognize the first direction of the first arrow command and the second direction of the second arrow command. Therefore, based on whether the recognized first direction is the X-axis direction or the Y-axis direction, a final decision can be made as to whether to use the data in the first column as the X-axis data or the Y-axis data.
[0242] A graph display method in a writing scene without table lines, the principle of drawing a graph in this embodiment is to obtain each cell divided by processing all the user's writing trajectory information into cells, and to include writing trajectory information for each cell. A handwriting recognition algorithm recognizes the writing trajectory information in each cell, obtains the data content in each cell, and recognizes the data content in each cell. That is, after recognizing each data content, each data set is determined from each data content, and each data set is drawn by graph type. Note that the table data includes the position of each cell and the data content in each cell. Here, the cell position is configured to determine which cell is one data set, and also to determine the concatenation order or sorting order of the data sets. The data content is configured to determine the position of a specific data set on the coordinate axis, or the size of the data set in the graph, or the height of the data set in the graph.
[0243] In some embodiments, in a writing scene without table lines, the table data written by the user includes a title and / or a data set for each coordinate axis. In the table generated in this embodiment, it is possible to determine whether or not to add and display the title of each coordinate axis in the generated table based on whether or not the title of each coordinate axis is included in the table data. In this embodiment, it is determined by setting in advance whether or not the title of each coordinate axis is included in the table data. For example, in this embodiment, the data in the top row of the table is set in advance as the title of each coordinate axis, or the data in the leftmost column is set in advance as the title of each coordinate axis. If the user knows in advance the method of setting the title of each coordinate axis of the electronic whiteboard, the user may write the title of each coordinate axis in the top row, or may write the title of each coordinate axis in the leftmost column. In this embodiment, the title and data content of each coordinate axis in the table data are specifically determined in any of the following embodiments.
[0244] Method 1: among the contents written by the user, the contents located in a specific line are determined as the title of each coordinate axis, and the data contents in each other cell are determined as the data contents.
[0245] In this embodiment, a title for each coordinate axis may be drawn, the data contents in the first row cell in each cell may be used as the title for each coordinate axis, and the data contents in the other cells may be used as the data contents.
[0246] Method 2: among the contents written by the user, the contents located in a predetermined column are determined as the title of each of the coordinate axes, and the data contents in each of the other cells are determined as the data contents.
[0247] In this embodiment, a title for each coordinate axis may be drawn, and the data contents in the first column of each cell may be used as the title for each coordinate axis, and the data contents in the other cells may be used as the data contents.
[0248] Method 3: The data content in each cell is determined as the data content.
[0249] In this embodiment, the data contents in the cells can be graphed collectively as data contents without distinguishing between the titles and data contents of each coordinate axis.
[0250] In some examples, graphs are plotted from table data, specifically in the following sequence:
[0251] Flow 1: The graph type is determined according to the graph drawing command.
[0252] In this embodiment, there is a one-to-one correspondence between the graph drawing command and the graph type.
[0253] Optionally, the graph types according to the present embodiment include, but are not limited to, at least one of a line graph, a pie chart, a histogram, a bar graph, and a bar graph.
[0254] Optionally, the graph drawing command according to the present embodiment includes, but is not limited to, at least one of a touch gesture and a touch command, where the touch gesture includes at least one of a drawing gesture and a multi-finger touch gesture, and the touch command includes a click command.
[0255] In some examples, the touch gesture may include, but is not limited to, at least one of a double arrow drawing command, a circle drawing command, a polygon drawing command, a cylinder drawing command, and a rectangle drawing command. A user may trigger the generation of a line graph when drawing a double arrow in the display interface or the graphing interface, or trigger the generation of a pie graph when drawing a circle in the display interface or the graphing interface, or trigger the generation of a histogram when drawing a rectangle in the display interface or the graphing interface, or trigger the drawing of a corresponding graph when drawing a key in the display interface or the graphing interface or a writing interface click.
[0256] In some examples, the graph drawing instructions include instructions to be triggered after a user stops writing and waits a predetermined time in an intelligent drawing graph mode for a known graph type.
[0257] In some examples, the graph drawing instructions include at least one of a double arrow drawing instruction, a circle drawing instruction, a polygon drawing instruction, a cylinder drawing instruction, and a rectangle drawing instruction.
[0258] Flow 3: Based on each data set corresponding to the content written by the user, a graph corresponding to the graph type is drawn.
[0259] Alternatively, the multiple data sets are determined by dividing the user's writing by columns, or the multiple data sets are determined by dividing the user's writing by rows.
[0260] The contents of any columns handwritten by the user are determined as a single data set, or the contents of any rows handwritten by the user are determined as a single data set.
[0261] Alternatively, the contents of each column written by the user are determined as each data set based on a preset correspondence between each row and a coordinate axis, or the contents of each line written by the user are determined as each data set based on a preset correspondence between each column and a coordinate axis.
[0262] Alternatively, the contents written by the user that are located on a specific row are determined as the title of each of the coordinate axes, and the data contents in the other cells are determined as the data contents, or the contents written by the user that are located on a specific column are determined as the title of each of the coordinate axes, and the data contents in the other cells are determined as the data contents.
[0263] Optionally, the data content within each of said cells is determined as the data content.
[0264] In some examples, if the title of each coordinate axis exists, the graph may be drawn based on the graph type and each of the data sets, and the title of each coordinate axis may be added to the position of the corresponding coordinate axis. If the title of each coordinate axis does not exist, the graph is drawn directly for each data set. The embodiment can draw one or more types of graphs, and different types of graphs can be determined according to the received user's graph drawing command.
[0265] When a line graph is drawn, each determined data set is understood as each coordinate point, and the line graph can be drawn by connecting each coordinate point according to the front-back order on the X-axis or Y-axis. When a histogram is drawn, each determined data set is understood as each coordinate point, and the height of each coordinate point is determined from the Y-axis coordinate value of each coordinate point to draw the histogram. When a pie chart is drawn, each determined data set includes each data that corresponds one-to-one to each object, and the pie chart is drawn using the proportion of each data to the total of all data.
[0266] As shown in Figure 4, when the graph type is a line graph, there is also an example where an XY coordinate axis is drawn and each data set is labeled on the drawn XY coordinate axis. In this case, each data set is treated as a coordinate point, and the coordinate points are connected in ascending order of X-axis coordinates or Y-axis coordinates to obtain a line graph.
[0267] In some examples, when the graph type is a histogram, XY coordinate axes are drawn and each coordinate point is labeled on the drawn XY coordinate axes, as shown in FIG 5. In this case, each data set is a coordinate point, and a rectangle can be drawn based on the distance from each coordinate point to the X axis or the distance from each coordinate point to the Y axis. Here, the height of the rectangle is the distance from that coordinate point to the X axis or the distance from that coordinate point to the Y axis, and the width of the rectangle is a predetermined value.
[0268] In some examples, when the graph type is a histogram, one data item is included for each data set, and the proportion of the size of each data item relative to the sum of all the data items is determined, and a pie chart is drawn based on the proportion of each data item.
[0269] In some embodiments, the graph drawing instructions include instructions that are triggered after a user stops writing and waits a predetermined time in an intelligent drawing graph mode of a known graph type of drawing a rectangle.
[0270] In some embodiments, in response to a user editing command in a smart graph mode of a known graph type, a predetermined graph is displayed in the display area, where the display manner of the predetermined graph is determined based on the known graph type.
[0271] In this embodiment, when the user selects a graph type, in the intelligent drawing graph mode of a known graph type, when the user stops writing and waits a predetermined time, it is deemed that the user has written the necessary content in the writing presentation table, and the content written by the user is recognized, a graph is drawn, and the drawn graph is displayed.
[0272] In some embodiments, the present embodiment may also provide the user with a boot template that allows the user to fill in the table contents based on the contents of the guide template, thereby standardizing the user's filling in the table contents and improving the identification accuracy. In the present embodiment, after determining the graph type, a guide template is displayed in the display area of the display screen to guide the user to fill in the table contents according to the writing specifications corresponding to the graph type.
[0273] In some embodiments, a first partition of the guide template displays a table template, a second partition of the guide template displays a table template, the table template includes predetermined content, and the graph template includes a graph corresponding to the predetermined content.
[0274] In some embodiments, when a user stops writing and it is determined that no more writing has been done after waiting a predetermined time, the writing trajectory information in the display area of the display screen is recognized and a data recognition result is obtained.
[0275] In some embodiments, a trajectory point in the handwriting trajectory information in the display area of the display screen, the trajectory point having a pixel value greater than a pixel threshold, is recognized to obtain a data recognition result.
[0276] In some embodiments, in response to an intelligent drawing graph activation command triggered by a user on a first display interface of a handwriting application, a second display interface in an intelligent drawing graph mode is displayed in the display area.
[0277] After drawing a graph in the second display interface and displaying the graph, the graph in the second display interface is inserted into and displayed in a first display interface of the handwriting writing application in response to an insertion command from a user.
[0278] The writing application in this embodiment is software that allows a user to write on a display interface via a touch pen or finger and displays the contents written by the user in real time, including but not limited to a writing function, a touch signal recognition function, a touch pen recognition function, and other additional functions. The writing function includes a software entity having basic writing functions such as writing, erasing, marking, annotation, and clearing, and in this embodiment, functions other than the basic writing function are not particularly limited.
[0279] After a user displays the graph, annotation information regarding the graph is added to the area where the graph exists, and in response to an insertion command from the user, the graph and the annotation information are inserted and displayed in the first display interface.
[0280] In some embodiments, the intelligent drawing graph launch command according to the present embodiment includes, but is not limited to, at least one of a touch command and a touch gesture, where the touch command includes, but is not limited to, at least one of a click, a single click, and a double click, and the touch gesture includes, but is not limited to, at least one of a writing command and a drawing command formed by a user touching with a finger or a touch pen.
[0281] In some embodiments, when the intelligent drawing graph launch command is a second touch gesture, display a second display interface in the intelligent drawing graph mode in the display area. A second figure drawn by a user on a first display interface of a cursive writing application is received, the second figure being a second figure generated based on the second touch gesture.
[0282] Triggering, based on the second graphic, to display a second display interface in an intelligent drawing graph mode in the display area.
[0283] In this embodiment, after the user draws a second figure on the first display interface of the handwriting writing application, trigger the second display interface to enter the intelligent drawing graph mode.
[0284] In some embodiments, after receiving a second figure drawn by the user on a first display interface of a writing application, the non-standard second figure hand-drawn by the user is recognized as a second graphic by controlling a standard rectangle to be displayed on the display screen. For example, in the case of a rectangle whose sides are not absolutely straight, the processor performs recognition, and then controls a standard rectangle to be displayed on the display screen and generates a candidate menu on the first display interface. For example, next to the standard rectangle, the candidate menu includes a first launch icon corresponding to the second figure. The user triggers a graph-type second display interface corresponding to the second figure to be displayed on the display area in response to a touch operation by the user on the first launch icon.
[0285] In this embodiment, after a user draws a second figure on a first display interface of a writing application, a candidate menu is generated on the first display interface, and a first launching icon is included in the candidate menu. The first launching icon is configured to launch a second display interface of a graph type corresponding to the second figure. At the same time, after a different second figure drawn by the user is recognized by the processor, a different first launching icon may be generated to proceed to the second display interface when the first launching icon is clicked. The graph types displayed by the second display interfaces generated by the different first launching icons are also different. That is, the user may understand the click selection command of the first launching icon as a graph drawing command.
[0286] In some embodiments, the corresponding graph type is determined according to a second figure of a different shape drawn by the user in the first display interface according to the present embodiment, and the first launch icon in the candidate menu also differs according to the shape drawn by the user, and an icon corresponding to the graph type of the second figure is displayed in the candidate menu, so that the user can enter the second display interface of the corresponding graph type by touching the icon. Specific embodiments are as follows:
[0287] When the second graphic is cylindrical, the first activation icon is a bar icon, and in response to a user's touch operation on the bar icon, triggers the display of a second display interface corresponding to a bar graph.
[0288] When the second graphic form is a rectangle, the first activation icon is a histoicon, and triggers display of a second display interface corresponding to a histograph in response to a user's touch operation on the histoicon.
[0289] When the second graphic is a circle, the first activation icon is a circular icon, and triggers the display of a second display interface corresponding to a pie chart in response to a user's touch operation on the circular icon.
[0290] When the second graphic is a polygon, the first activation icon is a radar icon, and in response to a user's touch operation on the radar icon, triggers the display of a second display interface corresponding to a radar map.
[0291] When the second graphic is an arrow, the first activation icon is a line icon, and in response to a user's touch operation on the line icon, a second display interface corresponding to a line graph is triggered to be displayed.
[0292] In some embodiments, the candidate menu further includes a second launch icon including an analysis template icon, which includes but is not limited to a SWOT (Enterprise Policy Analysis) icon, a KANO (KANO model, a tool useful for classifying and prioritizing user needs, which shows a non-linear relationship between product performance and user satisfaction based on analyzing the impact of user needs on user satisfaction) icon, etc. After the second launch icon is displayed in the candidate menu, the following embodiment is executed.
[0293] In response to a user's touch operation on an analysis template icon, an analysis template corresponding to the analysis template icon is inserted into the first display interface.
[0294] In this embodiment, a SWOT icon is displayed in the candidate menu of the first display interface, and when the user clicks on this SWOT icon, a corresponding analysis template is inserted into the first display interface, and the user can perform editing operations, add content, etc. on the analysis template.
[0295] In some embodiments, for example, when a user draws a circle in the first display interface, a candidate menu is displayed in the first display interface, a circle icon and a KANO icon are displayed in the candidate menu, and when the user clicks the circle icon, a pie chart can be drawn in the second display interface corresponding to the pie chart in the intelligent drawing graph mode. When the user clicks the KANO icon, an analysis template corresponding to the first display interface is inserted, and the user can perform editing operations, add content, etc. on the analysis template. Based on the same principle, embodiments corresponding to other shapes also belong to the protection scope of the present invention, and the description is omitted here.
[0296] In some examples, the present embodiment may also provide a display area division method for distinguishing between a writing area for receiving user's writing and user's writing trajectory information and a graph area for displaying graphs. Before responding to a user's graph drawing command, the specific implementation manner of the method is as follows:
[0297] A writing area and a graph area are determined in a display area of the display screen, the writing area is configured to receive a user's handwriting trajectory information, and the graph area is configured to display a graph corresponding to the handwriting trajectory information.
[0298] It is easy to understand that the writing area is used to receive the user's writing trajectory information and other touch operations, and the user can perform normal control operations such as writing and clicking in the writing area, and the graph area is used to display graphs, and when the user uses the writing area, the user writes the graph content to be drawn in the writing area, and a graph corresponding to the graph content is displayed in the graph area. By dividing the display area, the writing area can better distinguish and display the user's writing trajectory information received, and the drawn graph can be displayed in a graph area different from the writing area, thereby improving the user experience.
[0299] In order to display a graph in the graph area, a touch gesture (writing trajectory information) of a user in the graph area is received, and a predetermined time is waited before triggering the display of the graph drawn in the graph area. In the writing area, other functions (such as a chart display function) are not triggered after the user receives the writing trajectory information and waits for a predetermined time to ensure the normal writing function of the writing area, and by waiting until the next time the user's writing trajectory information is received, the writing area and the graph area can be efficiently distinguished.
[0300] In some examples, the writing path information in the writing area is recognized, and in response to a user's graph drawing command, a graph of a graph type corresponding to the graph drawing command is drawn based on the data recognition result, and the drawn graph is displayed in the graph area.
[0301] In this embodiment, at least one of a writing suggestion table and a predetermined graph is displayed in a display area of a display screen, the data content in the writing suggestion table is empty, and the user can write table content in each cell of the writing suggestion table. In an optional embodiment, a writing area and a graph area in the display area of the display screen are determined, the writing area is configured to receive the user's writing trajectory information, and the graph area is configured to display a graph corresponding to the writing trajectory information. In the writing area of the display area, a writing suggestion table corresponding to the graph type is displayed, and / or in the graph area of the display area, a predetermined graph corresponding to the graph type is displayed, where the content in the predetermined graph is also empty, i.e., only the graph specification is displayed without displaying the graph content. For example, the graph type is a predetermined graph of a pie chart, which can be a pie chart without partitions.
[0302] In some embodiments, in response to a user's graph selection command in an intelligent drawing graph mode, after determining a graph type corresponding to the graph selection command, or after displaying a guide template corresponding to the graph type in a display area of the display screen, the processor is specifically configured to perform the following:
[0303] In response to a user's editing command in a smart graph mode of a known graph type, a writing suggestion table and a predetermined graph are displayed in the display area, and writing trajectory information entered by a user in the writing suggestion table is received.
[0304] In this case, both the writing presentation table and the predetermined graph are empty. The writing presentation table is used to provide an empty table for easy input of table contents, and the predetermined graph provides graph specifications for easily drawing contents on the predetermined graph based on the table contents input by the user. Here, the number of rows and columns of the writing presentation table is fixed, or the number of rows and columns of the writing presentation table is set based on parameters input by the user, and the display specifications of the predetermined graph are determined based on the graph type corresponding to the guide template.
[0305] In some examples, the graph area is configured to receive a user's graph drawing command. In some examples, when a user receives the graph drawing command in the graph area and waits a predetermined time, the writing trajectory information in the writing area is recognized in response to the user's graph drawing command, and a graph of a graph type corresponding to the graph drawing command is drawn based on a data recognition result, and the drawn graph is displayed in the graph area.
[0306] In this embodiment, after determining the writing area and the graph area in the display area of the display screen, a graph drawing command is received from the user, where the graph drawing command can be a graph drawing command triggered by the user in the graph area or a graph drawing command triggered by the user in the writing area.
[0307] The graph drawing command is a touch gesture, and the user triggers the graph drawing command in the graph area, for example, the user draws a bidirectional arrow in the graph area, and the electronic whiteboard according to the present embodiment has character recognition and graphic recognition functions, and is configured to perform character recognition and / or digital recognition of the writing trajectory information in the writing area and graphic recognition of the writing trajectory information in the graph area when recognizing the writing trajectory information, in order to distinguish between the user's writing trajectory information in the writing area and the user's writing trajectory information in the graph area, mainly to recognize at least one of an arrow, a circle, and a rectangle. The different recognition methods can more quickly and accurately recognize the writing trajectory information in the writing area, and can quickly recognize the user's graph drawing command in the graph area and quickly determine the drawn graph type.
[0308] In some embodiments, the division of the display area into a writing area and a graph area is also determined as follows.
[0309] In response to a user editing command in a smart graph mode of a known graph type, the display area is divided into a writing area and a graph area, the graph area being configured to display a graph corresponding to the graph type.
[0310] In some embodiments, when a user has already selected a graph type and is in an intelligent drawing graph mode of a known graph type, an editing command can be directly triggered to divide the display area into a writing area and a graph area, making it easier for the user to perform operations such as editing and writing in the writing area, and the writing trajectory information in the writing area can be displayed in the graph area.
[0311] In some embodiments, a writing area and a graph area in a display area of the display screen are determined, the writing area is configured to receive user's writing trajectory information, and the graph area is configured to display a graph corresponding to the writing trajectory information. A writing presentation table corresponding to the graph type is displayed in the writing area of the display area, and / or a predetermined graph corresponding to the graph type is displayed in the graph area of the display area. In this embodiment, a user can write content in each cell of the writing presentation table, and the content can be drawn on the predetermined graph based on the written content.
[0312] In some embodiments, the user can also drag the contents of the writing area to reposition the contents of the writing area, and drag the contents of the graph area to reposition the contents of the graph area.
[0313] In some embodiments, in response to a user's drag command on a writing area, the content of the writing area is moved in a corresponding direction, or in response to a user's drag command on a graph area, the content of the graph area is moved in a corresponding direction.
[0314] In some embodiments, a mouse in a writing presentation table area in the writing area of this embodiment is draggable, and in response to a user's drag command on the writing area, the writing presentation table is moved in a corresponding direction, or a predetermined graph in the graph area is also draggable, and in response to a user's drag command on the graph area, the predetermined graph is moved in a corresponding direction.
[0315] In some embodiments, after receiving the writing trajectory information entered by the user in the writing presentation table, when the user stops writing in the writing area and waits a predetermined time, the writing trajectory information in the writing presentation table is recognized, a data recognition result is obtained, and based on the data recognition result, drawing is performed on the specified graph, and a graph corresponding to the data recognition result is obtained.
[0316] In some embodiments, after obtaining a graph corresponding to the data recognition result, the method further includes any of the following embodiments.
[0317] (1) In response to a user's correction command, the corresponding handwriting trajectory information is corrected, and the graph is updated based on the corrected handwriting trajectory information.
[0318] In this embodiment, when a user makes partial corrections based on the existing contents of the writing area, the existing contents of the writing area are first replaced with the corrected writing trajectory information based on the corrected writing trajectory information, and the graph is redrawn using the contents of the corrected writing area, and the existing graph in the graph area is updated with the redrawn graph.
[0319] (2) In response to a content addition command from a user, the corresponding handwriting trajectory information is added, and the graph is updated based on the added handwriting trajectory information.
[0320] In this embodiment, when a user adds new content based on the existing content in the writing area, the graph is redrawn from the writing trajectory information in the newly added writing area as well as the writing area, and the redrawn graph can be updated and displayed in the graph area. Note that the new content is not limited to inserting new content at a position before or in the middle of the original content. For example, inserting 0 into the original 12 results in the new content being 102, or inserting 3 before 12 results in the new content being 312.
[0321] (3) In response to a stroke addition command from the user, a stroke of the corresponding writing locus information is added, and the graph is updated based on the writing locus information after the stroke addition.
[0322] In this embodiment, strokes are added in addition to the original letters and numbers, the content written by the user is re-recognized from the added strokes, a graph is redrawn from the writing trajectory information after the strokes are added, and the original graph is updated with the redrawn graph.
[0323] In some embodiments, it can be determined whether the currently newly added writing trajectory information is modified to the original content, added to the original content, or added to the original stroke based on the position of the newly added writing trajectory information and the overlap area with the existing writing trajectory information. In this embodiment, for example, if the position of the newly added writing trajectory information overlaps with the position of the existing writing trajectory information and the overlap area is greater than a threshold, it is determined that the newly added writing trajectory information is a modification to the original content; if the position of the newly added writing trajectory information overlaps with the position of the existing writing trajectory information and the overlap area is not greater than a threshold, it is determined that the newly added writing trajectory information is an increase to the original stroke; if the position of the newly added writing trajectory information does not overlap with the position of the existing writing trajectory information and the position of the newly added writing trajectory information is located before or in the middle of the position of the existing writing trajectory information, it is determined that the newly added writing trajectory information is a newly added content inserted before or in the middle of the original content.
[0324] (4) In response to a deletion command from the user, the corresponding handwriting locus information is deleted, and the graph is updated based on the deleted handwriting locus information.
[0325] In this embodiment, the user's erase command includes, but is not limited to, a palm erase command or an eraser command, where the palm erase command is a command that is activated when the user erases the corresponding content in the writing area with the palm simulation eraser, and the eraser command is a command that is activated when the user clicks the eraser option in the menu bar.
[0326] (5) In response to a user's clear command, all handwriting trace information is cleared.
[0327] In this embodiment, the screen can be cleared with one click. By triggering a clear command, all the writing trajectory information in the writing area is cleared and the graph in the graph area is maintained.
[0328] In some embodiments, after the display area is divided into the writing area and the graph area, the user can perform any of the following commands on the graph area:
[0329] displaying said graph area in full screen in response to a user's full screen preview command; or In response to a user's annotation operation in the graph region, displaying content corresponding to the annotation operation; or in response to a user erasing operation in the graph region, erasing content in the graph region corresponding to the erasing operation; or Clear the contents of the chart area in response to a user clear action on the chart area, or Save the contents of the chart region in response to a user save action in the chart region, or Switching the current graph type in response to a user command to switch graph types, or In response to a user command to insert into the graph region, the contents of the graph region of the current display interface are inserted into the previous display interface.
[0330] In some examples, after determining a writing area and a graph area in the display area of the display screen, receiving user's writing trajectory information in the writing area, recognizing the writing trajectory information in the writing area in response to the user's graph drawing command in the graph area, and based on the data recognition result, drawing a corresponding type of graph based on the determined table data, and displaying the graph in the graph area.
[0331] The generated graph area is a part or the whole of the display area of the electronic whiteboard. When the generated graph area is a part of the display area, a writing area of the remaining area of the display area receives the user's handwriting trajectory information and touch operation. The graph area is configured to receive a graph drawing command from the user and display a graph. Here, the graph drawing command includes at least one of a touch gesture and a touch command, and the present invention is not particularly limited.
[0332] In some examples, the present embodiment can divide the display area into a writing area and a graph area in any of the following ways:
[0333] Method 1: The display area is divided in advance into a writing area and a graph area.
[0334] In this method, when the device is powered on, the writing and graphing areas are either displayed directly on the display area, or When a specific program is launched, the writing area and the graph area are displayed directly on the display area.
[0335] In this embodiment, for example, in an intelligent drawing graph mode of an electronic whiteboard, the display area is divided into a writing area and a graph area in response to a user triggering the intelligent drawing graph mode, or in response to a user editing command in a smart graph mode of a known graph type, the display area is divided into a writing area and a graph area.
[0336] Method 2: After receiving the partition button triggered by the user, the display area is divided into a writing area and a graph area.
[0337] In this method, before receiving a partition button triggered by the user, the user can perform normal writing interaction in the entire area of the electronic whiteboard, and when the partition button is triggered, it is triggered again to generate a new display area and divide the display area into a writing area and a graph area.
[0338] Method 3: After determining that the user has completed writing, the display area is divided into a writing area and a graph area.
[0339] In this method, the divided writing area contains information about the path of writing written by the user.
[0340] In addition, in either of the above methods, a user can distinguish between partitions in the display area by displaying a division label on each partition, for example, by displaying "writing area" in the writing area and "graph area" in the graph area.
[0341] In some examples, the display area of the present embodiment is divided into a writing area and a graph area. The relationship between the writing area and the graph area includes, but is not limited to, any one or more of the following:
[0342] First type, as shown in FIG. 7A, the writing area and the graph area do not overlap each other.
[0343] Second, as shown in FIG. 7B, the graph region hovers above the writing area and does not occlude the contents of the writing area.
[0344] Third type: the writing area and the graph area have an axially symmetrical relationship.
[0345] Fourth type: As shown in FIG. 7C, the writing area and the graph area have a central symmetric relationship.
[0346] Fifth type: as shown in FIG. 7D, the writing area and the graph area are different, or the writing area and the graph area have the same shape.
[0347] A sixth type, as shown in FIG. 7E, is that the writing area and the graph area have different backgrounds, or the writing area and the graph area have the same background.
[0348] Seventh type: the writing area and the graph area have different sizes, or the writing area and the graph area have the same size.
[0349] It should be noted that the above-mentioned relationship between the writing area and the graph area is merely an example, and other relationships between the writing area and the graph area based on the same inventive idea also fall within the scope of protection of the present invention and are not particularly limited here.
[0350] In some examples, the display area of the present embodiment is divided into a writing area and a graph area. Here, the writing area and the graph area each occupy half of the display area, that is, the display area is divided evenly into the writing area and the graph area. Alternatively, the display area is divided into the writing area and the graph area according to the proportional relationship between the area of a given writing area and the area of the graph area. The shapes and sizes of the writing area and the graph area may be the same or different, and are not particularly limited here.
[0351] In some examples, the graph area according to this embodiment is determined in one of the following ways:
[0352] Method 1: determining a graph area within the display area of the display screen based on predefined position information.
[0353] In this embodiment, after the electronic whiteboard is turned on or a specific program is started, the display area is divided into a writing area and a graph area. The graph area can be located to the right or left, or above or below the writing area.
[0354] Method 2: In response to a first partition command in the display area, a user determines a graph area in the display area that corresponds to the first partition command.
[0355] Alternatively, a graph area corresponding to a different first partition command is preset, and the graph area corresponding to the first partition command is determined based on the received first partition command. In this method, after the user transmits the first partition command from the display area, the display area is divided into a writing area and a graph area. The position of the graph area corresponds to the first partition command. In this mode, when the user's first partition command is not received, the display area is regarded as the writing area and normal writing is performed. Here, the different first partition commands may be triggered by different keys, but are not particularly limited here. In another mode, a graph area is preset, and when the first partition command is received, the preset graph area is displayed as it is. In this mode, when the user transmits the first partition command in the display area, the display area is divided into a writing area and a graph area, and the position of the graph area is fixed.
[0356] In the embodiment, when there is no drawing request, the user can normally use the function of the electronic whiteboard to perform normal writing interaction, and when the user needs to draw a graph, the user can trigger a key on the current display area or partition the electronic whiteboard in other ways, such as a touch pen key. After partitioning, the user can still normally perform writing interaction in the writing area. When a graph drawing command is triggered in the graph area, a graph is displayed in the graph area after a predetermined time has elapsed.
[0357] In some examples, the user may repartition the partitioned display area, display the drawn graph in the graph area, and then repartition the writing area and the graph area to convert the table contents written by the user into corresponding graphs and display them again. At this time, the writing area includes two table contents written by the user. The corresponding graph area includes two graphs corresponding to the two table contents written by the user. Specifically, as follows:
[0358] In response to a second user partition command, the writing area is divided into a first writing area and a second writing area, and the graph area is divided into a first graph area and a second graph area.
[0359] In this embodiment, the positional relationship between the partitioned first writing area and the second writing area may be adjacent to each other or may be separated by a graph area, and similarly, the positional relationship between the first graph area and the second graph area may be adjacent to each other or may be separated by a writing area. For example, in an example in which both the writing area and the graph area are partitioned, the obtained first writing area and the second writing area, the first graph area, and the second graph area are the first writing area, the second writing area, the first graph area, and the second graph area in order from the left in the display area. Alternatively, the first writing area, the first graph area, the second writing area, and the second graph area in order from the left. Alternatively, the first writing area, the first graph area, the second graph area, and the second writing area in order from the left. Alternatively, the first graph area, the first writing area, the second writing area, and the second graph area in order from the left. In this embodiment, the positional relationship between the divided writing area and graph area is not particularly limited.
[0360] Here, the first writing area is configured to display handwriting trajectory information received before division, the second writing area is configured to display handwriting trajectory information received in the second writing area after division, the first graph area is configured to display a graph corresponding to the handwriting trajectory information in the first writing area, and the second graph area is configured to display a graph corresponding to the handwriting trajectory information in the second writing area.
[0361] In this embodiment, after the writing area is divided into a first writing area and a second writing area, the second writing area can receive the user's writing trajectory information, and the user can input the content that needs to generate a table in the second writing area. The content written by the user before the division in the first writing area is still stored. Optionally, the first writing area can also receive the user's writing trajectory information. The first graph area still displays a graph corresponding to the content written by the user before the division. The second graph area displays a graph corresponding to the table content newly written by the user. This allows the conference user to simultaneously view the two table data and the corresponding table, which facilitates the matching and improves the conference interactive experience of the user.
[0362] In addition, after receiving a second partition command from the user, operations such as scaling and panning the trajectory information in the writing area can be performed before dividing the writing area into a first writing area and a second writing area, and in response to the second partition command from the user, all of the trajectory information in the writing area can be moved to the first writing area, and the original trajectory information can be scaled according to the size of the first writing area.
[0363] In some examples, the present embodiment further provides a method for modifying writing trajectory information and contrasting graphs, which is designed to obtain the modified writing trajectory information to determine the data content in the corresponding modified table data content, redraw the graph for all modified data content, and display the redrawn graph and the original table before modification on the same coordinate axis or different pie charts, and can visualize and compare the data content in the table before modification and the data content in the modified table in the form of graphs, effectively improving the user's meeting interactive experience.
[0364] In some examples, in response to a user's correction command, corrected handwriting trajectory information is obtained and stored in a first memory area, and the first memory area is different from the memory area in which the handwriting trajectory information before correction exists.
[0365] In this embodiment, by storing the original writing trajectory information and the corrected writing trajectory information in different memory areas, when recognizing the writing trajectory information, it becomes possible to more quickly obtain the writing trajectory information from the different memory areas, and during recognition, it is possible to distinguish between the corrected writing trajectory information and the writing trajectory information before correction.
[0366] In some examples, the user modification commands of this embodiment include, but are not limited to, at least one of commands triggered by different pen tips of the stylus, commands triggered by different keys of the stylus, and commands triggered by a display area switching button.
[0367] In this embodiment, when the user modifies the original handwritten content in the handwriting area, in this embodiment, it is determined whether the handwriting trajectory has been modified as follows.
[0368] Method 1: determining that the writing trajectory information has been modified based on a received touch pen writing switching command;
[0369] Specifically, it is determined that a touch pen writing switching command has been received in the following manner.
[0370] Method 1-1: determining that a touch pen writing switch command has been received based on the received touch pen writing commands of different pen tips;
[0371] In this embodiment, when dual touch pens are used, the writing commands touched by the dual touch pens are different. If a first pen is used to write in the writing area for the first time and a second pen is used to correct the writing content, after the electronic whiteboard receives the writing command triggered by the second pen, it determines that it has received a touch pen writing switch command, determines that the writing trajectory information has been corrected at this time, and stores the writing trajectory information triggered by the second pen in the first memory area when graphing it later.
[0372] Method 1-2: Based on the selection command triggered by different keys of the received touch pen, it is determined that the touch pen's writing switching command has been received.
[0373] In this embodiment, when a first touch pen corresponding to a first button is used to write in the writing area for the first time, and a second touch pen corresponding to a second button is used to correct the writing content, after receiving a writing command triggered by the second touch pen on the electronic whiteboard, it is determined that a touch pen writing switching command has been received. At this time, it is determined that the writing trajectory information has been corrected, and the writing trajectory information triggered by the second touch pen is stored in the first storage area for later use in drawing a graph.
[0374] Method 2: Based on the received user switching command triggered by the display area switching button, it is determined that the handwriting trajectory information has been modified.
[0375] In some examples, it is determined that the writing trajectory information has been changed based on a switching command from the receiving user to the switching button in the writing area. In an embodiment, a switching button is provided in the graph area, and when the user clicks the switching button once (turns the switching button on), the writing trajectory information is stored in a first storage area, and when the user clicks the switching button twice (turns the switching button off), the writing trajectory information is stored in a storage area other than the first storage area.
[0376] In some examples, in response to a user's modification command, the present embodiment may distinguish and display the content modified by the user. determining a first pre-modification content and a second modified content corresponding to the modification instruction; simultaneously displaying the first content and the second content; The display formats of the first content and the second content are different.
[0377] Here, if the display colors of the first content and the second content are different, or the font styles are different, or the font sizes are different, or the first content is marked with a deletion mark and the second content is displayed in bold, it will look like Figures 8A and 8B.
[0378] In some examples, after the present embodiment obtains and stores the corrected writing trajectory information in the first storage area, when the user again receives a graph drawing command, it recognizes all the writing trajectory information obtained after the correction and draws a graph. Here, the coordinate axis used by the graph and the coordinate axis used by the graph drawn with all the original writing trajectory information before the correction are the same, and the graph corresponding to the corrected writing trajectory information is redrawn on the coordinate axis of the graph, so that the user can perform data matching based on the retention of the originally displayed graph and improve the meeting interactive experience.
[0379] In some examples, after obtaining and storing the corrected writing trajectory information in the first storage area, the method is configured to perform the following steps:
[0380] Step 1: acquiring corrected handwriting locus information from the first storage area, and drawing a first graph based on the handwriting locus information before the correction and the corrected handwriting locus information.
[0381] In this embodiment, when the user's graph drawing command is received again after the corrected writing trajectory information is obtained, the generation of the first graph is triggered in response to the user's graph drawing command again. Here, the first graph includes the first table data corresponding to the writing trajectory information before the correction and the second table data corresponding to the corrected writing trajectory information.
[0382] In some examples, the first graph is drawn in the following steps:
[0383] Step 1-1: A first cell corresponding to the corrected handwriting trajectory information is determined from among the cells classified according to the handwriting trajectory information before the correction.
[0384] Step 1-2: The uncorrected writing trajectory information in the first cell is replaced with the corrected writing trajectory information.
[0385] Step 1-3: Recognize the handwriting locus information in each replaced cell, and obtain the data content in each cell. In this embodiment, the handwriting locus information is recognized by a handwriting recognition algorithm, and obtain the data content in each cell.
[0386] Step 1-4: determining second table data based on the data content in each of the cells.
[0387] Step 2: first table data corresponding to the uncorrected handwriting trajectory information and the second table data are simultaneously displayed on the first graph, and the first table data and the second table data have different display specifications.
[0388] In some examples, as shown in FIG. 9A, when the graph type corresponding to the graph drawing command is a line graph, the first table data and the second table data are displayed simultaneously on the same coordinate axis.
[0389] As shown in FIG. 9B, when the graph type corresponding to the graph drawing command is a histogram, the first table data and the second table data are displayed simultaneously on the same coordinate axis.
[0390] In some examples, after the corrected writing trajectory information is obtained and stored in the first memory area, a second graph and a third graph can be drawn, which is specifically performed as follows:
[0391] obtaining the corrected writing trajectory information from the first storage area, drawing a second graph based on the writing trajectory information before the correction, and drawing a third graph based on the corrected writing trajectory information; The second graph and the third graph are displayed simultaneously.
[0392] As shown in FIG. 9C, when the graph type corresponding to the graph drawing command is a pie graph, the second graph and the third graph are simultaneously displayed as different pie graphs.
[0393] The display specifications of the second graph and the third graph are different. In some examples, the display style includes at least one of color, shape, and line thickness, but is not limited thereto. In this embodiment, in order to distinguish and display the second graph and the third graph, the second graph and the third graph are drawn using lines of different colors, lines of different shapes, or lines of different thicknesses, but this is not particularly limited.
[0394] In some examples, recognition of handwriting trajectory information (including numbers, figures, titles of each coordinate axis, etc.) in this embodiment can be realized using neural networks such as Convolutional Neural Networks (CNN) and Recurrent Neural Networks (RNN), for example, Long Short-Term Memory (LSTM) models.
[0395] In some embodiments, the present invention also provides a text recognition model that recognizes trajectory information, as described below.
[0396] The writing trajectory information is input to a text recognition model for recognition, and data content corresponding to the writing trajectory information is output, and the text recognition model includes a plurality of BiLSTM network layers and a fully connected layer, at least two outputs are connected to the input of any BiLSTM network layer except for the first two BiLSTM network layers, and at least three outputs are connected to the fully connected layer.
[0397] The at least two outputs include outputs from any two BiLSTM network layers prior to any of the BiLSTM network layers, and the at least three outputs include outputs from any three BiLSTM network layers prior to the fully connected layer.
[0398] In some embodiments, the output from any BiLSTM network layer prior to but not including the final BiLSTM network layer is used as input to at least two subsequent BiLSTM network layers.
[0399] In some embodiments, any of the BiLSTM network layers is obtained after pruning network parameters using a Dropout layer during model training, any of the BiLSTM network layers includes an implicit layer number less than a predetermined value.
[0400] In some embodiments, the text recognition model includes four BiLSTM network layers and a fully connected layer, where a first BiLSTM network layer includes a first input and a first output, a second BiLSTM network layer includes a second input and a second output, a third BiLSTM network layer includes a third input and a third output, and a fourth BiLSTM network layer includes a fourth input and a fourth output.
[0401] The first input is configured to input the writing trajectory information. The second input connects the first output. The third input connects the first output and the second output. The fourth input connects the first output, the second output and the third output. The fourth output connects the fully connected layer inputs, and the output from the fully connected layer is configured to output data content corresponding to the writing trajectory information.
[0402] In some examples, the graph drawing method provided by the embodiments of the present invention in a writing scene without table lines, as shown in FIG. 10, is illustrated by taking partitions as an example.
[0403] Step 1000, the writing and graphing areas of the display area of the electronic whiteboard are determined.
[0404] In step 1001, the user's handwriting locus information in the writing area is received, and after the completion of writing is confirmed, the handwriting locus information of the entire writing area is obtained and stored in a storage area.
[0405] Step 1002: In response to a graph drawing command triggered by a user in the graph area, the handwriting trajectory information in the memory area is divided into cells according to a clustering algorithm, and the handwriting trajectory information in each cell is recognized according to a handwriting recognition algorithm to obtain a first table data.
[0406] Step 1003: Drawing a graph of a graph type corresponding to the graph drawing command based on the first table data.
[0407] In step 1004, the drawn graph is displayed in the graph area.
[0408] Step 1005: In response to a correction command triggered by a user in the writing area, corrected writing trajectory information is obtained and stored in a first storage area.
[0409] Step 1006: In response to a graph drawing command triggered by the user in the graph area, retrieve the modified handwriting trajectory information from the first storage area, and draw a first graph based on the unmodified handwriting trajectory information and the modified handwriting trajectory information, where the first graph includes the first table data and second table data corresponding to the modified handwriting trajectory information.
[0410] Here, the display method of the first table data and the second table data is different, for example, in terms of display color and line format.
[0411] In some examples, as shown in FIG. 11, in a writing scene without table lines, the implementation flow of drawing a line graph provided by the embodiments of the present invention is specifically as follows:
[0412] Step 1100, the writing and graphing areas of the display area of the electronic whiteboard are determined.
[0413] In step 1101, the user's handwriting locus information in the writing area is received, and after the completion of writing is confirmed, the handwriting locus information of the entire writing area is obtained and stored in a storage area.
[0414] Step 1102: in response to a drawing command of a double arrow triggered by a user in the graph area, the writing path information in the memory area is divided into cells according to an automatic cell algorithm, and the writing path information in each cell is recognized based on a handwriting recognition algorithm to obtain a first table data.
[0415] Step 1103: A line graph is drawn based on the first table data.
[0416] In step 1104, the drawn line graph is displayed in the graph area.
[0417] Step 1105: In response to a correction command triggered by a user in the writing area, corrected writing trajectory information is obtained and stored in a first storage area.
[0418] Step 1106: In response to the user's triggered bidirectional arrow drawing command in the graph area, retrieve the corrected writing trajectory information from the first storage area, and draw a first line graph based on the uncorrected writing trajectory information and the corrected writing trajectory information, where the first line graph includes the first table data and second table data corresponding to the corrected writing trajectory information.
[0419] Here, the display method of the first table data and the second table data is different.
[0420] In some examples, as shown in FIG. 12, in a writing scene without table lines, the implementation flow of drawing a histogram provided by the embodiments of the present invention is specifically as follows:
[0421] Step 1200 determines the writing and graphing areas of the display area of the electronic whiteboard.
[0422] In step 1201, the user's handwriting locus information in the writing area is received. After the completion of writing is confirmed, the handwriting locus information of the entire writing area is obtained and stored in a storage area.
[0423] Step 1202: in response to a rectangle drawing command triggered by a user in the graph area, the handwriting trajectory information in the memory area is divided into cells according to an automatic cell algorithm, and the handwriting trajectory information in each cell is recognized based on a handwriting recognition algorithm to obtain a first table data.
[0424] In step 1203, a histogram is drawn based on the first table data.
[0425] In step 1204, the drawn histogram is displayed in the graph area.
[0426] Step 1205: In response to a correction command triggered by a user in the writing area, corrected writing trajectory information is obtained and stored in a first storage area.
[0427] Step 1206: in response to a rectangle drawing command triggered by the user in the graph area, retrieve the corrected writing trajectory information from the first storage area, and draw a first histogram based on the uncorrected writing trajectory information and the corrected writing trajectory information, where the first histogram includes the first table data and second table data corresponding to the corrected writing trajectory information.
[0428] Here, the display method of the first table data and the second table data is different.
[0429] In some examples, as shown in FIG. 13, in a writing scene without table lines, the implementation flow of drawing a pie chart provided by the embodiments of the present invention is specifically as follows:
[0430] Step 1300 determines the writing and graphing areas of the display area of the electronic whiteboard.
[0431] In step 1301, the user's handwriting locus information in the writing area is received. After the completion of writing is confirmed, the handwriting locus information of the entire writing area is obtained and stored in a storage area.
[0432] Step 1302: in response to a circular drawing command triggered by a user in the graph area, the handwriting trajectory information in the memory area is divided into cells according to a clustering algorithm, and the handwriting trajectory information of each cell is recognized according to a handwriting recognition algorithm, and data content in each cell is obtained.
[0433] Step 1303: Draw a first pie chart based on the data content in each cell.
[0434] In step 1304, the drawn first pie graph is displayed in the graph area.
[0435] Step 1305: In response to a correction command triggered by a user in the writing area, corrected writing trajectory information is obtained and stored in a first storage area.
[0436] In step 1306, again in response to a circular drawing command triggered by the user in the graph area, the corrected writing trajectory information is retrieved from the first memory area, and a second pie graph is drawn based on the writing trajectory information before the correction and the corrected writing trajectory information.
[0437] Step 1307, the first pie chart and the second pie chart are displayed simultaneously, where the display manners of the first pie chart and the second pie chart are different.
[0438] In some embodiments, as shown in FIG. 14, the method for displaying a graph in a writing scene with table lines provided by the present embodiment specifically implements the following steps:
[0439] Step 1400, in response to a user's graph selection command in the intelligent drawing graph mode, determine a graph type corresponding to the graph selection command.
[0440] Step 1401: A guide template corresponding to a graph type is displayed in a display area of a display screen, a table template is displayed in a first partition of the guide template, and a graph template is displayed in a second partition.
[0441] Step 1402, in response to a user's editing command in the smart graph mode of a known graph type, divide the display area into a writing area and a graph area, display a writing suggestion table in the writing area, and display a predetermined graph in the graph area.
[0442] Step 1403: Information on the path of writing written by the user on the writing presentation table is received.
[0443] Step 1404: In an intelligent drawing graph mode of a known graph type, when the user stops writing and waits for a predetermined time, the writing trajectory information in the writing presentation table is recognized, a data recognition result is obtained, and a predetermined graph is drawn based on the data recognition result, and a graph of the corresponding graph type is displayed.
[0444] In some embodiments, the data recognition result includes a plurality of data sets, each of which includes the contents written by the user in any column of the writing presentation table, or the contents written by the user in any row of the writing presentation table. In this embodiment, the writing trajectory information included in each cell is determined based on the positional relationship between each trajectory point in the writing trajectory information and a cell in the writing presentation table. The writing trajectory information included in each cell is recognized, and data content of each cell is obtained. The data content of each cell is divided by column to obtain a plurality of data sets, or the data content of each cell is divided by row to obtain a plurality of data sets.
[0445] As shown in FIGS. 15A to 15E, in a writing scene having table lines, a bar graph is taken as an example, and different interfaces of the electronic whiteboard display in the process of displaying a graph are described below.
[0446] As shown in FIG. 15A, in the intelligent drawing graph mode, the user triggers a graph selection command-bar graph, and in response to the graph selection command, determines that the graph type corresponding to the graph selection command is a bar graph, and displays a guide template corresponding to the bar graph in the display area, and the guide template includes a first partition and a second partition. Here, the first partition is an editing area and is configured to display a table template, and the second partition is a graph preview area and is configured to display a graph template. Here, the first row and the first column in the table template are grayed out to indicate that they are not writable, and the remaining columns are configured to present the writing contents corresponding to each column. For example, the content of the first column is a horizontal axis title, and the content of the first row is a diagram example and is configured to display a cylinder name. Different diagram examples are represented by cylinders with different filling contents. The remaining contents are specific data, and indicate the corresponding title, the cylinder height of the diagram example. In addition, an edit button is displayed in the display interface, or a close button in the display interface is clicked to allow the user to trigger the edit command. In addition, if a user switches to another table after editing a bar graph and then returns to the bar graph, the edited content will be displayed as is and will not be entered into the guide template for the bar graph. The guide template will only be displayed when the intelligent drawing graph function for a known graph type is turned on for the first time.
[0447] As shown in FIG. 15B, the user triggers an editing command on the display interface of the guide template of the bar graph, and in response to the user's editing command in the intelligent drawing graph mode of the bar graph, the display area is divided into a writing area and a graph area, a writing suggestion table is displayed in the writing area, and a predetermined graph is displayed in the graph area, where the data content in the writing suggestion table is empty, the cell in the first row and the first column is not editable, and the number of rows and columns of the writing suggestion table is constant. For example, a table with 3 rows and 12 columns consisting of 4*13 table lines can be constructed. The writing suggestion table is composed of table lines. The style of the predetermined graph is determined according to the predetermined UI style.
[0448] Alternatively, the user may drag the writing presentation table within the writing area. For example, the user may set an initial position of the writing presentation table and drag the writing presentation table downward until the critical row table is completely displayed. Here, the user may drag the writing presentation table by using a multi-finger touch method, for example, by using two to four fingers to drag the writing presentation table.
[0449] As shown in FIG. 15C, at this time, the user can enter content in the writing presentation table, and the content entered by the user in the writing presentation table can be graphed and displayed in real time in the predetermined graph. Here, basic functions that can be set for writing include hard pen 6.5px, erase, one-touch clear, end, insert command, etc. Here, the insert command is configured to insert the content of the graph area of the current display interface into the previous display interface. When the user triggers the insert command, if the inserted graph is selected by default in the display interface, the graph can be moved, scaled, deleted, copied, rotated, and other operations.
[0450] The writing rules of the bar graph include, but are not limited to, the following rules: (1) Write at least one legal content in the bar graph, and then generate corresponding data on the bar graph, and the first row, first column cell cannot be written. (2) Write title 1 in the first row, which corresponds to the figure example, and the figure example will not appear unless the user writes the figure example. Here, the figure example in the bar graph displays the column name. Different columns can be distinguished by different colors, filling contents, etc. (3) Write title 2 in the first column, which corresponds to the title on the horizontal axis, and the title 2 will not appear on the horizontal axis unless the user writes the content in the first column. (4) Write data from the second row, second column, and the data format only supports integers and decimals, and the corresponding graph will not be generated unless the user writes the data. If non-data content is written in the corresponding cell, the corresponding column will not be displayed. (5) The contents written in each column are treated as one data set, and the corresponding graph will be generated from each data set after writing for 1s of pen stop. (6) When drawing a bar graph, the cell containing the writing content in the lower right corner of the left-hand writing presentation table is used as the base cell. If there are blank cells before that, they are filled with zeros. If title 1 is blank, title 1 is not displayed, and if title 2 is blank, title 2 is not displayed.
[0451] Recognition of the writing trajectory information starts 1 second after the pen stops writing, and the handwritten font written by the user in the writing presentation table is retained. If the user adds or modifies the data content in the writing presentation table, the writing trajectory information in the writing presentation table is recognized again 1 second after the user stops the pen. Note that if the writing content in the writing presentation table after recognition does not meet the writing requirements, the bar graph remains unchanged.
[0452] Alternatively, the user can drag the writing presentation table after writing, and at this time, the writing presentation table and the contents written on the writing presentation table are simultaneously dragged, and the position of the writing trajectory information in each cell in the writing presentation table is moved in correspondence with the moving position of the writing presentation table, thereby ensuring that the position of the contents written by the user on the writing presentation table does not change.
[0453] Optionally, the display interface can display buttons for switching between different functions, for example, when a user clicks a formula button, the current display interface can be switched to a display interface for the formula function, and when a user clicks a line graph button, the current display interface can be switched to a display interface for the line graph function. Optionally, the display interface can also display editing shapes (for example, a writing shape, an erase shape, an end shape, and a cancellation shape), and the current writing function can be switched by the editing shapes while the user is writing in the writing area. For example, the user clicks the erase shape after writing to erase the corresponding content. Here, when the user clicks the end shape, a dialog box is displayed asking whether to confirm the end.
[0454] As shown in FIG. 15D, the full screen button of the display interface can be used to display a full screen preview of the displayed bar graph. For example, an arrow button is provided on the dividing line between the writing area and the graph area, and the arrow button can be triggered to switch to full screen mode. The display interface of the bar graph in full screen mode is as shown in FIG. 15E. In full screen mode, the graph in the original graph area is displayed in the center, and the size scale is consistent with the predetermined UI design. In full screen mode, the user can write in the graph area for markers or annotations. Here, the basic functions of writing include a red hard pen, a general eraser-sized erase, one-touch clear, palm erase, etc. The contents of the current graph area can also be saved. For example, a graph annotated with the graph displayed in the graph area can be saved. In full screen mode, the right slide button can be clicked to exit full screen mode and return to the previous mode. That is, return to edit mode. Here, when exiting full screen mode, the contents of the graph area are retained, and even if the intelligent drawing graph mode is switched to another graph type in the intelligent drawing graph mode, the contents of the graph area in full screen mode are retained.
[0455] As shown in FIGS. 16A to 16E, in a writing scene with table lines, taking a radar graph as an example, different interfaces of the electronic whiteboard display during graph display will be described as follows.
[0456] As shown in FIG. 16A, a user triggers a graph selection command--radar map--in an intelligent drawing graph mode, and in response to the graph selection command, determines that the graph type corresponding to the graph selection command is a radar map. Display a guide template corresponding to the radar map in a display area, and the guide template includes a first partition and a second partition. Here, the first partition is an editing area and is configured to display a table template, and the second partition is a graph preview area and is configured to display a graph template. Here, the first column of the first row in the table template is grayed out to indicate that it is not writable, and the remaining columns are configured to present the write contents corresponding to each column. For example, the contents of the first column are the titles of each vertex, and the contents of the first row are diagram examples and are configured to display different polar coordinate names. The different diagram examples are indicated by title prompts in different formats. For example, set 1 is indicated by a solid title prompt, and set 2 is indicated by a dotted line prompt. The remaining contents are concrete data and indicate the corresponding titles, polar coordinates of polar coordinate names. Also, an edit button is displayed in the display interface, or the user is allowed to trigger an edit command by clicking a close button in the display interface. Note that after editing the radar map, if the user switches to another table and then returns to the radar map, the edited content will still be displayed and the guide template for the radar map will no longer be accessible. The guide template is displayed only when the intelligent drawing graph function for a known graph type is turned on for the first time.
[0457] As shown in FIG. 16B, the user triggers an editing command on the display interface of the guide template of the radar map, and divides the display area into a writing area and a graph area in response to the user's editing command in the intelligent drawing graph mode of the radar map. A writing presentation table is displayed in the writing area, and a predetermined graph is displayed in the graph area, where the data content in the writing presentation table is empty, the cell in the first row and the first column is not editable, and the number of rows and columns of the writing presentation table is constant. For example, a table with 3 rows and 12 columns consisting of 4*13 table lines can be constructed. The writing presentation table is composed of table lines, and the style of the predetermined graph is determined according to the predetermined UI style.
[0458] Alternatively, the user may drag the writing presentation table within the writing area. For example, the user may set an initial position of the writing presentation table and drag the writing presentation table downward until the critical row table is completely displayed. Here, the user may drag the writing presentation table by using a multi-finger touch method, for example, by using two to four fingers to drag the writing presentation table.
[0459] As shown in FIG. 16C-FIG. 16D, the user can enter content in the writing presentation table, and the content entered by the user in the writing presentation table can be graphed and displayed in real time in the specified graph. Here, basic functions that can be set for writing include hard pen 6.5px, erase, one-touch clear, end, insert command, etc. Here, the insert command is configured to insert the content of the graph area of the current display interface into the previous display interface. When the user triggers the insert command, if the inserted graph is selected by default in the display interface, the graph can be moved, scaled, deleted, copied, rotated, and other operations.
[0460] The writing rules of the radar map include, but are not limited to, the following rules: (1) Write at least one legal content in the cell, and generate data on the radar map, and the cell in the first row and first column cannot be written. (2) Write title 1 in the first row, which corresponds to the figure example, and the figure example will not appear unless the user writes the figure example. Here, the figure example in the radar map indicates the polar coordinate name. (3) Write title 2 in the first column, which corresponds to the title of each vertex, and the title 2 cannot be found at the vertex of the radar map unless the user writes the content in the first column. (4) Write data from the second row and second column, and the data format only supports integers and decimals, and the corresponding graph will not be generated unless the user writes the data. If non-data content is written in the corresponding cell, the corresponding polar coordinate will not be displayed. (5) The content written in each column is treated as one data set, and after 1s of writing pen stop, each polar coordinate, polar coordinate name, and radar map vertex title are generated based on each data set. (6) The drawing of the radar map is based on the cell with the writing content in the lower right corner of the left hand writing presentation table, and if there are blank cells before that, they are filled with zeros, if title 1 is blank, title 1 is not displayed, and if title 2 is blank, title 2 is not displayed. Note that a radar map has at least three vertices and is at least a polygon and a maximum of 12 sides. If the amount of data the user writes in the writing presentation table is three rows or less, a polygonal radar graph is drawn in a three row table, and the blank cells in those three rows are filled with zeros.
[0461] Recognition of the writing trajectory information begins 1 second after the pen stops writing, and at this time, the handwritten font written by the user in the writing presentation table is retained as is. If the user adds or modifies the data content in the writing presentation table, the writing trajectory information in the writing presentation table is recognized again 1 second after the user stops the pen. Note that if the writing content in the writing presentation table after recognition does not meet the writing requirements, the radar map remains unchanged.
[0462] Alternatively, the user can drag the writing presentation table after writing, and at this time, the writing presentation table and the contents written on the writing presentation table are simultaneously dragged, and the position of the writing trajectory information in each cell in the writing presentation table is moved in correspondence with the moving position of the writing presentation table, thereby ensuring that the position of the contents written by the user on the writing presentation table does not change.
[0463] Optionally, the display interface can display buttons for switching between different functions, for example, when a user clicks a formula button, the current display interface can be switched to a display interface for the formula function, and when a user clicks a line graph button, the current display interface can be switched to a display interface for the line graph function. Optionally, the display interface can also display editing shapes (for example, a writing shape, an erase shape, an end shape, a cancellation shape, etc.), and the current writing function can be switched by the editing shapes while the user is writing in the writing area. For example, the user clicks the erase shape after writing to erase the corresponding content. Here, when the user clicks the end shape, a dialog box is displayed asking whether to confirm the end.
[0464] When the full screen button of the display interface is clicked, the displayed radar map can be previewed in full screen. For example, an arrow button is provided on the dividing line between the writing area and the graph area, and the arrow button is triggered to switch to full screen mode. The display interface of the radar map in full screen mode is as shown in FIG. 16E. In full screen mode, the graph in the original graph area is displayed in the center, and the size scale is consistent with the predetermined UI design. In full screen mode, the user can write in the graph area for markers or annotations. Here, the basic functions of writing include a red hard pen, a general eraser-sized erase, one-touch clear, palm erase, etc. The contents of the current graph area can also be saved. For example, the graph displayed in the graph area can be saved with annotations. In full screen mode, the right slide button can be clicked to exit full screen mode and return to the previous mode. That is, return to edit mode. Here, when exiting full screen mode, the contents of the graph area are retained, and even if the intelligent drawing graph mode is switched to another graph type in the intelligent drawing graph mode, the contents of the graph area in full screen mode are retained.
[0465] As shown in FIGS. 17A to 17E, in a writing scene with table lines, a pie chart is taken as an example to describe different interfaces of the electronic whiteboard display during graph display as follows.
[0466] As shown in FIG. 17A, a user triggers a graph selection command--pie chart in an intelligent drawing graph mode, and determines in response to the graph selection command that the graph type corresponding to the graph selection command is a pie chart. A guide template corresponding to the pie chart is displayed in a display area, and the guide template includes a first partition and a second partition. Here, the first partition is an editing area and is configured to display a table template, and the second partition is a graph preview area and is configured to display a graph template. Here, a first column in the table template is for writing the title (i.e., the figure example) of each partition, and a second column is for writing the data corresponding to each title. Different figure examples are represented by different filling sectors. The data corresponding to the different titles indicate the occupancy rate of the sector. In addition, an edit button is displayed in the display interface, or a close button in the display interface is clicked to allow the user to trigger the edit command. Note that if the user switches to another table after editing the pie chart and returns to the pie chart, the edited content is displayed as it is, and the guide template of the pie chart is not accessed. The guide template is displayed only when the intelligent drawing graph function of a known graph type is turned on for the first time. Optionally, an arrow button is displayed on the border between the first and second partitions in the guide template, and a user can trigger the arrow button to display the graph template in the second partition full screen.
[0467] As shown in FIG. 17B, the user triggers an editing command on the display interface of the pie chart guide template, and in response to the user's editing command in the pie chart intelligent drawing graph mode, the display area is divided into a writing area and a graph area. A writing suggestion table is displayed in the writing area, and a predetermined graph is displayed in the graph area, where the data content in the writing suggestion table is empty, and the number of rows and columns of the writing suggestion table is constant. For example, the writing suggestion table with a writing suggestion table of 2*13 is composed of table lines, and the style of the predetermined graph is determined according to the predetermined UI style.
[0468] Alternatively, the user may drag the writing presentation table within the writing area. For example, the user may set an initial position of the writing presentation table and drag the writing presentation table downward until the critical row table is completely displayed. Here, the user may drag the writing presentation table by using a multi-finger touch method, for example, by using two to four fingers to drag the writing presentation table.
[0469] As shown in FIG. 17C, at this time, the user can enter content in the writing presentation table, and the content entered by the user in the writing presentation table can be graphed and displayed in real time in the predetermined graph. Here, basic functions that can be set for writing include hard pen 6.5px, erase, one-touch clear, end, insert command, etc. Here, the insert command is configured to insert the content of the graph area of the current display interface into the previous display interface. When the user triggers the insert command, if the inserted graph is selected by default in the display interface, the graph can be moved, scaled, deleted, copied, rotated, and other operations.
[0470] The writing rules of the pie chart include, but are not limited to, the following: (1) Write at least one legal content in one cell, then generate data on the pie chart; (2) Write a title (including at least one of letters, English letters, numbers, and symbols) in the first column, which corresponds to the figure example, and the figure example will not appear unless the user writes the figure example. Here, the figure example in the pie chart indicates the title of each partition; (3) Write data in the second column, which corresponds to the occupancy rate of each partition, and the data format supports integers and decimals, and the corresponding graph will not be generated unless the user writes data. If non-data content is written in the corresponding cell, the corresponding partition will not be displayed. (4) The pie chart partitions are arranged clockwise from the 12 o'clock position in the order of the rows in the writing presentation table. (5) The contents written in each column are treated as one data set, and after 1 second of writing pen stop, the title and occupancy rate of each partition are generated based on each data set. (6) When drawing a pie chart, the cell containing the writing content in the lower right corner of the left-hand writing presentation table is used as the basis. If there are blank cells before that, they are filled with zeros. If the title is blank, the title of each partition is not displayed.
[0471] Recognition of the writing trajectory information starts 1 second after the writing stops, and at this time, the handwritten font written by the user in the writing presentation table is retained as is. As shown in FIG. 17D, when the user adds or modifies the data content in the writing presentation table, the writing trajectory information in the writing presentation table is re-recognized 1 second after the user stops the pen, and at the same time, the displayed pie chart is updated. Note that if the writing content in the writing presentation table after recognition does not meet the writing requirements, the pie chart remains unchanged.
[0472] Alternatively, the user can drag the writing presentation table after writing, and at this time, the writing presentation table and the contents written on the writing presentation table are simultaneously dragged, and the position of the writing trajectory information in each cell in the writing presentation table is moved in correspondence with the moving position of the writing presentation table, thereby ensuring that the position of the contents written by the user on the writing presentation table does not change.
[0473] Optionally, in the display interface, switching buttons for different functions can be displayed, for example, when a user clicks a formula button, the current display interface can be switched to a display interface for the formula function, and when a user clicks a line graph button, the current display interface can be switched to a display interface for the line graph function. Optionally, editing shapes (for example, a writing shape, an erase shape, an end shape, a cancellation shape, etc.) can also be displayed in the display interface. The current writing function can be switched by the editing shapes while a user is writing in the writing area. For example, the user clicks the erase shape after writing to erase the corresponding content. Here, when the user clicks the end shape, a dialog box is displayed asking whether to confirm the end.
[0474] When the full screen button of the display interface is clicked, the displayed pie chart can be previewed in full screen. For example, an arrow button is provided on the dividing line between the writing area and the graph area, and the arrow button is triggered to switch to full screen mode. The display interface of the pie chart in full screen mode is as shown in FIG. 17E. In full screen mode, the graph in the original graph area is displayed in the center, and the size scale is consistent with the predetermined UI design. In full screen mode, the user can write in the graph area for markers or annotations. Here, the basic functions of writing include a red hard pen, a general eraser-sized erase, one-touch clear, palm erase, etc. The contents of the current graph area can also be saved. For example, a graph annotated with the graph displayed in the graph area can be saved. In full screen mode, the right slide button can be clicked to exit full screen mode and return to the previous mode. That is, return to edit mode. Here, when exiting full screen mode, the contents of the graph area are retained, and even if the intelligent drawing graph mode is switched to another graph type in the intelligent drawing graph mode, the contents of the graph area in full screen mode are retained.
[0475] As shown in FIGS. 18A to 18D, in a writing scene having table lines, a line graph is taken as an example to describe different interfaces of the electronic whiteboard display during graph display as follows.
[0476] As shown in FIG. 18A, when a user triggers an intelligent drawing graph mode-graph selection command-line graph, in response to the graph selection command, it is determined that the graph type corresponding to the graph selection command is a line graph. A guide template corresponding to the line graph is displayed in a display area, and the guide template includes a first partition and a second partition. Here, the first partition is an editing area and is configured to display a table template, and the second partition is a graph preview area and is configured to display a graph template. Here, the first row in the table template is for writing the title (i.e., the diagram example) of each coordinate axis, and the remaining rows are for writing the data corresponding to each title. Different diagram examples are represented by the titles of different coordinate axes. The data corresponding to different titles are for displaying coordinate points. In addition, an edit button is displayed in the display interface, or a close button in the display interface is clicked to allow the user to trigger the edit command. Note that, when the user switches to another table after editing the line graph and returns to the line graph, the edited content is displayed as it is, and the guide template of the line graph is not accessed. Display the guide template only when the intelligent drawing graph function of a known graph type is turned on for the first time. Optionally, display an arrow button on the middle border between the first partition and the second partition in the guide template, and allow the user to trigger the arrow button to display the graph template in the second partition in full screen.
[0477] As shown in FIG. 18B, the user triggers an editing command on the display interface of the guide template of the line graph, and in response to the user's editing command in the intelligent drawing graph mode of the line graph, the display area is divided into a writing area and a graph area. The writing area displays a writing presentation table, and the graph area displays a predetermined graph, where the data content in the writing presentation table is empty, and the number of rows and columns of the writing presentation table is constant. For example, the writing presentation table with a writing presentation table of 2*13 is composed of table lines, and the style of the predetermined graph is determined according to the predetermined UI style.
[0478] Alternatively, the user may drag the writing presentation table within the writing area. For example, the user may set an initial position of the writing presentation table and drag the writing presentation table downward until the critical row table is completely displayed. Here, the user may drag the writing presentation table by using a multi-finger touch method, for example, by using two to four fingers to drag the writing presentation table.
[0479] As shown in FIG. 18C, at this time, the user can enter content in the writing presentation table, and the content entered by the user in the writing presentation table can be graphed and displayed in real time in the predetermined graph. Here, basic functions that can be set for writing include hard pen 6.5px, erase, one-touch clear, end, insert command, etc. Here, the insert command is configured to insert the content of the graph area of the current display interface into the previous display interface. When the user triggers the insert command, if the inserted graph is selected by default in the display interface, the graph can be moved, scaled, deleted, copied, rotated, and other operations.
[0480] The writing rules for the line graph include, but are not limited to, the following: (1) At least one square of legal content is written before generating data on the line graph. (2) The first row is written with a title (including at least one of letters, English letters, numbers, and symbols), which corresponds to the figure example, and the figure example will not appear unless the user writes the figure example. Here, the figure example in the line graph displays the title of each coordinate axis. (3) The remaining rows are written with data, which corresponds to each coordinate point, and the data format supports integers and decimals, and the corresponding graph will not be generated unless the user writes the data. If non-data content is written in the corresponding cell, the corresponding coordinate point will not be displayed. (4) The content written for each column is treated as one data set, and after 1s of writing pen stop, each coordinate point and the title of the coordinate axis are generated based on each data set. (5) The drawing of the line graph is based on the cell with the writing content in the lower right corner of the left hand writing presentation table, and if there is a blank in the previous cell, it is filled with 0, and if the title is blank, the title of the coordinate axis is not displayed.
[0481] Recognition of the writing trajectory information begins 1 second after the pen stops writing, and at this time, the handwritten font written by the user in the writing presentation table is retained as is. If the user adds or modifies the data content in the writing presentation table, the writing trajectory information in the writing presentation table is recognized again 1 second after the user stops the pen, and the displayed line graph is updated. Note that if the writing content in the writing presentation table after recognition does not meet the writing requirements, the line graph remains unchanged.
[0482] Alternatively, the user can drag the writing presentation table after writing, and at this time, the writing presentation table and the contents written on the writing presentation table are simultaneously dragged, and the position of the writing trajectory information in each cell in the writing presentation table is moved in correspondence with the moving position of the writing presentation table, thereby ensuring that the position of the contents written by the user on the writing presentation table does not change.
[0483] Optionally, the display interface can display buttons for switching between different functions, for example, when a user clicks a formula button, the current display interface can be switched to a display interface for the formula function, and when a user clicks a bar graph button, the current display interface can be switched to a display interface for the bar graph function. Optionally, the display interface can also display editing shapes (for example, a writing shape, an erase shape, an end shape, a cancel shape, etc.). The current writing function can be switched by the editing shapes while the user is writing in the writing area. For example, the user clicks the erase shape after writing to erase the corresponding content. Here, when the user clicks the end shape, a dialog box is displayed asking whether to confirm the end.
[0484] When the full screen button of the display interface is clicked, the displayed line graph can be previewed in full screen. For example, an arrow button is provided on the dividing line between the writing area and the graph area, and the arrow button is triggered to switch to full screen mode. The display interface of the line graph in full screen mode is as shown in FIG. 18D. In full screen mode, the graph in the original graph area is displayed in the center, and the size scale is consistent with the predetermined UI design. In full screen mode, the user can write in the graph area for markers or annotations. Here, the basic functions of writing include a red hard pen, a general eraser-sized erase, one-touch clear, palm erase, etc. In addition, the contents of the current graph area can also be saved. For example, the graph displayed in the graph area can be saved with annotations. In full screen mode, the right slide button can be clicked to exit full screen mode and return to the previous mode. That is, return to edit mode. Here, when exiting full screen mode, the contents of the graph area are retained, and even if the intelligent drawing graph mode is switched to another graph type in the intelligent drawing graph mode, the contents of the graph area in full screen mode are retained.
[0485] Alternatively, if the content written by the user in the writing presentation table exceeds a predetermined number of rows, the content included in the predetermined number of rows in the writing presentation table is recognized and the remaining number of rows is truncated, or if the content written by the user in the writing presentation table exceeds a predetermined number of columns, the content included in the predetermined number of columns in the writing presentation table is recognized and the remaining number of columns is truncated.
[0486] Alternatively, if the number of bits in the integer part of the recognized number in the writing presentation table is greater than a first bit number threshold, the number is represented using a scientific counting method, and if the number of digits in the decimal part of the recognized number exceeds a second digit number threshold, the number of digits after the decimal point is retained up to a predetermined number of digits.
[0487] Optionally, if the pixel value of each locus point in the writing locus information is smaller than a pixel threshold, the locus point is removed. The cell to which the writing locus information belongs is determined based on the start point of the coordinates recognized as the standard font.
[0488] In some embodiments, the present embodiment provides a graph display method in a writing scene to display a title prompt, as shown in Figure 19. The specific implementation steps of the method are as follows:
[0489] Step 1900, in response to a user editing command in smart graph mode of a known graph type, divides the display area into a writing area and a graph area, and displays a title prompt in the writing area.
[0490] In step 1901, first writing trajectory information representing a title is obtained in a first area corresponding to the title prompt, and second writing trajectory information representing a content is obtained in a second area corresponding to the title prompt.
[0491] Here, the first area and the second area are separated by the title prompt.
[0492] Step 1902: In an intelligent drawing graph mode of a known graph type, when the user stops writing and waits a predetermined time, the writing trajectory information in the writing area is recognized, a data recognition result is obtained, and a graph corresponding to the graph type is drawn and displayed in the graph area based on the data recognition result.
[0493] In some embodiments, the data recognition results include a title and a number of cells for each coordinate axis, and the data recognition results include a location of each cell and data content within each cell.
[0494] Specifically, the processor determines the data recognition result as follows: The writing trajectory information of the first area is recognized, and the title of each coordinate axis is obtained. The writing trajectory information of the second area is divided into cells, and the writing trajectory information in each cell is recognized, and the data content in each cell of the second area is obtained. The data recognition result is determined based on the title, the data content in each cell of the second area, and the positional relationship between the title and each cell.
[0495] As shown in FIG. 20, in a writing scene displaying a title prompt, a line graph is taken as an example to describe different interfaces of the electronic whiteboard display during graph display as follows.
[0496] As shown in Figure 20, two horizontal lines are displayed in the writing area of the display area, the user writes a title above the horizontal lines and writes content below the horizontal lines, and when the user stops the pen for 1s, the writing trajectory information written by the user in the writing area is recognized, the content above the recognized horizontal lines is used as the title of the coordinate axis, and the data of each line below the recognized horizontal lines is used as the coordinate point to draw a line graph. Optionally, the number of characters above the horizontal lines is less than the quantity threshold, and the number of lines below the horizontal lines is less than the line number threshold.
[0497] The display area may display buttons for switching functions such as different graph type figures, mathematical formula figures, etc., or may display basic handwriting function buttons such as at least one of displaying handwritten figures, erasing figures, canceling figures, and redoing figures, or may enable full-screen display of line graphs through line graphs displayed by multi-finger touch. At least one of a done button, a save button, and an end button may be displayed to operate the functions corresponding to the generated graph. Optionally, in one step forward / backward by the undo / redo button, the data changed by the undo / redo is not updated to the coordinate axis in real time. In this embodiment, when the done button is clicked, the contents of the current coordinate axis are inserted into the whiteboard canvas (electronic whiteboard not in graph mode, or the previous display interface) at a scale under a large window, and re-editing is not possible, and up to six graphs are inserted into one canvas (infinite copying possible, not including copying). If there is nothing in the graph area, the done button is grayed out and the whiteboard canvas is not inserted, and if there is no data only on the coordinate axis in the graph area, the whiteboard canvas can also be inserted. In this embodiment, when the user switches to math mode by clicking on a math shape in the current display interface, the contents of the current display area are preserved.
[0498] Here, the writing rules are: hard pen type, 6.5px thickness, white color; (1) write two columns of data in the left writing area, and the data format of each column is title (content above the horizontal line) + data (number below the horizontal line); after stopping writing, start identifying the pen 1s. The data in the first column is the x coordinate, and the data in the second column is the y coordinate. Here, the horizontal axis scale is equal intervals consistent with the user's writing data, and the vertical axis scale data increases in equal proportion.
[0499] If the user writes table data only in the writing area in the intelligent drawing graph mode, the user can hand-draw horizontal and vertical lines (no arrow recognition algorithm, the user can form the coordinate axis with two hand-drawn strokes) in the graph area to generate the coordinate axis, and the completion of the coordinate axis becomes the condition for importing the data on the left side, so that the recognized data in the two columns on the left side can be imported into the coordinate axis to generate a line graph, and the content above the horizontal line will be the title of the horizontal and vertical axes.
[0500] Optionally, the contents of the scribing area can be erased with an eraser, and the scribe area is an erasing area. The graph can also be regenerated after the user erases or modifies the contents to update the original graph. A one-touch clear button can also be used to clear all contents of the graph area, including the coordinate axes.
[0501] In this embodiment, if the data in the two left rows is different, no blank space is displayed when the coordinate axis is first generated. An appropriate predetermined pitch is set for every two columns according to the writing style, and if the distance between the two numbers exceeds the predetermined pitch, it is determined to be two-column data. A coordinate axis with a fixed position and size can also be generated. The coordinate points are updated in real time according to changes in the writing content on the left side. The line graph is generated according to the user's writing order (from left to right) in the writing area. Optionally, dragging a single finger within the graph area changes the window size of the graph area, and the graph displayed in the graph area is scaled uniformly.
[0502] In some embodiments, as shown in FIG. 21, in the writing scene without table lines of this embodiment and in the writing scene with a title prompt, the policy for matrix partitioning of the table-free content written by the user is as follows:
[0503] Step 2100: converting the writing trajectory information into strokes, and determining the centroid of the stroke based on the average coordinate value of the trajectory points in the stroke.
[0504] Step 2101: resample the trajectory points in the stroke based on the length of the stroke to increase the number of trajectory points in the stroke.
[0505] Resampling here increases the number of trajectory points in a stroke depending on the stroke length, and aims to prevent the problem of the projection method in which the trajectory points are too sparse to determine the separation positions.
[0506] Step 2102: project the resampled trajectory points onto the X-axis to obtain a projection histogram of the X-axis, and perform shrink mapping on the projection histogram of the X-axis to obtain a first projection histogram.
[0507] Optionally, after shrink mapping the X-axis projection histogram, a normalization process may be performed to obtain a first projection histogram after the normalization process, and the following procedure may be performed on the first projection histogram after the normalization process.
[0508] Step 2103 determines column separator lines based on valley locations in the first projected histogram.
[0509] Step 2104: Project the writing trajectory information contained in any of the columns onto the Y axis to obtain a projection histogram of the Y axis, and perform shrink mapping on the projection histogram of the Y axis to obtain a second projection histogram.
[0510] Optionally, after shrink mapping the Y-axis projection histogram, a normalization process may be performed to obtain a second projection histogram after the normalization process, and the following procedure may be performed on the second projection histogram after the normalization process.
[0511] Step 2105 determines a row separator for either column based on a valley location in the second projected histogram for either column.
[0512] Step 2106 determines each cell based on the column and row separators.
[0513] In step 2107, the stroke is divided into cells based on the positional relationship between the center of gravity of the stroke and each cell.
[0514] Step 2108: Recognize the writing path information in each cell and obtain the data content in each cell.
[0515] Step 2109: determining the data recognition result based on the location of each cell and the data content in each cell.
[0516] In this embodiment, an example of matrix division is provided by taking a case where the content handwritten by the user has 5 rows and 2 columns as an example.
[0517] As shown in Fig. 21A, the resampled trajectory points are projected onto the X-axis to obtain an X-axis projection histogram. As shown in Fig. 21B, the X-axis projection histogram is reduced and mapped to obtain a first projection histogram, and the intermediate X-coordinate value of the X-coordinate range (valley width) where the Y-coordinate value is 0 in the first projection histogram is set as the position of the column separator line. The handwriting trajectory information is divided into two columns by the determined column separator line.
[0518] As shown in Fig. 21C, this is a Y-axis projected histogram obtained by projecting the handwriting trajectory information contained in the first column onto the Y-axis. As shown in Fig. 21D, this is a second projected histogram of the first column obtained by shrink-mapping the Y-axis projected histogram. The intermediate Y coordinate value of the Y coordinate range (valley width) where the X coordinate value is 0 in the second projected histogram is set as the position of the row separator line of the first column, and the first column is divided into multiple rows.
[0519] Similarly, as shown in Fig. 21E, a Y-axis projected histogram is obtained by projecting the handwriting trajectory information contained in the second column onto the Y-axis, and as shown in Fig. 21F, a second projected histogram of the second column is obtained by shrink-mapping the Y-axis projected histogram. The intermediate Y coordinate value of the Y coordinate range (valley width) where the X coordinate value is 0 in the second projected histogram is set as the position of the row separator line of the second column, and the second column is divided into multiple rows.
[0520] In addition, in the cell determination method of the present embodiment, the column division is performed first, and then the row division is performed for each column, which can solve the problem that the user's handwriting is improper and the contents of different columns are not aligned for each row. Even if the contents belonging to different columns of each row of the user are not the same horizontal line, the method of the present embodiment can accurately divide the data contents of each cell, and accurately realize the division of rows and columns. By using the present embodiment for a vertically written table, the problem that the handwritten columns of the vertically written table are shifted and displayed in the wrong row, which affects the recognition, is solved. As shown in Figures 21G and 21H, the present embodiment provides schematic diagrams of several divisions.
[0521] In some embodiments, as shown in FIG. 22, the present embodiment illustrates a policy for matrix partitioning of table-free content written by a user in a writing scene without table lines and a writing scene with a title prompt as follows:
[0522] Step 2200: converting the writing trajectory information into strokes, and determining the center of gravity of the strokes based on the average coordinate value of the trajectory points in the strokes.
[0523] Step 2201: resample the trajectory points in the stroke based on the length of the stroke to increase the number of trajectory points in the stroke.
[0524] In step 2202, the resampled trajectory points are projected onto the Y axis to obtain a Y axis projection histogram, and the Y axis projection histogram is shrink-mapped to obtain a second projection histogram.
[0525] Optionally, after shrink mapping the Y-axis projection histogram, a normalization process may be performed to obtain a second projection histogram after the normalization process, and the following procedure may be performed on the second projection histogram after the normalization process.
[0526] Step 2203 determines row separators based on valley locations in the second projection histogram.
[0527] Step 2204: Project the writing trajectory information contained in any line onto the X-axis to obtain a projection histogram of the X-axis, and perform shrink mapping on the projection histogram of the X-axis to obtain a first projection histogram.
[0528] Optionally, after shrink mapping the X-axis projection histogram, a normalization process may be performed to obtain a first projection histogram after the normalization process, and the following procedure may be performed on the first projection histogram after the normalization process.
[0529] Step 2205 determines a column separator line for any row based on the location of a valley in the first projected histogram for any row.
[0530] Step 2206 determines each cell based on the column and row separators.
[0531] In step 2207, the stroke is divided into cells based on the positional relationship between the center of gravity of the stroke and each cell.
[0532] Step 2208: The handwriting locus information in each cell is recognized, and the data content in each cell is obtained.
[0533] Step 2209: determining the data recognition result based on the location of each cell and the data content in each cell.
[0534] In addition, in the cell determination method of this embodiment, row separation is first realized, and then column separation is performed for each row, which can solve the problem of the user's improper writing resulting in blank lines in the table. However, in the method of this embodiment, the blank lines are identified and the data content in each cell is accurately separated, thereby accurately realizing row and column division.
[0535] In some embodiments, as shown in FIG. 23, in the writing scene without table lines of this embodiment and in the writing scene with a title prompt, the policy for matrix partitioning of the table-free content written by the user is as follows:
[0536] Step 2300: converting the writing trajectory information into a stroke, and determining the center of gravity of the stroke based on the average coordinate value of the trajectory points in the stroke.
[0537] Step 2301: resample the trajectory points in the stroke based on the length of the stroke, and increase the number of trajectory points in the stroke.
[0538] Step 2302: project the resampled trajectory points onto the X-axis and Y-axis simultaneously to obtain an X-axis projection histogram and a Y-axis projection histogram, and shrink-map the X-axis projection histogram and the Y-axis projection histogram to obtain a first projection histogram and a second projection histogram.
[0539] Optionally, the Y-axis projection histogram is reduced and then normalized to obtain a second normalized projection histogram, or the X-axis projection histogram is reduced and then normalized to obtain a first normalized projection histogram, and the following steps may be performed on the first normalized projection histogram and the second normalized projection histogram:
[0540] Step 2303 determines column separator lines based on valley locations in the first projected histogram, and determines row separator lines based on valley locations in the second projected histogram.
[0541] Step 2304 determines each cell based on the column and row separators.
[0542] In step 2305, the stroke is divided into cells based on the positional relationship between the center of gravity of the stroke and each cell.
[0543] Step 2306: The handwriting locus information in each cell is recognized, and the data content in each cell is obtained.
[0544] Step 2307 determines the data recognition result based on the location of each cell and the data content in each cell.
[0545] In addition, the cell determination method of the present embodiment can simultaneously realize the division of the matrix, thereby solving the problem of the user's writing being inappropriate and resulting in empty cells in the table. According to the method of the embodiment, the empty cells, i.e., the cells in which no trajectory information is written, can be identified, that is, the data content in each cell can be accurately divided by the cells without writing trajectory information, and the division of rows and columns can be accurately realized.
[0546] In some embodiments, the present invention provides a text recognition model that includes multiple Recurrent Neural Network (RNN) network layers, where at least two outputs are coupled to the inputs of any RNN network layer except for the first two RNN network layers.
[0547] The at least two outputs include outputs from any two RNN network layers prior to any of the RNN network layers.
[0548] In some embodiments, the text recognition model further includes a fully connected layer having at least three outputs connected to the fully connected layer, the at least three outputs including outputs from any three RNN network layers before the fully connected layer, and outputs from any RNN network layer before but the last RNN network layer are provided as inputs to at least two subsequent RNN network layers.
[0549] Alternatively, the RNN network layer may be a BiLSTM network layer or a GRU (Gate Recurrent Unit) network layer, and can be selected according to the actual needs of the user, but is not particularly limited here.
[0550] Taking BiLSTM as an example, the present embodiment also provides a text recognition model including multiple BiLSTM network layers, in which at least two outputs are connected to the inputs of any BiLSTM network layer except for the first two BiLSTM network layers, and the at least two outputs include outputs from any two BiLSTM network layers before the any BiLSTM network layer.
[0551] The text recognition model provided by this embodiment further includes a fully connected layer, to which at least three outputs are connected, the at least three outputs including outputs from any three BiLSTM network layers prior to the fully connected layer.
[0552] In some embodiments, the output from any BiLSTM network layer prior to but not including the last BiLSTM network layer is used as an input for at least two subsequent BiLSTM network layers.
[0553] In this embodiment, the output of each BiLSTM network layer is a one-dimensional matrix, and when the input of a BiLSTM network layer is two outputs, the BiLSTM network layer actually adds the one-dimensional matrices for the outputs from the first two BiLSTM network layers, i.e., adds the values at the corresponding positions to obtain a new one-dimensional matrix, and then uses the BiLSTM network layer to process the new one-dimensional matrix.
[0554] In some embodiments, the specific connection relationship of the text recognition model provided by the present embodiment is as shown in FIG. 24, where the text recognition model includes four BiLSTM network layers and a fully connected layer. The first BiLSTM network layer includes a first input and a first output. The second BiLSTM network layer includes a second input and a second output. The third BiLSTM network layer includes a third input and a third output. The fourth BiLSTM network layer includes a fourth input and a fourth output.
[0555] The first input is configured to input the writing trajectory information. The second input connects the first output. The third input connects the first output and the second output. The fourth input connects the first output, the second output and the third output. The fourth output connects the inputs of the fully connected layer. An output from the fully connected layer is configured to output data content corresponding to the writing trajectory information.
[0556] Specifically, the first layer BiLSTM input is handwriting trajectory information, and the output is out1. The second layer BiLSTM input is out1, and the output is out2. The third layer BiLSTM input is out1+out2, and the output is out. The fourth layer BiLSTM input is out1+out2+out3, and the output is out4. The input of the fully connected layer is out2+out3+out4, and the output is the data content corresponding to the handwriting trajectory information.
[0557] In this embodiment, each BiLSTM network layer contains 64 implicit layers, and the fully connected layer contains 3816 neurons, where 3816 is the final classification cluster, which includes 3755 first-class Chinese characters, 26 English characters, 10 Arabic numerals, and 25 common punctuation marks.
[0558] Here, any of the BiLSTM network layers is a layer in which network parameters are reduced using a Dropout layer during model training, and when a Dropout layer with a probability of 0.5 is used after each BiLSTM during model training, here, in the data of the text recognition model, 50% of the parameters being transferred are randomly set to 0. In other words, by randomly deleting partial connections, the overfitting of the model is reduced and model convergence is promoted.
[0559] The text recognition model in this embodiment reduces the number of implicit layers compared with the conventional text recognition model, and not only reduces the size of the text recognition model, but also compresses the size of the model several times, and improves the network degradation phenomenon by changing the connection relationship, thereby ensuring the accuracy of the text recognition model. In this embodiment, the size of the model is compressed from 5.1MB to 1.3MB, making it easier to install on the terminal device (the original model uses 128 implicit layers for all four bilsTM network layers, but the text recognition model in this embodiment is reduced by about 4 times because the 128 implicit layers per bilsTM are changed to 64).
[0560] In some embodiments, the present invention also provides an automatic grid projection method for automatically dividing the contents written by a user into cells, so as to automatically recognize the writing trajectory information in each cell using a trajectory recognition algorithm. The core idea of the automatic grid projection method in the present embodiment is to obtain row and column dividing lines to determine each cell by projecting the writing trajectory information on the X-axis and Y-axis. The specific implementation flow of the method is as follows:
[0561] Obtaining handwriting trajectory information in a display area of a display screen; determining each row separator line and each column separator line based on a first projection histogram on a first coordinate axis of the handwriting trajectory information and a second projection histogram on a second coordinate axis of the handwriting trajectory information; Each cell is determined based on each row separator and each column separator.
[0562] Here, the first coordinate axis and the second coordinate axis are in a perpendicular relationship.
[0563] In some embodiments, the writing trajectory information is divided into multiple rows by row separator lines, and the writing trajectory information is divided into multiple columns based on column separator lines, the border of the table is determined based on the minimum and maximum values of the trajectory points in all the writing trajectory information on the first coordinate axis and the second coordinate axis, and the border and each cell are determined based on the column separator lines and row separator lines.
[0564] In some embodiments, each row separator and each column separator is determined as follows: Determine a column separator line based on a valley position in a first projection histogram on a first coordinate axis of the writing trajectory information, and determine a row separator line of any of the columns based on a valley position in a second projection histogram on a second coordinate axis of the writing trajectory information included in any of the columns; or Determine a row separator line based on a valley position in a second projection histogram on a second coordinate axis of the writing trajectory information, and determine a column separator line of any row based on a valley position in a first projection histogram on a first coordinate axis of the writing trajectory information included in any row, or A column separator line is determined based on a valley position in a first projected histogram on a first coordinate axis of the writing trajectory information, and a row separator line is determined based on a valley position in a second projected histogram on a second coordinate axis of the writing trajectory information.
[0565] In some embodiments, the column separators are determined as follows.
[0566] A column separator line is determined based on valley locations in the first projection histogram where the valley width is greater than a threshold.
[0567] In some embodiments, the row separators are determined as follows.
[0568] A row separator is determined based on the location of valleys in the second projection histogram whose width is greater than a threshold value.
[0569] In the cell determination method of the present embodiment, by dividing columns first and then dividing rows by column, the problem of the user's writing being inappropriate and the contents of different columns not being consistent for each row can be solved. The problem of handwritten columns in a vertically written table being misaligned with respect to a vertically written table, affecting recognition, can be solved. By separating rows first and then separating columns by row, the problem of the user's writing being inappropriate and blank rows appearing can be solved. By simultaneously dividing matrices and columns, the problem of the user's writing being inappropriate and blank cells appearing can be solved.
[0570] Example 2: Based on the same inventive idea, an embodiment of the present invention further provides a graph display method, which is a method for using an electronic whiteboard according to an embodiment of the present invention, and the solution principle is the same as that of the electronic whiteboard, so reference can be made to the implementation of the electronic whiteboard, and the overlapping parts will not be described.
[0571] As shown in FIG. 25, the implementation of the method is as follows.
[0572] Step 2500: Recognizing the handwriting locus information in the display area of the display screen, and obtaining a data recognition result.
[0573] In step 2501, in response to a user's graph drawing command, a graph type corresponding to the graph drawing command is determined.
[0574] Step 2502: in response to a user's graph drawing command, a graph of a graph type corresponding to the graph drawing command is drawn based on a data recognition result, and the drawn graph is displayed in the display area.
[0575] In an optional embodiment, before recognizing the handwriting trajectory information of the display area of the display screen and obtaining a data recognition result, further: Displaying a writing presentation table in the display area, the writing presentation table being presented so that a user can write in each cell of the writing presentation table; The writing trajectory information entered by the user in the writing presentation table is received.
[0576] In an optional embodiment, displaying the writing presentation table in the display area specifically includes: determining a reference position of the writing presentation table based on a position of the writing trajectory information that the user writes for the first time in the display area; A writing presentation table having a fixed number of rows and columns is displayed in the display area according to a reference position of the writing presentation table, and the writing trajectory information written by the user for the first time is located within a cell of the writing presentation table.
[0577] In an optional embodiment, after displaying the writing presentation table, When the writing trajectory information of the user continues writing exceeds the range included in the writing presentation table, the number of rows and / or the number of columns of the writing presentation table are increased according to the position of the writing trajectory information of the user continues writing, or When the writing trajectory information of the user continuing to write is in a critical row of the writing presentation table, the number of rows of the writing presentation table is increased, and / or when the writing trajectory information of the user continuing to write is in a critical column of the writing presentation table, the number of columns of the writing presentation table is increased.
[0578] In an alternative embodiment, the number of rows and columns of the writing presentation table is fixed or determined based on user-entered parameters.
[0579] In an optional embodiment, the data recognition result is determined in one of the following ways:
[0580] Method 1: Based on the positional relationship between each trajectory point in the writing trajectory information and the cell in the writing presentation table, the writing trajectory information contained in each cell is determined, the writing trajectory information contained in each cell is recognized, and the data content of each cell is obtained.
[0581] Method 2: Recognize the writing trajectory information, obtain the contents written by the user and the positions of the contents in the display area, and determine the data contents of each cell based on the positions of the contents and the positions of the cells in the writing presentation table.
[0582] In an alternative embodiment, the data recognition result includes a plurality of cells, and the data recognition result includes the location of each cell and the data content within each cell.
[0583] In an alternative embodiment, the data recognition result is determined as follows.
[0584] determining each cell and dividing the trajectory information into each cell, wherein each cell is used to correspond to each cell in the table, and the trajectory information contained in each cell is used to correspond to data content in each cell; Recognize the handwriting trajectory information in each cell, obtain the data content in each cell, The data recognition result is determined based on the location of each cell and the data content within each cell.
[0585] As an alternative embodiment, the writing trace is divided into cells as follows.
[0586] converting the writing trajectory information into strokes, and determining a center of gravity of the stroke based on an average coordinate value of trajectory points in the stroke; The stroke is divided into cells based on the positional relationship between the center of gravity of the stroke and each cell.
[0587] As an alternative embodiment, the writing trace is divided into cells as follows.
[0588] Obtaining a writing order and coordinates of each trajectory point in the writing trajectory information; determining a similarity between each of the trajectory points based on the writing order and coordinates of each of the trajectory points; The trajectory points whose similarity satisfies a predetermined threshold are divided into cells.
[0589] As an alternative embodiment, each cell is determined as follows.
[0590] A column separator line is determined based on a valley position in a first projection histogram on a first coordinate axis of the writing trajectory information, and a row separator line is determined for any column based on a valley position in a second projection histogram on a second coordinate axis of the writing trajectory information included in any column, and each cell is determined based on the column separator line and the row separator line; or A row separator line is determined based on a valley position in a second projection histogram on a second coordinate axis of the writing trajectory information, and a column separator line of any row is determined based on a valley position in a first projection histogram on a first coordinate axis of the writing trajectory information included in any row, and each cell is determined based on the row separator line and the column separator line; or A column separator line is determined based on a valley position in a first projected histogram on a first coordinate axis of the writing trajectory information, a row separator line is determined based on a valley position in a second projected histogram on a second coordinate axis of the writing trajectory information, and each cell is determined based on the row separator line and the column separator line.
[0591] As an alternative embodiment, each cell is determined as follows.
[0592] Each cell is determined by a clustering algorithm.
[0593] As an alternative embodiment, the column separators are determined as follows.
[0594] determining column separator lines based on valley locations in the first projection histogram where the valley width is greater than a threshold; and / or The line separators are determined as follows:
[0595] A row separator is determined based on the location of valleys in the second projection histogram whose width is greater than a threshold value.
[0596] In an optional embodiment, the writing trajectory information is obtained after performing a resampling operation on trajectory points in the writing trajectory information, the resampling being configured to increase the trajectory points in each stroke according to a length of the corresponding stroke in the writing trajectory information.
[0597] As an optional embodiment, the first projected histogram is a projected histogram in which the writing trajectory information is projected onto a first coordinate axis, and is obtained by shrink mapping.
[0598] The second projected histogram is a projected histogram obtained by projecting the handwriting trajectory information onto a second coordinate axis, and is obtained by shrink mapping.
[0599] In an optional embodiment, before recognizing the handwriting trajectory information in the display area of the display screen and obtaining the data recognition result, further displaying a title prompt in the display area, the title prompt being configured to suggest a writing position for a user table title; In a first region corresponding to the title prompt, first writing trajectory information is obtained, and in a second region corresponding to the title prompt, second writing trajectory information is obtained.
[0600] In an alternative embodiment, the data recognition result is determined as follows: The handwriting locus information of the first area is recognized, and the title of each coordinate axis is obtained.
[0601] The handwriting locus information in the second area is divided into cells, the handwriting locus information in each cell is recognized, and the data content in each cell in the second area is obtained.
[0602] The data recognition result is determined based on the title, the data contents in each cell of the second area, and the positional relationship between the title and each cell.
[0603] In an alternative embodiment, the graph drawing instructions include a graph selection instruction to determine the graph type as follows:
[0604] In response to a user's graph selection command in the intelligent drawing graph mode, a graph type corresponding to the graph selection command is determined.
[0605] In an optional embodiment, the graph drawing command includes a first touch gesture to determine a graph type as follows:
[0606] In response to a first touch gesture by a user in an intelligent drawing graph mode, recognize a first shape generated by the first touch gesture, and determine a graph type based on the first shape.
[0607] In an alternative embodiment, the graph drawing instructions include at least one of an arrow drawing instruction, a circle drawing instruction, a polygon drawing instruction, a cylinder drawing instruction, and a rectangle drawing instruction.
[0608] In an optional embodiment, the graph drawing command includes at least one of a touch gesture and a touch command.
[0609] In an optional embodiment, the step of recognizing a shape corresponding to the graph drawing command and determining a graph type based on the shape includes the steps of: If the graph drawing instructions include an instruction to draw an arrow, determine that the graph type is a line graph; or If the graph drawing instructions include a circular drawing instruction, determine that the graph type is a pie graph; or If the graph drawing instructions include a drawing instruction for a rectangle, determine that the graph type is a histogram; or If the graph drawing instructions include a columnar drawing instruction, determine that the graph type is a bar graph; or If the graph drawing instructions include an instruction to draw a polygon, the graph type is determined to be a radar map.
[0610] As an optional embodiment, the data recognition result includes two columns of cells, the arrow drawing command includes a first arrow command and a second arrow command that are drawn sequentially, the first arrow command corresponding to a first column of cells in the two columns of cells, and the second arrow command corresponding to a second column of cells in the two columns of cells; When the first direction of the first arrow command is the X-axis direction, the first column cells are set as X-axis data of the graph, and the second column cells are set as Y-axis data of the graph.
[0611] When the first direction of the first arrow command is the Y-axis direction, the first column cells are set as Y-axis data of the graph, and the second column cells are set as X-axis data of the graph.
[0612] Here, a receiving time of the first arrow command is earlier than a receiving time of the second arrow command, and a second direction of the second arrow command is different from the first direction.
[0613] As an optional embodiment, In response to an intelligent drawing graph activation command triggered by a user on a first display interface of a handwriting application, display a second display interface in the display area in an intelligent drawing graph mode; After drawing a graph in the second display interface and displaying the graph, the graph in the second display interface is inserted into and displayed in a first display interface of the handwriting writing application in response to an insertion command from a user.
[0614] In an optional embodiment, the intelligent drawing graph launch command includes a second touch gesture, and displays a second display interface in the intelligent drawing graph mode in the display area. receiving a second figure drawn by a user on a first display interface of a handwriting writing application, the second figure being a second figure generated based on the second touch gesture; Triggering, based on the second graphic, to display a second display interface in an intelligent drawing graph mode in the display area.
[0615] In an optional embodiment, after receiving a second figure drawn by the user on the first display interface of the handwriting writing application, further comprising: generating a candidate menu in the first display interface, the candidate menu including a first activation icon corresponding to the second graphic; In response to a user's touch operation on the first launch icon, the second graphic is displayed in the display area.
[0616] In an optional embodiment, generating a candidate menu in the first display interface specifically comprises: When the second graphic is cylindrical, the first activation icon is a bar icon, and in response to a user's touch operation on the bar icon, triggering to display a second display interface corresponding to a bar graph; When the second graphic is a rectangle, the first launch icon is a histogram icon, and in response to a user's touch operation on the histogram icon, triggering to display a second display interface corresponding to a histogram; When the second graphic is a circle, the first activation icon is a circular icon, and in response to a user's touch operation on the circular icon, triggering to display a second display interface corresponding to a pie chart; When the second graphic is a polygon, the first activation icon is a radar icon, and in response to a user's touch operation on the radar icon, triggering to display a second display interface corresponding to a radar map; When the second graphic is an arrow, the first activation icon is a line icon, and in response to a user's touch operation on the line icon, a second display interface corresponding to a line graph is triggered to be displayed.
[0617] In an optional embodiment, the candidate menu further includes a second launch icon, the second launch icon including an analysis template icon.
[0618] In response to a user's touch operation on an analysis template icon, an analysis template corresponding to the analysis template icon is inserted into the first display interface.
[0619] In an optional embodiment, before responding to the user's graph drawing command, further A writing area and a graph area are determined in a display area of the display screen, the writing area is configured to receive a user's handwriting trajectory information, and the graph area is configured to display a graph corresponding to the handwriting trajectory information.
[0620] As an optional embodiment, determining a writing area and a graph area in a display area of the display screen, the writing area being configured to receive user's handwriting trajectory information, and the graph area being configured to display a graph corresponding to the handwriting trajectory information; displaying a writing presentation table corresponding to said graph type in a writing area of said display area; and / or A predetermined graph corresponding to the graph type is displayed in a graph area of the display area.
[0621] In an optional embodiment, the graph area is configured to receive a user's graph drawing commands.
[0622] In an optional embodiment, determining the writing area and the graph area in the display area of the display screen specifically includes: In response to a user editing command in a smart graph mode of a known graph type, the display area is divided into a writing area and a graph area, the graph area being configured to display a graph corresponding to the graph type.
[0623] As an optional embodiment, In response to a drag command by a user on the writing area, moving the content of the writing area in a corresponding direction; or In response to a user's drag command on the graph region, the contents of the graph region are moved in a corresponding direction.
[0624] As an optional embodiment, displaying said graph area in full screen in response to a user's full screen preview command; or In response to a user's annotation operation in the graph region, displaying content corresponding to the annotation operation; or in response to a user erasing operation in the graph region, erasing content in the graph region corresponding to the erasing operation; or Clear the contents of the chart area in response to a user clear action on the chart area, or Save the contents of the chart region in response to a user save action in the chart region, or In response to a user's command to switch the graph type, the current graph type is switched.
[0625] In an alternative embodiment, the writing area and the graph area do not overlap, or The graph region hovers above the writing area and does not obscure the contents of the writing area.
[0626] In an optional embodiment, determining a graph area within a display area of the display screen specifically includes: determining a graph area within a display area of the display screen based on predefined position information; or In response to a first partition command in the display area by a user, a graph area in the display area corresponding to the first partition command is determined.
[0627] In an optional embodiment, after the drawn graph is displayed in the graph area, in response to a second partition command from a user, dividing the writing area into a first writing area and a second writing area and dividing the graph area into a first graph area and a second graph area; The first writing area is configured to display handwriting trajectory information received before division, the second writing area is configured to display handwriting trajectory information received after division, the first graph area is configured to display a graph corresponding to the handwriting trajectory information in the first writing area, and the second graph area is configured to display a graph corresponding to the handwriting trajectory information in the second writing area.
[0628] As an alternative embodiment, the writing trace information is recognized as follows.
[0629] The writing trajectory information is input to a text recognition model for recognition, and data content corresponding to the writing trajectory information is output, the text recognition model includes a plurality of BiLSTM network layers, and at least two outputs are connected to the inputs of any BiLSTM network layer except for the first two BiLSTM network layers; The at least two outputs include outputs from any two BiLSTM network layers prior to any of the BiLSTM network layers.
[0630] In an optional embodiment, the text recognition model further includes a fully connected layer having at least three outputs connected to the fully connected layer, the at least three outputs including outputs from any three BiLSTM network layers prior to the fully connected layer.
[0631] In an optional embodiment, the output from any BiLSTM network layer prior to but not including the final BiLSTM network layer is an input to at least two subsequent BiLSTM network layers.
[0632] In an alternative embodiment, the text recognition model includes four BiLSTM network layers and a fully connected layer, where a first BiLSTM network layer includes a first input and a first output, a second BiLSTM network layer includes a second input and a second output, a third BiLSTM network layer includes a third input and a third output, and a fourth BiLSTM network layer includes a fourth input and a fourth output; The first input is configured to input the writing trajectory information, the second input connects the first output, the third input connects the first output and the second output, the fourth input connects the first output, the second output and the third output, the fourth output connects the fully connected layer inputs, and the output from the fully connected layer is configured to output data content corresponding to the writing trajectory information.
[0633] In an optional embodiment, after responding to a user's command to select a graph in the intelligent drawing graph mode, further: Displaying a writing presentation table in the display area, receiving writing trajectory information entered by a user in the writing presentation table, When the user stops writing and waits a predetermined time, a graph of the graph type corresponding to the graph selection command is drawn and displayed.
[0634] In an optional embodiment, before the user responds to a graph drawing command in the intelligent drawing graph mode, further Receive handwriting trajectory information written by a user, recognize the handwriting trajectory information, and obtain a data recognition result; After responding to a user's graph drawing command in the intelligent drawing graph mode, the processor is specifically configured to perform the following:
[0635] Based on the data recognition result, a graph of a graph type corresponding to the graph drawing command is drawn and displayed.
[0636] In an optional embodiment, obtaining the data recognition result specifically includes: The multiple data sets are determined by splitting the user's writing by columns, or The multiple data sets are determined by dividing the user's handwriting into lines.
[0637] As an optional embodiment, wherein the data recognition result includes a plurality of data sets, the plurality of data sets are determined as follows:
[0638] When the writing presentation table is displayed in the display area, the contents entered by the user in the writing presentation table are divided into columns or rows to obtain a plurality of data sets; or If the writing presentation table is not displayed in the display area, after each cell is determined, the data content of each cell is divided by column or row to obtain a plurality of data sets.
[0639] In an optional embodiment, determining the plurality of data sets specifically comprises: Based on the correspondence between each row and the coordinate axis that has been set in advance, the contents of each column written by the user are determined as each data set; or Based on the preset correspondence between each column and the coordinate axis, the contents of each line handwritten by the user are determined as each data set.
[0640] In an optional embodiment, determining the plurality of data sets specifically comprises: The contents written by the user at a predetermined line are determined as the title of each of the coordinate axes, and the other contents are determined as the data contents; or Among the contents written by the user, the contents located in a predetermined row are determined as the title of each coordinate axis, and the other contents are determined as the data contents.
[0641] In an optional embodiment, in response to the user's graph drawing command, drawing a graph of a graph type corresponding to the graph drawing command based on the data recognition result may specifically include: The graph type is determined according to the graph drawing command. Based on each data set corresponding to the user's written content, a graph corresponding to the graph type is drawn.
[0642] As an alternative embodiment, if any dataset contains the contents of any column written by the user, then plot the graph as follows:
[0643] If the graph type is determined to be a bar graph, determine each classification title on a predetermined coordinate axis based on a data set corresponding to the predetermined column, and determine a cylinder name based on a first content corresponding to a predetermined index value in a data set corresponding to the remaining columns excluding the predetermined column. Determine a cylinder height corresponding to each classification title and cylinder name based on the content excluding the first content in the data set corresponding to the remaining columns, and draw a bar graph based on each classification title, cylinder name, and cylinder height, or If it is determined that the graph type is a radar map, determine a title for each vertex based on a data set corresponding to the predetermined column, determine a polar coordinate name based on a second content corresponding to a predetermined index value in a data set corresponding to the remaining columns excluding the predetermined column, determine polar coordinates corresponding to each title and polar coordinate name based on the content excluding the second content in the data set corresponding to the remaining columns, and draw a radar map based on each title, polar coordinate name, and polar coordinate; or If the graph type is determined to be a line graph, determine a title of a coordinate axis based on the content corresponding to a given index value in the data set. Determine coordinate points based on the content corresponding to the same index value other than the given index value in a different data set. Draw a line graph based on the title of the coordinate axis and the coordinate points, or If the graph type is determined to be a pie chart, a title for each partition is determined based on a data set corresponding to a predetermined column, an occupancy rate for each partition is determined based on a data set corresponding to a column other than the predetermined column, and a pie chart is drawn based on the title and occupancy rate for each partition.
[0644] In an optional embodiment, drawing a graph of a graph type corresponding to the graph drawing command based on the data recognition result specifically includes: In an intelligent drawing graph mode of a known graph type, drawing of the graph is triggered after determining that the user has stopped writing and waited a predetermined time.
[0645] As an optional embodiment, In response to a user's editing command in the smart graph mode of a known graph type, a predetermined graph is displayed in the display area, where a display specification of the predetermined graph is determined based on the known graph type.
[0646] As an optional embodiment, After the graph type is determined, a guide template corresponding to the graph type is displayed in the display area of the display screen, and the guide template guides the user to write table contents based on the writing specifications corresponding to the graph type.
[0647] In an optional embodiment, displaying a guide template corresponding to the graph type in a display area of the display screen specifically includes: A table template is displayed in a first partition of the guide template, and a graph template is displayed in a second partition of the guide template, the table template including a predetermined content, and the graph template including a graph corresponding to the predetermined content.
[0648] In an optional embodiment, obtaining the data recognition result specifically includes: When it is determined that the user has stopped writing and no more writing has been performed even after waiting a predetermined time, the handwriting locus information in the display area of the display screen is recognized and a data recognition result is obtained.
[0649] As an optional embodiment, the step of recognizing the handwriting trajectory information in the display area of the display screen and obtaining the data recognition result includes, specifically, A locus point in which a pixel value of the locus point in the handwriting locus information in the display area of the display screen is greater than a pixel threshold is recognized, and a data recognition result is obtained.
[0650] In an optional embodiment, after the drawn graph is displayed in the display area, the method further comprises: In response to a user's content addition command, add corresponding handwriting trajectory information and update the graph based on the added handwriting trajectory information; or In response to a stroke addition command from a user, add a stroke of the corresponding writing locus information and update the graph based on the writing locus information after the stroke has been added; or In response to a deletion command from a user, the corresponding handwriting trajectory information is deleted, and the graph is updated based on the deleted handwriting trajectory information; or In response to a clear command from the user, all handwriting trace information is cleared.
[0651] In an optional embodiment, after the drawn graph is displayed in the display area, the method further comprises: In response to a user's correction command, the corresponding writing locus information is corrected, and the graph is updated based on the corrected writing locus information.
[0652] In an optional embodiment, in response to a modification command from the user, The corrected handwriting locus information is acquired and stored in a first storage area, the first storage area being different from a storage area in which the handwriting locus information before the correction exists.
[0653] As an optional embodiment, the modification command includes at least one of a command triggered by a different tip of a touch pen, a command triggered by a different key of a touch pen, and a command triggered by a display area switching button.
[0654] In an optional embodiment, in response to a modification command from the user, determining a first content before amendment and a second content after amendment corresponding to the amendment order; The first content and the second content are displayed simultaneously, and the display formats of the first content and the second content are different.
[0655] In an optional embodiment, after obtaining the corrected handwriting trajectory information and storing it in the first storage area, acquiring the corrected writing locus information from the first storage area, and drawing a first graph based on the writing locus information before the correction and the corrected writing locus information; The first graph includes first table data corresponding to pre-correction handwriting trajectory information and second table data corresponding to corrected handwriting trajectory information.
[0656] In an optional embodiment, after obtaining the corrected handwriting trajectory information and storing it in the first storage area, obtaining the corrected writing trajectory information from the first storage area, drawing a second graph based on the writing trajectory information before the correction, and drawing a third graph based on the corrected writing trajectory information; The second graph and the third graph are displayed simultaneously.
[0657] Example 3: Based on the same inventive idea, an embodiment of the present invention further provides a graph display device, which is an apparatus related to the method according to the embodiment of the present invention, and the principle of solving the problem of the apparatus is similar to that of the method, so the implementation of the apparatus can refer to the implementation of the method, and the overlapping parts will be omitted.
[0658] As shown in FIG. 26, the device includes: A recognition unit 2600 configured to recognize writing trajectory information of a display area of the display screen and obtain a data recognition result; A determining unit 2601 configured to, in response to a user's graph drawing command, determine a graph type corresponding to the graph drawing command; and a drawing unit 2602 configured to, in response to a user's graph drawing command, draw a graph of a graph type corresponding to the graph drawing command based on a data recognition result, and display the drawn graph in the display area.
[0659] In an optional embodiment, before recognizing the handwriting trajectory information in the display area of the display screen and obtaining a data recognition result, Displaying a writing presentation table in the display area, the writing presentation table being presented so that a user can write in each cell of the writing presentation table; The writing system further includes a table presentation unit configured to receive writing trajectory information entered by a user on the writing presentation table.
[0660] In an alternative embodiment, the table presentation unit specifically comprises: determining a reference position of the writing presentation table based on a position of the writing trajectory information that the user writes for the first time in the display area; A writing presentation table having a fixed number of rows and columns is displayed in the display area according to a reference position of the writing presentation table, and the writing trajectory information written by the user for the first time is located within a cell of the writing presentation table.
[0661] In an alternative embodiment, the table presentation unit specifically comprises: When the writing trajectory information of the user continues writing exceeds the range included in the writing presentation table, the number of rows and / or the number of columns of the writing presentation table are increased according to the position of the writing trajectory information of the user continues writing, or When the writing trajectory information of the user continuing to write is in a critical row of the writing presentation table, the number of rows of the writing presentation table is increased, and / or when the writing trajectory information of the user continuing to write is in a critical column of the writing presentation table, the number of columns of the writing presentation table is increased.
[0662] In an alternative embodiment, the number of rows and columns of the writing presentation table is fixed or determined based on user-entered parameters.
[0663] As an optional embodiment, the recognition unit 2600 specifically determines the data recognition result in one of the following ways:
[0664] Method 1: Based on the positional relationship between each trajectory point in the writing trajectory information and the cell in the writing presentation table, the writing trajectory information contained in each cell is determined, the writing trajectory information contained in each cell is recognized, and the data content of each cell is obtained.
[0665] Method 2: Recognize the writing trajectory information, obtain the contents written by the user and the positions of the contents in the display area, and determine the data contents of each cell based on the positions of the contents and the positions of the cells in the writing presentation table.
[0666] In an alternative embodiment, the data recognition result includes a plurality of cells, and the data recognition result includes the location of each cell and the data content within each cell.
[0667] As an optional embodiment, the recognition unit 2600 specifically determines the data recognition result as follows:
[0668] determining each cell and dividing the trajectory information into each cell, wherein each cell is used to correspond to each cell in the table, and the trajectory information contained in each cell is used to correspond to data content in each cell; Recognize the handwriting trajectory information in each cell, obtain the data content in each cell, The data recognition result is determined based on the location of each cell and the data content within each cell.
[0669] In an alternative embodiment, the recognition unit 2600 specifically divides the writing trajectory into cells as follows: converting the writing trajectory information into strokes, and determining a center of gravity of the stroke based on an average coordinate value of trajectory points in the stroke; The stroke is divided into cells based on the positional relationship between the center of gravity of the stroke and each cell.
[0670] In an alternative embodiment, the recognition unit 2600 specifically divides the writing trajectory into cells as follows: The writing order and coordinates of each trajectory point in the writing trajectory information are obtained.
[0671] Based on the writing order and coordinates of each of the locus points, a similarity between each of the locus points is determined.
[0672] The trajectory points whose similarity satisfies a predetermined threshold are divided into cells.
[0673] As an alternative embodiment, the recognition unit 2600 specifically determines each cell as follows:
[0674] A column separator line is determined based on a valley position in a first projection histogram on a first coordinate axis of the writing trajectory information, and a row separator line is determined for any column based on a valley position in a second projection histogram on a second coordinate axis of the writing trajectory information included in any column, and each cell is determined based on the column separator line and the row separator line; or A row separator line is determined based on a valley position in a second projection histogram on a second coordinate axis of the writing trajectory information, and a column separator line of any row is determined based on a valley position in a first projection histogram on a first coordinate axis of the writing trajectory information included in any row, and each cell is determined based on the row separator line and the column separator line; or A column separator line is determined based on a valley position in a first projected histogram on a first coordinate axis of the writing trajectory information, a row separator line is determined based on a valley position in a second projected histogram on a second coordinate axis of the writing trajectory information, and each cell is determined based on the row separator line and the column separator line.
[0675] As an alternative embodiment, the recognition unit 2600 specifically determines each cell as follows:
[0676] Each cell is determined by a clustering algorithm.
[0677] In an alternative embodiment, the recognition unit 2600 specifically determines the column separator as follows:
[0678] determining column separator lines based on valley locations in the first projection histogram where the valley width is greater than a threshold; and / or The line separators are determined as follows:
[0679] A row separator is determined based on the location of valleys in the second projection histogram whose width is greater than a threshold value.
[0680] In an optional embodiment, the writing trajectory information is obtained after performing a resampling operation on trajectory points in the writing trajectory information, the resampling being configured to increase the trajectory points in each stroke according to a length of the corresponding stroke in the writing trajectory information.
[0681] As an optional embodiment, the first projected histogram is a projected histogram in which the writing trajectory information is projected onto a first coordinate axis, and is obtained by shrink mapping.
[0682] The second projected histogram is a projected histogram obtained by projecting the handwriting trajectory information onto a second coordinate axis, and is obtained by shrink mapping.
[0683] In an optional embodiment, before recognizing the handwriting trajectory information in the display area of the display screen and obtaining a data recognition result, displaying a title prompt in the display area, the title prompt providing a position for a user to write a table title; The display prompt unit is further configured to acquire first writing trajectory information in a first area corresponding to the title prompt, and to acquire second writing trajectory information in a second area corresponding to the title prompt.
[0684] As an optional embodiment, the display prompt unit is further configured to determine the data recognition result as follows.
[0685] The handwriting locus information of the first area is recognized, and the title of each coordinate axis is obtained.
[0686] The handwriting locus information in the second area is divided into cells, the handwriting locus information in each cell is recognized, and the data content in each cell in the second area is obtained.
[0687] The data recognition result is determined based on the title, the data contents in each cell of the second area, and the positional relationship between the title and each cell.
[0688] As an optional embodiment, the graph drawing command includes a graph selection command, and the drawing unit 2602 specifically determines the graph type as follows:
[0689] In response to a user's graph selection command in the intelligent drawing graph mode, a graph type corresponding to the graph selection command is determined.
[0690] As an optional embodiment, the graph drawing command includes a first touch gesture, and the drawing unit 2602 specifically determines a graph type as follows: In response to a first touch gesture by a user in an intelligent drawing graph mode, recognize a first shape generated by the first touch gesture, and determine a graph type based on the first shape.
[0691] In an alternative embodiment, the graph drawing instructions include at least one of an arrow drawing instruction, a circle drawing instruction, a polygon drawing instruction, a cylinder drawing instruction, and a rectangle drawing instruction.
[0692] In an optional embodiment, the graph drawing command includes at least one of a touch gesture and a touch command.
[0693] As an optional embodiment, the rendering unit 2602 specifically: If the graph drawing instructions include an instruction to draw an arrow, determine that the graph type is a line graph; or If the graph drawing instructions include a circular drawing instruction, determine that the graph type is a pie graph; or If the graph drawing instructions include a drawing instruction for a rectangle, determine that the graph type is a histogram; or If the graph drawing instructions include a columnar drawing instruction, determine that the graph type is a bar graph; or If the graph drawing instructions include an instruction to draw a polygon, the graph type is determined to be a radar map.
[0694] In an optional embodiment, the rendering unit 2602 specifically includes: the data recognition result includes two columns of cells, the arrow drawing command includes a first arrow command and a second arrow command that are drawn sequentially, the first arrow command corresponding to a first column of cells in the two columns of cells, and the second arrow command corresponding to a second column of cells in the two columns of cells; When the first direction of the first arrow command is the X-axis direction, the first column cells are set as X-axis data of the graph, and the second column cells are set as Y-axis data of the graph.
[0695] If the first direction of the first arrow command is the Y-axis direction, the first column cell is set as the Y-axis data of the graph, and the second column cell is set as the X-axis data of the graph. Here, a receiving time of the first arrow command is earlier than a receiving time of the second arrow command, and a second direction of the second arrow command is different from the first direction.
[0696] As an optional embodiment, In response to an intelligent drawing graph activation command triggered by a user on a first display interface of a handwriting application, display a second display interface in the display area in an intelligent drawing graph mode; The present invention further includes an insertion function unit configured to, after drawing a graph in the second display interface and displaying the graph, insert and display the graph of the second display interface into a first display interface of the handwriting writing application in response to an insertion command from a user.
[0697] As an optional embodiment, the intelligent drawing graph launch command includes a second touch gesture, and the insertion function unit specifically: receiving a second figure drawn by a user on a first display interface of a handwriting writing application, the second figure being a second figure generated based on the second touch gesture; Triggering, based on the second graphic, to display a second display interface in an intelligent drawing graph mode in the display area.
[0698] In an optional embodiment, after receiving a second figure drawn by the user on a first display interface of a handwriting writing application, generating a candidate menu in the first display interface including a first activation icon corresponding to the second graphic; The display device further includes an activation function unit configured to display the second graphic in the display area in response to a touch operation on the first activation icon by a user.
[0699] In an alternative embodiment, the activation function unit comprises: When the second graphic is cylindrical, the first activation icon is a bar icon, and in response to a user's touch operation on the bar icon, triggering to display a second display interface corresponding to a bar graph; When the second graphic is a rectangle, the first launch icon is a histogram icon, and in response to a user's touch operation on the histogram icon, triggering to display a second display interface corresponding to a histogram; When the second graphic is a circle, the first activation icon is a circular icon, and in response to a user's touch operation on the circular icon, triggering to display a second display interface corresponding to a pie chart; When the second graphic is a polygon, the first activation icon is a radar icon, and in response to a user's touch operation on the radar icon, triggering to display a second display interface corresponding to a radar map; When the second graphic is an arrow, the first activation icon is a line icon, and in response to a user's touch operation on the line icon, a second display interface corresponding to a line graph is triggered to be displayed.
[0700] As an optional embodiment, the candidate menu further includes a second launching icon, and the second launching icon includes an analysis template icon. The launching function unit specifically includes: In response to a user's touch operation on an analysis template icon, an analysis template corresponding to the analysis template icon is inserted into the first display interface.
[0701] In an optional embodiment, the display device further includes a first partition unit configured to determine a writing area and a graph area in a display area of the display screen before responding to the user's graph drawing command, the writing area being configured to receive user's writing trajectory information, and the graph area being configured to display a graph corresponding to the writing trajectory information.
[0702] As an optional embodiment, a second partition unit is further included; The second partition unit determines a writing area and a graph area in a display area of the display screen, the writing area is configured to receive a user's writing trajectory information, and the graph area is configured to display a graph corresponding to the writing trajectory information; displaying a writing presentation table corresponding to said graph type in a writing area of said display area; and / or A predetermined graph corresponding to the graph type is displayed in a graph area of the display area.
[0703] In an optional embodiment, the graph area is configured to receive a user's graph drawing commands.
[0704] As an optional embodiment, the first partition unit specifically comprises: In response to a user editing command in a smart graph mode of a known graph type, the display area is divided into a writing area and a graph area, the graph area being configured to display a graph corresponding to the graph type.
[0705] As an optional embodiment, the first partition unit specifically comprises: In response to a drag command by a user in the writing area, move the content of the writing area in a corresponding direction; or In response to a user's drag command on the graph region, the contents of the graph region are moved in a corresponding direction.
[0706] As an optional embodiment, the first partition unit specifically comprises: displaying said graph area in full screen in response to a user's full screen preview command; or In response to a user's annotation operation in the graph region, displaying content corresponding to the annotation operation; or in response to a user erasing operation in the graph region, erasing content in the graph region corresponding to the erasing operation; or Clear the contents of the chart area in response to a user clear action on the chart area, or Save the contents of the chart region in response to a user save action in the chart region, or In response to a user's command to switch the graph type, the current graph type is switched.
[0707] In an alternative embodiment, the writing area and the graph area do not overlap, or The graph region hovers above the writing area and does not obscure the contents of the writing area.
[0708] As an optional embodiment, the first partition unit specifically comprises: determining a graph area within a display area of the display screen based on predefined position information; or In response to a first partition command in the display area by a user, a graph area in the display area corresponding to the first partition command is determined.
[0709] As an optional embodiment, the method further includes a repartitioning unit after displaying the rendered graph in the graph area.
[0710] the repartitioning unit, in response to a second partition command from a user, divides the writing area into a first writing area and a second writing area, and divides the graph area into a first graph area and a second graph area; The first writing area is configured to display handwriting trajectory information received before division, the second writing area is configured to display handwriting trajectory information received after division, the first graph area is configured to display a graph corresponding to the handwriting trajectory information in the first writing area, and the second graph area is configured to display a graph corresponding to the handwriting trajectory information in the second writing area.
[0711] In an optional embodiment, the recognition unit 2600 specifically recognizes the writing trajectory information as follows.
[0712] The writing trajectory information is input to a text recognition model for recognition, and data content corresponding to the writing trajectory information is output, the text recognition model includes a plurality of BiLSTM network layers, and at least two outputs are connected to the inputs of any BiLSTM network layer except for the first two BiLSTM network layers; The at least two outputs include outputs from any two BiLSTM network layers prior to any of the BiLSTM network layers.
[0713] In an optional embodiment, the text recognition model further includes a fully connected layer having at least three outputs connected to the fully connected layer, the at least three outputs including outputs from any three BiLSTM network layers prior to the fully connected layer.
[0714] In an optional embodiment, the output from any BiLSTM network layer prior to but not including the final BiLSTM network layer is an input to at least two subsequent BiLSTM network layers.
[0715] In an alternative embodiment, the text recognition model includes four BiLSTM network layers and a fully connected layer, where a first BiLSTM network layer includes a first input and a first output, a second BiLSTM network layer includes a second input and a second output, a third BiLSTM network layer includes a third input and a third output, and a fourth BiLSTM network layer includes a fourth input and a fourth output; The first input is configured to input the writing trajectory information, the second input connects the first output, the third input connects the first output and the second output, the fourth input connects the first output, the second output and the third output, the fourth output connects the fully connected layer inputs, and the output from the fully connected layer is configured to output data content corresponding to the writing trajectory information.
[0716] As an optional embodiment, after responding to a user's command to select a graph in the intelligent drawing graph mode, the drawing unit 2602 further specifically: Displaying a writing presentation table in the display area, receiving writing trajectory information entered by a user in the writing presentation table, When the user stops writing and waits a predetermined time, a graph of the graph type corresponding to the graph selection command is drawn and displayed.
[0717] As an optional embodiment, before the user responds to a graph drawing command in the intelligent drawing graph mode, the recognition unit 2600 further specifically: The handwriting locus information written by the user is received, the handwriting locus information is recognized, and a data recognition result is obtained.
[0718] After responding to a user's graph drawing command in the intelligent drawing graph mode, the drawing unit 2602 specifically: Based on the data recognition result, a graph of a graph type corresponding to the graph drawing command is drawn and displayed.
[0719] As an alternative embodiment, the recognition unit 2600 specifically includes: The multiple data sets are determined by splitting the user's writing by columns, or The multiple data sets are determined by dividing the user's handwriting into lines.
[0720] As an optional embodiment, wherein the data recognition result includes a plurality of data sets, the plurality of data sets are determined as follows:
[0721] When the writing presentation table is displayed in the display area, the contents entered by the user in the writing presentation table are divided into columns or rows to obtain a plurality of data sets; or If the writing presentation table is not displayed in the display area, after each cell is determined, the data content of each cell is divided by column or row to obtain a plurality of data sets.
[0722] As an alternative embodiment, the recognition unit 2600 specifically includes: Based on the correspondence between each row and the coordinate axis that has been set in advance, the contents of each column written by the user are determined as each data set; or Based on the preset correspondence between each column and the coordinate axis, the contents of each line handwritten by the user are determined as each data set.
[0723] As an alternative embodiment, the recognition unit 2600 specifically includes: The contents written by the user at a predetermined line are determined as the title of each of the coordinate axes, and the other contents are determined as the data contents; or Among the contents written by the user, the contents located in a predetermined row are determined as the title of each coordinate axis, and the other contents are determined as the data contents.
[0724] As an optional embodiment, the rendering unit 2602 specifically: The graph type is determined according to the graph drawing command. Based on each data set corresponding to the user's written content, a graph corresponding to the graph type is drawn.
[0725] As an optional embodiment, if any of the datasets includes any of the column contents written by the user, the drawing unit 2602 specifically draws a graph as follows:
[0726] If it is determined that the graph type is a bar graph, determine each classification title on a predetermined coordinate axis based on a data set corresponding to the predetermined column, determine a cylinder name based on a first content corresponding to a predetermined index value in a data set corresponding to the remaining columns excluding the predetermined column, determine a cylinder height corresponding to each classification title and cylinder name based on a content excluding the first content in the data set corresponding to the remaining columns, and draw a bar graph based on each classification title, cylinder name, and cylinder height; or If it is determined that the graph type is a ra...
Claims
1. A display device, comprising: A display screen and a control circuit are included. the display screen is configured to display content; The control circuit includes a processor and a memory, the memory being configured to store a program executable by the processor; The processor reads the program in the memory, Recognizing handwriting trajectory information in a display area of the display screen, and acquiring a data recognition result; In response to a user's command to draw a graph, determine a graph type corresponding to the command; The display device draws a graph of a graph type corresponding to the graph drawing command based on the data recognition result, and displays the drawn graph in the display area.
2. The display device includes an electronic whiteboard; the electronic whiteboard includes a touch component; The display device of claim 1 , wherein the touch component is configured to capture handwriting trajectory information.
3. Before recognizing handwriting trajectory information in the display area of the display screen and obtaining a data recognition result, the processor: Displaying a writing presentation table in the display area, the writing presentation table being presented so that a user can write in each cell of the writing presentation table; The display device according to claim 1 , further comprising: a display unit configured to receive handwriting trajectory information entered by a user in the handwriting presentation table.
4. The processor, determining a reference position of the writing presentation table based on a position of the writing trajectory information that the user writes for the first time in the display area; The display device described in claim 3, wherein a writing presentation table having a fixed number of rows and columns is displayed in the display area according to a reference position of the writing presentation table, and the writing trajectory information written by the user for the first time is located within a cell of the writing presentation table.
5. The display device according to claim 3 or 4. After displaying the writing presentation table, the processor: When the writing trajectory information of the user continues writing exceeds the range included in the writing presentation table, the number of rows and / or the number of columns of the writing presentation table are increased according to the position of the writing trajectory information of the user continues writing, or The display device of claim 3, wherein when the writing trajectory information of the user continuing to write is in a critical row of the writing presentation table, the number of rows of the writing presentation table is increased, and / or when the writing trajectory information of the user continuing to write is in a critical column of the writing presentation table, the number of columns of the writing presentation table is increased.
6. The processor, The number of rows and columns of the writing presentation table is fixed or determined based on user-entered parameters.
7. The processor determines the data recognition result in a manner 1 or 2; Method 1: Based on the positional relationship between each trajectory point in the writing trajectory information and a cell in the writing presentation table, determine the writing trajectory information contained in each cell, recognize the writing trajectory information contained in each cell, and obtain the data content of each cell; Method 2: A display device as described in any one of claims 2 to 4, which recognizes the handwriting trajectory information, obtains the content written by the user and the position of the content in the display area, and determines the data content of each cell based on the position of the content and the position of the cell in the handwriting presentation table.
8. 2. The display device of claim 1, wherein the data recognition result includes a plurality of cells, and the data recognition result includes a location of each cell and data content within each cell.
9. The processor, Determining each cell, dividing the writing trajectory information into each cell, each cell being used to correspond to each cell in the table, and the writing trajectory information contained in each cell being used to correspond to data content in each cell; Recognize the handwriting trajectory information in each cell, obtain the data content in each cell, The display device of claim 8 , further comprising: a display unit for displaying the data based on the location of each of the cells and the data content within each of the cells.
10. The processor, converting the writing trajectory information into strokes, and determining a center of gravity of the stroke based on an average coordinate value of trajectory points in the stroke; The display device according to claim 9 , wherein the stroke is divided into each cell based on a positional relationship between the center of gravity of the stroke and each cell.
11. The processor, Obtaining a writing order and coordinates of each trajectory point in the writing trajectory information; determining a similarity between each of the trajectory points based on the writing order and coordinates of each of the trajectory points; The display device according to claim 9 , wherein the locus points whose similarity satisfies a predetermined threshold value are divided into cells.
12. The processor, A column separator line is determined based on a valley position in a first projected histogram on a first coordinate axis of the writing trajectory information, and a row separator line is determined for any column based on a valley position in a second projected histogram on a second coordinate axis of the writing trajectory information included in any column, and each cell is determined based on the column separator line and the row separator line, or A row separator line is determined based on a valley position in a second projection histogram on a second coordinate axis of the writing trajectory information, and a column separator line of any row is determined based on a valley position in a first projection histogram on a first coordinate axis of the writing trajectory information included in any row, and each cell is determined based on the row separator line and the column separator line, or 12. The display device according to claim 8, wherein a column separator line is determined based on a valley position in a first projected histogram on a first coordinate axis of the writing trajectory information, a row separator line is determined based on a valley position in a second projected histogram on a second coordinate axis of the writing trajectory information, and each cell is determined based on the row separator line and the column separator line.
13. The processor, determining column separator lines based on valley locations in the first projection histogram where the valley width is greater than a threshold; and / or The display device of claim 12 , further comprising determining row separator lines based on locations of valleys in the second projected histogram whose widths are greater than a threshold value.
14. The display device according to claim 12, wherein the writing trajectory information is obtained after performing a resampling operation on trajectory points in the writing trajectory information, and the resampling is configured to increase the trajectory points in a corresponding stroke according to a length of each stroke in the writing trajectory information.
15. the first projected histogram is a projected histogram obtained by projecting the handwriting trajectory information onto a first coordinate axis, and is obtained by shrink mapping; The display device according to claim 12 , wherein the second projected histogram is a projected histogram obtained by projecting the handwriting trajectory information onto a second coordinate axis, and is obtained by contraction mapping.
16. The display device according to claim 8 , wherein the processor determines each cell by a clustering algorithm.
17. Before recognizing handwriting trajectory information in the display area of the display screen and obtaining a data recognition result, the processor: displaying a title prompt in the display area, the title prompt providing a position for a user to write a table title; A display device according to any one of claims 1 to 4, 6, 8 to 11, and 13 to 5, configured to acquire first handwriting trajectory information in a first area corresponding to the title prompt, and to acquire second handwriting trajectory information in a second area corresponding to the title prompt.
18. The processor, Recognizing the handwriting locus information of the first area and acquiring the title of each coordinate axis; Dividing the handwriting locus information of the second area into cells, recognizing the handwriting locus information in each cell, and acquiring data contents in each cell of the second area; The display device according to claim 17, wherein the data recognition result is determined based on the title, data contents in each cell of the second area, and a positional relationship between the title and each cell.
19. The display device according to claim 1 , wherein the graph drawing command includes at least one of a touch gesture and a touch command.
20. The graph drawing instruction includes a graph selection instruction, and the processor: The display device according to any one of claims 1 to 4, 6, 8 to 11, 13 to 15, and 18, which determines a graph type corresponding to a user's graph selection command in an intelligent drawing graph mode.
21. The graph drawing instruction includes a first touch gesture, and the processor: The display device according to any one of claims 1 to 4, 6, 8 to 11, 13 to 15, and 18, further comprising: a display device that, in response to a first touch gesture by a user in an intelligent drawing graph mode, recognizes a first figure generated by the first touch gesture, and determines a graph type based on the first figure.
22. The display device according to any one of claims 1 to 4, 6, 8 to 11, 13 to 15, and 18, wherein the graph drawing command includes at least one of an arrow drawing command, a circle drawing command, a polygon drawing command, a cylinder drawing command, and a rectangle drawing command.
23. The processor, If the graph drawing instructions include an instruction to draw an arrow, determine that the graph type is a line graph; or If the graph drawing instructions include a circular drawing instruction, determine that the graph type is a pie graph; or If the graph drawing instructions include a drawing instruction for a rectangle, determine that the graph type is a histogram; or If the graph drawing instructions include a columnar drawing instruction, determine that the graph type is a bar graph; or The display device of claim 21 , further comprising: a display unit configured to determine that the graph type is a radar map if the graph drawing instructions include an instruction to draw a polygon.
24. The processor, the data recognition result includes two columns of cells, the arrow drawing command includes a first arrow command and a second arrow command that are drawn sequentially, the first arrow command corresponding to a first column of cells in the two columns of cells, and the second arrow command corresponding to a second column of cells in the two columns of cells; When the first direction of the first arrow command is the X-axis direction, the first column cell is set as the X-axis data of the graph, and the second column cell is set as the Y-axis data of the graph; If the first direction of the first arrow command is the Y-axis direction, the first column cell is set as the Y-axis data of the graph. The second column cells are used as the X-axis data of the graph, 22. The display device of claim 21, wherein a time of receipt of the first arrow command is earlier than a time of receipt of the second arrow command, and a second direction of the second arrow command is different from the first direction.
25. The processor, A display device according to any one of claims 1 to 4, 6, 8 to 11, 13 to 15, 18, and 23 to 24, which displays a second display interface in an intelligent drawing graph mode in the display area in response to an intelligent drawing graph activation command triggered by a user to a first display interface of a handwriting application.
26. The intelligent drawing graph activating instruction includes a second touch gesture, and the processor: receiving a second figure drawn by a user on a first display interface of a handwriting writing application, the second figure being a second figure generated based on the second touch gesture; The display device according to claim 25, further comprising: triggering to display a second display interface in an intelligent drawing graph mode in the display area based on the second graphic.
27. After receiving a second figure drawn by the user on a first display interface of a handwriting writing application, the processor: generating a candidate menu in the first display interface, the candidate menu including a first activation icon corresponding to the second graphic; The display device according to claim 26 , wherein the second graphic is displayed in the display area in response to a touch operation on the first launch icon by a user.
28. The processor, When the second graphic is cylindrical, the first launch icon is a bar icon, and in response to a user's touch operation on the bar icon, triggering to display a second display interface corresponding to a bar graph; When the second graphic form is a rectangle, the first launch icon is a histogram icon, and in response to a touch operation by a user on the histogram icon, triggering to display a second display interface corresponding to a histogram; When the second graphic is a circle, the first launch icon is a circular icon, and in response to a user's touch operation on the circular icon, triggering to display a second display interface corresponding to a pie chart; When the second graphic is a polygon, the first activation icon is a radar icon, and in response to a user's touch operation on the radar icon, triggering to display a second display interface corresponding to a radar map; The display device of claim 27, wherein when the second graphic is an arrow, the first activation icon is a line icon, and in response to a user's touch operation on the line icon, a second display interface corresponding to a line graph is triggered to be displayed.
29. the candidate menu further includes a second launch icon, the second launch icon including an analysis template icon; The display device of claim 27 , wherein the processor is configured to insert an analysis template corresponding to the analysis template icon into the first display interface in response to a user touching the analysis template icon.
30. The processor, 26. The display device of claim 25, further comprising: a display unit for displaying a graph in the second display interface, and inserting the graph in the second display interface into the first display interface of the handwriting writing application in response to a user's insertion command.
31. Prior to responding to a user command to draw a graph, the processor A display device as described in any one of claims 1 to 4, claims 6, claims 8 to 11, claims 13 to 15, claims 18, claims 23 to 24, and claims 26 to 30, determining a writing area and a graph area in a display area of the display screen, the writing area being configured to receive a user's handwriting trajectory information, and the graph area being configured to display a graph corresponding to the handwriting trajectory information.
32. The processor, determining a writing area and a graph area in a display area of the display screen, the writing area being configured to receive user's handwriting trajectory information, and the graph area being configured to display a graph corresponding to the handwriting trajectory information; The display device according to claim 1 , further comprising: a writing presentation table corresponding to the graph type, the writing presentation table being displayed in a writing area of the display area.
33. The display device of claim 31 , wherein the graph area is configured to receive a user's graph drawing instructions.
34. The processor, 32. The display device of claim 31, configured to, in response to a user editing command in a smart graph mode of a known graph type, divide the display area into a writing area and a graph area, the graph area being configured to display a graph corresponding to the graph type.
35. The processor, In response to a drag command by a user in the writing area, move the content of the writing area in a corresponding direction; or 32. The display device of claim 31, wherein in response to a user's drag command on a graph region, the content of the graph region is moved in a corresponding direction.
36. The processor, displaying said graph area in full screen in response to a user's full screen preview command; or In response to a user's annotation operation in the graph region, displaying content corresponding to the annotation operation; or in response to a user erasing operation in the graph region, erasing content in the graph region corresponding to the erasing operation; or Clear the contents of the chart area in response to a user clear action on the chart area, or Save the contents of the chart region in response to a user save action in the chart region, or 32. The display device of claim 31, which switches the current graph type in response to a user command to switch the graph type.
37. The display device according to claim 31. The writing area and the graph area do not overlap, or The graph region hovers above the writing area and does not obscure the contents of the writing area.
38. After displaying the drawn graph in the graph area, the processor: in response to a second partition command from a user, dividing the writing area into a first writing area and a second writing area and dividing the graph area into a first graph area and a second graph area; 32. The display device of claim 31 , wherein the first writing area is configured to display handwriting trajectory information received before division, the second writing area is configured to display handwriting trajectory information received after division, the first graph area is configured to display a graph corresponding to the handwriting trajectory information in the first writing area, and the second graph area is configured to display a graph corresponding to the handwriting trajectory information in the second writing area.
39. The processor, The handwriting trajectory information is input to a text recognition model for recognition, and data content corresponding to the handwriting trajectory information is output, the text recognition model includes a plurality of BiLSTM network layers, and at least two outputs are connected to inputs of any of the BiLSTM network layers except for the first two BiLSTM network layers; The display device of any one of claims 1 to 4, 6, 8 to 11, 13 to 15, 18, 23 to 24, 26 to 30, and 33 to 38, wherein the at least two outputs include outputs from any two BiLSTM network layers prior to any of the BiLSTM network layers.
40. 40. The display device of claim 39, wherein the text recognition model further includes a fully connected layer having at least three outputs connected to the fully connected layer, the at least three outputs including outputs from any three BiLSTM network layers prior to the fully connected layer.
41. 40. The display device of claim 39, wherein an output from any BiLSTM network layer prior to but not including the last BiLSTM network layer is an input to at least two subsequent BiLSTM network layers.
42. the text recognition model includes four BiLSTM network layers and a fully connected layer, a first BiLSTM network layer includes a first input and a first output, a second BiBiLSTM network layer includes a second input and a second output, a third BiLSTM network layer includes a third input and a third output, and a fourth BiLSTM network layer includes a fourth input and a fourth output; The first input is configured to input the writing trace information.
40. The display device of claim 39, wherein the second input connects the first output, the third input connects the first output and the second output, the fourth input connects the first output, the second output and the third output, the fourth output connects the fully connected layer inputs, and an output from the fully connected layer is configured to output data content corresponding to the writing trajectory information.
43. After responding to a user's graph selection command in an intelligent drawing graph mode, the processor: Displaying a writing presentation table in the display area, receiving writing trajectory information entered by a user in the writing presentation table, 30. The display device according to claim 1, further comprising: a display unit configured to display, when a user stops writing and waits for a predetermined time, a graph of a graph type corresponding to the graph selection command.
44. The processor, The display device according to any one of claims 1 to 4, 6, 8 to 11, 13 to 15, 18, 23 to 24, 26 to 30, 33 to 38, and 40 to 42, in an intelligent drawing graph mode of a known graph type, triggering drawing of a graph after determining that a user has stopped writing and waited a predetermined time.
45. Before the user responds to a graph drawing command in an intelligent drawing graph mode, the processor receives the user's handwriting trace information, recognizes the handwriting trace information, and obtains a data recognition result; The display device according to claim 21, wherein after responding to a user's graph drawing command in an intelligent drawing graph mode, the processor draws and displays a graph of a graph type corresponding to the graph drawing command based on the data recognition result.
46. The processor, The display device according to any one of claims 1 to 4, 6, 8 to 11, 13 to 15, 18, 23 to 24, 26 to 30, 33 to 38, and 40 to 42, wherein in an intelligent drawing graph mode of a known graph type, when it is determined that a user gesture command has been received, drawing of a graph is triggered.
47. If the gesture command is an arrow gesture command, the processor: determining table data corresponding to the X-axis based on an arrow direction in the received gesture command; or The display device according to claim 46, further comprising: a display unit configured to determine table data corresponding to the Y axis based on an arrow direction in a received gesture command.
48. The processor, The multiple data sets are determined by splitting the user's writing by columns, or 42. The display device of claim 1, 2, 3, 4, 5, 6, 8, 11, 13, 15, 18, 23, 24, 26, 30, 33, 38, 40, 42, 43, 44, 45, 46, 47, 48, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 300, 310
49. The data recognition results include a plurality of data sets, and the processor: When the writing presentation table is displayed in the display area, the contents entered by the user in the writing presentation table are divided into columns or rows to obtain a plurality of data sets; or A display device as described in claim 1 to claim 48, in which when a writing presentation table is not displayed in the display area, after each cell is determined, the data content of each cell is divided by column or row to obtain multiple data sets.
50. The processor, Based on the correspondence between each row and the coordinate axis that has been preset, the contents of each column written by the user are determined as each data set; or 49. The display device according to claim 48, wherein the content of each line handwritten by the user is determined as each data set based on a preset correspondence between each column and a coordinate axis.
51. The processor, Determine the graph type according to the graph drawing command, 49. The display device of claim 48, wherein a graph corresponding to the graph type is rendered based on each data set corresponding to the content written by the user.
52. If any of the data sets include any column contents written by a user, the processor: If it is determined that the graph type is a bar graph, determine each classification title on a predetermined coordinate axis based on a data set corresponding to the predetermined column, determine a cylinder name based on a first content corresponding to a predetermined index value in a data set corresponding to the remaining columns excluding the predetermined column, determine a cylinder height corresponding to each classification title and cylinder name based on the content excluding the first content in the data set corresponding to the remaining columns, and draw a bar graph based on each classification title, cylinder name, and cylinder height, or If it is determined that the graph type is a radar map, determine a title for each vertex based on a data set corresponding to the predetermined column, determine a polar coordinate name based on a second content corresponding to a predetermined index value in a data set corresponding to the remaining columns excluding the predetermined column, determine polar coordinates corresponding to each title and polar coordinate name based on the content excluding the second content in the data set corresponding to the remaining columns, and draw a radar map based on each title, polar coordinate name, and polar coordinate; or If the graph type is determined to be a line graph, a title of a coordinate axis is determined based on the content corresponding to a predetermined index value in the data set, and a coordinate point is determined based on the content corresponding to the same index value other than the predetermined index value in a different data set. A line graph is drawn based on the title of the coordinate axis and the coordinate point, or If it is determined that the graph type is a pie graph, the title of each partition is determined based on the data set corresponding to the predetermined column.
49. The display device according to claim 48, further comprising: determining an occupancy rate of each partition based on a data set corresponding to a column other than the predetermined column; and drawing a pie chart based on the title and occupancy rate of each partition.
53. The processor, displaying a predetermined graph in said display area in response to a user editing command in smart graph mode of a known graph type; The display device according to any one of claims 1 to 4, 6, 8 to 11, 13 to 15, 18, 23 to 24, 26 to 30, 33 to 38, and 40 to 42, wherein a display specification of the predetermined graph is determined based on a known graph type.
54. The processor, A display device as described in any one of claims 1 to 4, claims 6, claims 8 to 11, claims 13 to 15, claims 18, claims 23 to 24, claims 26 to 30, claims 33 to 38, and claims 40 to 42, wherein after a graph type is determined, a guide template corresponding to the graph type is displayed in the display area of the display screen, and the guide template guides the user to write table contents based on writing specifications corresponding to the graph type.
55. The processor, 55. The display device of claim 54, wherein a table template is displayed in a first partition of the guide template and a graph template is displayed in a second partition of the guide template, the table template including predetermined content and the graph template including a graph corresponding to the predetermined content.
56. After displaying the rendered graph in the display area, the processor: The display device according to any one of claims 1 to 4, 6, 8 to 11, 13 to 15, 18, 23 to 24, 26 to 30, 33 to 38, and 40 to 42, which modifies corresponding handwriting trajectory information in response to a user's modification command, and updates the graph based on the modified handwriting trajectory information.
57. In response to the user's modification command, the processor:
57. The display device according to claim 56, wherein the corrected handwriting locus information is acquired and stored in a first storage area, the first storage area being different from a storage area in which the handwriting locus information before the correction exists.
58. 57. The display device of claim 56, wherein the modification instructions include at least one of instructions triggered by different pen tips of a touch pen, instructions triggered by different keys of a touch pen, and instructions triggered by a display area switching button.
59. In response to the user's modification command, the processor: determining a first unmodified content and a second modified content corresponding to the modification instruction; 57. The display device of claim 56, wherein the first content and the second content are displayed simultaneously, and the display formats of the first content and the second content are different.
60. After obtaining the corrected writing trajectory information and storing it in a first storage area, the processor: acquiring the corrected writing locus information from the first storage area, and drawing a first graph based on the writing locus information before the correction and the corrected writing locus information; 60. The display device according to claim 58, wherein the first graph includes first table data corresponding to pre-correction handwriting locus information and second table data corresponding to corrected handwriting locus information.
61. After obtaining the corrected writing trajectory information and storing it in a first storage area, the processor: obtaining the corrected writing locus information from the first storage area, drawing a second graph based on the writing locus information before the correction, and drawing a third graph based on the corrected writing locus information; 60. The display device of claim 58, wherein the second graph and the third graph are displayed simultaneously.
62. A method for displaying a graph, comprising: A step of recognizing handwriting trajectory information in a display area of a display screen and acquiring a data recognition result; in response to a user's command to draw a graph, determining a graph type corresponding to said command; in response to a user's graph drawing command, drawing a graph of a graph type corresponding to the graph drawing command based on the data recognition result, and displaying the drawn graph in the display area.
63. Before recognizing the handwriting locus information in the display area of the display screen and obtaining the data recognition result, displaying a writing presentation table in the display area, the writing presentation table being presented to a user to write in each cell of the writing presentation table; 63. The method for displaying a graph according to claim 62, further comprising the step of: receiving writing trajectory information entered by a user into the writing presentation table.
64. The step of displaying a writing presentation table in the display area includes: determining a reference position of a writing presentation table based on a position of writing trajectory information that a user writes for the first time in the display area; and displaying a writing presentation table having a fixed number of rows and columns in the display area according to a reference position of the writing presentation table; 64. The method for displaying a graph according to claim 63, wherein the writing trajectory information of the first writing by the user is located in a cell of the writing presentation table.
65. After displaying the writing presentation table, When the writing trajectory information of the user continues writing exceeds the range included in the writing presentation table, the number of rows and / or the number of columns of the writing presentation table are increased according to the position of the writing trajectory information of the user continues writing, or A method for displaying a graph as described in claim 62 or claim 63, wherein when the writing trajectory information of the user continuing to write is in a critical row of the writing presentation table, the number of rows of the writing presentation table is increased, and / or when the writing trajectory information of the user continuing to write is in a critical column of the writing presentation table, the number of columns of the writing presentation table is increased.
66. 63. The method of claim 62, wherein the number of rows and columns of the writing presentation table is fixed or determined based on user-entered parameters.
67. determining the data recognition result by method 1 or method 2; Method 1: Based on the positional relationship between each trajectory point in the writing trajectory information and a cell in the writing presentation table, determine the writing trajectory information contained in each cell, recognize the writing trajectory information contained in each cell, and obtain the data content of each cell; Method 2: A method for displaying a graph as described in any one of claims 62 to 64, which recognizes the writing trajectory information, obtains the content written by the user and the position of the content in the display area, and determines the data content of each cell based on the position of the content and the position of the cell in the writing presentation table.
68. 63. The method of claim 62, wherein the data recognition result includes a plurality of cells, and the data recognition result includes the location of each cell and the data content within each cell.
69. The data recognition result is determined by: Determining each cell, dividing the writing trajectory information into each cell, each cell being used to correspond to each cell in the table, and the writing trajectory information contained in each cell being used to correspond to data content in each cell; Recognize the handwriting trajectory information in each cell, obtain the data content in each cell, 69. The method of claim 68, further comprising determining the data recognition result based on the location of each cell and the data content within each cell.
70. To divide the writing path into cells, converting the writing trajectory information into strokes, and determining a center of gravity of the stroke based on an average coordinate value of trajectory points in the stroke; 70. The graph display method according to claim 69, further comprising dividing the stroke into cells based on a positional relationship between the center of gravity of the stroke and each cell.
71. To divide the writing path into cells, Obtaining a writing order and coordinates of each trajectory point in the writing trajectory information; determining a similarity between each of the trajectory points based on the writing order and coordinates of each of the trajectory points; 70. The method for displaying a graph according to claim 69, further comprising dividing trajectory points whose similarity satisfies a predetermined threshold into cells.
72. A column separator line is determined based on a valley position in a first projected histogram on a first coordinate axis of the writing trajectory information, and a row separator line is determined for any column based on a valley position in a second projected histogram on a second coordinate axis of the writing trajectory information included in any column, and each cell is determined based on the column separator line and the row separator line, or A row separator line is determined based on a valley position in a second projection histogram on a second coordinate axis of the writing trajectory information, and a column separator line of any row is determined based on a valley position in a first projection histogram on a first coordinate axis of the writing trajectory information included in any row, and each cell is determined based on the row separator line and the column separator line, or 72. A method for displaying a graph according to any one of claims 68 to 71, further comprising: determining a column separator line based on a valley position in a first projected histogram on a first coordinate axis of the writing trajectory information; determining a row separator line based on a valley position in a second projected histogram on a second coordinate axis of the writing trajectory information; and determining each cell based on the row separator line and the column separator line.
73. determining column separator lines based on valley locations in the first projected histogram where the valley width is greater than a threshold; and / or 73. The method of claim 72, further comprising determining row separator lines based on locations of valleys in the second projected histogram whose widths are greater than a threshold value.
74. 73. The method for displaying a graph according to claim 72, wherein the writing trajectory information is obtained after performing a resampling operation on trajectory points in the writing trajectory information, and the resampling is configured to increase the trajectory points in a corresponding stroke according to a length of each stroke in the writing trajectory information.
75. the first projected histogram is a projected histogram obtained by projecting the handwriting trajectory information onto a first coordinate axis, and is obtained by shrink mapping; 73. The graph display method according to claim 72, wherein the second projected histogram is a projected histogram obtained by projecting the writing trajectory information onto a second coordinate axis, and is obtained by contraction mapping.
76. 72. A method for displaying a graph according to any one of claims 68 to 71, wherein each cell is determined by an automatic grid algorithm.
77. Before recognizing the handwriting locus information in the display area of the display screen and obtaining the data recognition result, displaying a title prompt in the display area, the title prompt being configured to suggest a writing position for a user table title; A method for displaying a graph as described in any one of claims 62 to 64, claims 66, claims 68 to 71, and claims 73 to 75, comprising acquiring first writing trajectory information in a first area corresponding to the title prompt, and acquiring second writing trajectory information in a second area corresponding to the title prompt.
78. Recognizing the handwriting locus information of the first area and acquiring the title of each coordinate axis; Dividing the handwriting locus information of the second area into cells, recognizing the handwriting locus information in each cell, and acquiring data contents in each cell of the second area; 78. The graph display method according to claim 77, further comprising determining the data recognition result based on the title, the data contents in each cell of the second region, and a positional relationship between the title and each cell.
79. The graph display method according to any one of claims 62 to 64, 66, 68 to 71, 73 to 75, and 78, wherein the graph drawing command includes at least one of a touch gesture and a touch command.
80. The graph drawing command includes a graph selection command to determine a graph type as follows: A method for displaying a graph according to any one of claims 62 to 64, 66, 68 to 71, 73 to 75, and 78, which determines a graph type corresponding to a user's graph selection command in an intelligent drawing graph mode.
81. the graph drawing command includes a first touch gesture; A method for displaying a graph as described in any one of claims 62 to 64, 66, 68 to 71, 73 to 75, and 78, comprising the steps of: in response to a first touch gesture by a user in an intelligent drawing graph mode, recognizing a first figure generated by the first touch gesture, and determining a graph type based on the first figure.
82. A method for displaying a graph according to any one of claims 62 to 64, 66, 68 to 71, 73 to 75, and 78, wherein the graph drawing command includes at least one of an arrow drawing command, a circle drawing command, a polygon drawing command, a cylindrical drawing command, and a rectangle drawing command.
83. The step of recognizing a graphic corresponding to the graph drawing command and determining a graph type based on the graphic includes: If the graph drawing instructions include an instruction to draw an arrow, determine that the graph type is a line graph; or If the graph drawing instructions include a circular drawing instruction, determine that the graph type is a pie graph; or If the graph drawing instructions include a drawing instruction for a rectangle, determine that the graph type is a histogram; or If the graph drawing instructions include a columnar drawing instruction, determine that the graph type is a bar graph; or 83. The method of claim 82, further comprising the step of determining that the graph type is a radar map if the graph drawing instructions include an instruction to draw a polygon.
84. the data recognition result includes two columns of cells, the arrow drawing command includes a first arrow command and a second arrow command that are drawn sequentially, the first arrow command corresponding to a first column of cells in the two columns of cells, and the second arrow command corresponding to a second column of cells in the two columns of cells; When the first direction of the first arrow command is the X-axis direction, the first column cell is set as the X-axis data of the graph, and the second column cell is set as the Y-axis data of the graph; If the first direction of the first arrow command is the Y-axis direction, the first column cell is set as the Y-axis data of the graph. The second column cells are used as the X-axis data of the graph, 83. The method of claim 82, wherein a time of receipt of the first arrow command is earlier than a time of receipt of the second arrow command, and a second direction of the second arrow command is different from the first direction.
85. In response to an intelligent drawing graph activation command triggered by a user on a first display interface of a handwriting application, displaying a second display interface in the intelligent drawing graph mode in the display area; A method for displaying a graph as described in any one of claims 62 to 64, 66, 68 to 71, 73 to 75, 78, and 83 to 84, wherein after drawing a graph in the second display interface and displaying the graph, in response to a user's insertion command, the graph of the second display interface is inserted into and displayed in a first display interface of the handwriting writing application.
86. before responding to the user's command to draw a graph, determining a writing area and a graph area in a display area of the display screen; A method for displaying a graph as described in any one of claims 62 to 64, claims 66, claims 68 to 71, claims 73 to 75, claims 78, and claims 83 to 84, wherein the writing area is configured to receive a user's writing trajectory information, and the graph area is configured to display a graph corresponding to the writing trajectory information.
87. determining a writing area and a graph area in a display area of the display screen, the writing area being configured to receive user's handwriting trajectory information, and the graph area being configured to display a graph corresponding to the handwriting trajectory information; 67. The method for displaying a graph according to claim 62, further comprising displaying a writing presentation table corresponding to said graph type in a writing area of said display area.
88. An electronic device, The electronic device includes a processor and a memory; the memory is configured to store a program executable by the processor; 88. An electronic device, wherein the processor is configured to read a program in the memory and execute the steps of the method according to any one of claims 62 to 87.
89. A computer storage medium having a computer program stored thereon, the program being configured to perform the method of any of claims 62 to 87 when executed by a processor.
Citation Information
Patent Citations
Handwriting form identification method and device
CN106293185A
Graphic display method and device, equipment and storage medium
CN108304132A
A multi-graph display method and apparatus for data, a computer device and a storage medium
CN109543162A
Hand-written table recognizing device
JP1994187420A
System and method for editing ink objects
US20060061779A1
