Handwriting erasing method and apparatus

A handwriting and line segment technology, applied in the field of computer graphics processing, can solve the problems of stagnation of image screen, slow search speed, low efficiency, etc.

Inactive Publication Date: 2009-07-08
GUANGDONG VTRON TECH CO LTD
View PDF0 Cites 37 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] As mentioned above, the handwriting erasing methods in the prior art all need to search all points on the line or all points in the erasing area, which is easy to cause slow search speed, especially for all points on the line. When searching for points and only the last point on the line is located in the erased area, or when searching for all points in the erased area and only the last judged point of the erased area is located on the line, the efficiency Low, slow processing speed. In the case of many lines, the erasing speed will be slow, and the image processing process cannot keep up with the movement of the mouse. In addition, due to the high CPU usage when using the search algorithm, it will also make the image The processing is not smooth enough, and the image screen is stagnant

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Handwriting erasing method and apparatus
  • Handwriting erasing method and apparatus
  • Handwriting erasing method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0028] see figure 1 Shown is the schematic flow sheet of the method embodiment one of handwriting erasing of the present invention, and it comprises steps:

[0029] Step S101: Divide the handwriting into several line segments, and proceed to Step S102;

[0030] Step S102: judging whether one of the line segments intersects the erasing area, if yes, proceed to step S103, if not, proceed to step S104;

[0031] Step S103: Determine that the handwriting intersects with the erasing area and can be erased;

[0032] Step S104: Determine that the handwriting does not intersect with the erasing area and cannot be erased.

[0033] According to the solution in this embodiment, when the handwriting is divided into several line segments, as long as any line segment intersects with the erasing area, it means that the handwriting intersects with the erasing area, that is, at least one point on the handwriting is located in the erasing area. In this area, the handwriting can be deleted. If...

Embodiment 2

[0036] see figure 2 Shown is a schematic flow chart of Embodiment 2 of the method for erasing handwriting of the present invention.

[0037] The main difference between this embodiment and the above-mentioned first embodiment is that it further specifies the way of judging whether there is a line segment intersecting with the erasing area in each line segment, and first checks whether there is a line segment located at the end point of each line segment after division. The endpoints in the erasing area are judged, and then it is judged whether there is a bounding box intersecting the erasing area in the bounding box formed by each line segment, and finally whether the vertices of the erasing area are located on both sides of the line segment.

[0038] Such as figure 2 Shown, the method for the handwriting erasure in the present embodiment specifically comprises steps:

[0039] Step S201: Divide the handwriting into several line segments, and proceed to Step S202;

[0040]...

Embodiment 3

[0052] see image 3 Shown is a schematic flow chart of Embodiment 3 of the method for erasing handwriting of the present invention.

[0053] The main difference between this embodiment and the above-mentioned first embodiment is that it further specifies the way of judging whether there is a line segment intersecting the erasing area among each line segment, and judges each line segment in turn, starting from the initial line segment, First judge whether one of the two endpoints of the line segment is within the erasing area, then determine whether the bounding box formed by the line segment intersects the erasing area, and finally determine whether the vertices of the erasing area are located in the area of ​​the line segment On both sides, after the judgment of the line segment is completed, the next line segment is judged.

[0054] Such as image 3 Shown, the method for the handwriting erasure in the present embodiment specifically comprises steps:

[0055] Step S301: Di...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a method and a device for erasing script, and is characterized in that the script is divided into more than one lines, and the determination of the existence of a line in the lines which goes cross an erasing area is taken as a basis on which the decision about whether the script goes cross the erasing area can be made. In the scheme provided by the invention, to find out whether the script crosses the erasing area is converted into the detection about whether the lines following the division of the script cross the erasing area, and if one of the lines goes cross the erasing area, the decision can be made that the script goes cross the erasing area. As only part of the lines of the script need to verified, all that is needed is to verify whether the line crosses the erasing area, and the amount of calculation is correspondingly reduced, so that the script erasing speed is effectively increased, and the script erasing performance is improved. Meanwhile, as not all the points comprising the script are required to be searched and verified, the occupancy of a CPU and the consumption of resources are reduced during the process of erasure.

Description

technical field [0001] The invention relates to the technical field of computer graphics processing, in particular to a method and device for erasing handwriting. Background technique [0002] In the processing of computer graphics, due to misoperation, correction or the purpose of processing each handwriting, it is usually necessary to erase some drawn handwriting. There are usually two ways to erase handwriting in the prior art. : First, erase the point by judging whether the point to be erased is within the erasing area. If it is within the erasing area, the point can be erased. If it is not in the erasing area, it cannot be erased. , secondly, to erase the lines, there are two ways to erase the lines, the first way is the further application of the above point erasing method, which searches all the points on the line to determine whether each point is erasing In the erasure area, and judge whether the line should be erased accordingly, when a point on the line is in the...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06T11/00
Inventor 孙关有
Owner GUANGDONG VTRON TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products