CN111736745B - Stroke erasing method, device, equipment and readable storage medium - Google Patents

Stroke erasing method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN111736745B
CN111736745B CN202010727470.3A CN202010727470A CN111736745B CN 111736745 B CN111736745 B CN 111736745B CN 202010727470 A CN202010727470 A CN 202010727470A CN 111736745 B CN111736745 B CN 111736745B
Authority
CN
China
Prior art keywords
erased
line segment
erasing
stroke
rectangle
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
CN202010727470.3A
Other languages
Chinese (zh)
Other versions
CN111736745A (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.)
Shenzhen Qianfenyi Intelligent Technology Co Ltd
Original Assignee
Shenzhen Qianfenyi Intelligent 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 Shenzhen Qianfenyi Intelligent Technology Co Ltd filed Critical Shenzhen Qianfenyi Intelligent Technology Co Ltd
Priority to CN202010727470.3A priority Critical patent/CN111736745B/en
Publication of CN111736745A publication Critical patent/CN111736745A/en
Application granted granted Critical
Publication of CN111736745B publication Critical patent/CN111736745B/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
    • 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

Abstract

The invention discloses a stroke erasing method, a device, equipment and a readable storage medium, wherein the stroke erasing method reduces the processing range of writing equipment by converting strokes to be erased into a plurality of line segments; the intersection judgment is carried out on each line segment in the stroke to be erased, and the whole stroke where the line segment intersected with the erasing track is located is directly erased, so that the erasing efficiency of the stroke to be erased by the writing equipment is improved; the distance judgment is further carried out on the line segment which is not intersected with the erasing track in the strokes to be erased, so that the strokes of the line segment which is less than the threshold value in the distance from the erasing track can be erased, the whole scheme of the invention is further perfected, and the strokes meeting the conditions can be quickly screened out from the strokes to be erased by the writing equipment without consuming a large amount of system resources for erasing.

Description

Stroke erasing method, device, equipment and readable storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method, an apparatus, a device, and a readable storage medium for erasing a stroke.
Background
With the rapid development of writing equipment technology, various intelligent writing equipment is widely applied to daily life of people, and people can conveniently write various strokes on the writing equipment and erase the strokes. When the existing writing equipment carries out stroke erasing operation, the area where the erased stroke is located needs to be determined firstly, then the whole area to be erased needs to be subjected to comparative identification and other operations, the process is complicated, more system resources in the writing equipment need to be consumed, and therefore the technical problem that the efficiency of the existing writing equipment for erasing the stroke is low is caused.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a stroke erasing method, and aims to solve the technical problem that the stroke erasing efficiency of the existing writing equipment is low.
In order to achieve the above object, the present invention provides a stroke erasing method, including:
determining an erasing track and a plurality of strokes to be erased, and converting each stroke to be erased into a plurality of line segments to be erased;
judging whether each line segment to be erased is intersected with the erasing track;
if the line segment to be erased is intersected with the erasing track, determining the line segment to be erased as an intersected line segment so as to erase the stroke to be erased, where the intersected line segment is located;
if the line segment to be erased and the erasing track are not intersected, judging whether the line segment to be erased is a neighboring line segment which is close to the erasing track or not based on a preset distance threshold value, and erasing the stroke to be erased, where the neighboring line segment is located, when the line segment to be erased is the neighboring line segment.
Optionally, the step of determining whether each line segment to be erased intersects with the erase track includes:
generating a first rectangle corresponding to the erasing track, and determining the azimuth type of the line segment to be erased;
when the orientation type of the line segment to be erased is not a horizontal or vertical orientation, generating a second rectangle taking the line segment to be erased as a diagonal line, and judging whether the second rectangle is overlapped with the first rectangle;
and if the second rectangle is not overlapped with the first rectangle, judging that the line segment to be erased is not intersected with the erasing track.
Optionally, after the step of determining whether the second rectangle overlaps the first rectangle, the method further includes:
if the second rectangle is overlapped with the first rectangle, judging whether two segment end points of the segment to be erased are positioned on two sides of the erasing track and whether two track end points of the erasing track are positioned on two sides of the segment to be erased one by one;
if so, judging that the line segment to be erased is intersected with the erasing track;
if not, judging that the line segment to be erased is not intersected with the erasing track;
and traversing each segment to be erased in each stroke to be erased.
Optionally, after the step of generating the first rectangle corresponding to the erasing track and determining the azimuth type of the line segment to be erased, the method further includes:
when the orientation type of the line segment to be erased is a horizontal or vertical orientation, generating a third rectangle which takes the line segment to be erased in the horizontal orientation as a first side length and takes the distance threshold as a second side length perpendicular to the first side length, or a fourth rectangle which takes the line segment to be erased in the vertical orientation as a third side length and takes the distance threshold as a fourth side length perpendicular to the third side length;
determining whether the third rectangle or the fourth rectangle overlaps the first rectangle;
if the third rectangle or the fourth rectangle is overlapped with the first rectangle, executing a step of judging whether two segment end points of the segment to be erased are positioned at two sides of the erasing track and whether two track end points of the erasing track are positioned at two sides of the segment to be erased;
and if the third rectangle or the fourth rectangle is not overlapped with the first rectangle, judging that the line segment to be erased and the erasing track are not intersected.
Optionally, if the line segment to be erased and the erasing track are not intersected, determining whether the line segment to be erased is an adjacent line segment adjacent to the erasing track based on a preset distance threshold, so that when the line segment to be erased is the adjacent line segment, the step of erasing the stroke to be erased where the adjacent line segment is located includes:
if the line segment to be erased does not intersect with the erasing track, determining a circular area by taking an erasing drop point of the erasing track as a circle center and taking the distance threshold as a radius;
judging whether the line segment to be erased is in the circular area;
and if the line segment to be erased is in the circular area, judging that the line segment to be erased is the adjacent line segment so as to erase the stroke to be erased, wherein the adjacent line segment is located in the stroke to be erased.
Optionally, if the line segment to be erased and the erasing track are not intersected, determining whether the line segment to be erased is an adjacent line segment adjacent to the erasing track based on a preset distance threshold, so that when the line segment to be erased is the adjacent line segment, after the step of erasing the stroke to be erased where the adjacent line segment is located, the method further includes:
when a distance threshold changing instruction is received, a target distance threshold determined based on the distance threshold changing instruction is obtained, and the distance threshold is updated to be the target distance threshold.
Optionally, before the step of converting the stroke to be erased into a plurality of line segments to be erased, the method further includes:
acquiring a plurality of sampling points corresponding to the strokes to be erased according to a preset sampling frequency, and acquiring the distance between adjacent sampling points to determine the writing speed when the strokes to be erased are written;
and adding a plurality of auxiliary points among the plurality of sampling points according to the writing speed so as to take the plurality of sampling points and preset auxiliary points together as line segment end points of the plurality of line segments to be erased.
In addition, to achieve the above object, the present invention also provides a stroke erasing apparatus, including:
the erasing line segment conversion module is used for determining an erasing track and a plurality of strokes to be erased and converting each stroke to be erased into a plurality of line segments to be erased;
the stroke intersection judging module is used for judging whether each line segment to be erased intersects with the erasing track;
the intersecting line segment determining module is used for determining the line segment to be erased as an intersecting line segment if the line segment to be erased intersects with the erasing track so as to erase the stroke to be erased, where the intersecting line segment is located;
and the adjacent line segment determining module is used for judging whether the line segment to be erased is an adjacent line segment adjacent to the erasing track or not based on a preset distance threshold if the line segment to be erased is not intersected with the erasing track, so that the stroke to be erased, where the adjacent line segment is located, is erased when the line segment to be erased is the adjacent line segment.
Optionally, the stroke intersection judging module includes:
the first rectangle generating unit is used for generating a first rectangle corresponding to the erasing track and determining the orientation type of the line segment to be erased;
a first overlap determination unit, configured to generate a second rectangle with the line segment to be erased as a diagonal when the orientation type of the line segment to be erased is not a horizontal or vertical orientation, and determine whether the second rectangle overlaps with the first rectangle;
and the first overlap determination unit is used for determining that the line segment to be erased does not intersect with the erasing track if the second rectangle is not overlapped with the first rectangle.
Optionally, the stroke intersection judging module further includes:
an endpoint intersection judging unit, configured to judge, if the second rectangle overlaps the first rectangle, whether two segment endpoints of the segment to be erased are located on two sides of the erasing track, and whether two track endpoints of the erasing track are located on two sides of the segment to be erased;
the end point intersection judging unit is used for judging that the line segment to be erased is intersected with the erasing track if the line segment to be erased is intersected with the erasing track;
if not, judging that the line segment to be erased is not intersected with the erasing track;
and traversing each segment to be erased in each stroke to be erased.
Optionally, the stroke intersection judging module further includes:
the other rectangle generating unit is used for generating a third rectangle which takes the line segment to be erased in the horizontal direction as a first side length and takes the distance threshold as a second side length perpendicular to the first side length, or a fourth rectangle which takes the line segment to be erased in the vertical direction as a third side length and takes the distance threshold as a fourth side length perpendicular to the third side length when the azimuth type of the line segment to be erased is a horizontal or vertical azimuth;
a second overlap determination unit configured to determine whether the third rectangle or the fourth rectangle overlaps the first rectangle;
a second overlap determination unit, configured to perform, if the third rectangle or the fourth rectangle overlaps the first rectangle, a step of determining whether two segment endpoints of the to-be-erased segment are located on two sides of the erase track, and whether two track endpoints of the erase track are located on two sides of the to-be-erased segment;
and if the third rectangle or the fourth rectangle is not overlapped with the first rectangle, judging that the line segment to be erased and the erasing track are not intersected.
Optionally, the approach line segment determining module includes:
a circular area determining unit, configured to determine a circular area by using an erasing drop point of the erasing track as a circle center and using the distance threshold as a radius if the line segment to be erased does not intersect with the erasing track;
the circular area judging unit is used for judging whether the line segment to be erased is in the circular area;
and the adjacent line segment determining unit is used for judging the line segment to be erased as the adjacent line segment if the line segment to be erased is in the circular area so as to erase the stroke to be erased, wherein the adjacent line segment is located in the stroke to be erased.
Optionally, the stroke erasing apparatus further includes:
and the distance threshold updating module is used for acquiring the target distance threshold determined based on the distance threshold changing instruction when the distance threshold changing instruction is received, so as to update the distance threshold to be the target distance threshold.
Optionally, the erase line segment conversion module further includes:
the writing speed determining unit is used for acquiring a plurality of sampling points corresponding to the strokes to be erased according to a preset sampling frequency and acquiring the distance between adjacent sampling points so as to determine the writing speed when the strokes to be erased are written;
and the line segment endpoint determining unit is used for adding a plurality of auxiliary points among the plurality of sampling points according to the writing speed so as to take the plurality of sampling points and preset auxiliary points together as line segment endpoints of the plurality of line segments to be erased.
Further, to achieve the above object, the present invention also provides a stroke erasing apparatus including: a memory, a processor and a stroke erase program stored on the memory and executable on the processor, the stroke erase program when executed by the processor implementing the steps of the stroke erase method as described above.
Furthermore, to achieve the above object, the present invention also provides a computer readable storage medium having a stroke erasing program stored thereon, which when executed by a processor implements the steps of the stroke erasing method as described above.
The invention provides a stroke erasing method, a stroke erasing device, stroke erasing equipment and a computer readable storage medium. The stroke erasing method comprises the steps of determining an erasing track and a plurality of strokes to be erased, and converting each stroke to be erased into a plurality of line segments to be erased; judging whether each line segment to be erased is intersected with the erasing track; if the line segment to be erased is intersected with the erasing track, determining the line segment to be erased as an intersected line segment so as to erase the stroke to be erased, where the intersected line segment is located; if the line segment to be erased and the erasing track are not intersected, judging whether the line segment to be erased is a neighboring line segment which is close to the erasing track or not based on a preset distance threshold value, and erasing the stroke to be erased, where the neighboring line segment is located, when the line segment to be erased is the neighboring line segment. By the mode, the strokes to be erased are converted into the line segments, so that the processing range of the writing equipment is reduced; the intersection judgment is carried out on each line segment in the stroke to be erased, and the whole stroke where the line segment intersected with the erasing track is located is directly erased, so that the erasing efficiency of the stroke to be erased by the writing equipment is improved; the distance judgment is further carried out on the line segment which is not intersected with the erasing track in the strokes to be erased, so that the strokes of the line segment which is less than the threshold value in the distance from the erasing track can be erased, the whole scheme of the invention is further perfected, the strokes meeting the conditions can be quickly screened out from the strokes to be erased by the writing equipment without consuming a large amount of system resources, and the technical problem that the stroke erasing efficiency of the existing writing equipment is low is solved.
Drawings
FIG. 1 is a schematic diagram of a stroke erasing device of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first exemplary embodiment of a stroke erasing method according to the present invention;
FIG. 3 is a schematic diagram illustrating determination of intersection of line segments according to an embodiment of the stroke erasing method of the present invention;
FIG. 4 is a diagram illustrating a comparison between a distance between a line segment and a predetermined distance threshold according to an embodiment of the stroke erasing method of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Fig. 1 is a schematic diagram of a structure of a stroke erasing device in a hardware operating environment according to an embodiment of the present invention.
The stroke erasing device provided by the embodiment of the invention is an intelligent writing device with a touch screen.
As shown in fig. 1, the stroke erasing apparatus may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The optional user interface 1003 may include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory). The memory 1005 may alternatively be a memory device separate from the processor 1001 described above.
Those skilled in the art will appreciate that the configuration of the stroke erasing device shown in fig. 1 does not constitute a limitation of the stroke erasing device and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, memory 1005, which is a type of computer storage medium, may include an operating system, a network communication module, a user interface module, and a stroke erase program.
In the stroke erasing device shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to invoke the stroke erase routine stored in the memory 1005 and perform the following operations:
determining an erasing track and a plurality of strokes to be erased, and converting each stroke to be erased into a plurality of line segments to be erased;
judging whether each line segment to be erased is intersected with the erasing track;
if the line segment to be erased is intersected with the erasing track, determining the line segment to be erased as an intersected line segment so as to erase the stroke to be erased, where the intersected line segment is located;
if the line segment to be erased and the erasing track are not intersected, judging whether the line segment to be erased is a neighboring line segment which is close to the erasing track or not based on a preset distance threshold value, and erasing the stroke to be erased, where the neighboring line segment is located, when the line segment to be erased is the neighboring line segment.
Further, the step of determining whether each of the line segments to be erased intersects with the erase track includes:
generating a first rectangle corresponding to the erasing track, and determining the azimuth type of the line segment to be erased;
when the orientation type of the line segment to be erased is not a horizontal or vertical orientation, generating a second rectangle taking the line segment to be erased as a diagonal line, and judging whether the second rectangle is overlapped with the first rectangle;
and if the second rectangle is not overlapped with the first rectangle, judging that the line segment to be erased is not intersected with the erasing track.
Further, after the step of determining whether the second rectangle overlaps the first rectangle, the processor 1001 may call a stroke erasing procedure stored in the memory 1005, and further perform the following operations:
if the second rectangle is overlapped with the first rectangle, judging whether two segment end points of the segment to be erased are positioned on two sides of the erasing track and whether two track end points of the erasing track are positioned on two sides of the segment to be erased one by one;
if so, judging that the line segment to be erased is intersected with the erasing track;
if not, judging that the line segment to be erased is not intersected with the erasing track;
and traversing each segment to be erased in each stroke to be erased.
Further, after the step of generating the first rectangle corresponding to the erasing track and determining the orientation type of the line segment to be erased, the processor 1001 may call the stroke erasing program stored in the memory 1005, and further perform the following operations:
when the orientation type of the line segment to be erased is a horizontal or vertical orientation, generating a third rectangle which takes the line segment to be erased in the horizontal orientation as a first side length and takes the distance threshold as a second side length perpendicular to the first side length, or a fourth rectangle which takes the line segment to be erased in the vertical orientation as a third side length and takes the distance threshold as a fourth side length perpendicular to the third side length;
determining whether the third rectangle or the fourth rectangle overlaps the first rectangle;
if the third rectangle or the fourth rectangle is overlapped with the first rectangle, executing a step of judging whether two segment end points of the segment to be erased are positioned at two sides of the erasing track and whether two track end points of the erasing track are positioned at two sides of the segment to be erased;
and if the third rectangle or the fourth rectangle is not overlapped with the first rectangle, judging that the line segment to be erased and the erasing track are not intersected.
Further, if the line segment to be erased and the erasing track are not intersected, determining whether the line segment to be erased is an adjacent line segment adjacent to the erasing track based on a preset distance threshold, so that when the line segment to be erased is the adjacent line segment, the step of erasing the stroke to be erased where the adjacent line segment is located includes:
if the line segment to be erased does not intersect with the erasing track, determining a circular area by taking an erasing drop point of the erasing track as a circle center and taking the distance threshold as a radius;
judging whether the line segment to be erased is in the circular area;
and if the line segment to be erased is in the circular area, judging that the line segment to be erased is the adjacent line segment so as to erase the stroke to be erased, wherein the adjacent line segment is located in the stroke to be erased.
Further, if the line segment to be erased and the erasing track are not intersected, determining whether the line segment to be erased is an adjacent line segment adjacent to the erasing track based on a preset distance threshold, so that after the step of erasing the to-be-erased stroke where the adjacent line segment is located when the line segment to be erased is the adjacent line segment, the processor 1001 may call a stroke erasing program stored in the memory 1005, and further perform the following operations:
when a distance threshold changing instruction is received, a target distance threshold determined based on the distance threshold changing instruction is obtained, and the distance threshold is updated to be the target distance threshold.
Further, before the step of converting the stroke to be erased into a plurality of line segments to be erased, the processor 1001 may call a stroke erasing program stored in the memory 1005, and further perform the following operations:
acquiring a plurality of sampling points corresponding to the strokes to be erased according to a preset sampling frequency, and acquiring the distance between adjacent sampling points to determine the writing speed when the strokes to be erased are written;
and adding a plurality of auxiliary points among the plurality of sampling points according to the writing speed so as to take the plurality of sampling points and preset auxiliary points together as line segment end points of the plurality of line segments to be erased.
Based on the hardware structure, the invention provides various embodiments of the stroke erasing method.
With the rapid development of writing equipment technology, various intelligent writing equipment is widely applied to daily life of people, and people can conveniently write various strokes on the writing equipment and erase the strokes. When the existing writing equipment carries out stroke erasing operation, the area where the erased stroke is located needs to be determined firstly, then the whole area to be erased needs to be subjected to comparative identification and other operations, the process is complicated, more system resources in the writing equipment need to be consumed, and therefore the technical problem that the efficiency of the existing writing equipment for erasing the stroke is low is caused.
In order to solve the technical problem, the invention provides a stroke erasing method, namely, a stroke to be erased is converted into a plurality of line segments, so that the processing range of writing equipment is reduced; the intersection of each line segment in the stroke to be erased is judged, and the line segment intersected with the erasing track is directly erased, so that the erasing efficiency of the stroke to be erased by the writing equipment is improved; the distance judgment is further carried out on the line segment which is not intersected with the erasing track in the stroke to be erased, so that the line segment which is less than the threshold value in the distance from the erasing track can be erased, the integral scheme of the invention is further perfected, the line segment which needs to be erased can be screened out from a plurality of line segments of the stroke to be erased quickly by the writing equipment without consuming a large amount of system resources, and the technical problem that the stroke erasing efficiency of the existing writing equipment is low is solved. The stroke erasing method is applied to stroke erasing equipment, and is preferably an intelligent writing book.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of a stroke erasing method.
A first embodiment of the present invention provides a stroke erasing method, including the steps of:
step S10, determining an erasing track and a plurality of strokes to be erased, and converting each stroke to be erased into a plurality of line segments to be erased;
in this embodiment, the present invention can be implemented based on TouchGFX (tai). TouchGFX is an embedded Graphical User Interface (GUI) middleware software that can be used to develop GUI interfaces. The strokes to be erased can be one or more of point, straight line, curve and other various forms of strokes. The erasing track may be a single erasing track or a multiple erasing track, and the shape of the stroke to be erased and the erasing times of the erasing track are not specifically limited in this embodiment. It should be noted that, due to the limitations of the processing capability and the storage space of the writing device, all the pixels in the written stroke cannot be collected, and therefore, the pixels in the written stroke are collected at intervals according to the preset sampling frequency. For example, the sampling frequency of the current intelligent book is 50Hz, the total number of pixels of the written stroke in 1 second is 200, 4 points are collected in each period of the intelligent book as basic points forming the written stroke, adjacent basic points are connected in pairs in sequence, and a plurality of connected line segments can be used as the written stroke in the second. Accordingly, various different shaped writing strokes are represented by a plurality of line segments in the writing device. The erase trajectory is likewise represented by the form of a line segment. Specifically, when the user uses a writing book to write strokes, the user intends to erase a currently drawn curve, and the curve is actually formed by connecting 10 line segments in the writing book. The user selects an eraser tool in the writing book to erase the curve, and the writing book detects and acquires an erasing track of the current user when the user uses the eraser.
Step S20, judging whether each line segment to be erased intersects with the erasing track;
in this embodiment, after detecting the current erasing track, the writing device determines the intersection between the multiple to-be-erased segments constituting the to-be-erased stroke and the erasing track. The manner of determining whether two line segments intersect may be various. For example, the concept of fast repulsion experiment may be adopted, when both the two line segments are not horizontal line segments or vertical line segments, the two line segments are respectively used as diagonals to make two rectangles, and the intersection condition of the two line segments of the diagonals is obtained by judging the intersection condition of the two rectangles. If two line segments are named as a line segment X and a line segment Y, if the line segment X intersects with the line segment Y, two end points of the line segment X are certainly positioned at two sides of the line segment Y, and meanwhile, two end points of the line segment Y are also certainly positioned at two sides of the line segment X, so that whether the two line segments intersect or not is judged.
Step S30, if the line segment to be erased intersects with the erasing track, determining the line segment to be erased as an intersecting line segment so as to erase the stroke to be erased, where the intersecting line segment is located;
in this embodiment, the intersecting line segment is a line segment that intersects with a line segment corresponding to the erasing track in the plurality of line segments to be erased, and the intersecting line segment may be one line segment or a plurality of line segments in the plurality of line segments to be erased, which is not limited in this embodiment. Specifically, following the setting in the specific embodiment of step S10, after the script is determined by the line segment intersection, it is determined that there are 3 line segments that intersect with the line segment corresponding to the erasing trace in the 10 line segments corresponding to the current curve to be erased, and the script may determine the 3 line segments as the intersecting line segments, and perform the erasing operation on the whole stroke where the 3 intersecting line segments are located, that is, erase the 10 line segments in the curve. In practical application, it is also unnecessary to judge each line segment in the whole stroke, and the whole stroke of an intersected line segment can be erased when an intersected line segment exists in a certain stroke.
Step S40, if the line segment to be erased does not intersect with the erasing track, determining whether the line segment to be erased is an adjacent line segment adjacent to the erasing track based on a preset distance threshold,
and step S50, when the line segment to be erased is an adjacent line segment, erasing the stroke to be erased where the adjacent line segment is located.
In this embodiment, the preset distance threshold may be flexibly set according to actual situations, which is not specifically limited in this embodiment. Specifically, if the current stroke to be erased is composed of five line segments, and the writing device determines that the five line segments are not intersected with the erasing track. Assuming that the preset distance threshold is 5 pixels, the writing device determines a circle by taking the terminal of the current erasing track as the center of the circle and 5 pixels as the radius, detects that three line segments are partially or completely positioned in the circle, takes the three line segments as adjacent line segments, and erases the whole stroke where the three adjacent line segments are positioned, namely five line segments in the stroke. In practical application, each line segment in the whole stroke does not need to be judged, and the whole stroke of the adjacent line segment can be erased when an adjacent line segment exists in a certain stroke.
In the embodiment, an erasing track and a plurality of strokes to be erased are determined, and each stroke to be erased is converted into a plurality of line segments to be erased; judging whether each line segment to be erased is intersected with the erasing track; if the line segment to be erased is intersected with the erasing track, determining the line segment to be erased as an intersected line segment so as to erase the stroke to be erased, where the intersected line segment is located; if the line segment to be erased and the erasing track are not intersected, judging whether the line segment to be erased is a neighboring line segment which is close to the erasing track or not based on a preset distance threshold value, and erasing the stroke to be erased, where the neighboring line segment is located, when the line segment to be erased is the neighboring line segment. By the mode, the strokes to be erased are converted into the line segments, so that the processing range of the writing equipment is reduced; the intersection judgment is carried out on each line segment in the stroke to be erased, and the whole stroke where the line segment intersected with the erasing track is located is directly erased, so that the erasing efficiency of the stroke to be erased by the writing equipment is improved; the distance judgment is further carried out on the line segment which is not intersected with the erasing track in the strokes to be erased, so that the strokes of the line segment which is less than the threshold value in the distance from the erasing track can be erased, the whole scheme of the invention is further perfected, the strokes meeting the conditions can be quickly screened out from the strokes to be erased by the writing equipment without consuming a large amount of system resources, and the technical problem that the stroke erasing efficiency of the existing writing equipment is low is solved.
Further, not shown, a second embodiment of the stroke erasing method of the present invention is proposed based on the first embodiment shown in fig. 2, and in this embodiment, the step S20 includes:
generating a first rectangle corresponding to the erasing track, and determining the azimuth type of the line segment to be erased;
when the orientation type of the line segment to be erased is not a horizontal or vertical orientation, generating a second rectangle taking the line segment to be erased as a diagonal line, and judging whether the second rectangle is overlapped with the first rectangle;
and if the second rectangle is not overlapped with the first rectangle, judging that the line segment to be erased is not intersected with the erasing track.
In this embodiment, the first rectangle is a rectangle with a line segment corresponding to the erase track as a diagonal line or a side length. If the line segment corresponding to the erasing track is a horizontal line segment or a vertical line segment, the line segment and a preset distance threshold are respectively used as the length and the width of the rectangle to form the first rectangle; if the line segment corresponding to the erasing track is not the horizontal or vertical line segment, the first rectangle is constructed by taking the line segment as the diagonal line. The second rectangle is a rectangle with the line segment to be erased as a diagonal. The writing equipment generates a first rectangle corresponding to the line segment to be erased according to the position condition of the line segment to be erased, and detects the orientation of each current line segment to be erased. If the line segment to be erased is a horizontal line segment, the writing device generates a second rectangle which takes the line segment to be erased as a long line and takes a preset distance threshold value as a wide line; and if the line segment to be erased is a vertical line segment, the writing equipment generates a second rectangle which takes the line segment to be erased as the width and takes a preset distance threshold value as the length. The writing device can judge whether a plurality of second rectangles taking each line segment to be erased as diagonal lines are overlapped with the first rectangles one by one. If the writing device determines that the second rectangle corresponding to the currently detected segment to be erased is not overlapped with the first rectangle, the segment to be erased and the erasing track are not intersected until the judgment of each second rectangle corresponding to each stroke to be erased is completed.
Further, in this embodiment, after the step of determining whether the second rectangle overlaps the first rectangle, the method further includes:
if the second rectangle is overlapped with the first rectangle, judging whether two segment end points of the segment to be erased are positioned on two sides of the erasing track and whether two track end points of the erasing track are positioned on two sides of the segment to be erased one by one;
if so, judging that the line segment to be erased is intersected with the erasing track;
if not, judging that the line segment to be erased is not intersected with the erasing track;
and traversing each segment to be erased in each stroke to be erased.
In this embodiment, if the writing device determines that the first rectangle overlaps the second rectangle, it needs to further determine whether the line segments intersect by determining the end point position of each line segment to be erased. If the writing equipment judges that two segment end points of the currently detected segment to be erased are positioned at two sides of the currently erased track and two track end points of the erased track are also positioned at two sides of the segment to be erased, the segment to be erased and the erased track are intersected; if the writing equipment judges that two line segment end points of the currently detected line segment to be erased are positioned on the same side of the currently erased track, and two end points of the erased track are positioned on two sides of the line segment to be erased; or two line segment end points of the line segment to be erased are positioned at two sides of the current erasing track, and two end points of the erasing track are positioned at the same side of the line segment to be erased; or two segment end points of the segment to be erased are positioned on the same side of the current erasing track, and two end points of the erasing track are also positioned on the same side of the segment to be erased, so that the segment to be erased and the erasing track can be judged to be disjoint until all the segments to be erased of the current stroke to be erased are traversed.
As a specific embodiment, as shown in fig. 3, a circle C in the drawing is an erasing landing point of an erasing track, a line segment S connected to the circle C represents the erasing track, an erasing direction is a direction pointing to the circle, and the other five connected line segments L1, L2, L3, L4, and L5 are to-be-erased line segments corresponding to the same stroke to be erased. The end point position of each line segment in the five line segments needs to be detected in the writing book, and the end points at two sides of L1, L2 and L3 are all detected to be positioned at the left side of the erasing track S; two end points of the L4 are respectively positioned at the left side and the right side of the erasing track S, and two end points of the erasing track S are also positioned at the two sides of the L4; and the end points of the L5 are located at the right side of the erase track S. The handwriting book can determine that L1, L2, L3 and L5 do not intersect with the erasing track, and L4 is an intersecting line segment, so that the whole stroke to be erased can be erased.
Further, in this embodiment, after the step of generating the first rectangle corresponding to the erasing track and determining the orientation type of the line segment to be erased, the method further includes:
when the orientation type of the line segment to be erased is a horizontal or vertical orientation, generating a third rectangle which takes the line segment to be erased in the horizontal orientation as a first side length and takes the distance threshold as a second side length perpendicular to the first side length, or a fourth rectangle which takes the line segment to be erased in the vertical orientation as a third side length and takes the distance threshold as a fourth side length perpendicular to the third side length;
determining whether the third rectangle or the fourth rectangle overlaps the first rectangle;
if the third rectangle or the fourth rectangle is overlapped with the first rectangle, executing a step of judging whether two segment end points of the segment to be erased are positioned at two sides of the erasing track and whether two track end points of the erasing track are positioned at two sides of the segment to be erased;
and if the third rectangle or the fourth rectangle is not overlapped with the first rectangle, judging that the line segment to be erased and the erasing track are not intersected.
In this embodiment, the first side length is a horizontal line segment to be erased, the second side length is a vertical rectangular side length connected to the first side length, and the length is a distance threshold. The third side length is a vertical line segment to be erased, the fourth side length is a rectangular side length which is connected with and vertical to the third side length and is a distance threshold value. The third rectangle is a rectangle with the first side length being a line segment to be erased with the azimuth type being the horizontal azimuth, the second side length being a preset distance threshold, the fourth rectangle is a rectangle with the third side length being a line segment to be erased with the azimuth type being the vertical azimuth, and the fourth side length being a preset distance threshold, and it should be noted that the number of the third rectangle or the fourth rectangle corresponding to a plurality of line segments to be erased may be zero, one, or multiple. Taking the determination process of a single line segment to be erased as an example, if the writing device detects that the orientation type of the current line segment to be erased is a horizontal orientation, generating a third rectangle which takes the line segment to be erased in the horizontal orientation as long or wide and takes a preset distance threshold as wide or long, and determining whether the third rectangle is overlapped with the first rectangle, if the third rectangle is not overlapped with the first rectangle, further determining that the line segment to be erased in the horizontal orientation corresponding to the third rectangle is not intersected with the erasing track; if the third rectangle overlaps the first rectangle, the above-mentioned step of determining the position of the end point can be performed to further determine. If the writing equipment detects that the azimuth type of the current line segment to be erased is a vertical azimuth, generating a fourth rectangle which takes the line segment to be erased in the vertical azimuth as wide or long and takes a preset distance threshold as long or wide, judging whether the fourth rectangle is overlapped with the first rectangle, and if the fourth rectangle is not overlapped with the first rectangle, further judging that the line segment to be erased in the vertical azimuth corresponding to the fourth rectangle is not intersected with the erasing track; if the fourth rectangle overlaps the first rectangle, the above-mentioned step of determining the position of the end point can be performed to further determine.
In this embodiment, further through the thought of the rapid repulsion experiment and the thought of the straddle experiment, the intersection between the line segment to be erased and the erasing track is judged, and different rectangle generation modes are provided for different directions of the line segment to be erased, so that the judgment of the intersection of the line segment to be erased can be rapidly completed by the writing device in various practical application scenes, and the erasing efficiency of the writing device is improved.
Further, not shown, a third embodiment of the stroke erasing method of the present invention is proposed based on the first embodiment shown in fig. 2 described above. In the present embodiment, step S40 includes:
if the line segment to be erased does not intersect with the erasing track, determining a circular area by taking an erasing drop point of the erasing track as a circle center and taking the distance threshold as a radius;
judging whether the line segment to be erased is in the circular area;
and if the line segment to be erased is in the circular area, judging that the line segment to be erased is the adjacent line segment so as to erase the stroke to be erased, wherein the adjacent line segment is located in the stroke to be erased.
In this embodiment, the erasing drop point is a final stopping position of the erasing track, and it should be noted that, in the writing device, if the writing device determines that the currently detected segment to be erased does not intersect with the erasing track, the erasing drop point is used as a center of a circle, and the preset distance threshold is used as a radius to determine a circular area. The writing device judges whether each line segment to be erased is located in the circular area one by one. It should be noted that, no matter whether the line segment to be erased is partially located in the circular area or completely located in the circular area, the writing device determines that the erased line segment is located in the circular area. If the writing device judges that the segment to be erased is in the circular area, the segment to be erased can be further judged to be an adjacent segment, and the whole stroke where the adjacent segment is located is erased.
As a specific example, as shown in fig. 4. The circle in the figure is the erasing landing point of the erasing track, the line segment C connected with the circle represents the erasing track, the erasing direction is the direction pointing to the circle, and the other five connected line segments L1, L2, L3, L4 and L5 are the line segments to be erased corresponding to the same stroke to be erased. The distance from each of the ten line segments to the circular area needs to be detected, and it can be detected that L1, L2, L3 and L5 are not all in the circular area, and L4 is tangent to the circular area. The writing book can determine that L4 is an adjacent line segment, and the whole stroke to be erased where L4 is located is erased, that is, L1, L2, L3, L4 and L5 are erased.
Further, in this embodiment, after step S40, the method further includes:
when a distance threshold changing instruction is received, a target distance threshold determined based on the distance threshold changing instruction is obtained, and the distance threshold is updated to be the target distance threshold.
In this embodiment, when receiving a distance threshold value change instruction sent by a user to change a preset distance threshold value, the writing device obtains a target distance threshold value updated by the user in the instruction, and updates the originally pre-stored preset distance threshold value interval to the target distance threshold value. For example, the preset distance threshold value pre-stored in the book is 5 pixels, the user enters the threshold value modification interface, and inputs the target distance threshold value of 8 pixels in the input box, so that the book receives the current target distance threshold value, and the preset distance threshold value can be updated from 5 pixels to 8 pixels.
Further, in this embodiment, before the step of converting the stroke to be erased into a plurality of line segments to be erased, the method further includes:
acquiring a plurality of sampling points corresponding to the strokes to be erased according to a preset sampling frequency, and acquiring the distance between adjacent sampling points to determine the writing speed when the strokes to be erased are written;
and adding a plurality of auxiliary points among the plurality of sampling points according to the writing speed so as to take the plurality of sampling points and preset auxiliary points together as line segment end points of the plurality of line segments to be erased.
In this embodiment, due to the limitations of the processing capability and the storage space of the writing device, all the pixel points in the written stroke cannot be collected, and therefore, the pixel points of the written stroke are collected at intervals according to the preset sampling frequency. And calculating the writing speed of the user when writing the stroke according to the distance between the adjacent sampling points, wherein 0-5 auxiliary points can be inserted between every two adjacent sampling points according to different speeds, and the sampling points and the auxiliary points are used as end points of the line segment. For example, the sampling frequency of the current intelligent book is 50Hz, the total number of pixel points of the written stroke in 1 second is 200, then four sampling points of the intelligent book are collected in 1 second as the line segment end points forming the written stroke, 2 auxiliary points are inserted between every two adjacent sampling points, the total 10 end points are connected two by two to form nine line segments, and the nine line segments can be used as the written stroke in the second.
In the embodiment, the erasable adjacent line segment is determined by further judging the distance between the non-intersecting line segment in the stroke to be erased and the erasing track, so that the reasonability and the practicability of the invention are improved, and the erasing efficiency of the writing equipment is further improved after the combination with the intersection judgment; by setting the changeable preset distance threshold, a user can flexibly adjust the erasing range according to actual requirements, so that the use convenience is improved; by converting the strokes to be erased into a plurality of connected line segments, the processing burden of the writing device is reduced, and system resources are saved for the writing device.
The invention also provides a stroke erasing device.
The stroke erasing apparatus includes:
the erasing line segment conversion module is used for determining an erasing track and a plurality of strokes to be erased and converting each stroke to be erased into a plurality of line segments to be erased;
the stroke intersection judging module is used for judging whether each line segment to be erased intersects with the erasing track;
the intersecting line segment determining module is used for determining the line segment to be erased as an intersecting line segment if the line segment to be erased intersects with the erasing track so as to erase the stroke to be erased, where the intersecting line segment is located;
and the adjacent line segment determining module is used for judging whether the line segment to be erased is an adjacent line segment adjacent to the erasing track or not based on a preset distance threshold if the line segment to be erased is not intersected with the erasing track, so that the stroke to be erased, where the adjacent line segment is located, is erased when the line segment to be erased is the adjacent line segment.
The invention also provides a stroke erasing device.
The stroke erasing device comprises a processor, a memory and a stroke erasing program stored on the memory and operable on the processor, wherein the stroke erasing program, when executed by the processor, implements the steps of the stroke erasing method as described above.
The method for implementing the stroke erasing program when executed may refer to various embodiments of the stroke erasing method of the present invention, and will not be described herein again.
The invention also provides a computer readable storage medium.
The present computer readable storage medium has stored thereon a stroke erase program which, when executed by a processor, implements the steps of the stroke erase method described above.
The method for implementing the stroke erasing program when executed may refer to various embodiments of the stroke erasing method of the present invention, and will not be described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on this understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for causing a pen erasing apparatus to execute the methods according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (9)

1. A stroke erasing method, comprising:
determining an erasing track and a plurality of strokes to be erased, acquiring a plurality of sampling points corresponding to the strokes to be erased according to a preset sampling frequency, and acquiring the distance between adjacent sampling points to determine the writing speed when the strokes to be erased are written;
adding a plurality of auxiliary points among the plurality of sampling points according to the writing speed, and taking the plurality of sampling points and the auxiliary points as line segment end points of the plurality of line segments to be erased together so as to convert each stroke to be erased into a plurality of line segments to be erased;
judging whether each line segment to be erased is intersected with the erasing track;
if the line segment to be erased is intersected with the erasing track, determining the line segment to be erased as an intersected line segment so as to erase the stroke to be erased, where the intersected line segment is located;
if the line segment to be erased and the erasing track are not intersected, judging whether the line segment to be erased is a neighboring line segment which is close to the erasing track or not based on a preset distance threshold value, and erasing the stroke to be erased, where the neighboring line segment is located, when the line segment to be erased is the neighboring line segment.
2. The stroke erasure method of claim 1, wherein said step of determining whether each of said line segments to be erased intersects said erasure track comprises:
generating a first rectangle corresponding to the erasing track, and determining the azimuth type of the line segment to be erased;
when the orientation type of the line segment to be erased is not a horizontal or vertical orientation, generating a second rectangle taking the line segment to be erased as a diagonal line, and judging whether the second rectangle is overlapped with the first rectangle;
and if the second rectangle is not overlapped with the first rectangle, judging that the line segment to be erased is not intersected with the erasing track.
3. The stroke erasure method of claim 2, wherein said step of determining whether said second rectangle overlaps said first rectangle further comprises:
if the second rectangle is overlapped with the first rectangle, judging whether two segment end points of the segment to be erased are positioned on two sides of the erasing track and whether two track end points of the erasing track are positioned on two sides of the segment to be erased one by one;
if so, judging that the line segment to be erased is intersected with the erasing track;
if not, judging that the line segment to be erased is not intersected with the erasing track;
and traversing each segment to be erased in each stroke to be erased.
4. The stroke erasure method of claim 3, wherein said step of generating a first rectangle corresponding to said erasure trajectory and determining the type of orientation of said line segment to be erased further comprises:
when the orientation type of the line segment to be erased is a horizontal or vertical orientation, generating a third rectangle which takes the line segment to be erased in the horizontal orientation as a first side length and takes the distance threshold as a second side length perpendicular to the first side length, or a fourth rectangle which takes the line segment to be erased in the vertical orientation as a third side length and takes the distance threshold as a fourth side length perpendicular to the third side length;
determining whether the third rectangle or the fourth rectangle overlaps the first rectangle;
if the third rectangle or the fourth rectangle is overlapped with the first rectangle, executing a step of judging whether two segment end points of the segment to be erased are positioned at two sides of the erasing track and whether two track end points of the erasing track are positioned at two sides of the segment to be erased;
and if the third rectangle or the fourth rectangle is not overlapped with the first rectangle, judging that the line segment to be erased and the erasing track are not intersected.
5. The stroke erasing method of claim 1, wherein if the segment to be erased does not intersect with the erasing track, determining whether the segment to be erased is a neighboring segment adjacent to the erasing track based on a preset distance threshold, and when the segment to be erased is a neighboring segment, erasing the stroke to be erased where the neighboring segment is located comprises:
if the line segment to be erased does not intersect with the erasing track, determining a circular area by taking an erasing drop point of the erasing track as a circle center and taking the distance threshold as a radius;
judging whether the line segment to be erased is in the circular area;
and if the line segment to be erased is in the circular area, judging that the line segment to be erased is the adjacent line segment so as to erase the stroke to be erased, wherein the adjacent line segment is located in the stroke to be erased.
6. The stroke erasing method according to claim 1, wherein if the segment to be erased and the erasing track do not intersect, determining whether the segment to be erased is a neighboring segment adjacent to the erasing track based on a preset distance threshold, and after the step of erasing the stroke to be erased where the neighboring segment is located when the segment to be erased is the neighboring segment, further comprising:
when a distance threshold changing instruction is received, a target distance threshold determined based on the distance threshold changing instruction is obtained, and the distance threshold is updated to be the target distance threshold.
7. A stroke erasing apparatus, comprising:
the erasing line segment conversion module is used for determining an erasing track and a plurality of strokes to be erased, acquiring a plurality of sampling points corresponding to the strokes to be erased according to a preset sampling frequency, and acquiring the distance between adjacent sampling points so as to determine the writing speed when the strokes to be erased are written;
adding a plurality of auxiliary points among the plurality of sampling points according to the writing speed, and taking the plurality of sampling points and the auxiliary points as line segment end points of the plurality of line segments to be erased together so as to convert each stroke to be erased into a plurality of line segments to be erased;
the stroke intersection judging module is used for judging whether each line segment to be erased intersects with the erasing track;
the intersecting line segment determining module is used for determining the line segment to be erased as an intersecting line segment if the line segment to be erased intersects with the erasing track so as to erase the stroke to be erased, where the intersecting line segment is located;
and the adjacent line segment determining module is used for judging whether the line segment to be erased is an adjacent line segment adjacent to the erasing track or not based on a preset distance threshold if the line segment to be erased is not intersected with the erasing track, so that the stroke to be erased, where the adjacent line segment is located, is erased when the line segment to be erased is the adjacent line segment.
8. A stroke erasing apparatus, characterized in that the stroke erasing apparatus comprises: memory, a processor and a stroke erase program stored on the memory and executable on the processor, the stroke erase program when executed by the processor implementing the steps of the stroke erase method of any one of claims 1 to 6.
9. A computer-readable storage medium, having stored thereon a stroke erase program, which when executed by a processor implements the steps of the stroke erase method of any of claims 1 to 6.
CN202010727470.3A 2020-07-27 2020-07-27 Stroke erasing method, device, equipment and readable storage medium Active CN111736745B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010727470.3A CN111736745B (en) 2020-07-27 2020-07-27 Stroke erasing method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010727470.3A CN111736745B (en) 2020-07-27 2020-07-27 Stroke erasing method, device, equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN111736745A CN111736745A (en) 2020-10-02
CN111736745B true CN111736745B (en) 2020-12-25

Family

ID=72657749

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010727470.3A Active CN111736745B (en) 2020-07-27 2020-07-27 Stroke erasing method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN111736745B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112596661A (en) * 2020-12-24 2021-04-02 广州视源电子科技股份有限公司 Writing track processing method and device and interactive panel
CN113282214A (en) * 2021-05-21 2021-08-20 Oppo广东移动通信有限公司 Stroke rendering method, device, storage medium and terminal
CN113608646B (en) * 2021-10-08 2022-01-07 广州文石信息科技有限公司 Method and device for erasing strokes, readable storage medium and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101477694A (en) * 2008-12-02 2009-07-08 广东威创视讯科技股份有限公司 Handwriting erasing method and apparatus
CN104992460A (en) * 2015-05-28 2015-10-21 深圳市创易联合科技有限公司 Method for erasing vector scripts
CN106708383A (en) * 2016-11-22 2017-05-24 广州视源电子科技股份有限公司 Graph processing method and system
CN109445676A (en) * 2018-09-11 2019-03-08 宁波思骏科技有限公司 The method of the handwritten stroke information of user's input is deleted on handwriting equipment
CN110458920A (en) * 2018-05-08 2019-11-15 杭州海康威视数字技术股份有限公司 A kind of handwriting erasing method and device
CN110910476A (en) * 2019-10-18 2020-03-24 北京字节跳动网络技术有限公司 Handwriting erasing method, device, medium and electronic equipment

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3335542B2 (en) * 1996-12-11 2002-10-21 日本サイバーサイン株式会社 Method and apparatus for collating handwritten characters
US10168681B2 (en) * 2011-12-13 2019-01-01 Patrick Andrew Shiel Development of certain mechanical cooling profiles and their use in an automated optimization method to reduce energy consumption in commercial buildings during the cooling season
CN103902100B (en) * 2014-04-01 2016-08-17 西北工业大学 Stroke segmentation method based on velocity characteristic for intelligence Freehandhand-drawing input
US9916017B2 (en) * 2014-07-03 2018-03-13 Adobe Systems Incorporated Smart eraser to erase digital strokes
US10269143B2 (en) * 2016-03-25 2019-04-23 Microsoft Technology Licensing, Llc Multiple texture variable opacity stroke rendering and blending
US10268369B2 (en) * 2017-06-06 2019-04-23 Polycom, Inc. Detecting erasure gestures in an electronic presentation system
US11380028B2 (en) * 2018-07-02 2022-07-05 Apple Inc. Electronic drawing with handwriting recognition
CN110544410B (en) * 2019-07-15 2021-06-22 山东第一医科大学(山东省医学科学院) Handwriting capability quantitative evaluation system and method
CN111381754B (en) * 2020-04-30 2021-10-22 京东方科技集团股份有限公司 Handwriting processing method, equipment and medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101477694A (en) * 2008-12-02 2009-07-08 广东威创视讯科技股份有限公司 Handwriting erasing method and apparatus
CN104992460A (en) * 2015-05-28 2015-10-21 深圳市创易联合科技有限公司 Method for erasing vector scripts
CN106708383A (en) * 2016-11-22 2017-05-24 广州视源电子科技股份有限公司 Graph processing method and system
CN110458920A (en) * 2018-05-08 2019-11-15 杭州海康威视数字技术股份有限公司 A kind of handwriting erasing method and device
CN109445676A (en) * 2018-09-11 2019-03-08 宁波思骏科技有限公司 The method of the handwritten stroke information of user's input is deleted on handwriting equipment
CN110910476A (en) * 2019-10-18 2020-03-24 北京字节跳动网络技术有限公司 Handwriting erasing method, device, medium and electronic equipment

Also Published As

Publication number Publication date
CN111736745A (en) 2020-10-02

Similar Documents

Publication Publication Date Title
CN111736745B (en) Stroke erasing method, device, equipment and readable storage medium
CN107679276B (en) Generation method and device of power system tide wiring diagram and electronic equipment
US20080055623A1 (en) Techniques for image segment accumulation in document rendering
CN102467519B (en) Visualization plotting method and system based on geographic information system
CN106846490A (en) A kind of cambered surface model generating method and device
WO2013136594A1 (en) Plan display device and plan display program
CN113608667A (en) Electronic handwriting writing and erasing method, storage medium and equipment
CN114055468B (en) Track reproduction method, track reproduction system and terminal equipment
US20180032495A1 (en) Input processing program, input processing device, input processing method, character identification program, character identification device, and character identification method
US9747708B2 (en) Method for generating writing data and an electronic device thereof
JP5923604B2 (en) Method and system for generating instructions in accordance with changes in font outline
CN104809049A (en) Terminal
CN115249303A (en) Layout drawing method, device, equipment and storage medium based on drawing segmentation
CN115841671A (en) Calligraphy character skeleton correction method, system and storage medium
CN115964773A (en) Signal line drawing method based on canvas drawing and browser dragging event
CN115359502A (en) Image processing method, device, equipment and storage medium
CN112001987B (en) Polygonal clipping method and device, electronic equipment and storage medium
CN111144395B (en) Method and device for quickly inversely labeling characters and graphs based on Cadence Skill
CN102681755A (en) Method, device and equipment for realizing display transformation of display object
CN112036443A (en) Method and device for labeling object contour in image data
CN111426329A (en) Road generation method and device, computer equipment and storage medium
CN111145832B (en) Element insertion method for carrier, computer storage medium, and electronic device
CN112639713A (en) Local note selection method and device, electronic terminal and readable storage medium
JP7327810B2 (en) Image generation program, character recognition system, image generation method, image generation device, and character recognition model
CN108491078B (en) Word processing method, device, terminal equipment and storage medium

Legal Events

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