CN110069204B - Graph processing method, device and equipment based on writing track and storage medium - Google Patents

Graph processing method, device and equipment based on writing track and storage medium Download PDF

Info

Publication number
CN110069204B
CN110069204B CN201910298975.XA CN201910298975A CN110069204B CN 110069204 B CN110069204 B CN 110069204B CN 201910298975 A CN201910298975 A CN 201910298975A CN 110069204 B CN110069204 B CN 110069204B
Authority
CN
China
Prior art keywords
track
writing
target
target graph
distance
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
CN201910298975.XA
Other languages
Chinese (zh)
Other versions
CN110069204A (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 Shizhen Information Technology Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shizhen Information Technology 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 Shizhen Information Technology Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201910298975.XA priority Critical patent/CN110069204B/en
Publication of CN110069204A publication Critical patent/CN110069204A/en
Priority to PCT/CN2019/127818 priority patent/WO2020211438A1/en
Application granted granted Critical
Publication of CN110069204B publication Critical patent/CN110069204B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/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/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention discloses a graph processing method, a device, equipment and a storage medium based on a writing track, relating to the field of electronic whiteboards and comprising the following steps: responding to received handwriting control operation, and displaying at least one writing track, wherein at least one track point of the writing track is located in a closed area of a target graph, and the target graph is a displayed polygon; and adjusting the size data of the target graph to enable the target graph to surround and/or adapt to the distribution range of the writing tracks. By adopting the scheme, the technical problem of low integration efficiency of writing tracks and graphs in the prior art can be solved.

Description

Graph processing method, device and equipment based on writing track and storage medium
Technical Field
The embodiment of the invention relates to the technical field of electronic whiteboards, in particular to a method, a device, equipment and a storage medium for processing graphs based on writing tracks.
Background
With the development of computer technology, computer devices are widely used in various scenes of daily life. For example, in a meeting, a classroom, and the like, more and more people perform writing, drawing, and the like operations through computer equipment, so as to replace a traditional notebook or a traditional blackboard (including a white board). In this case, the user usually uses a graphic as a carrier for integrating the writing trace during the operation. For example, different writing tracks are integrated by different rectangles, so that classified display of the writing tracks is realized. In the process of implementing the invention, the inventor finds that the following problems exist in the prior art: the written trace and the drawn graph belong to two types of elements which are independent from each other, and in order to achieve a desired integration effect, a user is required to adjust the display position of the written trace or the graph one by one. Therefore, the prior art has the problem of low integration efficiency for writing tracks and graphs.
Disclosure of Invention
The invention provides a graph processing method, a graph processing device, graph processing equipment and a storage medium based on a writing track, and aims to solve the technical problem that in the prior art, the integration efficiency of the writing track and a graph is low.
In a first aspect, an embodiment of the present invention provides a method for processing a graph based on a writing track, including:
responding to received handwriting control operation, and displaying at least one writing track, wherein at least one track point of the writing track is located in a closed area of a target graph, and the target graph is a displayed polygon;
and adjusting the size data of the target graph to enable the target graph to surround and/or adapt to the distribution range of the writing tracks.
Further, the adjusting the size data of the target graph includes:
increasing size data of the target pattern; and/or the presence of a gas in the gas,
reducing the size data of the target pattern.
Further, the increasing the size data of the target pattern includes:
and if the track points in the writing track are positioned outside the closed area of the target graph, increasing the size data of the target graph.
Further, the reducing the size data of the target pattern includes:
and if the minimum external rectangle of the writing track is smaller than the historical minimum external rectangle, reducing the size data of the target graph, wherein the historical minimum external rectangle is the minimum external rectangle of the writing track before receiving handwriting control operation.
Further, the reducing the size data of the target pattern includes:
and if the total number of the track points of the writing track is less than the total number of the historical track points, reducing the size data of the target graph, wherein the total number of the historical track points is the total number of the track points of the writing track before handwriting receiving control operation.
Further, before the adjusting the size data of the target graph, the method further includes:
and moving the target graph to enable a first central point of the target graph to be overlapped with a second central point of a target rectangle, wherein the target rectangle is the minimum circumscribed rectangle of the writing track.
Further, the adjusting the size data of the target graph includes:
determining a connecting line between each track point in the writing track and the second central point;
calculating the intersection point corresponding to each connecting line, wherein the intersection point is the closest intersection point of the straight line where the corresponding connecting line is located and the target graph;
calculating a first distance between each intersection point and the second central point and a second distance between each track point and the second central point;
obtaining size adjustment data according to the first distance and the second distance, wherein the size adjustment data is size enlarging data or size reducing data;
and adjusting the size data of the target graph according to the size adjusting data.
Further, the resizing data is enlarged size data,
the obtaining the resizing data according to the first distance and the second distance comprises:
calculating a first distance ratio between each first distance and the corresponding second distance;
selecting a first distance ratio having a smallest value among all the first distance ratios;
and taking the reciprocal of the first distance ratio with the minimum value as the enlargement size data.
Further, the resizing data is reduced size data,
the calculating the intersection point corresponding to each connecting line comprises:
reducing the size data of the target graph to minimum size data;
determining the intersection point of each connecting line and the reduced target graph;
the adjusting the size data of the target graphic according to the size adjustment data includes:
and adjusting the size data of the target graph before reduction according to the reduced size data.
Further, the obtaining the size adjustment data according to the first distance and the second distance includes:
calculating a second distance ratio between each first distance and the corresponding second distance;
selecting a second distance ratio having a smallest value among all the second distance ratios;
and calculating the product of the reciprocal of the second distance ratio with the smallest value and the minimum reduction ratio to obtain the reduced size data, wherein the minimum reduction ratio is the ratio of the minimum size data to the size data of the target graph before reduction.
Further, the displaying at least one writing trace in response to the received handwriting control operation includes:
responding to the received handwriting control operation, and displaying a track to be selected;
confirming that a target graph is matched, wherein a closed area of the target graph comprises at least one track point of the track to be selected;
all tracks in the target graph are obtained, and at least one track point of any track in all tracks is located in a closed area of the target graph;
and determining all the tracks as writing tracks.
Further, the handwriting control operation includes: at least one of a write operation, a delete operation, a move operation, and a zoom operation.
In a second aspect, an embodiment of the present invention further provides a device for processing a graph based on a writing track, including:
the handwriting display module is used for responding to received handwriting control operation and displaying at least one writing track, wherein at least one track point of the writing track is positioned in a closed area of a target graph, and the target graph is a displayed polygon;
and the size adjusting module is used for adjusting the size data of the target graph so as to enable the target graph to surround and/or adapt to the distribution range of the writing track.
In a third aspect, an embodiment of the present invention further provides a device for processing a graph based on a writing track, including:
one or more processors;
a memory for storing one or more programs;
the display screen is used for displaying a writing track and a target graph, and at least one track point of the writing track is positioned in a closed area of the target graph;
when executed by the one or more processors, cause the one or more processors to implement the method of writing trajectory-based graphics processing as described in the first aspect.
In a fourth aspect, embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the method for writing trajectory-based graphics processing according to the first aspect.
According to the graph processing method, the graph processing device, the graph processing equipment and the storage medium based on the writing tracks, at least one writing track is displayed through responding to received handwriting control operation, at least one track point of the writing track is located in a closed area of a target graph, and at the moment, size data of the displayed target graph is synchronously adjusted, so that the target graph surrounds and/or adapts to the technical means of the distribution range of the writing tracks. The technical problem of to writing the integration inefficiency of orbit and figure is solved, realized that the figure follows the change synchronous self-adaptation of writing the orbit distribution range and enlarge or reduce, promoted user's use and experienced, and guaranteed the rational layout and the aesthetic property of demonstration content, simultaneously, with the coincidence of target figure and the central point of writing the orbit, not only guarantee the aesthetic property, still be convenient for follow-up calculation size adjustment data. And determining the intersection point with the target graph based on the connecting line of each track point and the central point, and further obtaining size adjustment data according to the first distance between each intersection point and the central point and the second distance between each track point and the central point, so that the precision in amplifying and reducing the target graph can be ensured, namely the writing track is ensured to be positioned in the closed area of the target graph, and the condition that the space in the closed area is overlarge after the target graph is excessively amplified or removed from the target graph is avoided.
Drawings
Fig. 1 is a flowchart of a method for processing a graph based on a writing track according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for processing a graph based on a writing track according to a second embodiment of the present invention;
FIG. 3 is a first schematic display diagram according to a second embodiment of the present invention;
FIG. 4 is a second schematic display view according to a second embodiment of the present invention;
FIG. 5 is a third schematic view of a display device according to a second embodiment of the present invention;
FIG. 6 is a fourth schematic view of the display according to the second embodiment of the present invention;
FIG. 7 is a fifth schematic view of a display according to a second embodiment of the present invention;
fig. 8 is a flowchart of a method for processing a graph based on a writing track according to a third embodiment of the present invention;
FIG. 9 is a sixth schematic view of a display device according to a third embodiment of the present invention;
FIG. 10 is a seventh display diagram according to the third embodiment of the present invention;
fig. 11 is an eighth schematic display view according to the third embodiment of the present invention;
FIG. 12 is a schematic view of a ninth display according to a third embodiment of the present invention;
FIG. 13 is a schematic view of a tenth display according to the third embodiment of the present invention;
fig. 14 is a schematic structural diagram of a writing trajectory-based graphics processing apparatus according to a fourth embodiment of the present invention;
fig. 15 is a schematic structural diagram of a writing trajectory-based graphics processing apparatus according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying 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 invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a method for processing a graph based on a writing track according to an embodiment of the present invention. The writing trace-based graphics processing method provided in the embodiment may be executed by a writing trace-based graphics processing device, where the writing trace-based graphics processing device may be implemented by software and/or hardware, and the writing trace-based graphics processing device may be formed by two or more physical entities or may be formed by one physical entity. For example, the writing trace-based graphics processing device may be a computer, a mobile phone, a tablet, or an interactive smart tablet, etc.
For the convenience of understanding, the interactive smart tablet is taken as the graphic processing device based on the writing track in the embodiment for exemplary description. The interactive intelligent panel can be integrated equipment for controlling contents displayed on the display panel and realizing 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, an interactive smart tablet includes at least one display screen. For example, the interactive smart 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 interactive intelligent tablet 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 to be a control of a certain function according to the touch position, and at this time, the response scheme is to execute the function. For another 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.
Typically, the interactive smart 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 interactive smart tablet may be installed with at least one application program with writing function, such as an electronic whiteboard application program with writing function installed in the interactive smart tablet. The application program may be an application program carried by an operating system, and may also be an application program downloaded from a third-party device or a server. Optionally, the application program has other editing functions besides the writing function, such as inserting tables, inserting pictures, inserting multimedia, inserting graphics, drawing tables, drawing graphics, and the like. And the drawn table or graph is a standard element drawn by the computer. Computer drawn standard elements may be understood as print standard elements drawn by an interactive smart tablet, which are distinguished from elements written by a user. Typically, an application program is displayed with an operation area in which a user can write or edit. The area position and the area size of the operation area can be set according to actual requirements. It is understood that the operating field can also be understood as a writing field in the writing function. In the embodiment, a description will be given by taking as an example a method of performing a graphic processing based on a writing trajectory in the operation area.
Specifically, referring to fig. 1, the method for processing a graph based on a writing trace provided in this embodiment includes:
and step 110, responding to the received handwriting control operation, and displaying at least one writing track, wherein at least one track point of the writing track is positioned in a closed area of a target graph, and the target graph is a displayed polygon.
Illustratively, the handwriting control operation is a control operation for a writing track issued by a user. The writing track is a track written by a user through touch operation under the writing function, and comprises a plurality of continuous track points, and each track point corresponds to one coordinate point. The coordinate points are points within the operating area coordinate system. Specifically, a coordinate system is created for the operation area in advance, wherein the specific location embodiment of the origin of the coordinate system is not limited. Further, in order to ensure that the user has enough operation area, the operation area is not fixed in size in the embodiment, that is, the operation area may be infinite. For example, the operating region may expand indefinitely as the user writes. The specific expansion method and expansion direction are not limited to the examples. It is understood that, due to the limited size of the display screen, only a part of the operation region may be displayed in the display screen, and the operation region in the display screen may be replaced when the user is detected to issue a set replacement operation. The replacing of the manipulation region in the display screen may include moving the manipulation region, zooming the manipulation region, and the like. For example, when the palm of the user is detected to touch the display screen and the moving operation is performed, the moving path is determined according to the track of the moving operation, and then the operation area displayed in the display screen is changed according to the moving path. Further, a coordinate range of an operation area displayed in the display screen is determined, and then the corresponding relation between the coordinate points and the pixel points is determined according to the coordinate range. Each pixel point in the display screen corresponds to one pixel coordinate, and the corresponding relation between the coordinate point and the pixel point can be obtained through the coordinate range of the operation area and the pixel coordinate range of the display screen. Typically, when the touch operation is obtained, a pixel point corresponding to the touch operation is determined, a coordinate point corresponding to the pixel point is determined according to a corresponding relationship between the coordinate point and the pixel point, and then a coordinate value of the coordinate point is used as a coordinate position of the corresponding track point. And simultaneously, marking the pixel coordinates of the display track points as the pixel positions of the track points. When the operation area in the display screen is unchanged, if the pixel position of the track point changes, the coordinate position of the track point changes synchronously.
In an embodiment, the setting handwriting control operation includes at least one of a writing operation, a deleting operation, a moving operation, and a zooming operation. The writing operation refers to an operation of writing a writing track, and after the writing operation is completed, the newly added writing track is displayed in the display screen. The deletion operation refers to an operation of deleting written writing tracks, and after the deletion operation is completed, the number of the writing tracks of the display screen is reduced. The moving operation is an operation of moving the pixel position of the writing trace, and at this time, the coordinate position also changes synchronously. The zoom operation is an operation of enlarging or reducing a writing trajectory. Further, the embodiment of the touch mode corresponding to the handwriting control operation is not limited. For example, after the user selects the writing function, if the interactive smart tablet detects a moving touch operation in the operation area, it is determined that a writing operation is received. For another example, after the deletion function is confirmed to be selected, if it is detected that at least one writing track in the operation area is selected, the selected track is deleted according to the selection operation.
Further, the target graphic is a polygon that is currently displayed. It is also understood that the target graphic is a handwriting box set by the user for the writing trace, which is used to integrate the writing trace, i.e. to place the writing trace as a whole inside the target graphic. Optionally, the target graph is set to be a convex polygon. Wherein, the convex polygon is a simple polygon with a convex set inside. For example, the target pattern may be a parallelogram, a rectangle, a square, a regular hexagon, a triangle, or the like. In practical application, the target graph can also be a closed graph such as a circle, an ellipse and the like. In the embodiment, after the handwriting control operation is set to be responded, at least one track related to the handwriting control operation exists, and when at least one track point in the at least one track is located in a closed area of a certain displayed graph, the corresponding graph is recorded as a target graph. And then traversing all pixel points of the closed region of the target graph to determine whether other tracks exist in the closed region, if so, synchronously acquiring other tracks, and determining other tracks and tracks related to the handwriting control operation as writing tracks. The trace points are located in the closed area, namely the pixel positions of the trace points are located in the pixel area of the target ellipse, and the pixel area is a pixel coordinate set corresponding to the closed area defined by the target ellipse. Correspondingly, the trace points outside the closed area refer to other areas of the trace points outside the closed area. Since the writing track is displayed on the display screen, in the embodiment, the pixel position is used as the relevant parameter for position determination, position expression and calculation, and it can be understood that, in practical application, the coordinate position may also be used as the relevant parameter, for example, whether the track point is in the closed area is determined by the coordinate position.
For example, when the handwriting control operation is a write operation, a written trajectory is displayed according to the write operation. And then traversing the currently displayed graph of the display screen, confirming whether at least one track point in the written track is positioned in a closed area of a certain displayed graph, and if so, determining the displayed graph as a target graph. And meanwhile, traversing each pixel point in the closed region of the target graph, if determining that other tracks exist in the target graph besides the written track, determining the other tracks and the written track to be the same as the written track, and otherwise, directly determining the written track as the written track.
For another example, when the handwriting control operation is a deletion operation, the selected track is determined according to the deletion operation, and the track is deleted. And meanwhile, determining whether at least one track point in the deleted track is located in a closed area of a certain displayed graph or not, if so, determining the graph as a target graph, and traversing each pixel point in the closed area of the target graph so as to determine other tracks in the closed area of the target graph as the displayed writing tracks. In an embodiment, after the deletion operation is set, at least one undeleted track exists in the target graph closed area. In practical applications, after the deleting operation is performed, there may be no other tracks in the closed region of the target graph, and at this time, the target graph may be reduced to a set minimum size.
For another example, when the handwriting control operation is a moving operation, the trajectory to be moved and the moving path are determined according to the moving operation, and the trajectory is moved according to the moving path. And after the track is moved, determining whether at least one track point in the track is positioned in a closed area of a certain displayed graph, and if so, determining the graph as a target graph. Meanwhile, traversing each pixel point in the closed region of the target graph, if determining that other tracks exist in the closed region of the target graph, determining the other tracks and the moving track as writing tracks, and if no other tracks exist in the closed region of the target graph, determining the moving track as the writing track. This operation corresponds to moving a portion of the trajectory into the scene of the graph. Optionally, before the trajectory moves, it is determined whether at least one trajectory point exists in the trajectory and is located in a displayed graph closed region, if so, the graph is determined as another target graph, and pixels in the target graph closed region are traversed, and other trajectories existing in the target graph closed region are determined as another writing trajectory. This operation corresponds to moving a portion of the trace out of the scene of the graph.
For example, when the handwriting control operation is a zooming operation, the trajectory to be zoomed and the zooming scale are determined according to the zooming operation, and then the zoomed trajectory is displayed according to the zooming scale. And then, determining whether at least one track point exists in the track and is positioned in a closed area of a certain displayed graph, and if so, determining the graph as a target graph. Meanwhile, traversing each pixel point in the closed region of the target graph, if determining that other tracks exist in the closed region of the target graph, determining the other tracks and the zooming track as writing tracks, and if no other tracks exist in the closed region of the target graph, determining the zooming track as the writing track.
It should be noted that, during the writing process, in order to facilitate the operation or calculation of the trace by the processor, the trace is usually placed in the corresponding element box for display. In general, an element box may also be considered as the smallest bounding rectangle of a trajectory, with the boundaries of the element box hidden from view. Wherein, the minimum bounding rectangle refers to the minimum rectangle containing the trace. Further, due to one writing process, multiple tracks may be generated, and if each track corresponds to one element box, the load of the processor may be increased. Thus, the trajectories generated per writing can be marked as sharing one element box. After the input of one track is finished, if the writing operation is received again within the set time interval and the set pixel distance, the newly written track and the original track are regarded as the tracks obtained in the same writing process, and are placed in the same element box. Subsequently, if a track in the element box is deleted or moved to a remote location (by comparison to a predetermined distance threshold), it is determined that the track in the element box is reduced, and the size of the element box is updated based on the remaining tracks. If a new written track or a track moved into the element box is added to the element box, the size of the element box can be updated synchronously. Or, the tracks meeting the conditions can be placed in the same element box according to the actual requirements. For example, a writing trace corresponding to a certain target graphic is placed in the same element box. At this time, in determining the target figure and the writing trace, it is only necessary to compare the pixel positions of the element box and the pixel positions of the target figure.
And 120, adjusting the size data of the target graph to enable the target graph to surround and/or adapt to the distribution range of the writing tracks.
Illustratively, the size data of the target graphic refers to the pixel position of each edge of the target graphic in the display screen. The center point of the target graphic, the pixel length of each edge, the pixel length ratio of adjacent edges, and the angle between two intersecting edges can also be determined from the dimensional data. The pixel length refers to the number of continuous pixels in the same direction. It is understood that the pixel location may be substituted for the coordinate location, and in this case, the pixel length may be substituted for the coordinate length. In the embodiment, the pixel position and the pixel length are used as an example, and in practical application, the pixel position and the pixel length may also be used as an example.
Specifically, the size data of the target figure is adjusted according to the pixel position of the writing track. Wherein adjusting the size data of the target pattern includes increasing the size data of the target pattern and/or decreasing the size data of the target pattern. Increasing the size data of the target pattern means increasing the pixel length of at least two sides in the target pattern. When the pixel length ratio of any two adjacent edges in the target graph is fixed, the step of increasing the size data of the target graph refers to the step of amplifying the target graph in equal proportion. When the pixel length ratio of any two adjacent sides in the target pattern is not fixed, increasing the size data of the target pattern may be to increase the pixel length of the side in the set direction, in addition to the target pattern being enlarged in equal proportion. For example, the target figure is a rectangle, and when it is determined that enlargement is necessary in the horizontal direction from the writing trajectory, only the pixel lengths of two sides in the lateral direction may be adjusted. Similarly, the size data of the reduced target pattern is similar to the size data of the increased target pattern, and only the enlarged portion is replaced with the reduced portion, so that the details of the embodiment are not repeated.
In general, when adjusting the size data of the target pattern, it may be first determined whether the adjustment process is to increase the size data of the target pattern or to decrease the size data of the target pattern. The size data of the enlarged target graph is applied to the condition that track points are located outside a closed area of the target graph in the writing track, and at the moment, the target graph can surround the distribution range of the writing track by enlarging the size data of the target graph. The size data of the target graph is reduced when the size data is applied to the condition that a certain track in the writing track is deleted or moved out of the target graph, or when the total number of track points of the writing track is reduced, the size data of the target graph is reduced, so that the target graph can adapt to the distribution range of the writing track, namely, the blank area of the target graph, which is caused by the deletion, the movement out of the track or the reduction of the total number of the track points, is reduced. It can be understood that the distribution range of the writing track refers to a pixel area of an element box of the writing track, and when the size of the element box of the writing track changes, the size data of the target graph is synchronously adjusted, so that the size of the target graph surrounds and adapts to the size of the element box of the writing track, and the effect of integrating the target graph and the writing track is further achieved.
Typically, after the adjustment process is determined, specific resizing data needs to be determined, and the target graphic is adjusted according to the resizing data. The resizing data may be relative data, that is, modification data generated for the size data of the target graphic, and the specific content of the resizing data may be relative pixel point information (for example, moving a certain edge by 6 pixel points), or may be absolute data, that is, result data generated for the size data of the target graphic, and the specific content of the resizing data may be absolute pixel point information (for example, moving a pixel point on a certain edge to an (x, y) pixel point). Further, the determination mode of the size adjustment data may be set according to actual conditions. For example, the outermost trace point in the writing trace is determined, and the pixel position to be adjusted of the corresponding edge in the target graph is determined according to the outermost trace point. At this time, the minimum pixel distance between the outermost trace point and the corresponding edge when the outermost trace point is in the closed region of the target graph can be predetermined, the position of the pixel to be adjusted of the corresponding edge in the target graph is determined according to the minimum pixel distance, and then the size adjustment data is obtained according to the position of the pixel to be adjusted and the current pixel position of the edge. For another example, a minimum bounding rectangle of the writing track is determined, then, the minimum size data that the target graph needs to reach when the minimum bounding rectangle is included is determined, and the size data that needs to reach is used as the size adjustment data of the target graph. For another example, a central point of the target graph is obtained, then a connecting line between each track point and the central point is determined, an intersection point of the connecting line and the target graph is obtained, and then size adjustment data is obtained according to a first distance between the intersection point and the central point and a second distance between the corresponding track point and the central point. Optionally, when the size adjustment data is obtained according to the first distance and the second distance, the track point with the smallest ratio of the first distance to the second distance is taken. Generally, if the value corresponding to the minimum ratio is smaller than 1, it indicates that the track point is located outside the target graphic and farthest from the target graphic, and at this time, the size adjustment data for enlarging the target graphic may be determined according to the track point. If the numerical value corresponding to the minimum ratio is larger than 1, all track points are located in the target graph, and the track point with the minimum ratio is closest to the target graph, and at the moment, size adjustment data for reducing the target graph is determined according to the track points. If the value corresponding to the minimum ratio is equal to 1, it indicates that the corresponding track point coincides with the intersection point on the edge of the target graph, and at this time, the size adjustment data for amplifying the target graph is determined only according to the set minimum pixel distance, or the size data of the target graph is not adjusted. The minimum pixel distance refers to a preset minimum distance from a track point in the track to the target graph. Optionally, when the target graph is enlarged, determining a minimum ratio of the first distance to the second distance, and then taking a reciprocal of the minimum ratio as the resizing data; when the target graph is reduced, the target graph is reduced to the minimum size data, then the minimum ratio of the first distance and the second distance is obtained, and the product of the reciprocal of the minimum ratio and the minimum reduction ratio is used as the size adjustment data. Wherein the minimum reduction ratio is a ratio of the minimum size data to the size data before reduction of the target pattern.
Optionally, after receiving the handwriting control operation each time, the size data of the target graph can be adjusted, so that the size data can be adjusted synchronously along with the distribution range of the writing track. At this time, the target pattern contains a complete writing trace, and a blank area within the target pattern is reduced as much as possible. The blank area is an area where a pixel point displaying the background is located.
Optionally, when the size data of the target graph is adjusted, in order to ensure reasonability and attractiveness, the first central point of the target graph is firstly overlapped with the second central point of the minimum circumscribed rectangle where the writing track is located, then whether the size data of the target graph needs to be adjusted is determined, and if so, the size data of the target graph is adjusted.
And displaying at least one writing track by responding to the received handwriting control operation, wherein at least one track point of the writing track is positioned in a closed area of the target graph, and at the moment, synchronously adjusting the size data of the displayed target graph so as to enable the target graph to surround and/or adapt to the distribution range of the writing track. The technical problem of low integration efficiency for writing tracks and graphs is solved, synchronous self-adaption amplification or reduction of graphs along with changes of the distribution range of the writing tracks is achieved, user experience is improved, and reasonable layout and attractiveness of displayed contents are guaranteed.
Example two
Fig. 2 is a flowchart of a graph processing method based on a writing track according to a second embodiment of the present invention. The present embodiment is embodied on the basis of the above-described embodiments. Specifically, in the embodiment, the adjusting of the size data of the target pattern is set to increase the size data of the target pattern. In this embodiment, the pixel position of the track point is used as the calculation reference data, and in practical application, the coordinate position of the track point can also be used as the calculation reference data. Referring to fig. 2, the writing trace-based graphic processing method includes:
step 201, responding to the received handwriting control operation, and displaying the track to be selected.
In the embodiment, the handwriting control operation is exemplified by a write operation, an enlargement operation, or a move operation. When the handwriting control operation is a moving operation, a new track exists in the target graph after a response is made according to the moving operation.
And further, after responding to the handwriting control operation, displaying a track related to the handwriting control operation and recording the track as a to-be-selected track. For example, during write operation, at least one newly written track is recorded as a to-be-selected track; during the amplification operation, recording at least one amplified track as a to-be-selected track; and when the user moves, recording the moved track as a to-be-selected track.
Step 202, judging whether a target graph is matched, wherein a closed area of the target graph comprises at least one track point of a track to be selected. And (5) confirming that the target graph is matched, executing the step 203, and otherwise, ending the operation.
Specifically, after the trajectory to be selected is displayed, all the displayed graphs are traversed, and the pixel area where each graph is located is confirmed. And then, determining whether a graph containing at least one track point of the track to be selected exists or not according to the pixel area of the graph and the pixel position of each track point in the track to be selected, and if so, determining the graph as a target graph. If the target graph does not exist, the target graph corresponding to the to-be-selected track does not exist, and then the operation is finished. Generally, the candidate trajectory corresponds to only one target pattern. It should be noted that all the displayed graphics may refer to all the graphics in the operation area or all the graphics in the display screen. In the embodiment, all the figures in the display screen are described as an example. Of course, if all the displayed graphs refer to all the graphs in the operation area, the coordinate area of each graph needs to be determined, and then, whether the graph containing at least one track point of the track to be selected exists is determined according to the coordinate area of the graph and the coordinate position of each track point in the track to be selected.
It is understood that the embodiment of the manner in which the interactive smart tablet distinguishes between graphics and traces is not limited. For example, the track and the graph have different identifications, and the interactive smart tablet determines that the element is the track or the graph through the identification.
And 203, acquiring all tracks in the target graph, wherein at least one track point of any one track in all the tracks is located in a closed area of the target graph.
Specifically, after the target graph is determined, all pixel points in the closed region of the target graph are traversed, so that the pixel points displaying the track points are screened out. Usually, the set pixel points inside the target graph include a pixel point displaying a track point and a pixel point of a blank or a display background, which can be distinguished by the pixel value of each pixel point. And then, determining the track of each track point in the closed area of the target graph. Each track is composed of a plurality of continuous track points, so that the track where each track point is located can be confirmed only by finding all the continuous track points corresponding to each track point, and then all the tracks in the closed area of the target graph, namely all the tracks of the target graph, are obtained. It will be appreciated that in the overall resulting trajectory, there may be at least one trajectory point located outside the closed area of the target graphic.
And step 204, determining all the tracks as writing tracks.
Further, all the trajectories are determined as writing trajectories. At this point, all of the traces are within the same element box.
And step 205, moving the target graph to enable the first central point of the target graph to coincide with the second central point of the target rectangle, wherein the target rectangle is the minimum circumscribed rectangle of the writing track.
Specifically, the minimum bounding rectangle of the writing track is determined. The minimum circumscribed rectangle is a rectangle which contains all track points of the writing track and has the minimum area. Further, the embodiment of the determination method of the minimum bounding rectangle is not limited. For example, all track points of the writing track are acquired, one outermost track point is selected from the upper direction, the lower direction, the left direction and the right direction, and then the minimum circumscribed rectangle is determined according to the four outermost track points. Further, after the minimum bounding rectangle is determined, the minimum bounding rectangle is marked as a target rectangle. Then, the center point of the target rectangle is determined and recorded as the second center point.
Typically, the center point of the target feature is determined and designated as the first center point. The embodiment of the determining manner of the first center point and the second center point is not limited. And further, judging whether the first central point and the second central point are superposed, and if so, skipping the step. Otherwise, the target graph is moved so that the first center point and the second center point coincide, that is, the target graph and the center of the target rectangle coincide.
For example, fig. 3 is a first display diagram provided in the second embodiment of the present invention. Referring to fig. 3, the second center point 311 of the target rectangle 31 of the writing track and the first center point 321 of the target figure 32 are at two positions, respectively. Further, the smart tablet moves the target graphic 32 so that the first center point 321 and the second center point 311 coincide with each other, at this time, fig. 3 is changed to fig. 4, and fig. 4 is a second display schematic diagram provided by the second embodiment of the present invention. The relative position of the trajectory and the target pattern in fig. 4 is more reasonable than in fig. 3. It should be noted that, in practical application, the target rectangle is a background operation of the interactive smart tablet, the target rectangle is not displayed in the display screen, and the target rectangle is only displayed in fig. 3 for convenience of understanding.
It will be appreciated that, in addition to moving the target figure, the writing trajectory may also be moved such that the first center point and the second center point coincide. Since the writing trace is obtained according to the handwriting control operation given by the user, the writing trace is generally displayed at a position desired by the user, and therefore, compared with moving the writing trace, it is more reasonable to move the target graphic.
And step 206, judging whether track points exist in the writing track and are positioned outside the closed area of the target graph. And if the track points in the writing track are positioned outside the closed area of the target graph, executing the step 207, otherwise, ending the operation.
Specifically, all track points of the writing track are traversed, the pixel position of each track point is obtained, and the pixel position is compared with the pixel area occupied by the target graph. If the pixel position of at least one track point is not in the pixel area, it indicates that at least one track point is outside the closed area of the target graph, and at this time, in order to make the target graph include all writing tracks, the target graph needs to be amplified. If all the track points of the writing track are in the closed area of the target graph, the target graph does not need to be amplified, and at this time, the operation can be finished.
And step 207, increasing the size data of the target graph.
This step is described by taking an example of enlarging the target pattern on an equal scale. At this time, the step specifically includes step 2071 to step 2075:
step 2071, determine the connection line between each trace point and the second center point in the writing trace.
Specifically, each track point in the writing track is sequentially selected, and the track point is connected with the second central point, so that a connecting line of each track point and the second central point is respectively obtained. The step can be internal operation of the interactive intelligent tablet and is not displayed in the display screen.
Optionally, if the connection line of a certain track point coincides with the connection lines of other track points, only the track point corresponding to the maximum connection line length may be obtained. The connection line superposition means that all pixel points of a certain connection line are superposed with partial pixel points of another connection line or a plurality of connection lines. The connection length can be obtained by the number of the pixel points occupied in the connection direction.
It is understood that the second center point and the first center point may be replaced with each other in this step.
And 2072, calculating the intersection point corresponding to each connection line, where the intersection point is the closest intersection point between the straight line where the corresponding connection line is located and the target graph.
Specifically, the straight line where each connecting line is located and the target graph generate at least one intersection point. For example, in fig. 4, a straight line connecting the track point 33 and the second center point 311, which is the line 331, and the target graphic 32 have two intersection points, one of which is located on the side 34 of the track point 33 that is closest to the target graphic, and the other of which is located on the side 35 of the track point 33 that is farther from the target graphic. I.e. the intersection point on the closest side can be denoted as the closest intersection point of the straight line with the target feature and the intersection point on the further side can be denoted as the furthest intersection point of the straight line with the target feature. Compared with the farthest intersection point, the closest intersection point can better reflect the relation between the corresponding track point and the target graph, and therefore, in the embodiment, the closest intersection point is selected and recorded as the intersection point of the connecting line. At this time, each connecting line corresponds to one intersection.
Further, if the track point is outside the target graph, the intersection point corresponding to the connecting line is on the connecting line. And if the track point is in the target graph, the intersection point corresponding to the connecting line is on the extension line of the connecting line.
Step 2073, calculate a first distance between each intersection and the second center point and a second distance between each track point and the second center point.
Specifically, the connection length refers to a pixel distance from the corresponding track point to the second central point, that is, the number of pixels from the track point to the second central point. In an embodiment, the pixel distance is taken as the second distance. Meanwhile, the pixel distance between the intersection point and the second central point is recorded as a first distance. At this time, the first distance is also the number of pixels from the intersection to the second center point. Typically, each line has a corresponding first distance and second distance.
Optionally, the main purpose of enlarging the target graphic is to include the track points outside the target graphic inside the target graphic, so that only the track points outside the target graphic may be selected in steps 2071 to 2073, and corresponding operations may be performed. In the subsequent step, the size adjustment data is also determined according to the first distance and the second distance of the track points positioned outside the target graph.
And 2074, obtaining size adjustment data according to the first distance and the second distance.
Wherein the resizing data is enlarged size data. The enlargement size data is an enlargement ratio at the time of enlarging the size data of the target pattern.
Specifically, the enlargement size data is determined by the first distance and the second distance. The determination mode can be set according to actual conditions. For example, the second distance with the largest numerical value is selected, that is, the track point farthest from the second center point is selected, the first distance corresponding to the track point is obtained, and the reciprocal of the ratio of the first distance to the second distance is used as the enlargement size data. For another example, a ratio of the first distance to the second distance is calculated, and the ratio having the smallest value is selected, and the reciprocal of the ratio is used as the enlargement size data. Specifically, the embodiment is described by taking the example of selecting the minimum ratio, and at this time, the step specifically includes: step 20741-step 20743:
step 20741 calculates a first distance ratio between each first distance and the corresponding second distance.
Specifically, a ratio of a first distance to a second distance corresponding to each connection line is calculated and recorded as a first distance ratio. Typically, the first distance and the second distance are positive numbers. In practical applications, directions may also be added to the first distance and the second distance, in which case negative numbers may occur in the first distance and the second distance, and therefore, when calculating the first distance ratio, the ratio of the absolute value of the first distance to the absolute value of the corresponding second distance may be calculated.
Step 20742, select the first distance ratio with the smallest value from all the first distance ratios.
For example, the smaller the value of the first distance ratio, the greater the distance between the track point and the corresponding edge in the target graph, that is, the farther the track point is from the corresponding edge in the target graph. Therefore, in the embodiment, the first distance ratio having the smallest value is selected among all the first distance ratios. At this time, the track point corresponding to the first distance ratio with the smallest numerical value may be regarded as the track point located farthest from the target graphic among the track points outside the target graphic. Generally, the smallest-valued first distance ratio in this step is less than 1.
Step 20743, the reciprocal of the first distance ratio with the smallest value is used as the enlargement size data.
Specifically, in the case of the equal-scale enlargement, since the enlarged image and the image before the enlargement are similar images and the pixel length ratio of the adjacent side lengths is not changed, the inverse of the first distance ratio is used as the enlargement size data by the principle of the similar image.
And 2075, adjusting the size data of the target graph according to the size adjustment data.
Specifically, the target pattern is magnified in an equal scale according to the magnification size data. For example, the enlargement size data is 2, that is, the target pattern is enlarged by one time in an equal proportion, and the position of the first center point of the enlarged target pattern is unchanged, at this time, the pixel length of each edge of the target pattern is enlarged by one time.
The technical solution provided by the present embodiment is exemplarily described below. Specifically, referring to fig. 3, after receiving the writing operation, displaying a corresponding trajectory in the display screen as the trajectory to be selected 36, then determining the target graph 32 based on the trajectory to be selected, and obtaining the writing trajectory according to the target graph, that is, the writing trajectory is the trajectory to be selected 36. Thereafter, the first center point 321 of the target figure 32 is moved such that the first center point 321 coincides with the second center point 311. At this time, fig. 4 was obtained.
Further, traversing each trace point of the writing trace in fig. 4 to obtain a connection line between each trace point and the second center point 311, and then determining an intersection point of each trace point and the target graph 32. The distance between each locus point and the second center point 311 is defined as a second distance, and the distance between the intersection point corresponding to each locus point and the second center point 311 is defined as a first distance. And calculating the ratio of each first distance to the corresponding second distance to obtain the first distance ratio. Thereafter, a first distance ratio with the smallest value is selected. In fig. 4, the first distance ratio corresponding to the set locus point 37 is the smallest. In this case, a second distance between the track point 37 and the second center point 311 is denoted as AB, a first distance between the intersection 38 corresponding to the track point 37 and the second center point 311 is denoted as AC, and a first distance ratio is denoted as k ═ AC |/| AB |. Further, the enlargement size data is determined to be 1/k, and the size data of the target graph is adjusted according to the enlargement size data 1/k. After enlargement, fig. 4 becomes fig. 5. Referring to fig. 5, the magnified target graphic completely contains the writing trace. It can be understood that, in practical application, each central point, connecting line, intersection point, etc. will not be displayed on the display screen. In practical application, the transition from fig. 3 to fig. 5 can be made directly through the above calculation, and the process of fig. 4 is a background calculation process.
Optionally, if the target graph is a quadrilateral, any two of the target graphs become parallel relatively. Meanwhile, the intersection points of all track points outside the closed area of the target graph are only determined to be on two opposite sides which are parallel to each other, and the connecting line where the intersection points are located and the extension lines of other sides do not have intersection points, so that the size data of the other two sides can be adjusted only. For example, referring to fig. 6, the intersection points of all track points outside the target graph are only on the side 391 and the side 392, and the connecting line corresponding to each intersection point does not intersect with the extension lines of the remaining two sides, and at this time, the remaining two sides only need to be enlarged according to the enlarged size data. For example, only sides 393 and 394 need to be enlarged in FIG. 6, where the enlarged view is shown in FIG. 7.
And displaying the to-be-selected track by responding to the handwriting control operation, matching the target graph according to the to-be-selected track, and taking all tracks in the target graph as writing tracks. And then, moving the target graph to enable the first center point of the target graph to be overlapped with the second center point of the minimum circumscribed rectangle of the writing track. And then. Determining the connection line between each track point and the second central point in the writing track, and obtaining the intersection point between each track point and the target graph according to the connection line, obtaining the enlarged size data according to the minimum first distance ratio of the first distance between the intersection point and the second central point and the second distance between the corresponding track point and the second central point, and the technical means of adjusting the size data of the target graph according to the amplified size data realizes the self-adaptive amplification of the target graph when the writing track in the target graph exceeds the target graph so as to ensure that the writing track is completely contained, the integration of the target graph and the writing track is realized, the user does not need to manually modify the target graph or the writing track, the integration efficiency and the user experience are improved, meanwhile, the target graph is overlapped with the central point of the writing track, so that the attractiveness is guaranteed, and the subsequent calculation of size adjustment data is facilitated. And the intersection point with the target graph is determined based on the connecting line of each track point and the central point, and then the size adjustment data is obtained according to the first distance between each intersection point and the central point and the second distance between each track point and the central point, so that the accuracy in the process of amplifying the target graph can be ensured, namely, the writing track is ensured to be positioned in the closed area of the target graph, and the condition that the blank area in the closed area is overlarge due to the fact that the target graph is excessively amplified is avoided.
EXAMPLE III
Fig. 8 is a flowchart of a method for processing a graph based on a writing trace according to a third embodiment of the present invention. The present embodiment is embodied on the basis of the above-described embodiments. Specifically, in the embodiment, the adjusting of the size data of the target pattern is set to reduce the size data of the target pattern. At this time, all track points of all tracks in the closed area of the target graph are in the target graph. In this embodiment, the pixel position of the trace point is used as the calculation reference data, and in practical application, the coordinate position of the trace point can also be used as the calculation reference data. Referring to fig. 8, the writing trace-based graphic processing method includes:
and step 401, responding to the received handwriting control operation, and displaying the track to be selected.
In the embodiment, the handwriting control operation is exemplified by a delete operation, a zoom-out operation, or a move operation. When the handwriting control operation is a moving operation, at least one track in the target graph is moved out of the target graph after responding to the handwriting control operation.
And further, after responding to the handwriting control operation, displaying a track related to the handwriting control operation and recording the track as a to-be-selected track. For example, during deleting operation, recording the remaining track in the element box where the deleted track is located as the track to be selected; during the reduction operation, recording at least one reduced track as a track to be selected; and during the moving operation, recording the residual track in the element box before the track is moved as the track to be selected.
Generally speaking, before the step, each track in the display screen has a corresponding element box, the track in each graph closed area corresponds to one element box, and after handwriting control operation is performed on the track in the element box, the rest tracks in the element box can be the tracks to be selected.
Step 402, judging whether a target graph is matched, wherein a closed area of the target graph comprises at least one track point of a track to be selected. And confirming that the target graph is matched, executing the step 403, and otherwise, ending the operation.
And 403, acquiring all tracks in the target graph, wherein at least one track point of any one track in all the tracks is located in a closed area of the target graph.
And step 404, determining all tracks as writing tracks.
And 405, moving the target graph to enable a first central point of the target graph to be overlapped with a second central point of a target rectangle, wherein the target rectangle is a minimum circumscribed rectangle of the writing track.
Steps 402-405 correspond to steps 202-205, and the detailed implementation can refer to steps 202-205.
Step 406, determine whether to reduce the size data of the target pattern. If yes, go to step 407, otherwise, end the operation.
The steps include at least one of the following:
and judging whether the minimum circumscribed rectangle of the writing track is smaller than the historical minimum circumscribed rectangle, wherein the historical minimum circumscribed rectangle is the minimum circumscribed rectangle of the writing track before receiving the handwriting control operation. If the minimum bounding rectangle of the writing track is smaller than the historical minimum bounding rectangle, step 407 is executed, otherwise, the operation is ended.
Specifically, the historical minimum circumscribed rectangle is the minimum circumscribed rectangle of the writing track before receiving the handwriting control operation. When the interactive intelligent tablet determines to execute handwriting control operation on the track in a certain element box, the minimum circumscribed rectangle of the track in the current element box is recorded and recorded as the historical minimum circumscribed rectangle before responding to the handwriting control operation. The frame of the element box is the minimum circumscribed rectangle, and recording the minimum circumscribed rectangle means recording the size data of the minimum circumscribed rectangle.
And further, acquiring the minimum circumscribed rectangle of the current writing track after responding to the handwriting control operation. At this time, the minimum bounding rectangle may also be understood as a frame of the element box of the current writing trajectory. Further, acquiring the minimum bounding rectangle of the current writing track means acquiring size data of the minimum bounding rectangle.
Thereafter, the minimum bounding rectangle is compared to the historical minimum bounding rectangle. Specifically, the size data of the minimum bounding rectangle and the historical minimum bounding rectangle are compared. If the minimum circumscribed rectangle is smaller than the historical minimum circumscribed rectangle, it is indicated that more blank pixel points or background pixel points appear in the target graph containing the writing track, and at this time, the size data of the target graph needs to be reduced.
And judging whether the total number of the track points of the written track is less than the total number of the historical track points, wherein the total number of the historical track points is the total number of the track points of the written track before handwriting receiving control operation. If the total number of the track points of the writing track is less than the total number of the historical track points, executing a step 407, otherwise, ending the operation.
Specifically, the total number of the historical track points is the total number of the track points of the writing track before the handwriting receiving control operation. When the interactive intelligent tablet determines to execute handwriting control operation on the track in a certain element box, the total quantity of track points of the track in the current element box is recorded and recorded as the total quantity of historical track points before responding to the handwriting control operation.
Furthermore, after responding to the handwriting control operation, the total number of track points of the current writing track is obtained. And then comparing the total number of the track points with the total number of the historical track points. If the total number of the track points is smaller than the total number of the historical track points, it is indicated that more blank pixel points or background pixel points appear in the target graph containing the writing track, and at the moment, the size data of the target graph needs to be reduced.
It is understood that, in practical applications, the determination may also be directly made according to the handwriting control operation, for example, after receiving the deletion operation, the size data of the target graphic is directly determined to be reduced.
Step 407, reducing the size data of the target graph.
This step is described by taking an example of scaling down the target pattern. In this case, the step specifically includes steps 4071 to 4075:
step 4071, determining a connection line between each trace point and the second center point in the writing trace.
Specifically, step 4071 corresponds to step 2071, and reference may be made to step 2071 for a specific implementation process.
Step 4072, calculating the intersection point corresponding to each connection line, where the intersection point is the closest intersection point between the straight line where the corresponding connection line is located and the target graph.
Specifically, the steps include steps 40721-40722:
in step 40721, the size data of the target pattern is reduced to the minimum size data.
Specifically, a minimum size is set in advance for each graphic that can be displayed in the display screen. The minimum size includes the minimum pixel length that each edge can display and the set angle between adjacent edges. In general, taking a rectangle as an example, when the ratio of the pixel lengths of the long side and the short side is different, the specific shape of the rectangle may be different. At this time, one minimum size may be set for different pixel length scale ranges, or all rectangles may correspond to the same minimum size.
Further, minimum size data of the target pattern is determined according to the minimum size. Namely, when the position of the first central point of the target graph is ensured to be unchanged, the pixel position and the pixel length of each side in the target graph are determined according to the minimum size. Then, the target pattern is reduced to the minimum size data. The method has the advantages that after the target graph is reduced, the method for enlarging the target graph can be adopted for calculation, and the calculation complexity of the processor is reduced.
Optionally, this step may be performed before step 4071, that is, the target graph is shrunk first, and then the connecting line is determined.
Step 40722 determines the intersection of each connection line with the scaled down target graphic.
Wherein, the intersection point is the closest intersection point of the straight line where the corresponding connecting line is located and the reduced target graph. The target pattern mentioned in this step means a target pattern reduced to data of the minimum size.
The step 2072 may be referred to in this step.
Step 4073, calculate a first distance between each intersection and the second center point and a second distance between each track point and the second center point.
The step 2073 may be referred to in this step.
Step 4074, obtain resizing data based on the first distance and the second distance.
Wherein the resizing data is reduced size data.
For example, a second distance ratio of the first distance and the second distance is calculated, and the smallest second distance ratio is selected, and the inverse of the second distance ratio is taken as reduced size data, and the target figure of the minimum size data is enlarged based on the reduced size data. For another example, the scaling ratio for the target graphic before scaling down is determined from the second distance ratio and recorded as the scaling-down data, and then the target graphic before scaling down is scaled according to the scaling-down data. In the embodiment, the description is given taking as an example the determination of the reduction ratio for the target figure before reduction according to the second distance ratio. Specifically, the step specifically includes steps 40741 to 40743.
Step 40741 calculates a second distance ratio between each first distance and the corresponding second distance.
The step 20741 may be referred to in this step.
Step 40742 selects the second distance ratio having the smallest value among all the second distance ratios.
The step 20742 may be referred to in this step.
Step 40743, calculating a product of the reciprocal of the second distance ratio having the smallest value and the minimum reduction ratio to obtain reduced size data, where the minimum reduction ratio is a ratio of the minimum size data to size data of the target pattern before reduction.
Wherein the minimum reduction ratio is a ratio of the minimum size data to the size data before reduction of the target pattern. Specifically, a first pixel length of any one side in the minimum size data is determined, and a second pixel length of the side in the size data before the reduction of the target graphic is determined, and then, a ratio of the first pixel length to the second pixel length is regarded as a minimum reduction ratio.
Specifically, the reciprocal of the second distance ratio having the smallest value is taken, and the reciprocal is multiplied by the minimum reduction ratio. Specifically, the track point with the farthest distance from the reduced target graph outside the closed area of the reduced target graph can be determined according to the second distance ratio with the smallest numerical value. At this time, the enlargement ratio of the reduced target figure can be determined according to the reciprocal. Then, the reciprocal is multiplied by the minimum reduction ratio, so that the enlargement ratio of the reduced target pattern can be converted into the reduction ratio of the target pattern before reduction. In general, the reduced size data is necessarily less than 1.
Step 4075, the size data of the target pattern before reduction is adjusted based on the reduced size data.
Specifically, the target pattern is reduced in an equal scale according to the reduced size data. For example, the reduction size data is 0.5, that is, the target pattern before reduction is reduced by one time in an equal proportion, and the position of the first center point of the target pattern after reduction by one time is unchanged. At this time, the pixel length of each side of the target pattern is reduced by one time.
The technical solution provided by the present embodiment is exemplarily described below.
Specifically, fig. 9 is a sixth display schematic diagram provided in the third embodiment of the present invention. Referring to fig. 9, a plurality of tracks are contained within the graph 51. Further, the handwriting control operation is a deletion operation of the deletion trace 52. At this time, fig. 9 becomes fig. 10. Fig. 10 is a seventh display schematic diagram according to the third embodiment of the present invention. Referring to fig. 10, in response to the handwriting control operation, a candidate trajectory 53 is displayed. Further, a target pattern of the candidate trajectory 53 is determined, and at this time, the target pattern is the pattern 51. Meanwhile, all the tracks in the target graph are recorded as writing tracks. At this time, the writing trajectory is the same trajectory as the candidate trajectory 53. Thereafter, a first center point 511 of the target feature is determined. Meanwhile, a second center point 531 of a minimum bounding rectangle of the writing trajectory is determined. The target figure is moved such that the first center point 511 and the second center point 531 coincide. At this time, fig. 10 becomes fig. 11. Fig. 11 is an eighth schematic display diagram according to the third embodiment of the present invention. Further, a connection line between each locus point and the second center point 531 is determined. Thereafter, the pattern 51 is reduced to a minimum size. At this time, fig. 11 becomes fig. 12. Fig. 12 is a ninth display schematic diagram according to a third embodiment of the present invention. Referring to fig. 12, pattern 54 is the smallest size pattern of pattern 51. Further, the intersection of the connecting line of each trace point with the graph 54 is determined. The distance between each track point and the second center point 531 is recorded as a second distance, and the distance between the intersection point corresponding to each track point and the second center point 531 is recorded as a first distance. And calculating the ratio of each first distance to the corresponding second distance to obtain a second distance ratio. Then, the second distance ratio with the smallest value is selected. In fig. 12, the numerical value of the second distance ratio corresponding to the set locus point 55 is minimum. Then, the reciprocal of the trace point 55 corresponding to the second distance ratio is taken and multiplied by the minimum reduction ratio, and the product is taken as reduced size data. Thereafter, the pattern 51 in fig. 11 is reduced based on the reduced size data, resulting in fig. 13. At this time, compared with fig. 11, the blank area in the graph 51 in fig. 13 is obviously reduced, that is, on the basis of integration, the target graph is adjusted synchronously along with the adjustment of the writing track. It should be noted that, in practical applications, the transition from fig. 10 to fig. 13 can be made directly through the above calculation, the processes in fig. 11 to fig. 12 are background calculation processes, and in practical applications, the central points are not displayed on the display screen.
And displaying the to-be-selected track by responding to the handwriting control operation, matching the target graph according to the to-be-selected track, and taking all tracks in the target graph as writing tracks. And then, moving the target graph to enable the first center point of the target graph to be overlapped with the second center point of the minimum circumscribed rectangle of the writing track. And then. Determining the connection line between each track point and the second central point in the writing track, and obtaining the intersection point of each track point and the minimized target graph according to the connection line, obtaining reduced size data according to a minimum second distance ratio and a minimum reduction ratio of a first distance between the intersection and the second center point and a second distance between the corresponding track point and the second center point, and the technical means of adjusting the size data of the target graph according to the reduced size data realizes the self-adaptive reduction of the target graph when the writing track in the target graph is deleted, moved out or reduced, so as to ensure the complete writing track, reduce the blank area in the target graph, increase the aesthetic degree and the rationality of the display content, improve the utilization rate of the display area, and the user does not need to manually modify the target graph or the writing track, so that the integration efficiency and the user experience are improved. Meanwhile, the target graph is overlapped with the central point of the writing track, so that the attractiveness is guaranteed, and the subsequent calculation of size adjustment data is facilitated. The intersection point of the target graph is determined based on the connection line of each track point and the central point, and then size adjustment data is obtained according to the first distance between each intersection point and the central point and the second distance between each track point and the central point, so that the accuracy of reducing the target graph can be guaranteed, namely, the writing track is guaranteed to be located in the closed area of the target graph, and the condition that the blank area in the closed area is too large after the writing track is removed from the target graph is avoided.
Example four
Fig. 14 is a schematic structural diagram of a writing trace-based graphics processing apparatus according to a fourth embodiment of the present invention. Referring to fig. 14, the writing trace-based graphic processing apparatus includes: a handwriting display module 601 and a resizing module 602.
The handwriting display module 601 is configured to display at least one writing track in response to a received handwriting control operation, where at least one track point of the writing track is located in a closed area of a target graph, and the target graph is a displayed polygon; a size adjustment module 602, configured to adjust size data of the target graph so that the target graph surrounds and/or adapts to a distribution range of the writing trajectory.
And displaying at least one writing track by responding to the received handwriting control operation, wherein at least one track point of the writing track is positioned in a closed area of the target graph, and at the moment, synchronously adjusting the size data of the displayed target graph so as to enable the target graph to surround and/or adapt to the distribution range of the writing track. The technical problem of low integration efficiency for writing tracks and graphs is solved, synchronous self-adaption amplification or reduction of graphs along with changes of the distribution range of the writing tracks is achieved, user experience is improved, and reasonable layout and attractiveness of displayed contents are guaranteed.
On the basis of the above embodiment, the resizing module 602 includes: the increasing unit is used for increasing the size data of the target graph so that the target graph surrounds and/or adapts to the distribution range of the writing track; and/or, a reducing unit for reducing the size data of the target graph so that the target graph surrounds and/or adapts to the distribution range of the writing track.
On the basis of the above embodiment, the increasing unit is specifically configured to increase the size data of the target graph if a track point exists in the writing track and is located outside the target graph.
On the basis of the foregoing embodiment, the reducing unit is specifically configured to reduce the size data of the target graphic if the minimum circumscribed rectangle of the writing trajectory is smaller than the historical minimum circumscribed rectangle, where the historical minimum circumscribed rectangle is the minimum circumscribed rectangle of the writing trajectory before receiving the handwriting control operation.
On the basis of the above embodiment, the reducing unit is specifically configured to reduce the size data of the target graph if the total number of the track points of the writing track is less than the total number of the historical track points, where the total number of the historical track points is the total number of the track points of the writing track before the handwriting receiving control operation.
On the basis of the above embodiment, the writing path further includes a graph moving module, configured to move the target graph before adjusting the size data of the target graph, so that a first central point of the target graph coincides with a second central point of a target rectangle, where the target rectangle is a minimum bounding rectangle of the writing path.
On the basis of the above embodiment, the resizing module 602 includes: a connecting line determining unit, configured to determine a connecting line between each trajectory point in the writing trajectory and the second center point; the intersection point calculating unit is used for calculating the intersection point corresponding to each connecting line, and the intersection point is the closest intersection point of the straight line where the corresponding connecting line is located and the target graph; the distance calculation unit is used for calculating a first distance between each intersection point and the second central point and a second distance between each track point and the second central point; the data determining unit is used for obtaining size adjusting data according to the first distance and the second distance, and the size adjusting data is enlarged size data or reduced size data; and the graph adjusting unit is used for adjusting the size data of the target graph according to the size adjusting data.
On the basis of the above-described embodiment, the resizing data is enlarged size data, and the data determining unit includes: a first distance ratio calculating subunit configured to calculate a first distance ratio between each of the first distances and a corresponding second distance; a first numerical value selecting subunit operable to select a first distance ratio having a smallest numerical value among all the first distance ratios; and an enlargement data determining subunit operable to take an inverse of the first distance ratio at which the numerical value is smallest as enlargement size data.
On the basis of the above embodiment, the resizing data is reduced resizing data, and the intersection calculation unit specifically includes: a graphic reduction subunit, configured to reduce the size data of the target graphic to minimum size data, and an intersection determination subunit, configured to determine an intersection of each of the connection lines and the reduced target graphic; correspondingly, the graphic adjusting unit is specifically configured to: and adjusting the size data of the target graph before reduction according to the reduced size data.
On the basis of the above embodiment, the data determination unit includes: a second distance ratio calculating subunit configured to calculate a second distance ratio between each of the first distances and a corresponding second distance; a second numerical value selecting subunit operable to select a second distance ratio having a smallest numerical value among all the second distance ratios; and the product subunit is used for calculating the product of the reciprocal of the second distance ratio with the minimum value and the minimum reduction ratio to obtain the reduced size data, wherein the minimum reduction ratio is the ratio of the minimum size data to the size data of the target graph before reduction.
On the basis of the above embodiment, the handwriting display module 601 includes: the to-be-selected track display unit is used for responding to the received handwriting control operation and displaying the to-be-selected track; the graph matching unit is used for confirming that a target graph is matched, and at least one track point of the to-be-selected track is contained in a closed area of the target graph; the handwriting obtaining unit is used for obtaining all tracks in the target graph, and at least one track point of any track in all the tracks is located in a closed area of the target graph; and the target determining unit is used for determining all the tracks as writing tracks.
On the basis of the above embodiment, the handwriting control operation includes: at least one of a write operation, a delete operation, a move operation, and a zoom operation.
The graph processing device based on the writing track provided by the embodiment of the invention is contained in the graph processing equipment based on the writing track, can be used for executing the graph processing method based on the writing track provided by any embodiment, and has corresponding functions and beneficial effects.
EXAMPLE five
Fig. 15 is a schematic structural diagram of a writing trajectory-based graphics processing apparatus according to a fifth embodiment of the present invention. As shown in fig. 15, the writing trace-based graphic processing apparatus includes a processor 70, a memory 71, an input device 72, an output device 73, and a display screen 74; the number of the processors 70 in the writing trace-based graphic processing device may be one or more, and one processor 70 is taken as an example in fig. 15; the number of the display screens 74 in the writing trajectory-based graphic processing device may be one or more, and one display screen 74 is taken as an example in fig. 15; the processor 70, the memory 71, the input device 72, the output device 73, and the display screen 74 in the writing trajectory-based graphic processing apparatus may be connected by a bus or other means, and the bus connection is exemplified in fig. 15.
The memory 71 is used as a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the writing trace-based graphics processing method in the embodiment of the present invention (for example, the handwriting display module 601 and the resizing module 602 in the writing trace-based graphics processing apparatus). The processor 70 executes various functional applications and data processing of the writing trace-based graphics processing apparatus by executing software programs, instructions, and modules stored in the memory 71, that is, implements the writing trace-based graphics processing method described above.
The memory 71 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the writing trace-based graphic processing apparatus, and the like. Further, the memory 71 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 71 may further include a memory remotely located from the processor 70, and these remote memories may be connected to the writing trajectory based graphics processing device through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 72 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the writing trace-based graphic processing apparatus. The output device 73 may include an audio output device such as a speaker. The display screen 74 is a display screen with a touch function, which may be a capacitive screen, an electromagnetic screen, or an infrared screen. Optionally, when the display screen 74 is an infrared screen, the display screen further includes an infrared touch frame, and the infrared touch frame is disposed around the display screen 74, and may also be configured to receive an infrared signal and send the infrared signal to the processor 70 or other devices. The display screen 74 is used to display a written trace and a target graphic, at least one trace point of the written trace being located within a closed area of the target graphic. Meanwhile, other contents can be displayed according to the instruction of the processor.
In this embodiment, the graphics processing device based on the writing track may be an interactive smart tablet.
The graph processing equipment based on the writing track comprises a graph processing device based on the writing track, can be used for executing any graph processing method based on the writing track, and has corresponding functions and beneficial effects.
EXAMPLE six
Embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method for writing trajectory-based graphics processing, the method comprising:
responding to received handwriting control operation, and displaying at least one writing track, wherein at least one track point of the writing track is located in a closed area of a target graph, and the target graph is a displayed polygon;
and adjusting the size data of the target graph to enable the target graph to surround and/or adapt to the distribution range of the writing tracks.
Of course, the storage medium containing the computer-executable instructions provided by the embodiments of the present invention is not limited to the method operations described above, and may also perform related operations in the method for processing graphics based on writing tracks provided by any embodiments of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the above-mentioned graphics processing apparatus based on writing trace, the included units and modules are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention 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 invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (14)

1. A graph processing method based on writing tracks is characterized by comprising the following steps:
responding to the received handwriting control operation, and displaying an updated writing track, wherein at least one track point of the writing track is positioned in a closed area of a target graph, and the target graph is a displayed polygon;
when confirming that the distribution range of the writing track is enlarged, increasing the size data of the target graph, wherein all track points of the writing track are contained in the enlarged closed area of the target graph; wherein the increasing the size data of the target pattern comprises: determining a connecting line between each track point and a second central point in the writing track; calculating the intersection point corresponding to each connecting line, wherein the intersection point is the closest intersection point of the straight line where the corresponding connecting line is located and the target graph; calculating a first distance between each intersection point and the second central point and a second distance between each track point and the second central point; obtaining enlarged size data according to the first distance and the second distance; amplifying size data of the target graph according to the size adjusting data; and/or the presence of a gas in the gas,
when the distribution range of the writing track is confirmed to be reduced, reducing the size data of the target graph, wherein all track points containing the writing track are contained in the closed area of the reduced target graph; wherein the confirming that the distribution range of the writing trajectory is narrowed comprises: if the minimum external rectangle of the writing track is smaller than the historical minimum external rectangle, confirming that the distribution range of the writing track is reduced, wherein the historical minimum external rectangle is the minimum external rectangle of the writing track before receiving handwriting control operation, and the minimum external rectangle is the minimum rectangle containing the writing track;
after the updated writing track is displayed in response to the received handwriting control operation, the method further comprises the following steps:
before the size data of the target graph is adjusted, the target graph is moved so that a first central point of the target graph is overlapped with a second central point of the writing track, and the second central point is the central point of the minimum circumscribed rectangle of the writing track.
2. The method for graphics processing based on a written trace according to claim 1, wherein the confirming that the distribution range of the written trace is expanded comprises:
and if track points located outside the closed region of the target graph exist in the writing track, confirming that the distribution range of the writing track is expanded.
3. The method for processing graphics based on a written trace according to claim 1, wherein before moving the target graphics, the method further comprises:
confirming whether the first center point and the second center point coincide;
and if the target graphs do not coincide with each other, executing the operation of moving the target graphs.
4. The method for writing trajectory-based graphics processing according to claim 1, wherein the deriving the enlarged-size data according to the first distance and the second distance comprises:
calculating a first distance ratio between each first distance and the corresponding second distance;
selecting a first distance ratio having a smallest value among all the first distance ratios;
and taking the reciprocal of the first distance ratio with the minimum value as the enlargement size data.
5. The writing trajectory-based graphics processing method according to claim 1, wherein the reducing the size data of the target graphic includes:
determining a connecting line between each track point in the writing track and the second central point;
reducing the size data of the target graph to minimum size data to obtain a reduced target graph, wherein the central point of the reduced target graph is a first central point;
determining the intersection point of each connecting line and the reduced target graph, wherein the intersection point is the closest intersection point of the straight line where the connecting line is located and the reduced target graph;
calculating a first distance between each intersection point and the second central point and a second distance between each track point and the second central point;
obtaining reduced size data according to the first distance and the second distance;
and adjusting the size data of the target graph before reduction according to the reduced size data.
6. The method for writing trace-based graphics processing according to claim 5, wherein the deriving the reduced size data according to the first distance and the second distance comprises:
calculating a second distance ratio between each first distance and the corresponding second distance;
selecting a second distance ratio having a smallest value among all the second distance ratios;
and calculating the product of the reciprocal of the second distance ratio with the minimum value and the minimum reduction ratio to obtain reduced size data, wherein the minimum reduction ratio is the ratio of the minimum size data to the size data of the target graph before reduction.
7. The method of written trace-based graphical processing according to claim 1, wherein the handwriting control operations comprise: at least one of a write operation, a delete operation, a move operation, a zoom-out operation, and a zoom-in operation.
8. The method for writing trace-based graphics processing according to claim 7, wherein displaying the updated writing trace in response to the received handwriting control operation comprises:
responding to the received handwriting control operation, and displaying an updated track to be selected;
confirming that a target graph is matched, wherein a closed area of the target graph comprises at least one track point of the track to be selected;
all tracks in the target graph are obtained, and at least one track point of any track in all tracks is located in a closed area of the target graph;
and determining all the tracks as writing tracks.
9. The method for graphical processing based on written traces according to claim 7, wherein the handwriting control operation is a delete operation, and displaying updated candidate traces in response to the received handwriting control operation comprises:
receiving a deletion operation;
deleting the track selected by the deleting operation;
confirming the minimum circumscribed rectangle where the selected track is located;
and determining other tracks in the minimum circumscribed rectangle as the tracks to be selected.
10. The method for graphical processing based on written traces according to claim 7, wherein the handwriting control operation is a move operation, and displaying updated candidate traces in response to the received handwriting control operation comprises:
receiving a moving operation;
and moving the track selected by the moving operation, and determining the selected track as a track to be selected.
11. The method for graphical processing based on written traces according to claim 7, wherein the handwriting control operation is a move operation, and displaying updated candidate traces in response to the received handwriting control operation comprises:
receiving a moving operation;
moving the track selected by the moving operation;
obtaining the minimum circumscribed rectangle where the selected track is located before moving;
and determining other tracks in the minimum circumscribed rectangle as the tracks to be selected.
12. A trace-writing based graphics processing apparatus, comprising:
the handwriting display module is used for responding to received handwriting control operation and displaying an updated writing track, at least one track point of the writing track is positioned in a closed area of a target graph, and the target graph is a displayed polygon; the size adjusting module is used for increasing the size data of the target graph when confirming that the distribution range of the writing track is enlarged, and all track points of the writing track are contained in the enlarged closed area of the target graph; the size adjusting module comprises a connecting line determining unit, a calculating unit and a calculating unit, wherein the connecting line determining unit is used for determining a connecting line between each track point and the second central point in the writing track; the intersection point calculating unit is used for calculating the intersection point corresponding to each connecting line, and the intersection point is the closest intersection point of the straight line where the corresponding connecting line is located and the target graph; the distance calculation unit is used for calculating a first distance between each intersection point and the second central point and a second distance between each track point and the second central point; the data determining unit is used for obtaining the amplified size data according to the first distance and the second distance; the graph adjusting unit is used for adjusting the size data of the target graph according to the size adjusting data; and/or when confirming that the distribution range of the writing track is reduced, reducing the size data of the target graph, wherein all track points containing the writing track are contained in the closed area of the reduced target graph; the size adjusting module comprises a reducing unit, wherein the reducing unit is used for reducing the size data of the target graph if the minimum external rectangle of the writing track is smaller than the historical minimum external rectangle, and the historical minimum external rectangle is the minimum external rectangle of the writing track before receiving handwriting control operation;
the graphic processing device further comprises a graphic moving module, which is used for moving the target graphic before adjusting the size data of the target graphic, so that a first central point of the target graphic coincides with a second central point of a target rectangle, and the target rectangle is the minimum circumscribed rectangle of the writing track.
13. A writing trajectory-based graphics processing device, comprising:
one or more processors;
a memory for storing one or more programs;
the display screen is used for displaying a writing track and a target graph, and at least one track point of the writing track is positioned in a closed area of the target graph;
when executed by the one or more processors, cause the one or more processors to implement the method of written trajectory based graphics processing as recited in any of claims 1-11.
14. A storage medium containing computer-executable instructions for performing the method of writing trace-based graphical processing according to any one of claims 1-11 when executed by a computer processor.
CN201910298975.XA 2019-04-15 2019-04-15 Graph processing method, device and equipment based on writing track and storage medium Active CN110069204B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910298975.XA CN110069204B (en) 2019-04-15 2019-04-15 Graph processing method, device and equipment based on writing track and storage medium
PCT/CN2019/127818 WO2020211438A1 (en) 2019-04-15 2019-12-24 Graphic processing method, apparatus, and device based on writing trajectory, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910298975.XA CN110069204B (en) 2019-04-15 2019-04-15 Graph processing method, device and equipment based on writing track and storage medium

Publications (2)

Publication Number Publication Date
CN110069204A CN110069204A (en) 2019-07-30
CN110069204B true CN110069204B (en) 2021-12-03

Family

ID=67367706

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910298975.XA Active CN110069204B (en) 2019-04-15 2019-04-15 Graph processing method, device and equipment based on writing track and storage medium

Country Status (2)

Country Link
CN (1) CN110069204B (en)
WO (1) WO2020211438A1 (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110069204B (en) * 2019-04-15 2021-12-03 广州视源电子科技股份有限公司 Graph processing method, device and equipment based on writing track and storage medium
CN110716680B (en) * 2019-10-09 2021-05-07 广州视源电子科技股份有限公司 Control method and device of intelligent interactive panel
CN110941383B (en) * 2019-10-11 2021-08-10 广州视源电子科技股份有限公司 Double-screen display method, device, equipment and storage medium
CN110956674B (en) * 2019-10-23 2022-01-21 广州视源电子科技股份有限公司 Graph adjusting method, device, equipment and storage medium
TWI711947B (en) * 2019-11-12 2020-12-01 奇勤科技股份有限公司 Information processing method for an electronic handwriting note to link video playing time and a video recording device
CN111522492B (en) * 2020-04-30 2021-10-15 掌阅科技股份有限公司 Picture sliding display method, terminal and computer storage medium
CN113177607B (en) * 2021-05-21 2023-01-31 浙江大华技术股份有限公司 Method for labeling training object and client
CN114047865B (en) * 2021-11-11 2023-04-25 四川长虹教育科技有限公司 Graphic control method
CN114640807B (en) * 2022-03-15 2024-01-16 京东科技信息技术有限公司 Video-based object statistics method, device, electronic equipment and storage medium
CN114995702A (en) * 2022-07-19 2022-09-02 深圳润方创新技术有限公司 Computer-aided display electronic drawing board for children and display method

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101354749B (en) * 2007-07-24 2013-01-09 夏普株式会社 Method for making dictionary, hand-written input method and apparatus
CN102799367B (en) * 2012-06-29 2015-05-13 鸿富锦精密工业(深圳)有限公司 Electronic device and touch control method thereof
TW201403408A (en) * 2012-07-10 2014-01-16 Elan Microelectronics Corp Touch handwriting input method and device
CN102866856B (en) * 2012-09-05 2015-01-07 鸿富锦精密工业(深圳)有限公司 Method and device for processing hand-writing input handwritings
CN102929524B (en) * 2012-09-20 2016-05-04 东莞宇龙通信科技有限公司 A kind of choosing method of content of pages and device
US20170103046A1 (en) * 2015-10-07 2017-04-13 Holden Schroder System and method for providing personalized font via processor-based application
US10643067B2 (en) * 2015-10-19 2020-05-05 Myscript System and method of handwriting recognition in diagrams
CN108845757A (en) * 2018-07-17 2018-11-20 广州视源电子科技股份有限公司 A kind of touch control input method and device, computer readable storage medium, intelligent interaction plate of intelligent interaction plate
CN110069204B (en) * 2019-04-15 2021-12-03 广州视源电子科技股份有限公司 Graph processing method, device and equipment based on writing track and storage medium
CN110045909B (en) * 2019-04-15 2021-01-22 广州视源电子科技股份有限公司 Ellipse processing method, device and equipment based on writing track and storage medium

Also Published As

Publication number Publication date
WO2020211438A1 (en) 2020-10-22
CN110069204A (en) 2019-07-30

Similar Documents

Publication Publication Date Title
CN110069204B (en) Graph processing method, device and equipment based on writing track and storage medium
CN110045909B (en) Ellipse processing method, device and equipment based on writing track and storage medium
US11301200B2 (en) Method of providing annotation track on the content displayed on an interactive whiteboard, computing device and non-transitory readable storage medium
CN108334486B (en) Table control method, device, equipment and storage medium
CN110941383B (en) Double-screen display method, device, equipment and storage medium
CN108304132B (en) Graph display method, device, equipment and storage medium
CN110928459B (en) Writing operation method, device, equipment and storage medium of intelligent interactive tablet
CN108874292B (en) Comment display method and device and intelligent interactive panel
CN107943365B (en) Line handwriting presenting method and device, electronic equipment and storage medium
CN110716680A (en) Control method and device of intelligent interactive panel
US11372540B2 (en) Table processing method, device, interactive white board and storage medium
CN110928475B (en) Page interaction method, device, equipment and storage medium of intelligent interaction panel
CN110928614B (en) Interface display method, device, equipment and storage medium
CN108958861A (en) Object displaying method, equipment and storage medium based on text control
CN108492349B (en) Processing method, device and equipment for writing strokes and storage medium
WO2019218622A1 (en) Element control method, apparatus, and device, and storage medium
KR20230153488A (en) Image processing methods, devices, devices, and storage media
CN110286827B (en) Element scaling control method, device, equipment and storage medium
CN111428455B (en) Form management method, device, equipment and storage medium
CN111984151A (en) Whiteboard canvas size and position roaming control method for improving processing efficiency
WO2023092254A1 (en) Mind map adjustment method, storage medium and device
CN112860157B (en) Display element adjusting method, device, equipment and storage medium
CN114756159A (en) Intelligent interactive panel, data processing method and device thereof and computer storage equipment
CN110427153B (en) Writing content display method, device, equipment and medium
CN113721911B (en) Control method, medium and equipment for display proportion of virtual scene

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