CN110956674B - Graph adjusting method, device, equipment and storage medium - Google Patents

Graph adjusting method, device, equipment and storage medium Download PDF

Info

Publication number
CN110956674B
CN110956674B CN201911010626.XA CN201911010626A CN110956674B CN 110956674 B CN110956674 B CN 110956674B CN 201911010626 A CN201911010626 A CN 201911010626A CN 110956674 B CN110956674 B CN 110956674B
Authority
CN
China
Prior art keywords
graph
geometric
writing
target
target geometric
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911010626.XA
Other languages
Chinese (zh)
Other versions
CN110956674A (en
Inventor
吴诗乐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201911010626.XA priority Critical patent/CN110956674B/en
Priority to PCT/CN2019/121742 priority patent/WO2021077539A1/en
Publication of CN110956674A publication Critical patent/CN110956674A/en
Application granted granted Critical
Publication of CN110956674B publication Critical patent/CN110956674B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/203Drawing of straight lines or curves
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses a method, a device, equipment and a storage medium for adjusting graphs, which relate to the technical field of electronic whiteboards and comprise the following steps: displaying a graphic in the canvas; displaying a first writing track in response to the received first writing operation, wherein the first writing track represents a target geometric attribute, and the target geometric attribute comprises a length parameter and/or an angle parameter; and adjusting the graph to enable the target geometric attribute to be used as the geometric attribute of the adjusted graph. By adopting the method, the technical problem that the graph cannot be accurately and simply adjusted in the prior art can be solved.

Description

Graph adjusting method, device, equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of electronic whiteboards, in particular to a method, a device, equipment and a storage medium for adjusting graphs.
Background
With the development of computer technology, computer devices are widely used in various scenes of daily life. For example, intelligent devices such as tablet computers and televisions with electronic whiteboard functions are widely used in scenes such as office and teaching. At this time, the user can perform operations such as writing and drawing on the display screen based on the electronic whiteboard function. For example, in a teaching scene, the instructor can draw geometric figures in the display screen through the electronic whiteboard function as required, and correspondingly explain students. In the process of implementing the invention, the inventor finds that the prior art has the following defects: if the instructor needs to modify the drawn geometric figure, the instructor is usually required to manually select an adjusted point (such as a vertex) and then adjust the figure by dragging the point. However, the precision of the dragging operation is not high, so that the adjusted graph does not conform to the graph expected by the instructor, and at this time, the instructor can only improve the accuracy by repeatedly dragging. In summary, how to accurately and simply adjust the graphics becomes a technical problem which needs to be solved urgently.
Disclosure of Invention
The application provides a graph adjusting method, a graph adjusting device, graph adjusting equipment and a storage medium, and aims to solve the technical problem that graphs cannot be accurately and simply adjusted in the prior art.
In a first aspect, an embodiment of the present application provides a method for adjusting a graph, including:
displaying a graphic in the canvas;
displaying a first writing track in response to the received first writing operation, wherein the first writing track represents a target geometric attribute, and the target geometric attribute comprises a length parameter and/or an angle parameter;
and adjusting the graph to enable the target geometric attribute to be used as the geometric attribute of the adjusted graph.
Further, after displaying the first writing track in response to the received first writing operation, the method includes:
marking corresponding geometric features in the graph based on the target geometric attributes, wherein the geometric features comprise edges, corners or axes, and each target geometric attribute corresponds to one geometric feature.
Further, the marking the corresponding geometric feature in the graph includes:
when the geometric feature corresponding to the target geometric attribute is an edge, replacing the display parameter of the geometric feature;
and when the geometric features corresponding to the target geometric attributes are angles or axes, adding marks of the geometric features into the graph.
Further, after the displaying the first writing track in response to the received first writing operation, the method further includes:
and displaying an adjustment failure prompt when the target geometric attribute is confirmed not to meet the unique determination condition of the graph.
Further, the displaying the graphic in the canvas comprises:
displaying a second writing track in the canvas in response to the received second writing operation, wherein the second writing track forms a graph; or the like, or, alternatively,
in response to a received graphic template selection operation, a graphic corresponding to the graphic template selection operation is displayed in the canvas.
Further, after the adjusting the graph so that the target geometric property serves as the geometric property of the adjusted graph, the method further includes:
displaying the shaped first writing track, wherein the shaped first writing track is a computer drawing element.
In a second aspect, an embodiment of the present application further provides a method for adjusting a graph, including:
displaying a graphic in the canvas;
receiving a first writing operation, obtaining a first writing track according to the first writing operation, and identifying the first writing track to determine a target geometric attribute represented by the first writing track, wherein the target geometric attribute comprises a length parameter and/or an angle parameter;
and adjusting the graph according to the target geometric attribute so that the target geometric attribute is used as the geometric attribute of the adjusted graph.
Further, the identifying the first writing trajectory to determine the target geometric property represented by the first writing trajectory includes:
identifying the first writing track to determine a first data parameter and a characteristic type represented by the first writing track;
and determining the corresponding geometric characteristics of the first data parameters in the graph according to the characteristic types, wherein the geometric characteristics comprise edges, corners or axes.
Further, the first writing track comprises at least one group;
the identifying the first writing track to determine the first data parameter and the feature type represented by the first writing track comprises:
and performing digital recognition, symbol recognition and/or character recognition on each group of the first writing tracks to determine first data parameters and characteristic types represented by each group of the first writing tracks.
Further, the figure is a polygon;
the determining, according to the feature type, the corresponding geometric feature of the first data parameter in the graph includes:
acquiring all geometric features which meet the feature types in the graph;
acquiring first position data of the first writing track;
and searching the geometric feature closest to the first position data in all the geometric features meeting the feature type, and taking the searched geometric feature as the geometric feature corresponding to the first data parameter.
Further, after the identifying the first writing track to determine the target geometric property represented by the first writing track, the method includes:
and establishing an incidence relation between the target geometric attributes and the corresponding geometric features in the graph, and marking the geometric features.
Further, said adjusting said graph according to said target geometric property comprises:
and if the target geometric attributes meet the unique determination condition of the graph, adjusting the graph according to the target geometric attributes.
Further, the method also comprises the following steps:
if the target geometric attributes do not meet the unique determination condition of the graph, displaying an adjustment failure prompt; or the like, or, alternatively,
if the target geometric attribute does not meet the unique determination condition of the graph, searching the geometric feature corresponding to the target geometric attribute in the graph, determining the actual geometric attribute of the geometric feature, determining a modification amplitude according to the target geometric attribute and the actual geometric attribute, and adjusting the graph according to the modification amplitude; or the like, or, alternatively,
if the target geometric attributes do not meet the unique figure determining condition, searching corresponding geometric features in the figures according to the unique figure determining condition, determining the actual geometric attributes of the geometric features, and adjusting the figures according to the target geometric attributes and the actual geometric attributes.
Further, the graph is a polygon, and the adjusting the graph according to the target geometric attribute includes:
determining second position data of all the vertexes in the graph according to the target geometric attributes;
and displaying the adjusted graph according to the second position data.
Further, the determining second position data of all vertices in the graph according to the target geometric attribute comprises:
calling a characteristic calculation formula of the graph;
substituting the target geometric attributes into the feature calculation formula to calculate a second data parameter of each edge in the graph;
determining second position data of the vertex according to the second data parameter.
Further, the displaying the graphic in the canvas comprises:
receiving a second writing operation, and displaying a second writing track according to the second writing operation;
and performing pattern recognition on the second writing track to determine a pattern represented by the second writing track.
In a third aspect, an embodiment of the present application further provides a graph adjusting apparatus, including:
a first display module for displaying a graphic in a canvas;
the second display module is used for responding to the received first writing operation and displaying a first writing track, wherein the first writing track represents a target geometric attribute, and the target geometric attribute comprises a length parameter and/or an angle parameter;
and the first adjusting module is used for adjusting the graph so that the target geometric attribute serves as the geometric attribute of the adjusted graph.
In a fourth aspect, an embodiment of the present application further provides a graph adjusting apparatus, including:
a third display module for displaying graphics in the canvas;
the operation receiving module is used for receiving a first writing operation and obtaining a first writing track according to the first writing operation; identifying the first writing track to determine a target geometric attribute represented by the first writing track, wherein the target geometric attribute comprises a length parameter and/or an angle parameter;
and the second adjusting module is used for adjusting the graph according to the target geometric attribute so as to enable the target geometric attribute to be used as the geometric attribute of the adjusted graph.
In a fifth aspect, an embodiment of the present application further provides a graphics adjusting apparatus, including:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the graphics adjustment method of the first aspect or the second aspect.
In a sixth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the graph adjustment method according to the first aspect or the second aspect.
According to the method, the device, the equipment and the storage medium for adjusting the graph, the graph is displayed in the canvas, the first writing track used for representing the target geometric attribute is displayed after the first writing operation is received, wherein the target geometric attribute comprises the length parameter and/or the angle parameter, and then the graph is adjusted according to the target geometric attribute, so that the graph displayed in the canvas is adjusted in a parameter handwriting mode, the adjusted graph is more in line with the expectation of a user, and the accuracy of graph adjustment is high. Meanwhile, the operation process is simple and convenient, the requirement on the operation proficiency of the user is not high, the user can conveniently realize the operation, and the use experience of the user is improved. Furthermore, the graphics are input in a handwriting or computer drawing mode, so that the graphics input mode is diversified; furthermore, the user can be prompted to identify the geometric attributes of the target by marking the geometric characteristics, so that the accurate implementation of the graph adjustment process is ensured.
Drawings
Fig. 1 is a flowchart of a graph adjustment method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a first interface of a canvas provided in an embodiment of the present application;
FIG. 3 is a diagram illustrating a second interface of a canvas according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a third interface of a canvas provided in an embodiment of the present application;
fig. 5 is a flowchart of a graph adjustment method according to a second embodiment of the present application;
FIG. 6 is a diagram of a fourth interface of a canvas provided in an embodiment of the present application;
FIG. 7 is a diagram illustrating a fifth interface of a canvas according to an embodiment of the present application;
FIG. 8 is a diagram illustrating a sixth interface of a canvas according to an embodiment of the present application;
FIG. 9 is a diagram illustrating a seventh interface of a canvas provided by an embodiment of the present application;
FIG. 10 is a diagram illustrating an eighth interface of a canvas according to an embodiment of the present application;
FIG. 11 is a diagram illustrating a ninth interface of a canvas provided by an embodiment of the present application;
FIG. 12 is a diagram illustrating a tenth interface of a canvas according to an embodiment of the present application;
FIG. 13 is a schematic diagram of an eleventh interface of a canvas provided by an embodiment of the present application;
FIG. 14 is a diagram illustrating a twelfth interface of a canvas according to an embodiment of the present application;
FIG. 15 is a thirteenth interface diagram of a canvas provided in an embodiment of the present application;
FIG. 16 is a fourteenth interface diagram of a canvas provided in an embodiment of the present application;
FIG. 17 is a fifteenth interface diagram of a canvas provided in an embodiment of the present application;
fig. 18 is a flowchart of a graph adjustment method according to a third embodiment of the present application;
fig. 19 is a flowchart of a graph adjustment method according to a fourth embodiment of the present application;
FIG. 20 is a sixteenth interface diagram of a canvas provided by an embodiment of the present application;
fig. 21 is a schematic structural diagram of a graphic adjustment apparatus according to a fifth embodiment of the present application;
fig. 22 is a schematic structural diagram of another image adjustment apparatus according to a fifth embodiment of the present application;
fig. 23 is a schematic structural diagram of a graphic adjustment apparatus according to a sixth embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are for purposes of illustration and not limitation. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action or object from another entity or action or object without necessarily requiring or implying any actual such relationship or order between such entities or actions or objects. For example, "first" and "second" of the first writing operation and the second writing operation are used to distinguish two different touch operations.
The graph adjustment method provided in the embodiment of the present application may be executed by a graph adjustment device, where the graph adjustment device may be implemented in a software and/or hardware manner, and the graph adjustment device may be formed by two or more physical entities or may be formed by one physical entity. For example, the graphics adjusting device may be a smart device such as a computer, a mobile phone, a tablet, or a smart interactive tablet.
For the convenience of understanding, the intelligent interactive tablet is taken as the graphic adjusting device in the embodiment for exemplary description. The intelligent interactive panel can be an integrated device which controls the content displayed on the display panel and realizes man-machine interaction operation through a touch technology, and integrates one or more functions of a projector, an electronic whiteboard, a curtain, a sound box, a television, a video conference terminal and the like.
Generally, a smart interactive tablet includes at least one display screen. For example, the smart interactive tablet is configured with a display screen having a touch function, and the display screen may be a capacitive screen, a resistive screen, or an electromagnetic screen. Furthermore, the user can realize touch operation by touching the display screen with a finger or a stylus, and correspondingly, the intelligent interactive panel detects the touch position, determines a response scheme according to the display content corresponding to the touch position, and then responds to realize the touch function. For example, the corresponding display content is determined as a writing area according to the touch position, and at this time, the response scheme is to display a writing track. It can be understood that, in practical applications, the user may also implement control operations by means of a keyboard, a mouse, physical keys, and the like.
Typically, the smart interactive tablet is installed with at least one type of operating system, wherein the operating system includes, but is not limited to, an android system, a Linux system, and a Windows system. Further, the smart interactive tablet may install at least one application based on the operating system, and in the embodiment, the smart interactive tablet is exemplarily described as an application having a drawing function. For example, an electronic whiteboard application having a drawing function is installed in the smart interactive tablet. The application program may be an application program carried by an operating system, or an application program downloaded from a third-party device or a server. Optionally, the application program has other editing functions besides the drawing function, such as writing, inserting a table, inserting a picture, inserting multimedia, inserting a graph, drawing a table, and the like.
Generally, an operable area is set in a display interface of an application program, and the operable area can be marked as a canvas, and a drawing or editing interactive interface can be displayed for a user through the canvas. Optionally, the display position of the canvas may be set according to actual requirements. It is understood that the size of the canvas may be set according to practical situations, and may be a limited size or an unlimited size. Furthermore, a first coordinate system is established in the canvas, and the origin of the first coordinate system can be set according to actual conditions. The fact that the canvas is of an infinite size means that the canvas can be infinitely reduced or increased in a coordinate system according to actual requirements of users. Similarly, a second coordinate system is established in the display screen, and the origin of the second coordinate system can also be set according to practical situations, generally speaking, the second coordinate system is a coordinate system with a fixed size. Generally, the second coordinate system has a corresponding relationship with an electrical component for detecting a touch operation, when the display screen receives the touch operation, a parameter of the electrical component at a corresponding position changes, at this time, the intelligent interaction panel determines coordinate data of the touch operation in the second coordinate system according to a change condition of the parameter of the electrical component, that is, determines a touch position of the touch operation, then determines coordinate data of the touch operation in the first coordinate system according to a mapping relationship between the second coordinate system and the first coordinate system, and then responds to the touch operation based on display content of the coordinate data in the canvas. The embodiment of the determination method of the mapping relationship is not limited. In the embodiment, the geometric features of the graph in the canvas are adjusted as an example, and the graph adjusting method is described.
Example one
Fig. 1 is a flowchart of a graph adjustment method according to an embodiment of the present application. Referring to fig. 1, the method for adjusting a graph specifically includes:
step 110, displaying the graph in the canvas.
Currently, at least one graphic is displayed in the canvas, wherein the graphic is a geometric graphic, which may be a polygon, a circle-like graphic, etc., and when the graphic is a polygon, it is preferably a regular convex polygon (such as a triangle, a square, a regular pentagon, etc.). Further, the graphic may be input by the user by handwriting or by selecting a graphic template. When inputting by handwriting, a user can perform writing operation in the canvas, wherein the writing operation is one of touch operations. And then, displaying the writing track by the intelligent interactive flat panel, and carrying out graph recognition on the writing track to determine the graph type input by the user. At this time, the displayed figure belongs to the figure handwritten by the user. Correspondingly, when the user selects the graphic template, the graphic templates corresponding to the graphic types are displayed in the canvas, and after the intelligent interactive panel determines that the user selects the graphic template, the graphic is displayed in the canvas according to the graphic template. At this time, the displayed figure belongs to a standard figure drawn by a computer. The mode of selecting the graphic template by the user can be set according to actual conditions, for example, the graphic template is dragged to the canvas in a dragging operation mode, the intelligent interaction panel acquires the end position of the dragging operation, and the graphic corresponding to the graphic template is displayed at the end position. It can be understood that each graph type corresponds to a graph template, where the classification basis of the graph types can be set according to actual situations, for example, the classification basis is classified according to the number of graph edges, and in this case, the graph types at least include: circles, triangles, quadrilaterals, pentagons, etc. Further, each type may be further subdivided, for example, a quadrilateral type may further include: the triangle type can also comprise the figure types of a right triangle type, an isosceles triangle type, a common triangle type and the like. It should be noted that the aforementioned ending position may refer to coordinate data in the first coordinate system or coordinate data in the second coordinate system, which is not limited in the embodiment.
And 120, responding to the received first writing operation, displaying a first writing track, wherein the first writing track represents a target geometric attribute, and the target geometric attribute comprises a length parameter and/or an angle parameter.
In particular, to implement the adjustment of the graphics, the user may enter target geometric attributes in the canvas. The geometric properties are parameters of geometric features of the figure. The geometric feature refers to a feature that determines a geometric shape when a graphic is displayed, and may generally include at least one of an edge, a corner, and an axis. Where an axis refers to other lines than edges, which may determine the shape and size of the displayed image, for example, for a circle, an axis may refer to a radius and/or a diameter, and for a parallelogram, an axis may refer to a perpendicular to a certain edge. Further, the geometric properties include a length parameter and an angle parameter. When the geometric features are axes or edges, the corresponding geometric attributes are length parameters, and when the geometric features are angles, the corresponding geometric attributes are angle parameters. In order to simplify the computational complexity, when the graph is a circle-like graph, the geometric features included in the graph are axes, and when the graph is a polygon, the geometric features included in the graph are edges and/or corners. For example, when the graphic type is a circle, the geometric property is a length parameter referring to an axis. Wherein, when the figure is a circle, the axis is a radius and/or a diameter, and correspondingly, the geometric attribute refers to a length parameter of the radius and/or a length parameter of the diameter. When the figure is an ellipse, the axis is a short axis, a long axis, a short semi-axis and/or a long semi-axis, and correspondingly, the geometric attributes refer to a short axis length parameter, a long axis length parameter, a short semi-axis length parameter and/or a long semi-axis length parameter. For another example, when the figure is a polygon, the geometric property refers to a length parameter of an edge and/or an angle parameter of an angle. For example, when the figure is a triangle, the geometric feature includes three edges and three corners, and accordingly, the geometric property may be a length parameter of each edge and an angle parameter of each corner. When the graph is a rectangle, the geometric characteristics comprise a short side and a long side, and correspondingly, the geometric attributes refer to the length parameter of the short side and the length parameter of the long side. It should be understood that, the above-mentioned length parameter and angle parameter are relative values, and accordingly, the range of the coordinate (in the first coordinate system or the second coordinate system) corresponding to the length unit and the angle unit may be set according to the actual situation, which is not limited in the embodiment. Further, in the embodiment, the geometric attribute input by the user is recorded as the target geometric attribute.
Typically, the target geometric attributes are written by the user in the canvas by handwriting. In the embodiment, the operation of writing the target geometric attribute by the user is denoted as a first writing operation. Optionally, the embodiment of the triggering manner of the first writing operation is not limited. For example, when it is determined that the canvas is currently in the writing mode, it is monitored that the canvas receives the touch operation, and the touch operation is the touch operation including the moving path, it is determined that the canvas currently has writing behavior, and the touch operation is determined as the first writing operation, and then the writing track generated corresponding to the first writing operation is displayed at the touch position. It can be understood that, for the smart interactive tablet, in the writing process of the user, the smart interactive tablet only receives one writing operation, and then needs to recognize the writing track of the writing operation, so as to be able to determine whether the writing operation is used for writing the target geometric attribute. In the embodiment, only in order to distinguish the currently received first writing operation from the subsequent second writing operation, the first writing operation is interpreted as an operation for writing the target geometric property. For another example, a graph adjustment mode is set, and when it is determined that the canvas is currently in the graph adjustment mode, if it is monitored that the touch operation is received in the canvas, it is determined that the first writing operation is received. In the embodiment, the writing track corresponding to the first writing operation is recorded as the first writing track. Optionally, taking numbers as an example, considering that when a user writes numbers in an actual application, a plurality of first writing tracks may need to be written (for example, number 4 needs two writing tracks), at this time, the plurality of first writing tracks meeting the setting condition may be grouped into one group, where the setting condition may be set according to an actual situation, for example, the setting condition is that the writing time interval of the plurality of first writing tracks is within a setting interval and the distance between the plurality of first writing tracks is within a setting distance, and the setting interval and the setting distance are set according to the actual situation. The advantage of grouping the plurality of first writing tracks is to facilitate the management and calculation of the first writing tracks. Taking management as an example, when the first writing track is moved, the moving path of each track does not need to be calculated one by one, and only the moving path of the minimum rectangular area containing the group of writing tracks needs to be calculated.
In an embodiment, the first writing track is set as a target geometric attribute written by a user. Since the smart interactive tablet can only recognize the first writing operation and display the first writing track when receiving the first writing operation, it cannot be determined whether the first writing operation is used for writing the target geometric attribute. Therefore, when the first writing track is displayed, the first writing track needs to be identified to determine the target geometric attribute represented by the first writing track. Specifically, after it is determined that a group of first writing tracks are completely written, the first writing tracks are subjected to number recognition, symbol recognition and character recognition to determine data parameters and feature types represented by the first writing tracks, namely, to determine the geometric attributes of the targets represented by the first writing tracks. The embodiments are not limited to the implementation means of number recognition, symbol recognition and character recognition. The feature type refers to the geometric feature represented by the data parameter.
Optionally, in order to implement the adjustment of the graph, a graph corresponding to the target geometric attribute needs to be determined, and a geometric feature corresponding to the target geometric attribute in the graph needs to be determined. When determining the graph corresponding to the target geometric attribute, if only one graph is displayed, the graph can be directly determined as the graph corresponding to the target geometric attribute. If a plurality of displayed graphs are available, the position data of the target geometric attribute in the canvas and the position data of each graph in the canvas can be acquired, the graph closest to the target geometric attribute is determined based on the two position data, and the graph is determined as the graph corresponding to the target geometric attribute. The two position data belong to the same coordinate system, and may be located in the first coordinate system or the second coordinate system, which is not limited in the embodiments. Further, when the geometric features corresponding to the target geometric attributes in the graph are determined, all geometric features of the same type are determined in the graph according to the feature types, and the geometric feature closest to the first writing track is selected as the geometric feature corresponding to the target geometric attributes. For example, when the graph is confirmed to be a circle and the first writing track is identified to be R3, the data parameter is determined to be R3, the feature type is a radius, that is, the geometric feature corresponding to the target geometric attribute is the radius, and the length parameter is 3. For another example, setting the corner identifier as R and the edge length identifier as L, when the graph is determined to be triangular and the first writing track is recognized to include two groups, R60 and L5, respectively, determining that the feature type corresponding to R60 is a corner, the angle parameter is 60, the geometric feature corresponding to L5 is a side and the length parameter is 5, and selecting the side closest to the corner as the geometric feature corresponding to L5 according to the distance between each side and the target geometric attribute, and the corners are the same. For another example, if the corner is marked, the edge has no mark, when the graph is determined to be a triangle, and the first writing track is identified to comprise two groups, namely 60 degrees and 5, respectively, the feature type corresponding to 60 degrees is determined to be the corner, the angle parameter is 60, the geometric feature corresponding to 5 is the edge, the length parameter is 5, and according to the distance between each edge and the target geometric attribute, the edge closest to the edge is selected as the geometric feature corresponding to 5, and the angles are the same.
Optionally, after the target geometric property represented by the first writing track is determined, in order to notify the user that the target geometric property is currently identified, the target geometric property may be bound with the graphic and marked in the graphic. The marking mode may be set according to an actual situation, for example, when the target geometric attribute is an angle parameter of an angle, a mark is added at a position corresponding to the angle, and for example, when the target geometric attribute is length data of an edge, a display parameter of the corresponding edge is changed. For another example, when the target geometric property is length data of an axis, the corresponding axis is marked in the graph.
And step 130, adjusting the graph to enable the target geometric attribute to be used as the geometric attribute of the adjusted graph.
Illustratively, the graph is adjusted according to the target geometric attributes, so that the adjusted graph is displayed according to the target geometric attributes. When the graph is adjusted, the graph unique determination condition corresponding to the graph needs to be determined firstly. The pattern unique determination condition includes all the requirements for determining a pattern. For example, when the figure is a circle, the figure unique determination condition for determining the circle may be a definite radius length or a diameter length. When the figure is an ellipse, the figure unique determination condition for determining the ellipse may be to specify the minor axis length and the major axis length, or to specify the minor axis length and the major axis length. When the graph is a triangle, the unique determination condition for determining the triangle may be to determine lengths of three sides, lengths of two sides, and an angle between two sides, or an angle between two corners, and a length of a side between two corners, or the like. When the pattern is a square, the pattern unique determination condition for determining the square may be the length of the clear side. Further, whether the target geometric attributes meet the unique determining condition of the graph is determined, namely whether the graph can be obtained is determined according to the target geometric attributes, if yes, the graph is adjusted, and if not, a user is prompted to fail in adjustment. The specific manner of determining whether the target geometric attribute satisfies the unique determination condition of the graph may be set according to an actual situation, for example, the graph is a triangle, the target geometric attribute includes angles of two angles and a length of one edge, and if it is determined that the position relationship between the two angles and the one edge satisfies the unique determination condition of the graph, it is determined that the target geometric attribute satisfies the unique determination condition of the graph.
In another embodiment of the present invention, when the target geometric attribute does not satisfy the unique determination condition for the graphic, an actual geometric attribute of the geometric feature corresponding to the target geometric attribute in the graphic may be determined, where the actual geometric attribute is a current geometric attribute of the geometric feature obtained based on the graphic. Also, the actual geometric property is a relative value. And then, taking the ratio between the target geometric attribute and the actual geometric attribute as a modification amplitude, and modifying the actual geometric attributes corresponding to other geometric features in the graph according to the modification amplitude to realize the graph adjustment.
In another embodiment of the present invention, when the target geometric attribute does not satisfy the unique pattern determining condition, other geometric features may be searched for in the pattern according to the unique pattern determining condition, the geometric features corresponding to the geometric features and the target geometric attribute may be found to satisfy the unique pattern determining condition, then, the actual geometric attribute corresponding to the found geometric features may be determined, and the pattern may be adjusted according to the actual geometric attribute and the target geometric attribute.
Furthermore, when the graph is adjusted, the position data of each geometric feature needs to be determined first, then the graph is redrawn according to the position data, and the graph which is not adjusted is deleted. At this time, the drawn figure belongs to a standard figure drawn by a computer. Specifically, when the graph is a polygon, the position data of the vertex in the canvas in the adjusted graph is determined based on the target geometric attributes, and then the graph is drawn based on the position data of the vertex. When the position data of the vertex is determined, a feature calculation formula can be called, and the length data of each edge in the adjusted graph can be calculated according to the feature calculation formula. The feature calculation formula is pre-stored in the intelligent interactive tablet, and can be used for calculating the side length and/or the angle. For example, when the graph is a triangle, the corresponding feature calculation formula includes that the sum of three interior angles is 180 °, the pythagorean theorem, the sine theorem, the cosine theorem, and the like. Thereafter, the position data of the vertex is determined from the length data of each edge. Typically, when the graph is a circle-like graph, the position data of the edge of the circle-like graph in the canvas is directly determined based on the target geometric attributes, and then the graph is drawn based on the position data of the edge.
Optionally, after the graph is adjusted, the geometric property of the target is shaped synchronously and displayed in the graph. Wherein shaping the target geometric property may be understood as shaping the first writing trajectory into a computer drawn element. The relative position relationship between the geometric attributes and the geometric features may be preset, and then the reshaped target geometric attributes may be displayed in the graph based on the relative position relationship.
The technical solution provided by the present embodiment is exemplarily described below.
Fig. 2 is a schematic diagram of a first interface of a canvas provided in an embodiment of the present application. Referring to fig. 2, a graphic 11 is displayed in the current canvas, the graphic 11 is a graphic input by the user through handwriting, and the graphic 11 is determined to be a triangle through graphic recognition.
Further, a first writing operation input by a user is received, and a first writing track is displayed. After the first writing trace is displayed, the interface of the canvas changes from fig. 2 to fig. 3. Fig. 3 is a diagram of a second interface of a canvas provided in an embodiment of the present application. Referring to fig. 3, the canvas includes three groups of first writing tracks, and after the first writing tracks are digitally recognized, it is determined that each group of first writing tracks is: 3. 4, 5, i.e. the first written trace, represents the length parameter of the edge as the target geometric property, and the values are 3, 4, 5, respectively. Then, based on the distances between the target geometric attribute and the three edges in the graph 11, the edge corresponding to each target geometric attribute is determined. In this case, it can be determined that the lengths of the three sides are 3, 4, and 5, respectively, after the adjustment of the pattern 11. Further, the triangle is adjusted according to the target geometric attributes. At this point, the canvas interface changes from FIG. 3 to FIG. 4. Fig. 4 is a schematic diagram of a third interface of a canvas provided in the embodiment of the present application. Referring to fig. 4, the graph 11 is adjusted and displayed as a standard graph drawn by a computer.
In the above, by displaying the graph in the canvas, and displaying the first writing track for representing the target geometric attribute after receiving the first writing operation, wherein the target geometric attribute includes the length parameter and/or the angle parameter, and then adjusting the graph according to the target geometric attribute, the graph displayed in the canvas is adjusted in a manner of handwriting parameter, so that the adjusted graph more conforms to the expectation of the user. Meanwhile, the operation process is simple and convenient, the requirement on the operation proficiency of the user is not high, the user can conveniently realize the operation, and the use experience of the user is improved.
Example two
Fig. 5 is a flowchart of a graph adjustment method according to a second embodiment of the present application. The present embodiment is embodied on the basis of the above-described embodiments.
Specifically, referring to fig. 5, the method for adjusting a graph provided in this embodiment specifically includes:
step 210, displaying the graph in the canvas.
In an embodiment, the step is configured to include at least two of the following:
and in the first scheme, responding to the received second writing operation, displaying a second writing track in the canvas, wherein the second writing track forms a graph.
In the embodiment, the touch operation of the user for drawing the graph by handwriting is recorded as the second writing operation. The second writing operation triggering mode may be set according to an actual situation, for example, when it is determined that the canvas is currently in the writing mode, the touch operation received in the canvas is monitored, and the touch operation is the touch operation including the moving path, it is determined that the second writing operation is received, and the touch position of the second writing operation is obtained, and then the writing track is displayed at the touch position, it may be understood that, for the intelligent interactive tablet, in the writing process of the user, the intelligent interactive tablet only receives one writing operation, and subsequently, the writing track of the writing operation needs to be identified, and it may be determined whether the writing operation is used for drawing a graph. In the embodiment, the second writing operation is interpreted as an operation for drawing a graphic only in order to distinguish the currently received second writing operation from the first writing operation. Further, a writing track corresponding to the second writing operation is recorded as a second writing track. At this time, it may be set that a plurality of writing tracks meeting the setting condition are grouped into one group, where the grouping condition is the same as the grouping condition of the first writing track, and details are not described here.
Because the smart interactive tablet can only recognize the second writing operation and display the second writing track, and cannot determine whether the second writing operation is used for drawing a graph, when the second writing track is displayed, the second writing track needs to be recognized to determine whether the second writing track can form the graph. The embodiment of the identification means is not limited. For example, a data set containing various patterns is collected in advance, the data set is trained in a machine learning manner to obtain a pattern recognition model, an algorithm used in the training can be set according to actual conditions, and then a group of second writing tracks are used as the input of the pattern recognition model, so that the pattern type corresponding to the second writing tracks can be determined through the pattern recognition model. For another example, the trace samples corresponding to the graphics categories are preset, where the embodiment of the setting mode of the trace samples is not limited. Further, the second writing track and each track sample are identified to obtain a track sample which is most similar to the second writing track, then, a track error between the track sample and the second writing track is calculated, and when the track error meets a set error range, the graph type corresponding to the track sample is used as the graph type corresponding to the second writing track. The method for calculating the trajectory error and the setting of the error range are not limited according to the embodiments.
When the triggering modes of the first writing operation and the second writing operation are the same, the writing tracks can be displayed firstly, a group of writing tracks are subjected to figure recognition, if corresponding figures cannot be recognized, the figure recognition, the symbol recognition and the character recognition are carried out, and the geometric attributes of the target represented by the writing tracks are determined.
And secondly, responding to the received graphic template selection operation, and displaying a graphic corresponding to the graphic template selection operation in the canvas.
Illustratively, a graphic template is a computer-drawn graphic that serves as a template. Optionally, a graphic template corresponding to each graphic type is displayed in the canvas, where embodiments of a generation manner and a storage location of the graphic template are not limited. Further, in the writing mode, the graphic template may be displayed at a set position on the canvas, or a trigger button of the graphic template may be displayed at the set position, and when it is detected that the trigger button is triggered, the graphic template is displayed. Wherein, the setting position can be set or modified according to the actual situation. Further, when the graphic types are less (e.g., less than or equal to the set number), the graphic templates of all the graphic types may be displayed, and when the graphic types are more (e.g., greater than the set number), the graphic templates of some of the graphic types may be displayed, and a graphic template switching rule may be set to implement switching the displayed graphic templates, where the switching rule may be set according to an actual situation.
Furthermore, the graphic template selection operation is an operation sent by a user for selecting a graphic template, and the intelligent interactive flat panel draws a corresponding graphic in the canvas according to the graphic template selection operation. The embodiment of the triggering method for the graphic template selection operation is not limited. For example, when the graphics template is set to receive the dragging operation, the graphics template selection operation is determined to be received, the dragging operation is monitored to control the graphics template to move synchronously with the dragging operation, when the dragging completion is detected, the completion position is obtained, and the graphics are drawn at the completion position. For another example, it is detected that the graphics template receives a click operation, and then, the other area in the canvas receives a click operation again, and it is determined that a graphics template selection operation is received, where the first click operation is used to select the graphics template, the second click operation is used to determine the drawing position of the graphics, and then, the graphics with the same type as the graphics template is drawn centering on the drawing position. The drawing position may refer to coordinate data in a first coordinate system or coordinate data in a second coordinate system, which is not limited in the embodiments.
And step 220, responding to the received first writing operation, displaying a first writing track, wherein the first writing track represents target geometric attributes, and the target geometric attributes comprise length parameters and/or angle parameters.
And step 230, marking corresponding geometric features in the graph based on the target geometric attributes, wherein the geometric features comprise edges, corners or axes, and each target geometric attribute corresponds to one geometric feature.
Typically, in order to associate a target geometric attribute explicitly written by a user with a graphic, a mark is set for a geometric feature in the graphic corresponding to the target geometric attribute. And each target geometric attribute can find a corresponding geometric feature in the graph, and the geometric feature corresponding to each target geometric attribute is marked.
Optionally, the marking the geometric feature in the target graph includes: when the geometric feature corresponding to the target geometric attribute is an edge, replacing the display parameter of the geometric feature; and when the geometric features corresponding to the target geometric attributes are angles or axes, adding marks of the geometric features in the graph.
And when the target geometric attribute corresponds to the edge of the graph, replacing the display parameters of the edge. Wherein, the display parameters are: line thickness, line color, line type, and the like. The intelligent interactive tablet can automatically set the replacement standard of the display parameters or set the replacement standard of the display parameters by a user. Usually, the replacement standard can be changed by the user according to the actual situation. For example, fig. 6 is a schematic diagram of a fourth interface of the canvas provided in the embodiment of the present application. Referring to FIG. 6, a graphic 201 is displayed in the canvas along with a target geometric attribute 202. Further, the bottom edge of the graph 201 is determined as the geometric feature corresponding to the target geometric attribute, and the display parameters of the bottom edge are replaced, at this time, the interface of the canvas changes from fig. 6 to fig. 7. Fig. 7 is a diagram of a fifth interface of a canvas provided in the embodiment of the present application. In comparison with fig. 6, the line type of the bottom line of the graph 201 in fig. 7 is changed, and at this time, the user may be prompted to associate the target geometric attribute with the graph.
When the target geometric attributes correspond to corners of the graph, adding corner marks at the corresponding corners in the graph, wherein the display mode of the corner marks can be set according to actual conditions. For example, fig. 8 is a sixth interface schematic diagram of a canvas provided by the embodiment of the present application, and referring to fig. 8, a graphic 203 and a target geometric attribute 204 are displayed in the canvas, where the target geometric attribute 204 corresponds to a bottom corner on the left side in the graphic 203, and at this time, a corner mark 205 is added at the bottom corner on the left side to prompt a user that the target geometric attribute is associated with the graphic. It will be appreciated that the display parameters of the lines in the corner marks may be modified in combination with the actual situation. In practical application, the user can also directly draw the angle mark when writing the target geometric attribute, at this time, the intelligent interaction tablet can determine the angle corresponding to the target geometric attribute according to the detected angle mark, and correct the radian of the angle mark drawn by the user so as to prompt the user that the target geometric attribute is bound with the angle.
When the target geometric property corresponds to an axis of the figure, the axis is displayed in the figure, and the displayed axis is taken as an axis mark. Further, the display parameters of the axis are different from those of the sides of the figure to distinguish the axis from the sides. For example, fig. 9 is a schematic diagram of a seventh interface of the canvas provided in the embodiment of the present application. Referring to fig. 9, a graphic 206 and a target geometric attribute 207 are displayed in the canvas, wherein the target geometric attribute 207 corresponds to a radius in the graphic 206, at which time a corresponding axis 208 is displayed in the graphic 206 to prompt the user that the target geometric attribute is associated with the graphic. In practical application, a user can also directly draw a line of an axis when writing the target geometric property, and at the moment, the intelligent interaction tablet can determine the axis represented by the line according to the relative position of the line and the graph, correct the line and modify the display parameters so as to prompt the user that the target geometric property is bound with the axis.
Optionally, when the target geometric attributes are multiple, the multiple target geometric attributes need to be sequentially input. At this time, after each group of first writing tracks is detected to be input completely, the group of first writing tracks is identified to determine the target geometric attributes and the corresponding geometric features, and then the corresponding geometric features are marked in the graph.
And 240, confirming whether the target geometric attributes meet the unique determining condition of the graph. If it is determined that the target geometric property does not satisfy the unique pattern determination condition, step 250 is performed. If the target geometric attribute is confirmed to satisfy the unique pattern determination condition, step 260 is executed.
Specifically, each type of graph has a corresponding graph unique determination condition. And after the graph is marked, calling a graph unique determination condition corresponding to the graph. The pattern unique determination condition includes a plurality of geometric features, and when the geometric features are plural, the positional relationship between the geometric features is recorded in addition to parameters of the geometric features. And comparing the geometric features with the geometric features recorded in the unique figure determining condition, if the geometric features are multiple, comparing the position relation of the geometric features with the position relation recorded in the unique figure determining condition, if the geometric features are multiple, determining that the unique figure determining condition is met, executing step 260, and otherwise, executing step 250. Wherein the positional relationship may be determined by a display position of the geometric feature in the canvas.
For example, the figure is a circle and the target geometric attribute is the length of the radius. At this time, the only determination condition for obtaining the circle is to specify the half-axis length or the diameter length. Thereafter, it is determined that the target geometric property satisfies the pattern unique determination condition, and step 260 is performed.
For another example, the graph is a rectangle, and the target geometric attributes are two and respectively correspond to the length parameters of the two edges. At this time, the unique determination condition for obtaining the graph is to clarify the length parameters of two adjacent edges. Further, since the edges corresponding to the geometric attributes of the object have been marked, this step may directly determine whether the two marked edges are adjacent edges, determine that the graph position determination condition is satisfied when the two marked edges are determined to be adjacent edges, and perform step 260. The determination method of the adjacent edge may be set according to an actual situation, for example, when it is determined that an intersection point exists between the two edges, the two edges are determined to be the adjacent edge. For another example, the two edges are determined to be adjacent edges according to the coordinate data of the two edges in the first coordinate system or the second coordinate system.
For another example, the graph is a triangle, and the target geometric attributes are two and respectively correspond to the length parameters of the two sides. At this time, the unique determination condition for obtaining the pattern is: and defining the lengths of the three edges, the lengths of the two edges and the angle of an included angle between the two edges, or the angles of the two corners and the length of the edge between the two corners, and the like. Because the edges corresponding to the geometric attributes of the target are marked, whether the marked two edges meet the unique determination condition of the graph can be directly determined in the step. Further, it is determined whether the two marked edges satisfy any of the above-described pattern unique determination conditions. In this case, it is known from the pattern unique specification condition that the two marked edges do not satisfy the pattern unique specification condition. And step 250 is performed.
And step 250, displaying an adjustment failure prompt.
The display mode of the adjustment failure prompt may be set according to an actual situation, for example, a prompt box pops up in the canvas, and characters of "the known attribute is insufficient and the graphic cannot be adjusted" are displayed in the prompt box to prompt the user that the adjustment fails. As another example, the marked geometric features are canceled to prompt the user for a failed adjustment. Setting the indication of failed adjustment has the advantage of enabling the user to rewrite the target geometric attributes according to the indication to accurately implement the graphical adjustment.
And 260, adjusting the graph to enable the target geometric attribute to serve as the geometric attribute of the adjusted graph, and displaying the shaped first writing track, wherein the shaped first writing track is a computer drawing element.
Optionally, when the graph is adjusted, the first writing track representing the target geometric attribute is modified synchronously, that is, the target geometric attribute is changed into a number, a letter or a symbol with a set font and size for display. Numbers, letters or symbols that set the font and size are to be understood as elements drawn by a computer. After the first writing track is identified to obtain the data parameters, the characters with the same content and the set font and size as the data parameters are obtained, and the first writing track is synchronously replaced by the corresponding characters when the graph is adjusted. It is understood that obtaining the characters with the same content and the same font and size as the first writing track may also be considered as shaping the target geometric property represented by the first writing track. The shaping has the advantages that the attractiveness of display is improved, and a user can determine whether the intelligent interaction panel is accurately identified through the geometric attributes of the shaped target.
Optionally, when the graph is adjusted, all geometric features of the graph or geometric attributes corresponding to specific geometric features may be displayed in the graph. Namely, when the graph is adjusted, the geometric attributes corresponding to the residual geometric features except the target geometric attributes are synchronously determined and displayed by using the set font and size.
Further, a relative positional relationship of each geometric feature and the corresponding geometric attribute is set in advance, and the relative positional relationship has a changeable property. And after the character corresponding to the geometric attribute is obtained, displaying the character according to the relative position relationship, namely displaying the geometric attribute. And simultaneously, deleting the original first writing track. Optionally, when displaying the geometric attributes, if the corresponding geometric feature is a corner, the corner mark may be displayed synchronously. If the geometric feature is an axis, the axes may be displayed synchronously. After the geometric attribute is displayed, the user may delete the geometric attribute according to actual requirements, wherein a specific implementation means embodiment of the deletion operation is not limited.
The technical solution provided by the present embodiment is exemplarily explained below.
Example one, fig. 10 is a schematic diagram of an eighth interface of a canvas provided in an embodiment of the present application. Referring to fig. 10, a graphic 209 is displayed in the canvas, the graphic 209 is input by the user through a graphic template selection operation, and the graphic 209 is a triangle.
Further, a first writing operation input by a user is received, and a first writing track is displayed. After the first writing trace is displayed, the interface of the canvas changes from FIG. 10 to FIG. 11. Fig. 11 is a diagram of a ninth interface of a canvas provided in an embodiment of the present application. Referring to fig. 11, the canvas includes three groups of first writing tracks, and after performing number recognition and symbol recognition on the first writing tracks, it is determined that the first writing tracks are respectively: 6. 45 DEG, and further determining that the first writing trajectory represents the target geometric property. Thereafter, it is determined that the target geometric attributes correspond to the bottom side and two bottom corners of the graphic 209, respectively. Thereafter, the bottom side and the two bottom corners of the graphic 209 are marked. At this point, the canvas interface changes from FIG. 11 to FIG. 12. Fig. 12 is a diagram of a tenth interface of a canvas provided in the embodiment of the present application. The user may be prompted by FIG. 12 to associate the target geometric property with the graphic.
And confirming that a unique triangle can be obtained through the target geometric attributes, namely the unique determination condition of the graph is met, then, adjusting the graph, namely redrawing the triangle in the canvas, and deleting the previously drawn triangle. At this point, the canvas interface changes from FIG. 12 to FIG. 13. Fig. 13 is a schematic diagram of an eleventh interface of a canvas provided in an embodiment of the present application. Referring to fig. 13, the graphic 209 is adjusted and displayed as a standard graphic drawn by a computer, and at the same time, the geometric attributes of all the geometric features of the graphic 209 are displayed.
Example two, fig. 14 is a diagram of a twelfth interface of the canvas provided in the embodiment of the present application. Referring to fig. 14, a graphic 2010 is displayed in the canvas, the graphic 2010 is input by the user through a graphic template selection operation, and the graphic 2010 is circular.
Further, a first writing operation input by a user is received, and a first writing track is displayed. After the first writing trace is displayed, the interface of the canvas changes from FIG. 14 to FIG. 15. Fig. 15 is a schematic diagram of a thirteenth interface of the canvas provided in the embodiment of the present application. Referring to fig. 15, the canvas includes a group of first writing tracks, and after performing number recognition and character recognition on the first writing tracks, the first writing tracks are determined as follows: r3 and represents a radius, thereby determining that the first writing trajectory represents a target geometric property. Thereafter, it is determined that the target geometric property corresponds to a radius of the graphic 2010. Thereafter, the radius of the graphic 2010 is marked. At this point, the canvas interface changes from FIG. 15 to FIG. 16. Fig. 16 is a schematic diagram of a fourteenth interface of the canvas provided in the embodiment of the present application. The user may be prompted by FIG. 16 to associate the target geometric property with the graphic.
Confirming that a unique circle can be obtained through the target geometric attributes, namely, meeting the unique determination condition of the graph, then, adjusting the graph, namely redrawing the circle in the canvas, and deleting the previously input circle. At this point, the canvas interface changes from FIG. 16 to FIG. 17. Fig. 17 is a fifteenth interface diagram of a canvas according to an embodiment of the present application. Referring to fig. 17, the graph 2010 is adjusted and displayed as a standard graph drawn by a computer, and the target geometric attribute is changed into a set font and size and displayed.
According to the technical scheme, the graph displayed in the canvas is dynamically adjusted in a handwriting parameter mode by displaying the graph in the canvas, displaying the first writing track used for representing the target geometric attribute when the first writing operation is received, then marking the corresponding geometric feature in the graph, and adjusting the graph when the target geometric attribute is confirmed to meet the unique determination condition of the graph, so that the target geometric attribute is used as the geometric attribute of the adjusted graph. The method has the advantages that the graphs are input in a handwriting or computer drawing mode, so that the graph input mode is diversified, the user can be prompted to identify the geometric attributes of the target in a geometric feature marking mode, and the graph adjusting process is guaranteed to be accurately carried out. Meanwhile, by setting the unique figure determining condition and displaying the adjustment failure prompt when the target geometric attribute does not meet the unique figure determining condition, a user can determine whether the target geometric attribute can adjust the figure, and particularly under a teaching scene, the geometric attributes of which geometric features need to be contained in the figure can be displayed to students, so that the teaching scene is more flexible and vivid.
EXAMPLE III
Fig. 18 is a flowchart of a graph adjustment method according to a third embodiment of the present application. The graph adjustment method provided by the embodiment is applied to the same use scene as the graph adjustment method provided by the embodiment. Referring to fig. 18, the method for adjusting a graph provided in this embodiment specifically includes:
step 310, displaying the graph in the canvas.
In an embodiment, the step is configured to include at least one of the following:
scheme one, step 311, receiving a second writing operation, and displaying a second writing track according to the second writing operation. And step 312, performing graph recognition on the second writing track to determine a graph represented by the second writing track.
Specifically, when it is determined that the second writing operation is not received within the set duration and/or within the set distance range, it is determined that the second writing operation input is completed, and the displayed second writing trajectory is subjected to pattern recognition. The embodiment of the pattern recognition method is not limited. For example, a data set composed of a large number of graphs of known classes is trained in advance in a machine learning manner to obtain a graph recognition model. And then, taking the second writing track as the input of the pattern recognition model, and determining the pattern represented by the second writing track through the output result of the pattern recognition model. For another example, track samples of various types of graphics are preset. And then, matching the second writing track with the track samples of various graphs one by one, and determining the graph corresponding to the closest track sample as the graph represented by the second writing track. And if not, determining that the second writing track cannot be identified.
Scheme two, step 313, receive the choice operation of the figure template, and confirm the figure type that the choice operation of the figure template chooses. Step 314, drawing the graph in the canvas based on the graph type.
Optionally, when the implementation manner of the graphic template selection operation is a dragging operation, the intelligent interactive tablet receives a touch operation, and if it is determined that the touch position of the touch operation is the display position of a certain graphic template and the touch manner of the touch operation is a moving operation, it is determined that the graphic template selection operation is received. And then, monitoring the current touch position of the touch operation in real time, acquiring the touch position at the end after confirming the end of the touch operation, and drawing a graph corresponding to the graph template by taking the touch position at the end as a graph center. And after the finished touch position is obtained, identifying whether the finished touch position is in the canvas, if so, drawing a corresponding graph, otherwise, finishing the operation.
Optionally, when the implementation manner of the graphic template selection operation is a click operation, the intelligent interactive tablet receives the touch operation in the click mode, and if it is determined that the touch position of the touch operation is the display position of a certain graphic template, it is determined that the graphic template selection operation is received. Thereafter, a graphic corresponding to the graphic template is drawn in the set position of the canvas. After drawing the graphic, the user may move the graphic within the canvas.
Optionally, when the graphic template selection operation is performed multiple times of clicking operations, the smart interactive tablet receives the clicking touch operation for the first time, determines that the touch position of the clicking touch operation is the display position of a certain graphic template, determines that the graphic template selection operation is received and acquires the clicking touch position again if the clicking touch operation is received again in the canvas within a set time interval, and then draws the graphic corresponding to the graphic template by using the touch position as the graphic center.
It can be understood that the display sizes of various graphics are preset, and when the graphics are drawn according to the selection operation of the graphics template, the graphics are displayed according to the preset display sizes.
And 320, receiving the first writing operation, obtaining a first writing track according to the first writing operation, and identifying the first writing track to determine a target geometric attribute represented by the first writing track, wherein the target geometric attribute comprises a length parameter and/or an angle parameter.
After the graph is displayed, if the touch operation is received in the canvas again and the touch operation comprises a moving path, the first writing operation is determined to be received, the touch position of the first writing operation is obtained, and then the first writing track is displayed at the touch position.
Specifically, when the first writing track is recognized, a text recognition mode and a symbol recognition mode are adopted. The text recognition is used for recognizing numbers and characters contained in the first writing track, and the symbol recognition is used for determining the meaning represented by the symbols in the first writing track. The specific embodiments of the text recognition and symbol recognition are not limited. For example, a machine learning manner is adopted to train a large number of writing tracks with known target geometric attributes in advance to obtain a numerical recognition model, and at this time, the numerical recognition model can realize text recognition and symbol recognition. Then, the first writing track is used as an input of the numerical recognition model, and an output of the numerical recognition model is determined as a data parameter represented by the first writing track. The training method of the numerical recognition model can be set according to actual conditions. Optionally, in order to ensure the accuracy of the geometric attributes of the target, a corresponding numerical recognition model may be set for each type of graph. For another example, the first writing track is compared with track templates of preset data parameters, and the closest track template is selected as the data parameter represented by the first writing track. And then, determining the feature type represented by the first writing track based on the data parameters, namely the geometric attribute of the first writing track, namely the edge, the corner or the axis, and further obtaining the target geometric attribute represented by the first writing track, wherein the composition rules of different feature types can be preset.
Further, after the geometric attributes of the target are obtained, the corresponding geometric features are searched in the graph. When the graph is a circle graph, corresponding axes can be directly marked in the graph, and if the number of the axes is multiple, the axis closest to the target geometric attribute can be selected for marking. Alternatively, the axis may be marked in advance, for example, a line segment having a radius and a diameter both in the vertical direction may be set in advance for a circle, and in this case, the radius or the diameter in the vertical direction may be marked in the circle. When the graph is a polygon, the position data of each geometric feature in the canvas can be determined based on the position data of each vertex in the polygon in the canvas, and then the same type of geometric feature closest to the target geometric attribute is selected as the corresponding geometric feature, for example, when the target geometric attribute is a length parameter, the edge closest to the target geometric attribute is selected as the corresponding geometric feature, and when the target geometric attribute is an angle parameter, the angle closest to the target geometric attribute is selected as the corresponding geometric feature.
And step 330, adjusting the graph according to the target geometric attribute so that the target geometric attribute is used as the geometric attribute of the adjusted graph.
Specifically, a unique graph can be obtained according to the target geometric attributes, then, the position of the graph in the canvas is determined, the graph is displayed in the canvas according to the position, and the original graph in the canvas is deleted.
When the figures are circular figures, each type of figure corresponds to one figure determination model, for example, a circle corresponds to a circle determination model, and an ellipse corresponds to an ellipse determination model. In the embodiment, a circle determination model is taken as an example, the circle determination model is obtained by training a large number of circles with different radius lengths and diameter lengths and different positions of the circles in a canvas in a machine learning manner, a target geometric attribute and the position of the edge of the circle in the current canvas are taken as the input of the circle determination model, and the position of the edge of the circle output by the circle determination model in the canvas is obtained. The adjusted circle is then drawn in the canvas based on the position. When the graph is a polygon, the graphs of different classes have different feature calculation formulas, and when the target geometric attributes are obtained, the parameters of the residual geometric features in the graphs are calculated through the feature calculation formulas, so that the only graph is obtained. And then, acquiring a graph determining model corresponding to the graph, wherein each graph corresponds to one graph determining model. The graph determining model is obtained by training graphs with different geometric attributes and different positions of each vertex of the graph in a canvas in a machine learning mode, and after parameters of each geometric feature of the graph are determined, the parameters and the positions of the edges of the graph in the current canvas are used as the input of the graph determining model, and the positions of the vertices output by the graph determining model in the canvas are obtained. The adjusted graph is then drawn in the canvas based on the vertex positions.
According to the technical scheme, the graph displayed in the canvas is adjusted in a handwriting parameter mode by displaying the graph in the canvas, displaying the first writing track after receiving the first writing operation, identifying the first writing track to determine the target geometric attribute represented by the first writing track, and then adjusting the graph according to the target geometric attribute, so that the adjusted graph is more in line with the expectation of a user. Meanwhile, the accuracy of the graph adjustment is high, and the adjustment expectation of a user is met. Meanwhile, the operation process is simple and convenient, the requirement on the operation proficiency of the user is not high, the user can conveniently realize the operation, and the use experience of the user is improved.
Example four
Fig. 19 is a flowchart of a graph adjustment method according to a fourth embodiment of the present application. The present embodiment is embodied on the basis of the above-described embodiments. Referring to fig. 19, the method for adjusting a graph provided in this embodiment specifically includes:
step 401, displaying the graph in the canvas.
Step 402, receiving a first writing operation, obtaining a first writing track according to the first writing operation, and identifying the first writing track to determine a first data parameter and a feature type represented by the first writing track.
In practical applications, a user may input a plurality of target geometric attributes, and accordingly, for convenience of subsequent processing, the first writing tracks corresponding to each target geometric attribute are determined as a group. The grouping manner may be set according to actual conditions, for example, when the writing time interval of the first writing tracks is within a set interval and the distance between the first writing tracks is within a set distance, the first writing tracks are determined to be a group of writing tracks. At this time, it may be clear that the first writing track includes at least one group. Correspondingly, the method specifically comprises the following steps: and performing digital recognition, symbol recognition and/or character recognition on each group of first writing tracks to determine the first data parameters and the characteristic types represented by each group of first writing tracks.
In the embodiment, numerical recognition, symbol recognition, and character recognition are taken as examples. The character recognition means recognizing a letter. Specifically, the target geometric property includes a first data parameter and a feature type. The first data parameter refers to track content determined after the first writing track is identified, and the track content comprises numbers, symbols and letters. Thus, the first data parameter can be obtained by number recognition, symbol recognition and character recognition.
The embodiments of the implementation means of the number recognition, the symbol recognition and the character recognition are not limited. For example, the numerical recognition model is constructed by machine learning to obtain the numbers, symbols and/or letters represented by the first writing trajectory through the numerical recognition model. For another example, standard writing tracks corresponding to different numbers, symbols and letters are preset, and then the first writing track is matched with each standard writing track to determine the numbers, symbols and/or letters identified by the first writing track. For example, referring to fig. 8, the first data parameters obtained after identifying the first writing track include: numeral 45, notation °, referring to fig. 9, the first data parameter obtained by identifying the first writing track includes: letter R, number 3.
It will be appreciated that when the first data parameter sets different content, the identification means will also need to be changed accordingly. For example, when the first data parameter comprises only numbers, the identification means may employ only number identification. For another example, when the first data parameter further includes a Chinese character, the character recognition should also include a Chinese character recognition.
Further, the feature type refers to a type of a geometric feature corresponding to the first data parameter. The feature types include edges, corners, and axes. When the characteristic type is an axis, the characteristic type specifically comprises a radius, a diameter, a minor semi-axis, a major semi-axis and the like. Optionally, a parameter composition rule of each feature type is preset, for example, a parameter composition rule of a side is a number, a parameter composition rule of a corner is a number and a symbol "°", a parameter composition rule of an axis is a letter and a number, wherein different letters are set to correspond to different axis types. For example, when the figure is a circle, R represents a radius, L represents a diameter, and when the figure is an ellipse, R represents a semi-minor axis, and L represents a semi-major axis. At this time, the feature type can be obtained by combining the parameter combination rule. For example, in fig. 8, the first writing trajectory contains numbers and the sign "°", and therefore, the feature type can be determined to be an angle. Further, the geometric property of the object represented by the first writing trajectory may be determined by the first data parameter and the feature type.
It is to be understood that, when the first writing tracks are multiple groups, after the groups of first writing tracks are obtained, each group of first writing tracks may be identified respectively. Or, monitoring the first writing tracks in real time, and identifying a group of first writing tracks after the group of first writing tracks are confirmed to be written. And after the writing of the next group of first writing tracks is confirmed to be finished, identifying the next group of first writing tracks.
Optionally, the first data parameter and the feature type may be determined simultaneously, or the first data parameter may be determined first and then the feature type may be determined, or the feature type may be determined first and then the first data parameter may be determined. When the first data parameter and the feature type are determined simultaneously, different recognition models are set in advance for different types of graphics. The recognition model is obtained by training a large number of first writing tracks with known first data parameters and feature types in a machine learning mode. When the first data parameter is determined first and then the feature type is determined, the first data parameter may be obtained by recognizing the first writing track using the data recognition model, and then the first data parameter may be recognized using the composition rule of the feature type to determine the geometric feature of the first data parameter.
And 403, determining the corresponding geometric characteristics of the first data parameters in the graph according to the characteristic types, wherein the geometric characteristics comprise edges, corners or axes.
Typically, when the graph is a polygon, the steps specifically include: step 4031-4033:
and step 4031, all geometric features which meet the feature types in the graph are obtained.
When the figure is a polygon, the characteristic type of the first writing track is an edge or a corner. When the feature type is an edge, acquiring position data of each edge in the graph in the canvas, namely acquiring all geometric features which meet the condition that the feature type is the edge in the graph. The position data of each vertex in the graph in the canvas can be obtained in advance, and then the position data of the corresponding edge is determined according to the position data of the vertex. When the feature type is an angle, position data of each vertex in the graph is acquired, and the position data is used as position data of the corresponding angle, namely all geometric features meeting the condition that the feature type is the angle are acquired in the graph. Alternatively, the determination manner of the vertex position data may be set according to actual conditions. For example, when pattern recognition is performed on the second writing trajectory, the position data of the trajectory intersection is synchronously acquired as the position data of the vertex. For another example, when drawing a graph according to a graph template selection operation, the position data of the track intersection is synchronously determined as the position data of the vertex.
Step 4032, first position data of the first writing track is obtained.
Typically, the first position data of the first writing track is already obtained when the first writing track is displayed, and therefore, the step may directly acquire the first position data.
Step 4033, in all the geometric features meeting the feature type, searching the geometric feature closest to the first position data, and taking the searched geometric feature as the geometric feature corresponding to the first data parameter.
Taking the feature type as an edge example, comparing the position data of each edge in the graph with the first position data to determine the edge closest to the first position data, and taking the edge as the edge corresponding to the first data parameter. The manner of comparing the position data of each edge with the first position data may be: and determining a minimum region (a minimum rectangular region containing the first position data) of the first position data, determining a minimum region (a minimum rectangular region containing the side) of each side, calculating the distance between the center points of the two minimum regions, and taking the side corresponding to the minimum distance as the closest geometric feature of the first position data.
For example, fig. 20 is a sixteenth interface diagram of a canvas provided in an embodiment of the present application. The figures in the canvas are triangles. Three sides of the triangle respectively correspond to the minimum area 41, the minimum area 42 and the minimum area 43, the first position data of the first writing track corresponds to the minimum area 44, at this time, the distances between the central point of the minimum area 44 and the central points of the minimum area 41, the minimum area 42 and the minimum area 43 are respectively calculated, then, the minimum area 42 is determined to be closest to the minimum area 44, and at this time, the side corresponding to the minimum area 42 is taken as the geometric feature corresponding to the target geometric attribute represented by the first writing track. It is to be understood that the minimum area is shown in the drawings only for ease of understanding, and the minimum area is not shown in practical applications.
Taking the angle as an example, the position data of each vertex in the graph is compared with the first position data to determine the vertex closest to the first position data, and the angle corresponding to the vertex is taken as the angle corresponding to the first data parameter. The comparison between the vertex position data and the first position data may be performed by obtaining any coordinate position of the vertices, calculating a distance between the coordinate position and a minimum region center point of the first position data, obtaining an angle corresponding to the minimum distance, and taking an edge corresponding to the angle as a closest angle to the first position data.
When the graph is a circle graph, step 403 specifically includes: and selecting the corresponding geometric features in the graph as the corresponding geometric features of the first data parameters in the graph according to the feature types.
When the figure is a circle-like figure, the geometric feature is typically an axis. For example, when the graph is a circle and the feature type is a radius, any radius of the circle or a set radius (for example, a radius located on the right side in the horizontal direction) may be directly obtained as the radius corresponding to the first data parameter. When the graph is an ellipse and the characteristic type is a semi-minor axis, a set semi-minor axis, any semi-minor axis or a semi-minor axis closest to the first data parameter in the ellipse can be directly obtained as the semi-minor axis corresponding to the first data parameter.
And step 404, establishing an incidence relation between the target geometric attributes and the corresponding geometric features in the graph, and marking the geometric features.
Typically, after determining the geometric features corresponding to the target geometric attributes, an association relationship between the target geometric attributes and the geometric features is established, for example, the same identifiers are added to the target geometric attributes and the geometric features. Meanwhile, corresponding marks are added in the graph to prompt a user that the target geometric attributes and the geometric features establish an association relationship.
And 405, judging whether the target geometric attributes meet the unique figure determining conditions of the figures, wherein each type of figure corresponds to one type of unique figure determining conditions. If the target geometric property satisfies the pattern unique determination condition, step 406 is executed. If the target geometric attribute does not satisfy the unique determination condition, step 407 is executed.
Specifically, each type of graph is provided with a graph unique determination condition, after the type of the graph is identified, the corresponding graph unique determination condition can be obtained, and then whether the target geometric attribute meets the graph unique determination condition is determined.
And when the graph is a polygon, acquiring all the target geometric attributes of the graph, and then determining whether the geometric features corresponding to all the target geometric attributes meet the unique determination condition of the graph. For example, when the graph is a triangle, determining that the geometric features corresponding to the target geometric attributes are respectively a side and two corners, and determining that the position relationship between the geometric features is that the side is located between the two corners, then comparing the position relationship with the graph unique determination condition to determine whether the position relationship is consistent with the position relationship in the graph unique determination condition, if so, determining that the graph unique determination condition is met, otherwise, determining that the graph unique determination condition is not met. Wherein the position relation can be determined by the position data of each geometric feature in the canvas. For another example, when the graph is a rectangle, determining that the geometric features corresponding to the target geometric attributes are two edges in the rectangle, determining that the positional relationship of the two edges is an adjacent edge, and then comparing the positional relationship with the positional relationship in the graph unique determination condition to determine whether the positional relationship is consistent with the positional relationship in the graph unique determination condition.
When the graph is a circular graph, after the target geometric attribute of the graph is obtained, whether the feature type of the target geometric attribute is consistent with the feature type in the graph unique determination condition or not is determined, if yes, the graph unique determination condition is determined to be met, and if not, the graph unique determination condition is determined not to be met. For example, when the figure is a circle, the feature type of the target geometric attribute is a radius, which coincides with the feature type (radius or diameter) in the figure unique determination condition for the circle, and therefore, it is determined that the figure unique determination condition is satisfied. For another example, when the figure is an ellipse, the feature type of the target geometric attribute is a minor semi-axis, which is not consistent with the feature type (minor semi-axis and major semi-axis, or minor axis or major axis) of the figure unique determination condition of the ellipse, and therefore, it is determined that the figure unique determination condition is not satisfied.
And step 406, adjusting the graph according to the geometric attributes of the target.
When the figure is a polygon, the steps include steps 4061-4062:
step 4061, determining second position data of all vertices in the graph according to the target geometric attributes.
Specifically, when the graph is drawn, position data of each vertex in the adjusted graph in the canvas needs to be determined and recorded as second position data. And then, sequentially connecting the corresponding vertexes based on the second position data to obtain the adjusted graph. Accordingly, setting the step includes 40611-step 40613:
step 40611, call a feature calculation formula of the graph.
Specifically, each type of graph has a corresponding feature calculation formula, for example, the triangle feature calculation formula includes pythagorean theorem, sine theorem, cosine theorem, and the like. For another example, the feature calculation formula of a square is that the side lengths are equal and each internal angle is 90 °. And when the target geometric attribute is determined to meet the unique determination condition of the graph, calling a feature calculation formula corresponding to the graph.
It can be understood that before the feature calculation formula of the graph is called, whether the feature calculation formula needs to be called or not can be determined, that is, whether the length parameter of each side is already determined or not is determined, if so, the feature calculation formula does not need to be called, whether the length parameter of each side directly meets the side length condition in the graph or not is determined, for example, the side length condition of a triangle is that the sum of any two sides is greater than the third side, and the difference between any two sides is less than the third side. If yes, go to step 40613, otherwise, call up the corresponding feature calculation formula.
And step 40612, substituting the target geometric attributes into the feature calculation formula to calculate a second data parameter of each edge in the graph.
Specifically, after the target geometric attributes are substituted into the feature calculation formula, a second data parameter of each edge in the graph can be obtained, wherein the second data parameter represents a length parameter of the corresponding edge. It will be appreciated that in some cases, multiple feature calculation formulas may be required to obtain the second data parameter for each edge in the graph. At this time, the order of the substitution of each feature calculation formula may be determined, where the order of the substitution may be set according to an actual situation, for example, the order of the substitution may be determined by using the second data parameter of each side obtained most quickly as a standard.
It is understood that if the second data parameter of each edge is still not obtained according to the feature calculation formula, it is determined that the adjustment is failed, and step 407 is performed.
Step 40613, determining second position data of the vertex according to the second data parameter.
Specifically, the position of each vertex in the canvas in the adjusted graph is recorded as second position data. Optionally, the second position data is obtained through a graph determination model, specifically, the second data parameter and the position data of each current vertex of the graph are used as the input of the graph determination model, and the position data output by the graph data model is recorded as the second position data of each vertex after the graph is adjusted. Optionally, the position data of one vertex in the current graph is used as the adjusted second position data of the vertex, and then the second position data of the rest vertices is determined based on the second data parameter.
Step 4062, displaying the adjusted graph according to the second position data.
Specifically, after the vertices are connected in sequence, the adjusted position data of each edge can be obtained, and then, a new graph is drawn in the canvas according to the position data of each edge as the adjusted graph. At the same time, the original graphics in the canvas are deleted.
When the graph is a circle graph, the center point of the current graph can be directly used as the center of a circle, and the position data of the edge can be determined according to the geometric attributes of the target, or the position data of the edge of the circle in the canvas can be obtained according to the graph determination model. And then drawing a new graph in the canvas according to the position data to serve as the adjusted graph. At the same time, the original graphics in the canvas are deleted.
Optionally, the first writing track is shaped and displayed in the adjusted graph. The embodiment of the shaping means is not limited. The relative position relationship between the target geometric attributes and the graph is preset, and after shaping, the target geometric attributes are displayed in the graph according to the relative position relationship.
And step 407, confirming the subsequent execution scheme and executing.
Specifically, one execution scheme may be set as a subsequent execution scheme according to actual conditions and executed. In an embodiment, the subsequent execution scheme comprises any one of the following execution schemes:
and a scheme I, displaying an adjustment failure prompt.
And when determining that the graph cannot be adjusted, triggering an adjustment failure prompt, calling preset prompt box display content and a preset display position, and controlling the display screen to display the prompt box according to the display content and the display position so as to prompt the user of the adjustment failure. At this time, whether the first writing operation is received or not may be continuously detected, and after the first writing operation is received, the operations may be continuously performed, and whether the graph may be adjusted or not may be confirmed.
And secondly, searching the geometric characteristics corresponding to the target geometric attributes in the graph, determining the actual geometric attributes of the geometric characteristics, determining the modification amplitude according to the target geometric attributes and the actual geometric attributes, and adjusting the graph according to the modification amplitude.
Taking a rectangle as an example, the target geometric attribute has only one, the feature type is an edge, and the first data parameter is 5. At the moment, the target geometric attribute is determined not to meet the unique determination condition of the graph, and the actual geometric attribute of the side corresponding to the target geometric attribute in the rectangle is obtained. Further, the actual geometric property is 4. At this time, the modification amplitude is determined to be 5/4. Then, an adjacent side of the side corresponding to the target geometric attribute is searched in the rectangle, and the actual geometric attribute of the adjacent side is determined to be 8, at this time, the result of 8 × 5/4 is taken as the geometric attribute after the adjacent side is adjusted. And then, adjusting the graph according to the target geometric attributes and the adjusted geometric attributes. It is understood that, at this time, the adjustment manner is the same as that when the pattern unique determination condition is satisfied. And will not be described in detail herein.
Taking an ellipse as an example, the target geometric attribute has only one, and the characteristic type is a semiaxis and the first data parameter is 5. At the moment, the target geometric attributes are determined not to meet the unique figure determining condition, and the actual geometric attributes of the stub axle corresponding to the target geometric attributes in the ellipse are obtained. Further, the actual geometric property is 4. At this time, the modification amplitude is determined to be 5/4. Then, any one of the major and minor axes is searched in the ellipse, and the actual geometric property of the major and minor axes is confirmed to be 8, and at this time, the result of 8 × 5/4 is taken as the adjusted geometric property of the major and minor axes. And then, adjusting the graph according to the target geometric attributes and the adjusted geometric attributes. It is understood that, at this time, the adjustment manner is the same as that when the pattern unique determination condition is satisfied. And will not be described in detail herein.
It is understood that when there are a plurality of target geometric attributes, any one of the target geometric attributes and the corresponding actual geometric attribute may be selected to obtain the modification range. Optionally, at this time, the geometric attributes of the other objects may be modified according to the actual geometric attributes corresponding to the geometric features of the other objects, so as to ensure that the graph can be obtained.
And thirdly, searching corresponding geometric features in the graph according to the unique determining condition of the graph, determining the actual geometric attributes of the geometric features, and adjusting the graph according to the target geometric attributes and the actual geometric attributes.
Taking a rectangle as an example, the target geometric attribute has only one, the feature type is an edge, and the first data parameter is 5. At the moment, the target geometric attribute is determined not to meet the unique determination condition of the graph, and the actual geometric attribute of the side corresponding to the target geometric attribute in the rectangle is obtained. Further, according to the unique condition of the graph, one adjacent edge of the corresponding edge of the target geometric attribute is searched in the rectangle, the actual geometric attribute of the adjacent edge is determined to be 8, and at the moment, the graph is adjusted according to the target geometric attribute 5 and the actual geometric attribute 8 of the adjacent edge. It is understood that, at this time, the adjustment manner is the same as that when the pattern unique determination condition is satisfied. And will not be described in detail herein.
Taking a triangle as an example, the number of the target geometric attributes is two, the feature types of the two target geometric attributes are both sides, and the first data parameter is 5. At the moment, the target geometric attribute is determined not to meet the unique figure determining condition, and the angle between the two edges corresponding to the target geometric attribute is obtained according to the unique figure determining condition. Further, the actual geometric property of the determined angle is 70 °. At this time, the graph is adjusted according to the length parameters of the two sides and the angle parameter of the angle between the two sides. It is understood that, at this time, the adjustment manner is the same as that when the pattern unique determination condition is satisfied. And will not be described in detail herein.
It can be understood that, in practical applications, other schemes may also be adopted in the subsequent execution scheme, and the embodiment does not limit this.
The graph is adjusted in the mode of handwriting parameters through the technical scheme that the graph is displayed in the canvas, the first writing track is displayed according to the received first writing operation, then the first writing track is identified to obtain the first data parameter and the characteristic type, the corresponding geometric characteristic of the first data parameter in the graph is determined according to the characteristic type, the incidence relation between the target geometric attribute and the corresponding geometric characteristic is established, then the graph is adjusted according to the target geometric attribute when the target geometric attribute is confirmed to meet the graph unique determination condition, and the graph is adjusted according to the target geometric attribute when the target geometric attribute is confirmed to not meet the graph unique determination condition or by combining the actual geometric attribute of the graph. Meanwhile, when the graph is a polygon, the geometric features corresponding to the target geometric attributes can be accurately determined through the position relation between the geometric features and the target geometric attributes, the data parameters of the edges in the graph can be quickly and accurately obtained through a pre-stored feature calculation formula, the position data of each vertex after adjustment can be accurately obtained, and the accuracy of graph adjustment is guaranteed.
It can be understood that, since the application scenarios of the third embodiment and the fourth embodiment are the same as those of the first embodiment and the second embodiment, reference may be made to the above embodiments for technical details that are not described in the present embodiment.
EXAMPLE five
Fig. 21 is a schematic structural diagram of a graphic adjustment apparatus according to a fifth embodiment of the present application. Referring to fig. 21, the pattern adjusting apparatus includes: a first display module 501, a second display module 502 and a first adjusting module 503.
The first display module 501 is configured to display a graphic in a canvas; a second display module 502, configured to display a first writing track in response to the received first writing operation, where the first writing track represents a target geometric attribute, and the target geometric attribute includes a length parameter and/or an angle parameter; a first adjusting module 503, configured to adjust the graph so that the target geometric property serves as a geometric property of the adjusted graph.
On the basis of the above embodiment, the method further includes: and the feature marking module is used for marking corresponding geometric features in the graph based on the target geometric attributes after the first writing track is displayed in response to the received first writing operation, wherein the geometric features comprise edges, corners or axes, and each target geometric attribute corresponds to one geometric feature.
On the basis of the above embodiment, the feature labeling module is specifically configured to: when the geometric feature corresponding to the target geometric attribute is an edge, replacing the display parameter of the geometric feature; and when the geometric features corresponding to the target geometric attributes are angles or axes, adding marks of the geometric features into the graph.
On the basis of the foregoing embodiment, the fourth display module is configured to, after displaying the first writing track in response to the received first writing operation, display an adjustment failure prompt when it is determined that the target geometric attribute does not satisfy the unique graphical determination condition.
On the basis of the above embodiments, the first display module 501 is specifically configured to: displaying a second writing track in the canvas in response to the received second writing operation, wherein the second writing track forms a graph; or, in response to the received graphic template selection operation, displaying a graphic corresponding to the graphic template selection operation in the canvas.
On the basis of the above embodiment, the first adjusting module 503 is further configured to: displaying the shaped first writing track, wherein the shaped first writing track is a computer drawing element.
The graphic adjusting device provided by the above can be used for executing the graphic adjusting method provided by any of the first to second embodiments, and has corresponding functions and beneficial effects.
Meanwhile, a fifth embodiment of the present application further provides another pattern adjustment apparatus, and at this time, fig. 22 is a schematic structural diagram of the another pattern adjustment apparatus provided in the fifth embodiment of the present application. Referring to fig. 22, the pattern adjusting apparatus includes: a third display module 504, an operation receiving module 505 and a second adjusting module 506.
Wherein, the third display module 504 is configured to display a graphic in the canvas; an operation receiving module 505, configured to receive a first writing operation, obtain a first writing track according to the first writing operation, and identify the first writing track to determine a target geometric attribute represented by the first writing track, where the target geometric attribute includes a length parameter and/or an angle parameter; a second adjusting module 506, configured to adjust the graph according to the target geometric property, so that the target geometric property serves as a geometric property of the adjusted graph.
On the basis of the above embodiment, the operation receiving module 505 includes: the device comprises a track determining unit and a parameter determining unit, wherein the track determining unit is used for receiving first writing operation and obtaining a first writing track according to the first writing operation; and the characteristic confirming unit is used for confirming the corresponding geometric characteristics of the first data parameters in the graph according to the characteristic types, wherein the geometric characteristics comprise edges, corners or axes.
On the basis of the above embodiment, the first writing track includes at least one group; the parameter determining unit specifically includes: and performing digital recognition, symbol recognition and/or character recognition on each group of the first writing tracks to determine first data parameters and characteristic types represented by each group of the first writing tracks.
On the basis of the above embodiment, the figure is a polygon, and the feature confirming unit includes: the characteristic obtaining subunit is used for obtaining all the geometric characteristics which meet the characteristic types in the graph; a position acquisition subunit, configured to acquire first position data of the first writing track; and the feature searching subunit is configured to search, among all the geometric features that satisfy the feature type, a geometric feature that is closest to the first position data, and use the searched geometric feature as a geometric feature corresponding to the first data parameter.
On the basis of the above embodiment, the relationship establishing module is configured to identify the first writing track, establish an association relationship between a target geometric attribute and a corresponding geometric feature in the graph after determining the target geometric attribute represented by the first writing track, and mark the geometric feature.
On the basis of the foregoing embodiment, the second adjusting module 506 is specifically configured to, if the target geometric attribute satisfies the unique determination condition for the graph, adjust the graph according to the target geometric attribute, so that the target geometric attribute serves as the geometric attribute of the adjusted graph.
On the basis of the above embodiment, the method further includes: the failure execution module is used for displaying an adjustment failure prompt if the target geometric attribute does not meet the unique figure determining condition; or, if the target geometric attribute does not meet the unique figure determining condition, searching the geometric feature corresponding to the target geometric attribute in the figure, determining the actual geometric attribute of the geometric feature, determining a modification amplitude according to the target geometric attribute and the actual geometric attribute, and adjusting the figure according to the modification amplitude; or if the target geometric attribute does not meet the unique figure determining condition, searching corresponding geometric features in the figure according to the unique figure determining condition, determining the actual geometric attributes of the geometric features, and adjusting the figure according to the target geometric attributes and the actual geometric attributes.
On the basis of the above embodiment, the graph is a polygon, and the second adjusting module 506 includes: the vertex determining unit is used for determining second position data of all the vertexes in the graph according to the target geometric attributes; and the graphic display unit is used for displaying the adjusted graphic according to the second position data.
On the basis of the above embodiment, the vertex determining unit includes: the formula calling subunit is used for calling a characteristic calculation formula of the graph; the formula calculation subunit is used for substituting the target geometric attributes into the characteristic calculation formula so as to calculate a second data parameter of each edge in the graph; a position determining subunit, configured to determine second position data of the vertex according to the second data parameter.
On the basis of the above embodiment, the third display module 504 includes: the writing receiving unit is used for receiving a second writing operation and displaying a second writing track according to the second writing operation; and the pattern recognition unit is used for performing pattern recognition on the second writing track so as to determine the pattern represented by the second writing track.
The graphic adjusting device provided by the above can be used for executing the graphic adjusting method provided by any of the third embodiment and the fourth embodiment, and has corresponding functions and beneficial effects.
It should be noted that, in the embodiment of the graph adjustment apparatus, the included units and modules are only divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only used for distinguishing one functional unit from another, and are not used for limiting the protection scope of the application.
EXAMPLE six
Fig. 23 is a schematic structural diagram of a graphic adjustment apparatus according to a sixth embodiment of the present application. In this embodiment, an intelligent interactive tablet is taken as an example of a graphic adjusting device for description. As shown in fig. 23, the smart interaction tablet 60 includes at least one processor 61, at least one network interface 62, a user interface 63, a memory 64, and at least one communication bus 65.
Wherein a communication bus 65 is used to enable the connection communication between these components.
The user interface 62 may include a display screen and a camera, and the optional user interface 63 may also include a standard wired interface and a wireless interface.
The network interface 62 may optionally include a standard wired interface, a wireless interface (e.g., a Wi-Fi interface), among others.
Processor 61 may include one or more processing cores, among others. The processor 61 connects various components throughout the smart interaction panel 60 using various interfaces and lines to perform various functions of the smart interaction panel 60 and process data by executing or executing instructions, programs, code sets, or instruction sets stored within the processor 61 and invoking data stored within the memory 64. Alternatively, the processor 61 may be implemented in at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 61 may integrate one or a combination of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 61, but may be implemented by a single chip.
The Memory 64 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 64 includes a non-transitory computer-readable medium. The memory 64 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 64 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like; the storage data area may store data and the like referred to in the above respective method embodiments. The memory 64 may optionally be at least one memory device located remotely from the processor 61. As shown in fig. 23, the memory 64, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and an operating application program of the smart interactive tablet.
In the smart interactive tablet 60 shown in fig. 23, the user interface 63 is mainly used for providing an input interface for a user to obtain data input by the user; and the processor 61 may be configured to call the operation application of the smart interactive tablet stored in the memory 64 and specifically perform the relevant operations in the element control method in the above-described embodiment.
In one embodiment, the operating system of the smart interactive tablet is an android system.
The intelligent interaction panel can be used for executing any graph adjusting method and has corresponding functions and beneficial effects.
In addition, the present application further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform operations related to the graph adjustment method provided in any of the embodiments of the present application, and have corresponding functions and advantages.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product.
Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein. The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims (17)

1. A method for adjusting a pattern, comprising:
displaying a graphic in the canvas;
displaying a first writing track in response to the received first writing operation, wherein the first writing track represents a target geometric attribute, and the target geometric attribute comprises a length parameter and/or an angle parameter;
marking corresponding geometric features in the graph based on the target geometric attributes, wherein the geometric features comprise edges, corners or axes, and each target geometric attribute corresponds to one geometric feature;
adjusting the graph to enable the target geometric attribute to serve as the geometric attribute of the adjusted graph;
when the first writing track is displayed, the method further comprises:
identifying the first writing track, and determining a first data parameter and a feature type represented by the first writing track, wherein the target geometric attribute comprises the first data parameter and the feature type;
determining a graph corresponding to the target geometric attribute;
and determining the geometric features in the graph corresponding to the target geometric attributes.
2. The method for adjusting graphics of claim 1, wherein said marking corresponding geometric features in said graphics comprises:
when the geometric feature corresponding to the target geometric attribute is an edge, replacing the display parameter of the geometric feature;
and when the geometric features corresponding to the target geometric attributes are angles or axes, adding marks of the geometric features into the graph.
3. The method of claim 1, wherein after displaying the first writing trace in response to the received first writing operation, further comprising:
and displaying an adjustment failure prompt when the target geometric attribute is confirmed not to meet the unique determination condition of the graph.
4. The method of claim 1, wherein the displaying the graphic in the canvas comprises:
displaying a second writing track in the canvas in response to the received second writing operation, wherein the second writing track forms a graph; or the like, or, alternatively,
in response to a received graphic template selection operation, a graphic corresponding to the graphic template selection operation is displayed in the canvas.
5. The method for adjusting a graphic according to claim 1, wherein the adjusting the graphic such that the target geometric property is the geometric property of the adjusted graphic further comprises:
displaying the shaped first writing track, wherein the shaped first writing track is a computer drawing element.
6. A method for adjusting a pattern, comprising:
displaying a graphic in the canvas;
receiving a first writing operation, obtaining a first writing track according to the first writing operation, and identifying the first writing track to determine a target geometric attribute represented by the first writing track, wherein the target geometric attribute comprises a length parameter and/or an angle parameter;
establishing an incidence relation between the target geometric attributes and corresponding geometric features in the graph, and marking the geometric features;
adjusting the graph according to the target geometric attribute so that the target geometric attribute serves as the geometric attribute of the adjusted graph;
the identifying the first writing trajectory to determine the target geometric property represented by the first writing trajectory comprises:
identifying the first writing track to determine a first data parameter and a characteristic type represented by the first writing track, wherein the first data parameter and the characteristic type are target geometric attributes represented by the first writing track;
according to the feature type, determining a corresponding geometric feature of the first data parameter in the graph, wherein the geometric feature comprises an edge, a corner or an axis;
after determining the first data parameter and the feature type represented by the first writing track, the method further includes: and determining a graph corresponding to the target geometric attribute.
7. The graphic adjustment method according to claim 6, wherein the first writing trace includes at least one group;
the identifying the first writing track to determine the first data parameter and the feature type represented by the first writing track comprises:
and performing digital recognition, symbol recognition and/or character recognition on each group of the first writing tracks to determine first data parameters and characteristic types represented by each group of the first writing tracks.
8. The pattern adjustment method according to claim 6, wherein the pattern is a polygon;
the determining, according to the feature type, the corresponding geometric feature of the first data parameter in the graph includes:
acquiring all geometric features which meet the feature types in the graph;
acquiring first position data of the first writing track;
and searching the geometric feature closest to the first position data in all the geometric features meeting the feature type, and taking the searched geometric feature as the geometric feature corresponding to the first data parameter.
9. The method of adjusting a graphic according to claim 6, wherein the adjusting the graphic according to the target geometric property comprises:
and if the target geometric attributes meet the unique determination condition of the graph, adjusting the graph according to the target geometric attributes.
10. The graphic adjustment method according to claim 9, further comprising:
if the target geometric attributes do not meet the unique determination condition of the graph, displaying an adjustment failure prompt; or the like, or, alternatively,
if the target geometric attribute does not meet the unique determination condition of the graph, searching the geometric feature corresponding to the target geometric attribute in the graph, determining the actual geometric attribute of the geometric feature, determining a modification amplitude according to the target geometric attribute and the actual geometric attribute, and adjusting the graph according to the modification amplitude; or the like, or, alternatively,
if the target geometric attributes do not meet the unique figure determining condition, searching corresponding geometric features in the figures according to the unique figure determining condition, determining the actual geometric attributes of the geometric features, and adjusting the figures according to the target geometric attributes and the actual geometric attributes.
11. The pattern adjustment method according to claim 6, wherein the pattern is a polygon;
the adjusting the graphic according to the target geometric property comprises:
determining second position data of all the vertexes in the graph according to the target geometric attributes;
and displaying the adjusted graph according to the second position data.
12. The method of claim 11, wherein the determining second position data for all vertices in the graph according to the target geometric property comprises:
calling a characteristic calculation formula of the graph;
substituting the target geometric attributes into the feature calculation formula to calculate a second data parameter of each edge in the graph;
determining second position data of the vertex according to the second data parameter.
13. The method of claim 6, wherein the displaying the graphic in the canvas comprises:
receiving a second writing operation, and displaying a second writing track according to the second writing operation;
and performing pattern recognition on the second writing track to determine a pattern represented by the second writing track.
14. A pattern adjustment apparatus, comprising:
a first display module for displaying a graphic in a canvas;
the second display module is used for responding to the received first writing operation and displaying a first writing track, wherein the first writing track represents a target geometric attribute, and the target geometric attribute comprises a length parameter and/or an angle parameter;
the first adjusting module is used for adjusting the graph so that the target geometric attribute serves as the geometric attribute of the adjusted graph;
the characteristic marking module is used for marking corresponding geometric characteristics in the graph based on the target geometric attributes after responding to the received first writing operation and displaying a first writing track, wherein the geometric characteristics comprise edges, corners or axes, and each target geometric attribute corresponds to one geometric characteristic;
when the first writing track is displayed, the method further comprises:
identifying the first writing track, and determining a first data parameter and a feature type represented by the first writing track, wherein the target geometric attribute comprises the first data parameter and the feature type;
determining a graph corresponding to the target geometric attribute;
and determining the geometric features in the graph corresponding to the target geometric attributes.
15. A pattern adjustment apparatus, comprising:
a third display module for displaying graphics in the canvas;
the operation receiving module is used for receiving a first writing operation, obtaining a first writing track according to the first writing operation, and identifying the first writing track to determine a target geometric attribute represented by the first writing track, wherein the target geometric attribute comprises a length parameter and/or an angle parameter;
the second adjusting module is used for adjusting the graph according to the target geometric attribute so that the target geometric attribute serves as the geometric attribute of the adjusted graph;
the relation establishing module is used for identifying the first writing track, establishing an incidence relation between the target geometric attribute and the corresponding geometric feature in the graph after determining the target geometric attribute represented by the first writing track, and marking the geometric feature;
the operation receiving module includes: the device comprises a track determining unit, a parameter determining unit and a judging unit, wherein the track determining unit is used for receiving a first writing operation and obtaining a first writing track according to the first writing operation, the parameter determining unit is used for identifying the first writing track so as to determine a first data parameter and a characteristic type which are represented by the first writing track, and the first data parameter and the characteristic type are target geometric attributes represented by the first writing track; the characteristic confirming unit is used for confirming the corresponding geometric characteristics of the first data parameters in the graph according to the characteristic types, wherein the geometric characteristics comprise edges, angles or axes;
after determining the first data parameter and the feature type represented by the first writing track, the method further includes: and determining a graph corresponding to the target geometric attribute.
16. A graphic adjustment apparatus, comprising:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the graph adjustment method of any one of claims 1-5 or claims 6-13.
17. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a graphics adaptation method as claimed in any one of claims 1 to 5 or 6 to 13.
CN201911010626.XA 2019-10-23 2019-10-23 Graph adjusting method, device, equipment and storage medium Active CN110956674B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201911010626.XA CN110956674B (en) 2019-10-23 2019-10-23 Graph adjusting method, device, equipment and storage medium
PCT/CN2019/121742 WO2021077539A1 (en) 2019-10-23 2019-11-28 Graphic adjustment method and apparatus, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911010626.XA CN110956674B (en) 2019-10-23 2019-10-23 Graph adjusting method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110956674A CN110956674A (en) 2020-04-03
CN110956674B true CN110956674B (en) 2022-01-21

Family

ID=69976590

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911010626.XA Active CN110956674B (en) 2019-10-23 2019-10-23 Graph adjusting method, device, equipment and storage medium

Country Status (2)

Country Link
CN (1) CN110956674B (en)
WO (1) WO2021077539A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113553813A (en) * 2020-04-24 2021-10-26 广州金山移动科技有限公司 Parallelogram parameter adjusting method, device and storage medium
CN112270641A (en) * 2020-10-19 2021-01-26 深圳砥成科技有限公司 Geometric figure display method and device
CN113362419A (en) * 2021-06-01 2021-09-07 深圳须弥云图空间科技有限公司 Drawing method and related equipment
CN113496109B (en) * 2021-07-05 2022-06-14 北京华大九天科技股份有限公司 Method, device, storage medium and electronic equipment for displaying rectangular polygon
CN113849118A (en) * 2021-10-20 2021-12-28 锐捷网络股份有限公司 Image identification method applied to electronic whiteboard and related device
CN115237309B (en) * 2022-09-21 2022-12-20 深圳市方成教学设备有限公司 Display control method based on intelligent writing board and intelligent writing board

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102184300A (en) * 2011-05-23 2011-09-14 镇江科大船苑计算机网络工程有限公司 Label rectangular graph computer produced drawing method
CN104268351A (en) * 2014-09-30 2015-01-07 广州市科创电脑技术开发有限公司 Plan drawing method and plan drawing device
CN104461315A (en) * 2013-09-25 2015-03-25 天津书生软件技术有限公司 Handwriting input method for achieving vigorous writing effect
CN104756475A (en) * 2012-10-28 2015-07-01 谷歌公司 Camera zoom indicator in mobile devices
CN106293436A (en) * 2015-05-27 2017-01-04 仁宝电脑工业股份有限公司 Chart Drawing Method
JP6269056B2 (en) * 2013-12-27 2018-01-31 カシオ計算機株式会社 Parameter setting device, electronic device and program
CN110069204A (en) * 2019-04-15 2019-07-30 广州视源电子科技股份有限公司 Graph processing method, device and equipment based on writing track and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4762070B2 (en) * 2006-07-19 2011-08-31 富士通株式会社 Handwriting input device, handwriting input method, and computer program
US10402085B2 (en) * 2012-12-28 2019-09-03 Sony Corporation Display of content based on handwritten input
KR102057647B1 (en) * 2013-02-15 2019-12-19 삼성전자주식회사 Method for generating writing data and an electronic device thereof
KR102393295B1 (en) * 2014-09-18 2022-05-02 삼성전자주식회사 Apparatus and method for styling a content
CN109976614B (en) * 2019-03-28 2021-04-06 广州视源电子科技股份有限公司 Method, device, equipment and medium for marking three-dimensional graph

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102184300A (en) * 2011-05-23 2011-09-14 镇江科大船苑计算机网络工程有限公司 Label rectangular graph computer produced drawing method
CN104756475A (en) * 2012-10-28 2015-07-01 谷歌公司 Camera zoom indicator in mobile devices
CN104461315A (en) * 2013-09-25 2015-03-25 天津书生软件技术有限公司 Handwriting input method for achieving vigorous writing effect
JP6269056B2 (en) * 2013-12-27 2018-01-31 カシオ計算機株式会社 Parameter setting device, electronic device and program
CN104268351A (en) * 2014-09-30 2015-01-07 广州市科创电脑技术开发有限公司 Plan drawing method and plan drawing device
CN106293436A (en) * 2015-05-27 2017-01-04 仁宝电脑工业股份有限公司 Chart Drawing Method
CN110069204A (en) * 2019-04-15 2019-07-30 广州视源电子科技股份有限公司 Graph processing method, device and equipment based on writing track and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
An Open-Source Enabled Scheme for Improved Interactive Whiteboard;Feng-Cheng Chang等;《IEEE Xplore》;20110818;214-216 *
基于电子白板的远程教育系统的设计与实现;周凤莲;《中国优秀硕士学位论文全文数据库 信息科技辑》;20140115;第2014年卷(第1期);I138-676 *

Also Published As

Publication number Publication date
CN110956674A (en) 2020-04-03
WO2021077539A1 (en) 2021-04-29

Similar Documents

Publication Publication Date Title
CN110956674B (en) Graph adjusting method, device, equipment and storage medium
WO2019000681A1 (en) Information layout method, device, apparatus and computer storage medium
CN110045909B (en) Ellipse processing method, device and equipment based on writing track and storage medium
KR102470522B1 (en) System and method for management of handwritten diagram connectors
US20170109917A1 (en) Method and device for erasing a writing path on an infrared electronic white board, and a system for writing on an infrared electronic white board
CN109902541B (en) Image recognition method and system
CN110045840B (en) Writing track association method, device, terminal equipment and storage medium
CN111104036B (en) Element control method, device, equipment and storage medium
CN108664860B (en) Method and device for identifying room plan
CN114138165B (en) Pattern recognition method, apparatus, device and storage medium
CN114648615B (en) Method, device and equipment for controlling interactive reproduction of target object and storage medium
CN112083870B (en) Information identification method and equipment
CN108228065B (en) Method and device for detecting UI control information and electronic equipment
CN114549993A (en) Method, system and device for scoring line segment image in experiment and readable storage medium
CN108492349B (en) Processing method, device and equipment for writing strokes and storage medium
CN105074622A (en) Method for generating writing data and an electronic device thereof
CN111025039A (en) Method, device, equipment and medium for testing accuracy of touch display screen
CN115035032A (en) Neural network training method, related method, device, terminal and storage medium
CN112799583B (en) Point location schematic drawing system based on android platform
CN113849106B (en) Page turning handwriting processing method, device, electronic device and storage medium
KR20240093823A (en) Instructional activities Courseware production methods, devices, storage media and electronic devices
CN107783982B (en) Data processing method and data processing device
CN111783180B (en) Drawing splitting method and related device
JP2015022524A (en) Terminal device and system
CN111694451A (en) Operation data processing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant