CN112596661A - Writing track processing method and device and interactive panel - Google Patents

Writing track processing method and device and interactive panel Download PDF

Info

Publication number
CN112596661A
CN112596661A CN202011552488.0A CN202011552488A CN112596661A CN 112596661 A CN112596661 A CN 112596661A CN 202011552488 A CN202011552488 A CN 202011552488A CN 112596661 A CN112596661 A CN 112596661A
Authority
CN
China
Prior art keywords
writing
track
target
erasing
erased
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.)
Pending
Application number
CN202011552488.0A
Other languages
Chinese (zh)
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
Original Assignee
Guangzhou Shiyuan Electronics Thecnology 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 filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN202011552488.0A priority Critical patent/CN112596661A/en
Publication of CN112596661A publication Critical patent/CN112596661A/en
Pending legal-status Critical Current

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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

Landscapes

  • Engineering & Computer Science (AREA)
  • 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)

Abstract

The present specification provides a writing trajectory processing method, a writing trajectory processing device, and an interactive tablet, in the method, a target writing trajectory is determined according to the number of inflection points, whether an erasing procedure is executed is determined based on the target writing trajectory and a current writing state in a writing area, and when the erasing procedure is executed, a portion to be erased is determined based on the target writing trajectory and is erased, so that triggering of an erasing function and execution of the erasing function are simultaneously realized through one target writing trajectory, and a user only needs to execute input of the target writing trajectory once in the whole erasing procedure without executing multiple operations, thereby improving writing efficiency and use experience.

Description

Writing track processing method and device and interactive panel
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a writing trajectory processing method and apparatus, and an interactive tablet.
Background
With the rapid development of electronic device technology, writing devices such as electronic whiteboards, tablet computers, intelligent conference tablets and the like are widely used. The user may write various strokes on the writing device (the user generates one stroke per pen-down to pen-up) and erase the strokes.
In the related art, when a stroke erasing operation is performed, a user needs to click a control corresponding to an erasing function, such as an eraser button, and then erase a part needing to be erased on a writing device. As can be appreciated, this approach requires the user to click back and forth on the associated control to switch input modes, which is very inconvenient for the user.
Disclosure of Invention
In order to overcome the problems in the related art, the specification provides a writing track processing method and device and an interactive flat panel
According to a first aspect of embodiments of the present specification, there is provided a writing trajectory processing method including:
detecting whether a target writing track appears in a writing area, wherein the number of inflection points of the target writing track is greater than a first preset threshold value;
determining whether to execute an erasing process based on the target writing track and the current writing state in the writing area; in the erasing process, the writing track needing to be erased in the writing area is determined based on the target writing track.
In some examples, the determining whether to perform the erasing process based on the target writing trajectory and the current writing state in the writing area includes:
and if the writing area does not have other writing tracks except the target writing track, determining not to execute the erasing process.
In some examples, the determining whether to perform the erasing process based on the target writing trajectory and the current writing state in the writing area includes:
determining other writing tracks in the writing area, which have intersection points with the target writing track, as tracks to be erased;
and determining whether to execute an erasing process or not based on the distribution condition of the intersection points between the target writing track and the track to be erased.
In some examples, each writing track comprises at least one track line segment, each track line segment has a corresponding feature vector, and the feature vector is obtained based on a coordinate system mapped by the writing area; and determining the intersection point of the target writing track and the other writing tracks on the basis of the feature vector of each track line segment.
In some examples, the determining whether to execute the erasing procedure based on the distribution of the intersection points between the target writing track and the track to be erased includes:
and if the number of the intersection points between the target writing track and the track to be erased is less than a second preset threshold value, determining not to execute the erasing process.
In some examples, the determining whether to execute the erasing procedure based on the distribution of the intersection points between the target writing track and the track to be erased includes:
and if the number of the intersection points between the target writing track and the track to be erased is greater than or equal to a second preset threshold value, and the ratio of the sum of the lengths of all the intersection point line segments to the length of the track to be erased is greater than a third preset threshold value, determining to execute an erasing process.
In some examples, the method further comprises:
and if the target writing track comprises a closed track, erasing the writing track existing in a closed area corresponding to the closed track when the erasing process is executed.
According to a second aspect of embodiments of the present specification, there is provided a writing trajectory processing apparatus including:
the device comprises a detection module, a detection module and a display module, wherein the detection module is used for detecting whether a target writing track appears in a writing area, and the number of inflection points of the target writing track is greater than a first preset threshold value;
the determining module is used for determining whether to execute the trigger erasing module or not based on the target writing track and the current writing state in the writing area;
and the erasing module is used for determining the writing track needing to be erased in the writing area based on the target writing track.
According to a third aspect of embodiments of the present specification, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs any one of the methods of the embodiments of the specification.
According to a fourth aspect of the embodiments of the present specification, there is provided an interactive tablet comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements any one of the methods of the embodiments of the specification when executing the program.
The technical scheme provided by the embodiment of the specification can have the following beneficial effects:
in the method, a target writing track is determined according to the number of inflection points, whether an erasing process is executed or not is determined based on the target writing track and the current writing state in a writing area, and when the erasing process is executed, a part needing to be erased is determined based on the target writing track and is erased.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the specification.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present specification and together with the description, serve to explain the principles of the specification.
FIG. 1 is a flow chart of a writing trace processing method shown in the present specification according to an exemplary embodiment;
FIG. 2 is a flow diagram illustrating the processing of an interactive tablet with respect to a written trace in accordance with an illustrative embodiment;
FIG. 3A is a schematic illustration of a pre-processed writing trajectory X shown in the present specification in accordance with an exemplary embodiment;
FIG. 3B is a schematic diagram of a processed writing trajectory X shown in the present specification according to an exemplary embodiment;
FIG. 3C is a diagram illustrating a display relationship of a writing trajectory X and a writing trajectory Y on an interactive tablet according to an exemplary embodiment of the present description;
FIG. 4 is a hardware configuration diagram of an interactive tablet where a writing trace processing apparatus according to an embodiment of the present disclosure is located;
fig. 5 is a block diagram of a writing trace processing apparatus shown in the present specification according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present specification. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the specification, as detailed in the appended claims.
The terminology used in the description herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the description. As used in this specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, the first information may also be referred to as second information, and similarly, the second information may also be referred to as first information, without departing from the scope of the present specification. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
With the popularization of touch screen devices, drawing and writing on a screen by using a finger or a handwriting pen becomes a writing habit of most users, which means that humanized design of screen drawing is more and more important. In the related art, most devices provide an eraser button for users to write when the users encounter writing errors in the writing process, and the users need to click and select the button to represent that the users need to erase the button, and then use fingers or a smart pen to erase the part needing to be erased on a screen. As can be appreciated, this approach requires the user to click the relevant control back and forth multiple times to switch the input mode, and the whole erasing process requires the user to perform multiple operations, which is very inconvenient for the user. Based on this, the present specification provides a writing trace processing method to solve the above-mentioned problems.
The following provides a detailed description of examples of the present specification.
As shown in fig. 1, fig. 1 is a flowchart illustrating a writing trajectory processing method according to an exemplary embodiment, the method including:
step 101, detecting whether a target writing track appears in a writing area, wherein the number of inflection points of the target writing track is greater than a first preset threshold value;
the writing track processing method in the embodiment of the present specification may be applied to writing-related application programs, which may be installed in a writing device, where the writing device refers to an electronic device with a touch screen, and includes an electronic whiteboard, a tablet computer, an intelligent conference tablet, a smart phone, and the like. For these writing devices, a user may draw on a touch screen by a finger or a stylus to input a writing trace. Of course, these application programs may be installed in an electronic device such as a desktop computer or a laptop computer, and a user may perform writing operation through an external device such as a mouse.
The writing area mentioned in this step is an area for displaying input content in response to a writing operation of a user, and when writing is performed in the writing area, for example, when a finger or a writing pen contacts the touch screen, the device can obtain coordinates of a touch position and touch time, thereby obtaining an input writing track and displaying the input writing track in real time. The writing track refers to track data generated in a writing process of stopping writing each time a user presses down to lift up by a finger or a writing pen. It should be noted that writing indicated in the embodiments of the present specification is not limited to writing, and any entry process implemented in the device for displaying an operation trajectory may be regarded as a writing process, such as drawing, commenting, and the like.
Unlike the related art in which an eraser button needs to be clicked to trigger the erasing function, the method of the embodiment of the present specification implements triggering of the erasing function based on a target writing trajectory. The target writing trajectory herein is a writing trajectory in which the number of inflection points is greater than a first preset threshold. It can be understood that the writing trajectory recognized by the device is obtained according to the collected touch points, and if the collected points are connected in time sequence, a curve composed of a plurality of broken lines can be obtained, and the inflection points of the writing trajectory can be regarded as the points connected among the broken lines, taking the writing trajectory as "Z", the writing trajectory can be regarded as composed of three broken lines, and two points are connected among the three broken lines, so that the number of the inflection points of the writing trajectory is 2. It can be seen that the target writing trajectory is not limited to a trajectory of a specific shape, and only the number of inflection points is required to satisfy the condition that the number of inflection points is greater than the first preset threshold value, so that the user can draw according to the writing habit of the user. Correspondingly, if the user is used to draw a wavy line with 7 to 9 inflection points to paint wrong content when writing on paper, the first preset threshold value can be set to 6 so as to accord with the writing habit of the user and improve the use experience of the user. Of course, the first preset threshold may also be set according to the requirements of a specific scenario, which is not limited in this specification.
It will be appreciated that the user may be jittering during writing, such as writing a "word," and that the user may not feel jittering, but the device may obtain a trace of writing according to the detected touch signal, which may be considered as a curve with a small fluctuation amplitude. Therefore, the number of inflection points detected by the device for the writing trajectory may be greatly different from the number of inflection points of the writing trajectory actually desired to be input by the user, and in this case, the writing trajectory originally desired to be input by the user is easily determined as the target writing trajectory for triggering the erasing function by mistake, resulting in erroneous erasing. Based on this, in some examples, the number of inflection points of the writing trace in this step may be obtained based on Douglas-puke algorithm (Douglas-Peucker algorithm). The douglas-pock algorithm, also called the larmer-douglas-pock algorithm or the iterative adaptive point algorithm, is an algorithm that approximates a curve as a series of points and reduces the number of points. The basic idea of this algorithm is: virtually connecting a straight line to the head point and the tail point of each curve, and calculating the distance from each point corresponding to each curve to the straight line; selecting the maximum distance value to compare with a given threshold value, if the maximum distance value is smaller than the given threshold value, completely discarding each intermediate point on the curve, if the minimum distance value is larger than or equal to the given threshold value, keeping the point corresponding to the maximum distance value, dividing the curve into two parts by taking the point as a boundary, and repeatedly using the method for the two parts until no point can be discarded. That is to say, the device may use the algorithm to perform simplification and denoising on the writing trajectory according to the curve corresponding to the writing trajectory and the given threshold, so as to obtain each feature point after the trajectory is simplified, and obtain the number of inflection points according to the number of the feature points. It should be noted that the given threshold mentioned here is a precision limit difference for controlling the track simplification, and it can be set according to the requirements of a specific scenario.
In step 102, determining whether to execute an erasing process based on the target writing track and the current writing state in the writing area; in the erasing process, the writing track needing to be erased in the writing area is determined based on the target writing track.
In addition to determining the erasing intention of the user according to the number of inflection points of the target writing track, in the scheme of the embodiment of the present specification, the erasing procedure may be executed by directly using the target writing track, that is, the user may draw a writing track with an inflection point number greater than a first preset threshold, and determine a portion to be erased and complete the erasing action while triggering the erasing function. Like this, the user can go to click to erase the button without interrupting thinking and sight when writing, has made things convenient for user's operation, and in addition, the design of target writing orbit is unanimous with the action that the user erased wrong handwriting when writing on carrying out paper, and the habit of laminating the user and writing on paper is favorable to promoting user's use and experiences. That is, the present embodiment simultaneously realizes, through one target writing trajectory: triggering of the erasing function and execution of the erasing function, a user only needs to execute input of the target writing track once in the whole erasing process, and does not need to execute multiple operations as in the related technology.
The current writing state in the writing region referred to in this step may include both the case where there is a writing trajectory other than the target writing trajectory and the case where there is no writing trajectory other than the target writing trajectory. In some examples, if no writing track other than the target writing track exists in the writing area, it is determined that the erasing procedure is not performed. It is understood that there is no writing trace other than the target writing trace in the writing area, indicating that the current writing area is blank before the target writing trace is detected, in which case the target writing trace does not represent the erasing intention of the user, that is, the target writing trace is the writing content that the user wants to input. At this time, it is determined that the erasing process is not performed, and the target writing track is retained and displayed.
For the case where there are writing trajectories other than the target writing trajectory, two cases may be subdivided according to whether there is an intersection between the target writing trajectory and the other writing trajectories. Similarly, when the target writing trajectory drawn by the user does not have an intersection with other writing trajectories in the writing area, the target writing trajectory represents the writing content that the user wants to input, but does not represent the erasing intention of the user, and at this time, it may be determined that the erasing procedure is not performed, and the target writing trajectory may be retained and displayed. That is, if there is no intersection between the target writing trajectory and the other writing trajectory, it is determined that the erasing procedure is not performed.
Regarding the intersection point of the target writing track and other writing tracks, it can be obtained according to a vector between the two writing tracks, in some examples, each writing track includes at least one track line segment, each track line segment has a corresponding feature vector, and the feature vector is obtained based on a coordinate system mapped by the writing area; and determining the intersection point of the target writing track and the other writing tracks on the basis of the feature vector of each track line segment. After the writing track is simplified by the douglas-pock algorithm, the writing track is represented by N feature points, at this time, the feature points are sequentially connected to obtain (N-1) track line segments, a coordinate system is established by taking a certain point of the writing area, such as an upper left edge point, as a reference point, and a feature vector of each track line segment in the writing area is determined, so that an intersection point of the two writing tracks can be determined based on the feature vectors of the respective track line segments of the target writing track and the other writing tracks, for example, whether the track line segment of the target writing track intersects with the track line segments of the other writing tracks can be determined by cross multiplication of the feature vectors, and thus the intersection point of the two writing tracks can be determined. Of course, in other embodiments, the intersection of the target writing trajectory and other writing trajectories may be determined by a vector graphics tool or the like.
If the intersection point exists between the target writing track and other writing tracks, other writing tracks with the intersection point existing with the target writing track can be directly erased. Of course, the user is very prone to writing errors during writing, and therefore, the erasing standard can be defined to reduce the erasing errors. In some examples, other writing tracks in the writing area, which have intersection points with the target writing track, may be determined as tracks to be erased; and determining whether to execute an erasing process or not based on the distribution condition of the intersection points between the target writing track and the track to be erased. That is, the distribution of the intersection points between the target writing track and the track to be erased is used as a condition for further determining whether to execute the erasing process.
The distribution condition here may include the number of intersections, and if the number of intersections between the target writing track and the track to be erased is smaller than a second preset threshold, it is determined that the erasing procedure is not to be performed. Assuming that the second preset threshold is 6, which means that the standard of erasing is only reached if the number of the intersection points is greater than or equal to 6, it may be determined that the erasing procedure is executed to erase the track to be erased. And when the number of the intersection points is less than 6, explaining that the erasing standard is not reached, and determining not to execute the erasing process, so that the erasing standard can be limited to reduce the situation of wrong erasing caused by misoperation of a user. Of course, the second preset threshold may be set according to the requirements of a specific scenario, and when it is determined that a track is to be erased and it is determined that the erasing procedure is not to be performed, the target writing track may be reserved or not reserved, which is not limited in this specification.
In addition to the number of intersections, the distribution here may also include the length of the intersection line segments. In some examples, this step includes: and if the number of the intersection points between the target writing track and the track to be erased is greater than or equal to a second preset threshold value, and the ratio of the sum of the lengths of all the intersection point line segments to the length of the track to be erased is greater than a third preset threshold value, determining to execute an erasing process. It should be understood that the intersection line segment herein refers to a segment obtained by connecting the previously determined intersections in sequence. The sum of the lengths of the intersection line segments is obtained by adding up the lengths of all the intersection line segments, and similarly, the length of the track to be erased may also be obtained by adding up the lengths of all the track line segments of the erase track. Based on the comparison result of the length sum of the intersection point line segments, the ratio of the length of the track to be erased and the second preset threshold, whether the overlapping area of the target writing track and the track to be erased meets the erasing standard or not can be judged, if yes, the erasing process is determined to be executed, the track to be erased is erased, and if not, the erasing process is determined not to be executed. It is not uncommon that the second preset threshold value may be set according to the requirements of a specific scene. Therefore, by detecting whether the erasing condition is met or not, the intention of the user can be accurately judged and corresponding actions can be executed, the accuracy is improved, and the writing efficiency and the use experience are improved.
The method in the embodiment of the present specification determines a target writing trajectory according to the number of inflection points, determines whether to execute an erasing procedure based on the target writing trajectory and a current writing state in a writing area, and determines a portion to be erased based on the target writing trajectory and erases the portion when executing the erasing procedure. Like this, can write the inflection point quantity of orbit according to the target and confirm user's the intention of erasing to directly utilize the target to write the orbit and carry out the flow of erasing, for the user, need not to click and erase the button and can accomplish fast and erase the action, and the custom of writing on the laminating paper has promoted writing efficiency and use experience.
In addition to the foregoing, the present specification improves upon the following to further enhance the user experience:
when a user needs to write quickly while dealing with an urgent task, the user may fail to erase the portion to be erased due to an operation error, and since the line of sight has been shifted to the content of other portions, the user is easily unaware of the failure of the previous erase, which may result in a writing error. Thus, in some examples, the methods of the present description further comprise: and if the erasing process is determined not to be executed, sending prompt information, wherein the prompt information is used for indicating that the target writing track is an invalid erasing action. The prompt message may be a message bubble, or may be a form in which the original target writing track is set to flash within a certain time. Of course, how to send the prompt information may also depend on the requirements of a specific scenario, and is not limited thereto. By sending the prompt message indicating that the target writing track is an invalid erasing action, the user can be informed that the erasing process cannot be successfully executed, so that the user can erase the target writing track again.
In addition, during writing, a user is likely to encounter a situation that more content needs to be erased simultaneously, such as erasing an entire row of writing tracks, where erasing is slow for each writing track, and based on this, in some examples, the method of this specification further includes: and if the target writing track comprises a closed track, erasing the writing track existing in a closed area corresponding to the closed track when the erasing process is executed. That is to say, the user can continuously draw a wavy line with the number of inflection points larger than the first preset threshold value to trigger the target writing track and a closed track to include all the contents to be erased, so that all the contents are erased, and thus, more written contents can be erased quickly, and the efficiency is improved.
To explain the writing trace processing method in more detail, a specific embodiment is described as follows:
in this embodiment, the writing trace processing method is applied to an interactive tablet, and a user writes in a writing area of the interactive tablet by using a finger, where the interactive tablet generates a writing trace X after acquiring a touch signal of the user, as shown in a flowchart of a processing procedure of the interactive tablet for the writing trace shown in fig. 2, the processing procedure includes:
s201, acquiring the number of inflection points of a writing track;
in this embodiment, the number of inflection points of the writing trajectory X is obtained by processing based on the douglas-pock algorithm, see fig. 3A and 3B, where fig. 3A is a schematic diagram of the writing trajectory X before processing, and fig. 3B is a schematic diagram of the writing trajectory X after processing, and it can be understood that the interactive tablet displays the writing trajectory X before processing. As can be seen from the figure, in the present embodiment, the number of inflection points of the writing trajectory X is 6;
s202, judging whether the writing track is a target writing track or not according to the number of inflection points of the writing track, wherein the number of the inflection points of the target writing track is greater than a first preset threshold value; if yes, go to step S203, otherwise go to step S208;
in this embodiment, the first preset threshold is 5, and since the number of inflection points of the writing trajectory X is greater than the first preset threshold, the writing trajectory X is the target writing trajectory;
s203, judging whether other writing tracks except the target writing track exist in the writing area, if so, executing a step S204, otherwise, executing a step S208;
in this embodiment, two other writing tracks exist in the writing area, which are respectively marked as writing track Y and writing track Z, where the display relationship between writing track X and writing track Y on the interactive flat panel is shown in fig. 3C, where the serial number of writing track X in the drawing is 31, and the serial number of writing track Y in the drawing is 32;
s204, judging whether intersection points exist between the target writing track and other writing tracks, if so, executing a step S205, and if not, executing a step S208;
in this embodiment, each of the writing trajectory X, the writing trajectory Y, and the writing trajectory Y includes a plurality of trajectory segments, each trajectory segment has a corresponding feature vector, the feature vector is obtained based on a coordinate system mapped by the writing area, and based on a cross-product result of the feature vectors corresponding to each trajectory segment of the writing trajectory X and each trajectory segment of the writing trajectory Y, it is determined that there is an intersection between the writing trajectory X and the writing trajectory Y, and the number of the intersections is 7; determining that no intersection point exists between the writing track X and the writing track Z based on cross multiplication results of feature vectors corresponding to each track line segment of the writing track X and each track line segment of the writing track Z;
s205, determining other writing tracks in the writing area, which have intersection points with the target writing track, as to-be-erased tracks, and judging whether the number of the intersection points between the target writing track and the to-be-erased tracks is larger than or equal to a second preset threshold value or not, if so, executing a step S206, and if not, executing a step S208;
in this embodiment, the second preset threshold is 4, the writing track Y is determined as the track to be erased, and since the number of intersection points between the writing track Y and the writing track X is greater than the second preset threshold, the next step is continuously executed;
s206, judging whether the ratio of the sum of the lengths of all intersection point line segments between the target writing track and the track to be erased to the length of the track to be erased is larger than a third preset threshold value or not, if so, executing a step S207, and if not, executing a step S208;
in the present embodiment, all intersection line segments between the writing trajectory X and the writing trajectory Y include an intersection line segment 12, an intersection line segment 23, and an intersection line segment 34, where the intersection line segment 12 is a line segment connecting the intersection 1 and the intersection 2, the intersection line segment 23 is a line segment connecting the intersection 2 and the intersection 3, the intersection line segment 34 is a line segment connecting the intersection 3 and the intersection 4, and the sum of the lengths of the three intersection line segments is denoted as L1; the length of the writing track Y is the sum of the lengths of the track line segments of the writing track Y, and is marked as L2, since the third preset threshold is 0.5 and L1/L2 is 0.6, the writing track Y meets the erasing standard, and the erasing process is determined to be executed;
s207, determining to execute an erasing process, wherein in the erasing process, a writing track needing to be erased in a writing area is determined based on a target writing track;
in this embodiment, the writing trace to be erased is writing trace Y, and therefore, the writing trace X and the writing trace Y are erased together;
and S208, determining not to execute the erasing process.
Based on the flow, the action can be accurately executed according to the user intention, the writing efficiency is improved, the user does not need to click an erasing button to erase, the writing idea and the sight line smoothness are guaranteed, and the use experience of the user is favorably improved.
The present specification also provides embodiments of a writing trace processing apparatus and a terminal applied thereto, corresponding to the embodiments of the foregoing method.
The embodiment of the writing track processing device can be applied to computer equipment such as an interactive tablet. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. The software implementation is taken as an example, and as a logical device, the device is formed by reading corresponding computer program instructions in the nonvolatile memory into the memory for operation through the processor in which the file processing is located. From a hardware aspect, as shown in fig. 4, which is a hardware structure diagram of an interactive tablet where a writing trace processing apparatus according to an embodiment of the present disclosure is located, except for the processor 410, the memory 430, the network interface 420, and the nonvolatile memory 440 shown in fig. 4, a server or an electronic device where an apparatus 431 is located in an embodiment may also include other hardware according to an actual function of the computer device, which is not described again.
Accordingly, the embodiments of the present specification also provide a computer storage medium, in which a program is stored, and the program, when executed by a processor, implements the method in any of the above embodiments.
Embodiments of the present description may take the form of a computer program product embodied on one or more storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having program code embodied therein. Computer-usable storage media include permanent and non-permanent, removable and non-removable media, and information storage may be implemented by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of the storage medium of the computer include, but are not limited to: phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technologies, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic tape storage or other magnetic storage devices, or any other non-transmission medium, may be used to store information that may be accessed by a computing device.
As shown in fig. 5, fig. 5 is a block diagram of a writing trace processing apparatus according to an exemplary embodiment, the apparatus including:
the detection module 51 is configured to detect whether a target writing trajectory occurs in the writing area, where the number of inflection points of the target writing trajectory is greater than a first preset threshold;
a determining module 52, configured to determine whether to trigger an erasing module 53 based on the target writing trajectory and a current writing state in the writing area;
the erasing module 53 is configured to determine a writing track to be erased in the writing area based on the target writing track.
The implementation process of the functions and actions of each module in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, wherein the modules described as separate parts may or may not be physically separate, and the parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution in the specification. One of ordinary skill in the art can understand and implement it without inventive effort.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Other embodiments of the present description will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This specification is intended to cover any variations, uses, or adaptations of the specification following, in general, the principles of the specification and including such departures from the present disclosure as come within known or customary practice within the art to which the specification pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the specification being indicated by the following claims.
It will be understood that the present description is not limited to the precise arrangements described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present description is limited only by the appended claims.
The above description is only a preferred embodiment of the present disclosure, and should not be taken as limiting the present disclosure, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (10)

1. A writing trajectory processing method is characterized by comprising the following steps:
detecting whether a target writing track appears in a writing area, wherein the number of inflection points of the target writing track is greater than a first preset threshold value;
determining whether to execute an erasing process based on the target writing track and the current writing state in the writing area; in the erasing process, the writing track needing to be erased in the writing area is determined based on the target writing track.
2. The method of claim 1, wherein determining whether to perform an erasing procedure based on the target writing trajectory and a current writing state in the writing area comprises:
and if the writing area does not have other writing tracks except the target writing track, determining not to execute the erasing process.
3. The method of claim 1, wherein determining whether to perform an erasing procedure based on the target writing trajectory and a current writing state in the writing area comprises:
determining other writing tracks in the writing area, which have intersection points with the target writing track, as tracks to be erased;
and determining whether to execute an erasing process or not based on the distribution condition of the intersection points between the target writing track and the track to be erased.
4. The method of claim 3, wherein each writing trace comprises at least one trace line segment, each of the trace line segments having a corresponding feature vector, the feature vector being derived based on a coordinate system to which the writing area is mapped; and determining the intersection point of the target writing track and the other writing tracks on the basis of the feature vector of each track line segment.
5. The method according to claim 3, wherein the determining whether to execute the erasing process based on the distribution of the intersection points between the target writing track and the track to be erased comprises:
and if the number of the intersection points between the target writing track and the track to be erased is less than a second preset threshold value, determining not to execute the erasing process.
6. The method according to claim 3, wherein the determining whether to execute the erasing process based on the distribution of the intersection points between the target writing track and the track to be erased comprises:
and if the number of the intersection points between the target writing track and the track to be erased is greater than or equal to a second preset threshold value, and the ratio of the sum of the lengths of all the intersection point line segments to the length of the track to be erased is greater than a third preset threshold value, determining to execute an erasing process.
7. The method of claim 1, further comprising:
and if the target writing track comprises a closed track, erasing the writing track existing in a closed area corresponding to the closed track when the erasing process is executed.
8. A writing trajectory processing device characterized by comprising:
the device comprises a detection module, a detection module and a display module, wherein the detection module is used for detecting whether a target writing track appears in a writing area, and the number of inflection points of the target writing track is greater than a first preset threshold value;
the determining module is used for determining whether to execute the trigger erasing module or not based on the target writing track and the current writing state in the writing area;
and the erasing module is used for determining the writing track needing to be erased in the writing area based on the target writing track.
9. An interactive tablet comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program implements the method of any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method of any one of claims 1 to 7.
CN202011552488.0A 2020-12-24 2020-12-24 Writing track processing method and device and interactive panel Pending CN112596661A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011552488.0A CN112596661A (en) 2020-12-24 2020-12-24 Writing track processing method and device and interactive panel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011552488.0A CN112596661A (en) 2020-12-24 2020-12-24 Writing track processing method and device and interactive panel

Publications (1)

Publication Number Publication Date
CN112596661A true CN112596661A (en) 2021-04-02

Family

ID=75201951

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011552488.0A Pending CN112596661A (en) 2020-12-24 2020-12-24 Writing track processing method and device and interactive panel

Country Status (1)

Country Link
CN (1) CN112596661A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113763492A (en) * 2021-08-26 2021-12-07 厦门鲸至教育科技有限公司 Method for improving smoothness of drawing board track
CN114924685A (en) * 2022-04-30 2022-08-19 新华三智能终端有限公司 Writing interaction method and device and writing terminal
CN116048372A (en) * 2023-03-06 2023-05-02 上海合见工业软件集团有限公司 Pen touch command system for EDA software
CN117058688A (en) * 2023-08-14 2023-11-14 北京东舟技术股份有限公司 Writing track similarity evaluation method and processing equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104391681A (en) * 2014-03-21 2015-03-04 贵阳朗玛信息技术股份有限公司 Picture-erasing realizing method and device on basis of mobile terminal
US20170109917A1 (en) * 2016-08-03 2017-04-20 Hisense Electric Co., Ltd. Method and device for erasing a writing path on an infrared electronic white board, and a system for writing on an infrared electronic white board
CN109343767A (en) * 2018-08-31 2019-02-15 湖南新云网科技有限公司 A kind of method for deleting of electronic whiteboard
CN111736745A (en) * 2020-07-27 2020-10-02 深圳市千分一智能技术有限公司 Stroke erasing method, device, equipment and readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104391681A (en) * 2014-03-21 2015-03-04 贵阳朗玛信息技术股份有限公司 Picture-erasing realizing method and device on basis of mobile terminal
US20170109917A1 (en) * 2016-08-03 2017-04-20 Hisense Electric Co., Ltd. Method and device for erasing a writing path on an infrared electronic white board, and a system for writing on an infrared electronic white board
CN109343767A (en) * 2018-08-31 2019-02-15 湖南新云网科技有限公司 A kind of method for deleting of electronic whiteboard
CN111736745A (en) * 2020-07-27 2020-10-02 深圳市千分一智能技术有限公司 Stroke erasing method, device, equipment and readable storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113763492A (en) * 2021-08-26 2021-12-07 厦门鲸至教育科技有限公司 Method for improving smoothness of drawing board track
CN114924685A (en) * 2022-04-30 2022-08-19 新华三智能终端有限公司 Writing interaction method and device and writing terminal
CN116048372A (en) * 2023-03-06 2023-05-02 上海合见工业软件集团有限公司 Pen touch command system for EDA software
CN117058688A (en) * 2023-08-14 2023-11-14 北京东舟技术股份有限公司 Writing track similarity evaluation method and processing equipment
CN117058688B (en) * 2023-08-14 2024-04-05 北京东舟技术股份有限公司 Writing track similarity evaluation method and processing equipment

Similar Documents

Publication Publication Date Title
CN112596661A (en) Writing track processing method and device and interactive panel
CN110058782B (en) Touch operation method and system based on interactive electronic whiteboard
US6249606B1 (en) Method and system for gesture category recognition and training using a feature vector
US9063647B2 (en) Multi-touch uses, gestures, and implementation
US7256773B2 (en) Detection of a dwell gesture by examining parameters associated with pen motion
CN112764616B (en) Method, device and equipment for accelerating handwriting of electronic ink screen and storage medium
CN106919333B (en) Method and device for recording writing content on electronic writing board
US20170109917A1 (en) Method and device for erasing a writing path on an infrared electronic white board, and a system for writing on an infrared electronic white board
US8542207B1 (en) Pencil eraser gesture and gesture recognition method for touch-enabled user interfaces
CN108334229B (en) Method, device and equipment for adjusting writing track and readable storage medium
CN104238768A (en) Handwriting input apparatus and control method
CN109753179B (en) User operation instruction processing method and handwriting reading equipment
US10359920B2 (en) Object management device, thinking assistance device, object management method, and computer-readable storage medium
US20110238612A1 (en) Multi-factor probabilistic model for evaluating user input
US20170242579A1 (en) Adaptive ink prediction
CN110297558B (en) Multi-touch control method and device, intelligent interaction panel and storage medium
CN111459593B (en) Drawing method, device and equipment
CN109298809A (en) A kind of touch action recognition methods, device and terminal device
CN113311981A (en) Erasing method and device, intelligent terminal and computer readable storage medium
US20120050171A1 (en) Single touch process to achieve dual touch user interface
CN113296616B (en) Pen point selection method and device and intelligent terminal
US9996256B2 (en) Method for erasing electronic handwriting on a clipboard
US20120299837A1 (en) Identifying contacts and contact attributes in touch sensor data using spatial and temporal features
US20230343125A1 (en) Handwriting Recognition Method and Apparatus, Handwriting Recognition System and Interactive Display
JP5482225B2 (en) Electronics

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210402