CN108733296B - Method, device and equipment for erasing handwriting - Google Patents

Method, device and equipment for erasing handwriting Download PDF

Info

Publication number
CN108733296B
CN108733296B CN201810403702.2A CN201810403702A CN108733296B CN 108733296 B CN108733296 B CN 108733296B CN 201810403702 A CN201810403702 A CN 201810403702A CN 108733296 B CN108733296 B CN 108733296B
Authority
CN
China
Prior art keywords
area
erasing
coordinate value
preset
preset pixel
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
CN201810403702.2A
Other languages
Chinese (zh)
Other versions
CN108733296A (en
Inventor
向淘
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shizhen Information Technology Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shizhen Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shizhen Information Technology Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201810403702.2A priority Critical patent/CN108733296B/en
Publication of CN108733296A publication Critical patent/CN108733296A/en
Application granted granted Critical
Publication of CN108733296B publication Critical patent/CN108733296B/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/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
    • 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

Abstract

The invention discloses a method, a device and equipment for erasing handwriting. Wherein, the method comprises the following steps: detecting the moving track of the erasing control; determining a first area and a second area for displaying a bitmap of the erasing control according to the moving track, wherein the second area is adjacent to the first area, the second area is a current display area of the bitmap of the erasing control, and the erasing area is determined according to coordinate values of preset pixel points in the first area and the second area, wherein the preset pixel points are pixel points with non-zero pixel values in the bitmap of the erasing control; and erasing the writing handwriting in the area corresponding to the preset pixel point in the first area and the erasing area. The invention solves the technical problems of low erasing accuracy and discontinuous erasing track of the scheme of erasing the handwriting through the erasing control in the prior art.

Description

Method, device and equipment for erasing handwriting
Technical Field
The invention relates to the field of intelligent interactive tablets, in particular to a handwriting erasing method, device and equipment.
Background
In the prior art, the movement of the erase control (e.g., eraser) is to move a bitmap, which is rectangular, and the icon of the actual erase control is non-rectangular (e.g., as shown in fig. 1, black rounded rectangle), then there are transparent pixels in the bitmap (e.g., outside the black rounded rectangle in fig. 1, inside the rectangular box). The erasing through the erasing control is only to move the bitmap for erasing, as shown in fig. 2, a rectangular box in fig. 2 shows a moving track of the erasing control, so that handwriting passing through a transparent pixel in the bitmap is also erased correspondingly, and the movement of the erasing control is not continuous movement but is jumping, so that the erasing result is shown in fig. 3.
Aiming at the problems that in the prior art, the erasing accuracy is low and the erasing track is discontinuous by the erasing control in the erasing scheme, an effective solution is not provided at present.
Disclosure of Invention
The embodiment of the invention provides a method, a device and equipment for erasing handwriting, which at least solve the technical problems of low erasing accuracy and discontinuous erasing track of the scheme of erasing the handwriting through an erasing control in the prior art.
According to an aspect of an embodiment of the present invention, there is provided a method for erasing handwriting, including: detecting the moving track of the erasing control; determining a first area and a second area for displaying a bitmap of an erasing control according to the moving track, wherein the second area is adjacent to the first area and is a current display area of the bitmap of the erasing control; determining an erasing area according to coordinate values of preset pixel points in the first area and the second area, wherein the preset pixel points are pixel points with pixel values not being zero in a bitmap of the erasing control; and erasing the writing handwriting in the area corresponding to the preset pixel point in the first area and the erasing area.
Further, according to the coordinate values of the preset pixel points in the first region and the second region, determining an erasing region comprises: acquiring a first coordinate value of a central point in a first area and a second coordinate value of the central point in a second area; determining a straight line according to the first coordinate value and the second coordinate value; acquiring a third coordinate value of a preset pixel point which is farthest away from the straight line in the first region; acquiring a fourth coordinate value of a preset pixel point which is farthest away from the straight line in the second region; and determining the erasing area according to the third coordinate value and the fourth coordinate value.
Further, according to the moving track, determining a first area and a second area for displaying the bitmap of the erasing control, including: obtaining coordinate values of two adjacent pixel points in the moving track; and determining a first region and a second region according to the coordinate values of two adjacent pixel points.
Further, two adjacent pixel points are respectively determined as the central points of the first area and the second area.
Further, erasing the writing handwriting in the area corresponding to the preset pixel point in the first area and the erasing area, including: and setting the pixel values of the preset pixels in the first region and the pixels in the erasing region to be zero.
Further, setting the pixel value of the preset pixel point in the first region to zero includes: judging whether the first area and the second area have intersection; if the first area and the second area have intersection, setting the pixel value of a preset pixel point meeting a first preset condition in the first area to be zero, wherein the preset pixel point meeting the first preset condition is a preset pixel point which is not located in the second area; and if the first area and the second area do not have intersection, setting the pixel values of all preset pixel points in the first area to be zero.
Further, setting the pixel value of the pixel point in the erasing area to zero includes: and setting the pixel value of the pixel point meeting the second preset condition in the erasing area to be zero, wherein the pixel point meeting the second preset condition is a preset pixel point which is not located in the first area or the second area.
Further, after determining the first area and the second area for displaying the bitmap of the erasure control, the method further includes: and setting the pixel values of the preset pixels in the second area as preset values, wherein the preset values are the pixel values of the preset pixels in the bitmap of the erasing control.
Further, after determining the first area and the second area for displaying the bitmap of the erasure control, the method further includes: and if the erasing control is detected to stop moving, erasing the handwriting in the area corresponding to the preset pixel point in the second area.
According to another aspect of the embodiments of the present invention, there is also provided a method for erasing handwriting, including: sequentially displaying bitmaps of an erasing control in a first area and a second area, wherein the first area and the second area are determined according to the moving track of the erasing control, and the second area is adjacent to the first area; hiding writing in an erasing track through which a bitmap of an erasing control passes, wherein the erasing track comprises: the erasing area is determined according to coordinate values of preset pixel points in the first area and the second area, and the preset pixel points are pixel points with non-zero pixel values in a bitmap of the erasing control.
According to another aspect of the embodiments of the present invention, there is also provided a method for erasing handwriting, including: sequentially displaying bitmaps of an erasing control in a first area and a second area, wherein the first area and the second area are determined according to the moving track of the erasing control, and the second area is adjacent to the first area; and displaying an erasing result of the writing handwriting, wherein the erasing result is obtained by erasing the writing handwriting in an area corresponding to a preset pixel point in the first area and in an erasing area, the erasing area is determined according to coordinate values of preset pixel points in the first area and the second area, and the preset pixel points are pixel points with non-zero pixel values in the bitmap of the erasing control.
According to another aspect of the embodiments of the present invention, there is also provided an apparatus for erasing handwriting, including: the detection module is used for detecting the moving track of the erasing control; the first determining module is used for determining a first area and a second area which are used for displaying the bitmap of the erasing control according to the moving track, wherein the second area is adjacent to the first area, and the second area is a current display area of the bitmap of the erasing control; the second determining module is used for determining an erasing area according to coordinate values of preset pixel points in the first area and the second area, wherein the preset pixel points are pixel points with pixel values not being zero in a bitmap of the erasing control; and the erasing module is used for erasing the writing handwriting in the area corresponding to the preset pixel point in the first area and the erasing area.
According to another aspect of the embodiments of the present invention, there is also provided an apparatus for erasing handwriting, including: the display module is used for sequentially displaying bitmaps of the erasing control in a first area and a second area, wherein the first area and the second area are determined according to the moving track of the erasing control, and the second area is adjacent to the first area; the hiding module is used for hiding writing handwriting in an erasing track passed by the bitmap of the erasing control, wherein the erasing track comprises: the erasing area is determined according to coordinate values of preset pixel points in the first area and the second area, and the preset pixel points are pixel points with non-zero pixel values in a bitmap of the erasing control.
According to another aspect of the embodiments of the present invention, there is also provided an apparatus for erasing handwriting, including: the first display module is used for sequentially displaying bitmaps of the erasing control in a first area and a second area, wherein the first area and the second area are determined according to the moving track of the erasing control, and the second area is adjacent to the first area; and the second display module is used for displaying an erasing result of the writing handwriting, wherein the erasing result is obtained by erasing the writing handwriting in an area corresponding to a preset pixel point in the first area and in the erasing area, the erasing area is determined according to coordinate values of preset pixel points in the first area and the second area, and the preset pixel points are pixel points with pixel values not being zero in the bitmap of the erasing control.
According to another aspect of the embodiments of the present invention, there is also provided an erasing apparatus of a writing script, including: the detection device is used for detecting the moving track of the erasing control; the processor is connected with the detection device and used for controlling the display to hide the writing in the erasing track through which the bitmap of the erasing control passes, wherein the erasing track comprises: the erasing area is determined according to coordinate values of preset pixel points in the first area and the second area, and the preset pixel points are pixel points with non-zero pixel values in a bitmap of the erasing control.
According to another aspect of the embodiments of the present invention, there is also provided an erasing apparatus of a writing script, including: the display is used for displaying bitmaps of the erasing control in a first area and a second area in sequence, wherein the first area and the second area are determined according to the moving track of the erasing control, and the second area is adjacent to the first area; the processor is connected with the display and used for determining an erasing track through which a bitmap of the erasing control passes according to coordinate values of preset pixel points in the first area and the second area, and controlling the display to hide writing in the erasing track, wherein the erasing track comprises: and the preset pixel points are pixel points with pixel values not being zero in the bitmap of the erasing control.
According to another aspect of the embodiments of the present invention, there is also provided an erasing apparatus of a writing script, including: the display is used for displaying bitmaps of the erasing control in a first area and a second area in sequence, wherein the first area and the second area are determined according to the moving track of the erasing control, and the second area is adjacent to the first area; and the processor is connected with the display and is used for outputting an erasing result of the handwriting to the display for displaying, wherein the erasing result is a result obtained by erasing the handwriting in an area corresponding to a preset pixel point in the first area and in the erasing area, the erasing area is determined according to coordinate values of preset pixel points in the first area and the second area, and the preset pixel points are pixel points with pixel values not zero in a bitmap of the erasing control.
According to another aspect of the embodiments of the present invention, there is also provided a storage medium, the storage medium including a stored program, wherein when the program runs, the device on which the storage medium is located is controlled to execute the method for erasing the handwriting.
According to another aspect of the embodiments of the present invention, there is also provided a processor, configured to execute a program, where the program executes the method for erasing handwriting.
In the embodiment of the invention, after the moving track of the erasing control is detected, the second area currently displayed by the bitmap of the erasing control and the adjacent previous first area can be determined according to the moving track, and further, the erasing area of the bitmap of the erasing control in the second area from the first area can be determined according to the coordinate values of the pixel points with the pixel values not being zero in the first area and the second area, so that the writing handwriting in the area corresponding to the pixel points with the pixel values not being zero in the first area and the erasing area can be erased. Compared with the prior art, the erasing area is determined according to the coordinate values of the pixel points with the pixel values not being zero in the first area and the second area, not only the first area, but also the handwriting erased in the first area is the handwriting covered by the pixel points with the pixel values not being zero, not the handwriting in the whole first area, so that the continuous erasing of the handwriting is realized, the technical effects of improving the erasing accuracy and ensuring the erasing track to be continuous are achieved, and the technical problems that the erasing accuracy is low and the erasing track is discontinuous in the prior art are solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a schematic diagram of an erase control according to the prior art;
FIG. 2 is a diagram illustrating an erase result of an erase control according to the prior art;
FIG. 3 is a diagram of an erase control in an erase result of an erase control according to the prior art;
FIG. 4 is a flowchart of a first handwriting erasing method according to embodiment 1 of the present invention;
FIG. 5 is a schematic illustration of an alternative first region and second region in accordance with an embodiment of the present invention;
FIG. 6 is a diagram illustrating an alternative method for determining a line L according to P1 and P2 according to an embodiment of the present invention;
FIG. 7 is a schematic illustration of an alternative erase region according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of an erase result of an alternative erase control in accordance with an embodiment of the present invention;
FIG. 9 is a flowchart of a first handwriting erasing method according to embodiment 2 of the present invention;
FIG. 10 is a flowchart of a second handwriting erasing method according to embodiment 3 of the invention;
FIG. 11 is a flowchart of a third handwriting erasing method according to embodiment 4 of the present invention;
FIG. 12 is a schematic structural diagram of a first handwriting erasing apparatus according to embodiment 5 of the present invention;
FIG. 13 is a schematic diagram showing the construction of a second handwriting erasing apparatus according to embodiment 6 of the present invention;
FIG. 14 is a schematic structural diagram of an erasing apparatus of a third writing script according to embodiment 7 of the present invention;
FIG. 15 is a schematic structural diagram of an apparatus for erasing handwriting according to embodiment 8 of the present invention; and
fig. 16 is a schematic structural diagram of another device for erasing handwriting according to embodiment 9 of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
In accordance with an embodiment of the present invention, there is provided an embodiment of a method for erasing written handwriting, it is noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
The erasing method of the writing provided by this embodiment may be executed by an erasing device of the writing, the erasing device of the writing may be implemented by software and/or hardware, and the erasing device of the writing may be formed by two or more physical entities or may be formed by one physical entity. The erasing device of the handwriting can be a computer, a mobile phone, a tablet, a projector or an intelligent interactive tablet and the like. In the embodiment, the description is given by taking an intelligent interactive panel as erasing equipment for writing, where the intelligent interactive panel may be an integrated device that controls content displayed on a display panel and realizes man-machine interaction operation through a touch technology, and integrates one or more functions of a projector, an electronic whiteboard, a curtain, a sound, a television, a video conference terminal, and the like.
In an embodiment, the smart interactive tablet establishes a data connection with at least one external device. Among these, external devices include, but are not limited to: mobile phones, notebook computers, USB flash disks, tablet computers, desktop computers, and the like. The embodiment of the communication mode of the data connection between the external device and the intelligent interactive tablet is not limited, and the communication mode can be a USB connection mode, an Internet mode, a local area network mode, a Bluetooth mode, a Wi-Fi mode or a ZigBee mode and the like.
Further, when the smart interactive tablet performs data interaction with at least one external device, the screen projection data is sent to the smart interactive tablet, so that the external device, which displays the screen projection content of the screen projection data, of the smart interactive tablet serves as a screen projection client.
Optionally, the screen projection client and/or the intelligent interaction tablet are installed with screen projection application software, and the screen projection application software may be installed in the screen projection client and/or the intelligent interaction tablet in advance, or may be downloaded from a third-party device or a server and installed for use when the screen projection client and/or the intelligent interaction tablet starts a screen projection application. The third-party device is not limited in the embodiment. Specifically, the screen-casting application software is used for acquiring content displayed by the screen-casting client, using the content as screen-casting data, and instructing the intelligent interactive tablet to display the content. In the embodiment, the screen projection client and the intelligent interactive tablet are exemplified to be simultaneously installed with screen projection application software. The screen projection application software of the screen projection client is used for acquiring screen projection data and directly or indirectly sending the screen projection data to the intelligent interactive panel. If the screen projection client is indirectly sent, the screen projection client can be sent to the intelligent interaction panel through the transfer equipment, and the transfer equipment can be a wireless screen transmission device or other equipment with a data transfer/processing function. And the screen projection application software of the intelligent interactive panel is used for receiving screen projection data and converting the screen projection data into corresponding contents, so that the intelligent interactive panel can conveniently display the contents. It should be noted that the resolution ratios of the display screen of the screen projection client and the display screen of the intelligent interactive panel are different, and the screen projection data is obtained based on the resolution ratio of the screen projection client, so that in order to display the screen projection data in the display screen of the intelligent interactive panel, the screen projection application software needs to determine a screen mapping relationship according to the resolution ratios of the display screen of the screen projection client and the display screen of the intelligent interactive panel, and then convert the screen projection data according to the screen mapping relationship to obtain screen projection content. In the embodiment, the display contents of the screen shot content and the screen shot data are substantially the same, and only the resolution is different.
Further, the screen projection data is in a picture format, and may be screen capture data obtained by screen capturing display content of the screen projection client, or a presentation (Microsoft Office PowerPoint, PPT).
In the embodiment, the screen projection client is a notebook computer, screen projection data is PPT in a projection state, and interaction between the notebook computer and the intelligent interactive panel is taken as an example to exemplarily describe the present invention.
Fig. 4 is a flowchart of a first handwriting erasing method according to embodiment 1 of the present invention, as shown in fig. 4, the method includes the following steps:
step S402, detecting the moving track of the erasing control.
Specifically, the erasing control may be a control for erasing the writing displayed on the touch screen, and as shown in fig. 1, the erasing control may be an eraser control.
In an optional scheme, when a user needs to erase handwriting displayed on a touch screen, a palm of the user can move on the touch screen to generate corresponding touch data, and the palm moves from one point to another point, so that an eraser can also move from one point to another point, the point can be a coordinate point where the palm generates the touch data and can be used as a central point of the eraser, therefore, a moving track of the palm of the user, namely a moving track of the eraser, can be determined, and in the process of moving the palm, detection of the moving track of the eraser can be realized by detecting the touch data generated on the palm.
And S404, determining a first area and a second area for displaying the bitmap of the erasing control according to the moving track, wherein the second area is adjacent to the first area, and the second area is the current display area of the bitmap of the erasing control.
Specifically, the bitmap of the erase control can be bitmap of the eraser, and the movement of the eraser is displayed as the movement of bitmap on the touch screen.
In an optional scheme, in the process of moving the palm of the user, the eraser moves along with the movement of the palm of the user, the movement of the eraser can be expressed by the movement of a bitmap of the eraser, and in the process of moving the bitmap along with the palm of the user, the bitmap passes through two adjacent areas, namely the bitmap can move from the first area to the second area and is displayed in the second area.
Optionally, the coordinate values of two adjacent pixel points in the movement trajectory generated in the user palm movement process may determine the first region and the second region for displaying bitmap. Specifically, the method includes steps S4042 to S4044:
step S4042, coordinate values of two adjacent pixel points in the moving track are obtained.
Specifically, when the palm of the user moves on the touch screen, a plurality of touch data are generated, and the coordinate point of each touch data can be used as the center point for displaying bitmap, as shown in fig. 5, and the two pixel points can be P1(x1, y1) and P2(x2, y 2).
It should be noted that, because the palm moves on the touch screen to sequentially generate touch data, in order to erase the handwriting displayed on the touch screen, the erasing area may be determined according to the coordinate points of two adjacent touch data.
Step S4044, determining the first region and the second region according to the coordinate values of the two adjacent pixel points.
Optionally, in order to determine two adjacent regions, i.e., a first region and a second region, for displaying bitmap according to two adjacent pixel points, the two adjacent pixel points may be respectively determined as center points of the first region and the second region.
Specifically, as shown in fig. 5, the width and height of bitmap are W and H, respectively, and the corresponding eraser outer matrixes R1 and R2 at P1 and P2 can be determined, that is, the first region R1 and the second region R2 are obtained, which are denoted by left, top, right and bottom, respectively, where:
R1:
Figure BDA0001646332580000081
R2:
Figure BDA0001646332580000082
step S406, determining an erasing area according to coordinate values of preset pixel points in the first area and the second area, wherein the preset pixel points are pixel points with pixel values not equal to zero in the bitmap of the erasing control.
Specifically, as shown in fig. 1, since a transparent pixel and a non-transparent pixel exist in the bitmap, the pixel value of the transparent pixel is 0, and the pixel value of the non-transparent pixel is not 0. In order to ensure that only the handwriting passed by the non-transparent pixel in the bitmap is erased, the erasing area passed by the non-transparent pixel can be determined according to the coordinate values displayed by the non-transparent pixel in the bitmap in the two areas.
Optionally, the coordinate values of the central points in the two regions may be determined according to the coordinate values of all the pixel points included in the first region and the second region, and the coordinate values of all the pixel points in the two regions are further combined to obtain the erasing region. Specifically, the method includes steps S4060 to S4068:
step S4060, a first coordinate value of a center point in the first region and a second coordinate value of a center point in the second region are obtained.
Specifically, the center point may be a coordinate point where the palm of the user moves on the touch screen to generate touch data, that is, a center point of a bitmap, as shown in fig. 5, the first area may be a rectangular area R1, the second area may be a rectangular area R2, the black oval area in fig. 5 is an actual eraser (an oval eraser), the size of the black rectangular frame is the size of an eraser bitmap (the bitmap is a rectangular storage block of the eraser in a memory), the first coordinate value may be a center point P1(x1, y1), and the second coordinate value may be a center point P2(x2, y 2).
Step S4062, determining a straight line according to the first coordinate value and the second coordinate value.
Specifically, the straight line described above may be a straight line L passing through two center points P1 and P2, as shown in fig. 6:
(y-y1)(x1-x2)=(x-x1)(y1-y2);
recording: a ═ y1-y 2; b ═ x1-x 2; c ═ x1-y1(x1-x2) (y1-y 2);
the straight line L can then be expressed as: ax + By + C is 0.
Step S4064, a third coordinate value of a preset pixel point farthest from the straight line in the first area is obtained.
Specifically, the non-zero pixel point P (x0, y0) farthest from the straight line L may be calculated by traversing all the pixels in the entire bitmap corresponding to the entire rectangular region R1, where the distance formula from the point to the straight line is (note the positive and negative fractions):
Figure BDA0001646332580000091
then there are two non-zero pixels in R1, one with the largest (positive) value of d and the other with the smallest (negative) value of d.
Step S4066, a fourth coordinate value of a preset pixel point farthest from the straight line in the second area is obtained.
Specifically, all the pixels in the whole bitmap corresponding to the whole rectangular region R2 may be traversed, and the nonzero pixel farthest from the straight line L is calculated, so as to obtain two nonzero pixels.
Step S4068, determining the erasing area according to the third coordinate value and the fourth coordinate value.
Specifically, the erasing area may be a convex polygon, and if the eraser is symmetrical, the convex polygon is a parallelogram.
In an alternative scheme, the parallelogram E may be obtained according to four coordinate values of four nonzero pixel points obtained through calculation, as shown in fig. 7.
The convex polygon can be regarded as a region through which the eraser moves from the rectangular region R1 to the rectangular region R2, that is, a region through which the non-zero pixel points in the bitmap move from R1 to R2.
And step S408, erasing the writing handwriting in the area corresponding to the preset pixel point in the first area and the erasing area.
Specifically, the handwriting may be handwriting on the content displayed after the intelligent interactive tablet processes the first screen projection data, or the handwriting of the content newly added to the displayed content by the user through the writing pen on the intelligent interactive tablet, where the first screen projection data is from a notebook computer. More specifically, the first screen projection data is data generated after screen projection application software intercepts content displayed by the notebook computer, the intelligent interactive panel decodes the first screen projection data after receiving the first screen projection data to obtain specific display content, and resolution conversion is performed on the display content to obtain the display content conforming to the resolution of the display screen of the intelligent interactive panel. The method for performing resolution conversion on the first screen projection data specifically comprises the following steps: and mapping pixel points of the first screen projection data according to the screen mapping relation. For example, the resolution of the display screen of the notebook computer is 320 × 240, and the resolution of the display screen of the intelligent interactive tablet is 640 × 480, in this scenario, the screen mapping relationship is to display the pixel value of one pixel point in the display screen of the notebook computer in four pixel points at corresponding positions in the display screen of the intelligent interactive tablet. Therefore, the intelligent interactive panel performs coordinate mapping on the pixel value of each pixel point in the first screen projection data obtained after decoding according to the screen mapping relation so as to obtain the display content. The above-mentioned pixel values may be red, blue, green, RGB values, and generally, the pixel values are not changed in the mapping process. The resolution parameter of the display screen mentioned in the above example is only for understanding the technical solution, and is not a limitation to the resolution parameter of the display screen.
Further, the intelligent interactive tablet acquires the first screen projection data before displaying the handwriting in the display content. The first screen projection data sending time can be set according to actual conditions. For example, before or after receiving the screen projection instruction, the notebook computer sends all data of the PPT to the intelligent interactive tablet, so that in the subsequent screen projection process, the notebook computer only needs to determine the page number of the first screen projection data and send the page number to the intelligent interactive tablet, and the display content corresponding to the page number can be synchronously displayed in the intelligent interactive tablet. For another example, after receiving the screen-shooting instruction, the notebook computer performs screen-shooting according to a set frequency, or performs screen-shooting after detecting that the displayed PPT page number changes, and sends the first screen-shooting data obtained by screen-shooting and the corresponding page number to the intelligent interactive tablet together, so that the intelligent interactive tablet synchronously displays the corresponding display content, and performs associated storage on the display content and the page number. In consideration of the fact that the same PPT page is changeable during showing in actual situations, for example, a certain text box in the current PPT page is set to be single-click erased, and another text box is synchronously displayed at the same position during erasing, at this time, although the page number of the PPT page is not changed, the displayed content of the PPT page is changed, therefore, in such a situation, in order to ensure that the smart interactive tablet accurately displays the first screen-projected content, it may also be set that when the laptop determines that the page number of the PPT page is not changed and the displayed content is changed, the screen is captured according to a set frequency to obtain first screen-projected data, and the first screen-projected data is sent to the smart interactive tablet, so that the smart interactive tablet synchronously displays the change process of the corresponding displayed content.
Optionally, the specific implementation includes step S4082:
step S4082, setting the pixel values of the preset pixels in the first region and the pixel values of the pixels in the erasing region to be zero.
Specifically, since the bitmap moves from the first region R1 to the second region R2, it can be determined that the handwriting in the region through which the bitmap passes needs to be erased, in order to erase only the handwriting in the region through which the eraser passes in the bitmap, each pixel point in the bitmap corresponding to R1 can be traversed, and if the pixel point is a non-zero pixel point, the pixel value of the corresponding pixel point on the canvas can be set to 0. After the convex polygon E is obtained, the pixel value of the corresponding pixel point on the canvas may be set to 0.
In an optional scheme, since the bitmap is moved from the first area to the second area and displayed in the second area, it can be determined that the user needs to erase the written handwriting in the area through which the bitmap passes, that is, it can be determined that all the written handwriting in the display area corresponding to the non-zero pixel point in the first area and in the erasing area through which the non-transparent pixel passes need to be erased, and the erasing result is shown in fig. 8.
In the above embodiment of the present invention, after the movement track of the erasing control is detected, the second area currently displayed by the bitmap of the erasing control and the previous adjacent first area may be determined according to the movement track, and further according to the coordinate values of the pixel points whose pixel values are not zero in the first area and the second area, the erasing area in which the bitmap of the erasing control moves from the first area to the second area may be determined, so that the written traces in the area corresponding to the pixel point whose pixel value is not zero in the first area and the erasing area may be erased. Compared with the prior art, the erasing area is determined according to the coordinate values of the pixel points with the pixel values not being zero in the first area and the second area, not only the first area, but also the handwriting erased in the first area is the handwriting covered by the pixel points with the pixel values not being zero, not the handwriting in the whole first area, so that the continuous erasing of the handwriting is realized, the technical effects of improving the erasing accuracy and ensuring the erasing track to be continuous are achieved, and the technical problems that the erasing accuracy is low and the erasing track is discontinuous in the prior art are solved.
Example 2
FIG. 9 is a flowchart of a first handwriting erasing method according to embodiment 2 of the present invention. The method for erasing the handwriting provided by the embodiment is embodied on the basis of the embodiment 1. As shown, the method comprises the following steps:
step S402, detecting the moving track of the erasing control.
And S404, determining a first area and a second area for displaying the bitmap of the erasing control according to the moving track, wherein the second area is adjacent to the first area, and the second area is the current display area of the bitmap of the erasing control.
Step S410, setting the pixel value of the preset pixel point in the second region as a preset value, where the preset value is the pixel value of the preset pixel point in the bitmap of the erasure control.
Specifically, the palm of the user moves from the pixel point P1 to the pixel point P2, that is, the bitmap moves from the first area to the second area, specifically, the bitmap is hidden in the first area and displayed in the second area.
In an alternative scheme, in order to display bitmap in the second region, each pixel point in R2 may be traversed, and if the pixel point corresponds to a non-zero pixel point in bitmap, the pixel value of the corresponding coordinate point on the canvas is set as the value of the eraser pixel point.
Step S406, determining an erasing area according to coordinate values of preset pixel points in the first area and the second area, wherein the preset pixel points are pixel points with pixel values not equal to zero in the bitmap of the erasing control.
And step S408, erasing the writing handwriting in the area corresponding to the preset pixel point in the first area and the erasing area.
Optionally, the specific implementation includes step S4082:
step S4082, setting the pixel values of the preset pixels in the first region and the pixel values of the pixels in the erasing region to be zero.
Optionally, erasing the writing handwriting in the area corresponding to the preset pixel point in the first area may be implemented by setting the pixel value of the preset pixel point in the first area to zero, and the specifically implementing setting the pixel value of the preset pixel point in the first area to zero includes steps S40822 to S40826; the erasing of the handwriting in the erasing area can be realized by setting the pixel value of the pixel point in the erasing area to be zero, and the specific implementation of setting the pixel value of the pixel point in the erasing area to be zero comprises the following steps of S40828:
step S40822, determine whether there is an intersection between the first region and the second region.
Specifically, if the P1 and the P2 are closer, the eraser in R1 and the eraser in R2 intersect with each other, and in order to avoid setting the canvas repeatedly, it may be first determined whether the erasers in R1 and R2 intersect with each other.
Step S40824, if there is an intersection between the first region and the second region, setting a pixel value of a preset pixel point meeting a first preset condition in the first region to zero, where the preset pixel point meeting the first preset condition is a preset pixel point not located in the second region.
Specifically, if the non-zero pixel point in R1 is also a non-zero pixel point in R2, it may be determined that there is an intersection between the eraser in R1 and the eraser in R2, and only the non-zero pixel point located in R1 but not located in R2 is set, that is, the pixel value corresponding to the non-zero pixel point is set to zero; and for the non-zero pixel points in both R1 and R2, no setting is needed.
Step S40826, if there is no intersection between the first region and the second region, setting the pixel values of all the preset pixels in the first region to zero.
Specifically, if the non-zero pixel point in R1 is not in R2, or the non-zero pixel point in R1 is a transparent pixel point in R2, it may be determined that there is no intersection between the eraser in R1 and the eraser in R2, and further, the pixel values corresponding to all the non-zero pixel points in R1 on the canvas may be set to zero.
Step S40828, set the pixel value of the pixel point meeting the second preset condition in the erasing region to zero, where the pixel point meeting the second preset condition is a preset pixel point not located in the first region or the second region.
Specifically, as shown in fig. 7, the convex polygon E intersects with both the erasers in the first region R1 and the second region R2, and in order to avoid repetitive setting of the canvas, when the coordinate point within E is located within the erasers in R1 and R2, the canvas is not set.
Step S412, if the erasing control is detected to stop moving, erasing the handwriting in the area corresponding to the preset pixel point in the second area.
Specifically, when the palm of the user leaves the touch screen, that is, after it is determined that the user does not erase the handwriting any more, the touch screen cannot detect the touch data any more, and the bitmap stops moving, so that the eraser displayed in the second area needs to be cleared, that is, the handwriting corresponding to the passing of the eraser in the bitmap in the second area is erased.
In an alternative scheme, each pixel point in bitmap in R2 may be traversed, and if the pixel point is a non-zero pixel point, the pixel value of the corresponding coordinate point on the canvas is set to zero.
Example 3
There is also provided, in accordance with an embodiment of the present invention, an embodiment of a method for handwriting erasure, it being noted that the steps illustrated in the flowchart of the figure may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than that presented herein.
The erasing method of the writing provided by this embodiment may be executed by an erasing device of the writing, the erasing device of the writing may be implemented by software and/or hardware, and the erasing device of the writing may be formed by two or more physical entities or may be formed by one physical entity. The erasing device of the handwriting can be a computer, a mobile phone, a tablet, a projector or an intelligent interactive tablet and the like. In the embodiment, the description is given by taking the intelligent interactive tablet as an erasing device for writing handwriting as an example. In the embodiment, the screen projection client is a notebook computer, screen projection data is PPT in a projection state, and interaction between the notebook computer and the intelligent interactive panel is taken as an example to exemplarily describe the present invention.
Fig. 10 is a flowchart of a second handwriting erasing method according to embodiment 3 of the invention, as shown in fig. 10, the method includes the following steps:
step S1002, sequentially displaying bitmaps of the erasing control in a first area and a second area, where the first area and the second area are determined according to the movement track of the erasing control, and the second area is adjacent to the first area.
Specifically, the erasing control may be a control for erasing the writing displayed on the touch screen, and as shown in fig. 1, the erasing control may be an eraser control. The bitmap of the erase control can be the bitmap of the eraser, and the movement of the eraser is displayed as the movement of the bitmap on the touch screen.
In an optional scheme, when a user needs to erase handwriting displayed on a touch screen, a palm of the user can move on the touch screen to generate corresponding touch data, and the palm moves from one point to another point, so that an eraser can also move from one point to another point, the point can be a coordinate point where the palm generates the touch data and can be used as a central point of the eraser, therefore, a moving track of the palm of the user, namely a moving track of the eraser, can be determined, and in the process of moving the palm, detection of the moving track of the eraser can be realized by detecting the touch data generated on the palm. In the process of moving the bitmap from the first area to the adjacent second area, the bitmap can be moved from the first area to the second area and displayed in the second area.
Step S1004, hiding the writing handwriting in the erasing track through which the bitmap of the erasing control passes, wherein the erasing track comprises: the erasing area is determined according to coordinate values of preset pixel points in the first area and the second area, and the preset pixel points are pixel points with non-zero pixel values in a bitmap of the erasing control.
Specifically, as shown in fig. 1, since a transparent pixel and a non-transparent pixel exist in the bitmap, the pixel value of the transparent pixel is 0, and the pixel value of the non-transparent pixel is not 0. In order to ensure that only the handwriting passed by the non-transparent pixel in the bitmap is erased, the erasing area passed by the non-transparent pixel can be determined according to the coordinate values displayed by the non-transparent pixel in the bitmap in the two areas.
In an optional scheme, since the bitmap is moved from the first area to the second area and displayed in the second area, it can be determined that the user needs to erase the written handwriting in the area through which the bitmap passes, that is, it can be determined that all the written handwriting in the display area corresponding to the non-zero pixel point in the first area and in the erasing area through which the non-transparent pixel passes need to be erased, and the erasing result is shown in fig. 8.
In the above embodiment of the present invention, after the movement track of the erasing control is detected, the second area currently displayed by the bitmap of the erasing control and the previous adjacent first area may be determined according to the movement track, and further according to the coordinate values of the pixel points whose pixel values are not zero in the first area and the second area, the erasing area in which the bitmap of the erasing control moves from the first area to the second area may be determined, so that the written traces in the area corresponding to the pixel point whose pixel value is not zero in the first area and the erasing area may be erased. Compared with the prior art, the erasing area is determined according to the coordinate values of the pixel points with the pixel values not being zero in the first area and the second area, not only the first area, but also the handwriting erased in the first area is the handwriting covered by the pixel points with the pixel values not being zero, not the handwriting in the whole first area, so that the continuous erasing of the handwriting is realized, the technical effects of improving the erasing accuracy and ensuring the erasing track to be continuous are achieved, and the technical problems that the erasing accuracy is low and the erasing track is discontinuous in the prior art are solved.
Example 4
There is also provided, in accordance with an embodiment of the present invention, an embodiment of a method for handwriting erasure, it being noted that the steps illustrated in the flowchart of the figure may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than that presented herein.
The erasing method of the writing provided by this embodiment may be executed by an erasing device of the writing, the erasing device of the writing may be implemented by software and/or hardware, and the erasing device of the writing may be formed by two or more physical entities or may be formed by one physical entity. The erasing device of the handwriting can be a computer, a mobile phone, a tablet, a projector or an intelligent interactive tablet and the like. In the embodiment, the description is given by taking the intelligent interactive tablet as an erasing device for writing handwriting as an example. In the embodiment, the screen projection client is a notebook computer, screen projection data is PPT in a projection state, and interaction between the notebook computer and the intelligent interactive panel is taken as an example to exemplarily describe the present invention.
FIG. 11 is a flowchart of a third erasing method for writing according to embodiment 4 of the present invention, as shown in FIG. 11, the method includes the following steps:
step S1102, sequentially displaying bitmaps of the erasure control in a first area and a second area, where the first area and the second area are determined according to the movement track of the erasure control, and the second area is adjacent to the first area.
Specifically, the erasing control may be a control for erasing the writing displayed on the touch screen, and as shown in fig. 1, the erasing control may be an eraser control. The bitmap of the erase control can be the bitmap of the eraser, and the movement of the eraser is displayed as the movement of the bitmap on the touch screen.
In an optional scheme, when a user needs to erase handwriting displayed on a touch screen, a palm of the user can move on the touch screen to generate corresponding touch data, and the palm moves from one point to another point, so that an eraser can also move from one point to another point, the point can be a coordinate point where the palm generates the touch data and can be used as a central point of the eraser, therefore, a moving track of the palm of the user, namely a moving track of the eraser, can be determined, and in the process of moving the palm, detection of the moving track of the eraser can be realized by detecting the touch data generated on the palm. In the process of moving the bitmap from the first area to the adjacent second area, the bitmap can be moved from the first area to the second area and displayed in the second area.
And step S1104, displaying an erasing result of the writing, wherein the erasing result is obtained by erasing the writing in an area corresponding to a preset pixel point in the first area and in an erasing area, the erasing area is determined according to coordinate values of preset pixel points in the first area and the second area, and the preset pixel points are pixel points with pixel values not equal to zero in a bitmap of the erasing control.
Specifically, as shown in fig. 1, since a transparent pixel and a non-transparent pixel exist in the bitmap, the pixel value of the transparent pixel is 0, and the pixel value of the non-transparent pixel is not 0. In order to ensure that only the handwriting passed by the non-transparent pixel in the bitmap is erased, the erasing area passed by the non-transparent pixel can be determined according to the coordinate values displayed by the non-transparent pixel in the bitmap in the two areas.
In an optional scheme, since the bitmap is moved from the first area to the second area and displayed in the second area, it can be determined that the user needs to erase the written handwriting in the area through which the bitmap passes, that is, it can be determined that all the written handwriting in the display area corresponding to the non-zero pixel point in the first area and in the erasing area through which the non-transparent pixel passes need to be erased, and the erasing result is shown in fig. 8.
In the above embodiment of the present invention, after the movement track of the erasing control is detected, the second area currently displayed by the bitmap of the erasing control and the previous adjacent first area may be determined according to the movement track, and further according to the coordinate values of the pixel points whose pixel values are not zero in the first area and the second area, the erasing area in which the bitmap of the erasing control moves from the first area to the second area may be determined, so that the written traces in the area corresponding to the pixel point whose pixel value is not zero in the first area and the erasing area may be erased. Compared with the prior art, the erasing area is determined according to the coordinate values of the pixel points with the pixel values not being zero in the first area and the second area, not only the first area, but also the handwriting erased in the first area is the handwriting covered by the pixel points with the pixel values not being zero, not the handwriting in the whole first area, so that the continuous erasing of the handwriting is realized, the technical effects of improving the erasing accuracy and ensuring the erasing track to be continuous are achieved, and the technical problems that the erasing accuracy is low and the erasing track is discontinuous in the prior art are solved.
Example 5
According to the embodiment of the invention, the embodiment of the erasing device of the handwriting is also provided. The erasing device for the handwriting provided by the embodiment can be integrated in erasing equipment for the handwriting, the erasing equipment for the handwriting can be formed by two or more physical entities or can be formed by one physical entity, and the erasing equipment for the handwriting can be a computer, a mobile phone, a flat panel, a projector or an intelligent interactive flat panel and the like. In the embodiment, the description is given by taking the intelligent interactive tablet as an erasing device for writing handwriting as an example.
Fig. 12 is a schematic structural diagram of a first handwriting erasing apparatus according to embodiment 5 of the present invention, as shown in fig. 12, the apparatus includes: a detection module 122, a first determination module 124, a second determination module 126, and an erase module 128.
The detection module 122 is configured to detect a moving track of the erasing control; the first determining module 124 is configured to determine, according to the moving track, a first area and a second area for displaying a bitmap of the erasure control, where the second area is adjacent to the first area, and the second area is a current display area of the bitmap of the erasure control; a second determining module 126, configured to determine an erasing area according to coordinate values of preset pixel points in the first area and the second area, where the preset pixel points are pixel points with a pixel value not zero in a bitmap of the erasing control; and the erasing module 128 is configured to erase the writing traces in the area corresponding to the preset pixel point in the first area and in the erasing area.
In the above embodiment of the present invention, after the movement track of the erasing control is detected, the second area currently displayed by the bitmap of the erasing control and the previous adjacent first area may be determined according to the movement track, and further according to the coordinate values of the pixel points whose pixel values are not zero in the first area and the second area, the erasing area in which the bitmap of the erasing control moves from the first area to the second area may be determined, so that the written traces in the area corresponding to the pixel point whose pixel value is not zero in the first area and the erasing area may be erased. Compared with the prior art, the erasing area is determined according to the coordinate values of the pixel points with the pixel values not being zero in the first area and the second area, not only the first area, but also the handwriting erased in the first area is the handwriting covered by the pixel points with the pixel values not being zero, not the handwriting in the whole first area, so that the continuous erasing of the handwriting is realized, the technical effects of improving the erasing accuracy and ensuring the erasing track to be continuous are achieved, and the technical problems that the erasing accuracy is low and the erasing track is discontinuous in the prior art are solved.
In the basis of the above embodiment, the second determination module includes: the first acquisition unit is used for acquiring a first coordinate value of a central point in a first area and a second coordinate value of the central point in a second area; a first determining unit for determining a straight line based on the first coordinate value and the second coordinate value; the second obtaining unit is used for obtaining a third coordinate value of a preset pixel point which is farthest away from the straight line in the first area; the third obtaining unit is used for obtaining a fourth coordinate value of a preset pixel point which is farthest away from the straight line in the second area; and a second determining unit for determining the erasing area according to the third coordinate value and the fourth coordinate value.
In the basis of the above embodiment, the first determination module includes: the fourth obtaining unit is used for obtaining coordinate values of two adjacent pixel points in the moving track; and the third determining unit is used for determining the first area and the second area according to the coordinate values of the two adjacent pixel points.
In the basis of the above embodiment, two adjacent pixel points are respectively determined as the center points of the first region and the second region.
On the basis of the above embodiment, the erasing module includes: and the setting unit is used for setting the pixel values of the preset pixels in the first area and the pixels in the erasing area to be zero.
On the basis of the above embodiment, the setting unit includes: the judgment submodule is used for judging whether an intersection exists between the first area and the second area; the first setting submodule is used for setting the pixel value of a preset pixel point meeting a first preset condition in the first area to be zero if the first area and the second area have intersection, wherein the preset pixel point meeting the first preset condition is a preset pixel point which is not located in the second area; and the second setting submodule is used for setting the pixel values of all preset pixels in the first area to be zero if the intersection does not exist between the first area and the second area.
On the basis of the above embodiment, the setting unit further includes: and the third setting submodule is used for setting the pixel value of the pixel point meeting the second preset condition in the erasing area to be zero, wherein the pixel point meeting the second preset condition is a preset pixel point which is not positioned in the first area or the second area.
On the basis of the above embodiment, the device for erasing handwriting further includes: the setting module is used for setting the pixel values of the preset pixels in the second area to preset values after the first area and the second area which are used for displaying the bitmap of the erasing control are determined, wherein the preset values are the pixel values of the preset pixels in the bitmap of the erasing control.
On the basis of the above embodiment, the erasing module is further configured to erase the writing in the area corresponding to the preset pixel point in the second area if it is detected that the erasing control stops moving after the writing in the area corresponding to the preset pixel point in the first area and the writing in the erasing area are erased.
The device for erasing handwriting provided above can be used for executing the method for erasing handwriting provided in embodiments 1 and 2 above, and has corresponding functions and advantages.
Example 6
According to the embodiment of the invention, the embodiment of the erasing device of the handwriting is also provided. The erasing device for the handwriting provided by the embodiment can be integrated in erasing equipment for the handwriting, the erasing equipment for the handwriting can be formed by two or more physical entities or can be formed by one physical entity, and the erasing equipment for the handwriting can be a computer, a mobile phone, a flat panel, a projector or an intelligent interactive flat panel and the like. In the embodiment, the description is given by taking the intelligent interactive tablet as an erasing device for writing handwriting as an example.
Fig. 13 is a schematic structural diagram of an erasing apparatus of a second handwriting according to embodiment 6 of the present invention, as shown in fig. 13, the apparatus includes: a display module 132 and a concealment module 134.
The display module 132 is configured to sequentially display bitmaps of the erasure control in a first area and a second area, where the first area and the second area are determined according to a movement track of the erasure control, and the second area is adjacent to the first area; a hiding module 134, configured to hide writing traces in an erasure track that a bitmap of the erasure control passes through, where the erasure track includes: the erasing area is determined according to coordinate values of preset pixel points in the first area and the second area, and the preset pixel points are pixel points with non-zero pixel values in a bitmap of the erasing control.
In the above embodiment of the present invention, after the movement track of the erasing control is detected, the second area currently displayed by the bitmap of the erasing control and the previous adjacent first area may be determined according to the movement track, and further according to the coordinate values of the pixel points whose pixel values are not zero in the first area and the second area, the erasing area in which the bitmap of the erasing control moves from the first area to the second area may be determined, so that the written traces in the area corresponding to the pixel point whose pixel value is not zero in the first area and the erasing area may be erased. Compared with the prior art, the erasing area is determined according to the coordinate values of the pixel points with the pixel values not being zero in the first area and the second area, not only the first area, but also the handwriting erased in the first area is the handwriting covered by the pixel points with the pixel values not being zero, not the handwriting in the whole first area, so that the continuous erasing of the handwriting is realized, the technical effects of improving the erasing accuracy and ensuring the erasing track to be continuous are achieved, and the technical problems that the erasing accuracy is low and the erasing track is discontinuous in the prior art are solved.
The device for erasing handwriting provided above can be used to execute the method for erasing handwriting provided in embodiment 3 above, and has corresponding functions and advantages.
Example 7
According to the embodiment of the invention, the embodiment of the erasing device of the handwriting is also provided. The erasing device for the handwriting provided by the embodiment can be integrated in erasing equipment for the handwriting, the erasing equipment for the handwriting can be formed by two or more physical entities or can be formed by one physical entity, and the erasing equipment for the handwriting can be a computer, a mobile phone, a flat panel, a projector or an intelligent interactive flat panel and the like. In the embodiment, the description is given by taking the intelligent interactive tablet as an erasing device for writing handwriting as an example.
Fig. 14 is a schematic structural diagram of an erasing apparatus of a third writing script according to embodiment 7 of the present invention, as shown in fig. 14, the apparatus includes: a first display module 142 and a second display module 144.
The first display module 142 is configured to sequentially display bitmaps of the erasure control in a first area and a second area, where the first area and the second area are determined according to a movement track of the erasure control, and the second area is adjacent to the first area; the second display module 144 is configured to display an erasing result of the writing trace, where the erasing result is a result obtained by erasing the writing trace in an area corresponding to a preset pixel point in the first area and in an erasing area, the erasing area is determined according to coordinate values of preset pixel points in the first area and in the second area, and the preset pixel point is a pixel point with a non-zero pixel value in the bitmap of the erasing control.
In the above embodiment of the present invention, after the movement track of the erasing control is detected, the second area currently displayed by the bitmap of the erasing control and the previous adjacent first area may be determined according to the movement track, and further according to the coordinate values of the pixel points whose pixel values are not zero in the first area and the second area, the erasing area in which the bitmap of the erasing control moves from the first area to the second area may be determined, so that the written traces in the area corresponding to the pixel point whose pixel value is not zero in the first area and the erasing area may be erased. Compared with the prior art, the erasing area is determined according to the coordinate values of the pixel points with the pixel values not being zero in the first area and the second area, not only the first area, but also the handwriting erased in the first area is the handwriting covered by the pixel points with the pixel values not being zero, not the handwriting in the whole first area, so that the continuous erasing of the handwriting is realized, the technical effects of improving the erasing accuracy and ensuring the erasing track to be continuous are achieved, and the technical problems that the erasing accuracy is low and the erasing track is discontinuous in the prior art are solved.
The device for erasing handwriting provided above can be used to execute the method for erasing handwriting provided in the above embodiment 4, and has corresponding functions and advantages.
Example 8
According to an embodiment of the present invention, an embodiment of an erasing apparatus for handwriting is provided.
Fig. 15 is a schematic structural diagram of an erasing apparatus of handwriting according to embodiment 8 of the present invention, as shown in fig. 15, the apparatus includes: a detection device 10 and a processor 20. The number of the processors 20 in the device for erasing the handwriting can be one or more, and one processor 20 is taken as an example in fig. 15. The detection device 10 and the processor 20 of the device for erasing handwriting can be connected by a bus or other means, and the bus connection is taken as an example in fig. 15. In the embodiment, the erasing device for handwriting can be a computer, a mobile phone, a tablet, a projector or an intelligent interactive tablet and the like. In the embodiment, description is given by taking an erasing device of handwriting as an example of an intelligent interactive tablet.
The detection device 10 may be a detection device 10 for implementing a touch function in the smart interactive tablet, which may be a capacitive sensor, an electromagnetic sensor or an infrared touch frame, and the detection device 10 is configured to detect a touch operation on a display screen of the smart interactive tablet and send a response signal to the processor 20 or other devices. Optionally, when the detection device 10 is an infrared touch frame, the infrared touch frame is disposed around the display screen of the smart interactive tablet, and may also be configured to receive an infrared signal and send the infrared signal to the processor 20 or other devices.
The processor 20 executes various functional applications of the device and data processing by executing software programs, instructions and modules stored in the memory, namely, implements the handwriting erasing method described above. The memory in the device for erasing the handwriting may be one or more, and the memory is a computer-readable storage medium, which may be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the annotation display method according to any embodiment of the present invention (for example, the detection module 122, the first determination module 124, the second determination module 126, and the erasing module 128 in the device for erasing the handwriting). The memory can mainly comprise a program storage area and a data storage area, wherein the program storage area can store an operating system and an application program required by at least one function; the storage data area may store data created according to use of the device, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory may further include memory located remotely from the processor 60, which may be connected to the device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Specifically, in the embodiment, the detection device 10 is configured to detect a moving track of the erasing control; when the processor 20 executes one or more programs stored in the memory, the following operations are implemented: determining a first area and a second area for displaying a bitmap of an erasing control according to the moving track, wherein the second area is adjacent to the first area and is a current display area of the bitmap of the erasing control; determining an erasing area according to coordinate values of preset pixel points in the first area and the second area, wherein the preset pixel points are pixel points with pixel values not being zero in a bitmap of the erasing control; and erasing the writing handwriting in the area corresponding to the preset pixel point in the first area and the erasing area.
In the base of the above embodiment, in order to implement the determining of the first region and the second region of the bitmap for displaying the erasure control, the one or more processors 20 implement the following operations: obtaining coordinate values of two adjacent pixel points in the moving track; and determining a first region and a second region according to the coordinate values of two adjacent pixel points.
In the foregoing embodiment, in order to implement the determination of the first region and the second region of the bitmap for displaying the erasure control, the one or more processors 20 may determine two adjacent pixel points as center points of the first region and the second region, respectively.
In the basis of the above embodiment, the one or more processors 20 implement the following operations in order to determine the erasure area: acquiring a first coordinate value of a central point in a first area and a second coordinate value of the central point in a second area; determining a straight line according to the first coordinate value and the second coordinate value; acquiring a third coordinate value of a preset pixel point which is farthest away from the straight line in the first region; acquiring a fourth coordinate value of a preset pixel point which is farthest away from the straight line in the second region; and determining the erasing area according to the third coordinate value and the fourth coordinate value.
In the basis of the foregoing embodiment, in order to erase the writing traces in the area corresponding to the preset pixel point in the first area and in the erasing area, the one or more processors 20 specifically implement the following operations: and setting the pixel values of the preset pixels in the first region and the pixels in the erasing region to be zero.
In the foregoing embodiment, in order to set the pixel value of the preset pixel point in the first region to zero, the one or more processors 20 specifically implement the following operations: judging whether the first area and the second area have intersection; if the first area and the second area have intersection, setting the pixel value of a preset pixel point meeting a first preset condition in the first area to be zero, wherein the preset pixel point meeting the first preset condition is a preset pixel point which is not located in the second area; and if the first area and the second area do not have intersection, setting the pixel values of all preset pixel points in the first area to be zero.
In the foregoing embodiment, in order to set the pixel value of the pixel point in the erasing area to zero, the one or more processors 20 specifically implement the following operations: and setting the pixel value of the pixel point meeting the second preset condition in the erasing area to be zero, wherein the pixel point meeting the second preset condition is a preset pixel point which is not located in the first area or the second area.
In the basis of the above embodiment, the one or more processors 20, after determining the first and second regions for displaying the bitmap of the erasure control, further perform the following operations: and setting the pixel values of the preset pixels in the second area as preset values, wherein the preset values are the pixel values of the preset pixels in the bitmap of the erasing control.
In the basis of the above embodiment, after erasing the writing traces in the area corresponding to the preset pixel point in the first area and in the erasing area, the one or more processors 20 further implement the following operations: and if the erasing control is detected to stop moving, erasing the handwriting in the area corresponding to the preset pixel point in the second area.
The erasing device of the handwriting provided above can be used for executing the erasing method of the handwriting provided in embodiments 1 and 2 above, and has corresponding functions and advantages.
Example 9
According to the embodiment of the invention, the embodiment of the erasing device of the handwriting is also provided.
Fig. 16 is a schematic structural diagram of another device for erasing handwriting according to embodiment 9 of the invention, as shown in fig. 16, the device includes: a display 30 and a processor 20. The display 30 and the processor 20 of the device for erasing handwriting can be connected by a bus or other means, as exemplified by the bus connection in fig. 16.
The display 30 is a touch-enabled display 30, which may be a capacitive screen, an electromagnetic screen, or an infrared screen. In general, the display 30 is used for displaying data according to an instruction of the processor 20, and also for receiving a touch operation applied to the display 30 and transmitting a corresponding signal to the processor 20 or other devices. Optionally, when the display 30 is an infrared screen, the display further includes an infrared touch frame, and the infrared touch frame is disposed around the display 30, and may also be configured to receive an infrared signal and send the infrared signal to the processor 20 or other devices.
Specifically, in the embodiment, the display 30 is configured to sequentially display bitmaps of the erasure control in a first area and a second area, where the first area and the second area are determined according to the movement track of the erasure control, and the second area is adjacent to the first area; when the processor 20 executes one or more programs stored in the memory, the following operations are implemented: controlling a display to hide writing in an erasing track through which a bitmap of an erasing control passes, wherein the erasing track comprises: the erasing area is determined according to coordinate values of preset pixel points in the first area and the second area, and the preset pixel points are pixel points with non-zero pixel values in a bitmap of the erasing control.
The erasing device for handwriting provided above can be used to execute the erasing method for handwriting provided above in embodiment 3, and has corresponding functions and advantages.
Example 10
According to the embodiment of the invention, the embodiment of the erasing device of the handwriting is also provided.
As shown in fig. 16, the apparatus includes: a display 30 and a processor 20.
Specifically, in the embodiment, the display 30 is configured to sequentially display bitmaps of the erasure control in a first area and a second area, where the first area and the second area are determined according to the movement track of the erasure control, and the second area is adjacent to the first area; when the processor 20 executes one or more programs stored in the memory, the following operations are implemented: and outputting an erasing result of the handwriting to a display for displaying, wherein the erasing result is obtained by erasing the handwriting in an area corresponding to a preset pixel point in the first area and in an erasing area, the erasing area is determined according to coordinate values of preset pixel points in the first area and the second area, and the preset pixel points are pixel points with non-zero pixel values in a bitmap of the erasing control.
The erasing device for handwriting provided above can be used to execute the erasing method for handwriting provided above in embodiment 4, and has corresponding functions and advantages.
Example 11
According to an embodiment of the present invention, there is further provided an embodiment of a storage medium, where the storage medium includes a stored program, and where the program is executed to control a device in which the storage medium is located to execute the method for erasing handwriting provided in any of the above embodiments.
Example 12
According to an embodiment of the present invention, there is further provided an embodiment of a processor, where the processor is configured to execute a program, where the program executes the method for erasing handwriting provided in any of the above embodiments.
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.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (18)

1. A method for erasing handwriting, comprising:
detecting the moving track of the erasing control;
determining a first area and a second area for displaying the bitmap of the erasing control according to the moving track, wherein the second area is adjacent to the first area, and the second area is a current display area of the bitmap of the erasing control;
determining an erasing area according to coordinate values of preset pixel points in the first area and the second area, wherein the preset pixel points are pixel points with pixel values not being zero in a bitmap of the erasing control;
erasing the writing handwriting in the area corresponding to the preset pixel point in the first area and the erasing area;
determining an erasing area according to coordinate values of preset pixel points in the first area and the second area, wherein the determining the erasing area comprises:
acquiring a first coordinate value of a central point in the first area and a second coordinate value of the central point in the second area;
determining a straight line according to the first coordinate value and the second coordinate value;
acquiring a third coordinate value of a preset pixel point which is farthest away from the straight line in the first region;
acquiring a fourth coordinate value of a preset pixel point which is farthest away from the straight line in the second region;
and determining the erasing area according to the third coordinate value and the fourth coordinate value.
2. The method of claim 1, wherein determining a first area and a second area for displaying a bitmap of the erasure control according to the movement trajectory comprises:
obtaining coordinate values of two adjacent pixel points in the moving track;
and determining the first region and the second region according to the coordinate values of the two adjacent pixel points.
3. The method according to claim 2, wherein the two adjacent pixels are determined as center points of the first region and the second region, respectively.
4. The method according to claim 1, wherein erasing the writing in the area corresponding to the preset pixel point in the first area and the erasing area comprises:
and setting the pixel values of the preset pixel points in the first area and the pixel values of the pixel points in the erasing area to be zero.
5. The method of claim 4, wherein setting the pixel value of the predetermined pixel point in the first region to zero comprises:
judging whether an intersection exists between the first area and the second area;
if the first area and the second area have intersection, setting the pixel value of a preset pixel point meeting a first preset condition in the first area to be zero, wherein the preset pixel point meeting the first preset condition is a preset pixel point which is not located in the second area;
and if the first area and the second area do not have intersection, setting the pixel values of all preset pixel points in the first area to be zero.
6. The method of claim 4, wherein setting the pixel values of the pixels in the erased area to zero comprises:
and setting the pixel value of the pixel point meeting a second preset condition in the erasing area to be zero, wherein the pixel point meeting the second preset condition is a preset pixel point which is not located in the first area or the second area.
7. The method of claim 1, wherein after determining the first and second regions for displaying the bitmap of the erasure control, the method further comprises:
and setting the pixel value of the preset pixel point in the second area as a preset value, wherein the preset value is the pixel value of the preset pixel point in the bitmap of the erasing control.
8. The method according to claim 1, wherein after erasing the writing handwriting in the area corresponding to the preset pixel point in the first area and in the erasing area, the method further comprises:
and if the erasing control is detected to stop moving, erasing the handwriting in the area corresponding to the preset pixel point in the second area.
9. A method for erasing handwriting, comprising:
sequentially displaying bitmaps of an erasing control in a first area and a second area, wherein the first area and the second area are determined according to a moving track of the erasing control, and the second area is adjacent to the first area;
hiding writing in an erasing track through which the bitmap of the erasing control passes, wherein the erasing track comprises: the erasing area is determined according to coordinate values of the preset pixel points in the first area and the second area, and the preset pixel points are pixel points with non-zero pixel values in the bitmap of the erasing control;
wherein, the erasing area is determined according to the coordinate values of the preset pixel points in the first area and the second area, and the erasing area comprises: acquiring a first coordinate value of a central point in the first area and a second coordinate value of the central point in the second area; determining a straight line according to the first coordinate value and the second coordinate value; acquiring a third coordinate value of a preset pixel point which is farthest away from the straight line in the first region; acquiring a fourth coordinate value of a preset pixel point which is farthest away from the straight line in the second region; and determining the erasing area according to the third coordinate value and the fourth coordinate value.
10. A method for erasing handwriting, comprising:
sequentially displaying bitmaps of an erasing control in a first area and a second area, wherein the first area and the second area are determined according to a moving track of the erasing control, and the second area is adjacent to the first area;
displaying an erasing result of the writing handwriting, wherein the erasing result is obtained by erasing the writing handwriting in an area corresponding to a preset pixel point in the first area and in an erasing area, the erasing area is determined according to coordinate values of the preset pixel point in the first area and the second area, and the preset pixel point is a pixel point with a non-zero pixel value in a bitmap of the erasing control;
wherein, the erasing area is determined according to the coordinate values of the preset pixel points in the first area and the second area, and the erasing area comprises: acquiring a first coordinate value of a central point in the first area and a second coordinate value of the central point in the second area; determining a straight line according to the first coordinate value and the second coordinate value; acquiring a third coordinate value of a preset pixel point which is farthest away from the straight line in the first region; acquiring a fourth coordinate value of a preset pixel point which is farthest away from the straight line in the second region; and determining the erasing area according to the third coordinate value and the fourth coordinate value.
11. An apparatus for erasing handwriting, comprising:
the detection module is used for detecting the moving track of the erasing control;
a first determining module, configured to determine, according to the moving trajectory, a first region and a second region for displaying a bitmap of the erasure control, where the second region is adjacent to the first region, and the second region is a current display region of the bitmap of the erasure control;
the second determining module is used for determining an erasing area according to coordinate values of preset pixel points in the first area and the second area, wherein the preset pixel points are pixel points with pixel values not being zero in a bitmap of the erasing control;
the erasing module is used for erasing the writing handwriting in the area corresponding to the preset pixel point in the first area and the erasing area;
wherein the second determining module comprises:
acquiring a first coordinate value of a central point in the first area and a second coordinate value of the central point in the second area;
determining a straight line according to the first coordinate value and the second coordinate value;
acquiring a third coordinate value of a preset pixel point which is farthest away from the straight line in the first region;
acquiring a fourth coordinate value of a preset pixel point which is farthest away from the straight line in the second region;
and determining the erasing area according to the third coordinate value and the fourth coordinate value.
12. An apparatus for erasing handwriting, comprising:
the display module is used for sequentially displaying bitmaps of an erasing control in a first area and a second area, wherein the first area and the second area are determined according to the moving track of the erasing control, and the second area is adjacent to the first area;
a hiding module, configured to hide writing in an erasing track through which a bitmap of the erasing control passes, where the erasing track includes: the erasing area is determined according to coordinate values of the preset pixel points in the first area and the second area, and the preset pixel points are pixel points with non-zero pixel values in the bitmap of the erasing control;
wherein, the erasing area is determined according to the coordinate values of the preset pixel points in the first area and the second area, and the erasing area comprises: acquiring a first coordinate value of a central point in the first area and a second coordinate value of the central point in the second area; determining a straight line according to the first coordinate value and the second coordinate value; acquiring a third coordinate value of a preset pixel point which is farthest away from the straight line in the first region; acquiring a fourth coordinate value of a preset pixel point which is farthest away from the straight line in the second region; and determining the erasing area according to the third coordinate value and the fourth coordinate value.
13. An apparatus for erasing handwriting, comprising:
the first display module is used for sequentially displaying bitmaps of an erasing control in a first area and a second area, wherein the first area and the second area are determined according to a moving track of the erasing control, and the second area is adjacent to the first area;
the second display module is used for displaying an erasing result of the writing handwriting, wherein the erasing result is obtained by erasing the writing handwriting in an area corresponding to a preset pixel point in the first area and in an erasing area, the erasing area is determined according to coordinate values of the preset pixel point in the first area and the second area, and the preset pixel point is a pixel point with a pixel value not zero in a bitmap of the erasing control;
wherein, the erasing area is determined according to the coordinate values of the preset pixel points in the first area and the second area, and the erasing area comprises: acquiring a first coordinate value of a central point in the first area and a second coordinate value of the central point in the second area; determining a straight line according to the first coordinate value and the second coordinate value; acquiring a third coordinate value of a preset pixel point which is farthest away from the straight line in the first region; acquiring a fourth coordinate value of a preset pixel point which is farthest away from the straight line in the second region; and determining the erasing area according to the third coordinate value and the fourth coordinate value.
14. An apparatus for erasing writing, comprising:
the detection device is used for detecting the moving track of the erasing control;
the processor is connected with the detection device and used for determining a first area and a second area for displaying the bitmap of the erasing control according to the moving track, determining an erasing area according to coordinate values of preset pixel points in the first area and the second area, and erasing handwriting in the area corresponding to the preset pixel points in the first area and the erasing area, wherein the second area is adjacent to the first area, the second area is a current display area of the bitmap of the erasing control, and the preset pixel points are pixel points with pixel values not zero in the bitmap of the erasing control;
determining an erasing area according to coordinate values of preset pixel points in the first area and the second area, wherein the determining the erasing area comprises:
acquiring a first coordinate value of a central point in the first area and a second coordinate value of the central point in the second area;
determining a straight line according to the first coordinate value and the second coordinate value;
acquiring a third coordinate value of a preset pixel point which is farthest away from the straight line in the first region;
acquiring a fourth coordinate value of a preset pixel point which is farthest away from the straight line in the second region;
and determining the erasing area according to the third coordinate value and the fourth coordinate value.
15. An apparatus for erasing writing, comprising:
the display is used for sequentially displaying bitmaps of an erasing control in a first area and a second area, wherein the first area and the second area are determined according to a moving track of the erasing control, and the second area is adjacent to the first area;
the processor is connected with the display and is used for controlling the display to hide writing in an erasing track through which the bitmap of the erasing control passes, wherein the erasing track comprises: the erasing area is determined according to coordinate values of the preset pixel points in the first area and the second area, and the preset pixel points are pixel points with non-zero pixel values in the bitmap of the erasing control;
wherein, the erasing area is determined according to the coordinate values of the preset pixel points in the first area and the second area, and the erasing area comprises: acquiring a first coordinate value of a central point in the first area and a second coordinate value of the central point in the second area; determining a straight line according to the first coordinate value and the second coordinate value; acquiring a third coordinate value of a preset pixel point which is farthest away from the straight line in the first region; acquiring a fourth coordinate value of a preset pixel point which is farthest away from the straight line in the second region; and determining the erasing area according to the third coordinate value and the fourth coordinate value.
16. An apparatus for erasing writing, comprising:
the display is used for sequentially displaying bitmaps of an erasing control in a first area and a second area, wherein the first area and the second area are determined according to a moving track of the erasing control, and the second area is adjacent to the first area;
the processor is connected with the display and is used for outputting an erasing result of the handwriting to the display for displaying, wherein the erasing result is obtained by erasing the handwriting in an area corresponding to a preset pixel point in the first area and in an erasing area, the erasing area is determined according to coordinate values of the preset pixel point in the first area and the second area, and the preset pixel point is a pixel point of which the pixel value is not zero in a bitmap of the erasing control;
wherein, the erasing area is determined according to the coordinate values of the preset pixel points in the first area and the second area, and the erasing area comprises: acquiring a first coordinate value of a central point in the first area and a second coordinate value of the central point in the second area; determining a straight line according to the first coordinate value and the second coordinate value; acquiring a third coordinate value of a preset pixel point which is farthest away from the straight line in the first region; acquiring a fourth coordinate value of a preset pixel point which is farthest away from the straight line in the second region; and determining the erasing area according to the third coordinate value and the fourth coordinate value.
17. A storage medium, characterized in that the storage medium comprises a stored program, wherein the device where the storage medium is located is controlled to execute the method for erasing written handwriting according to any one of claims 1 to 10 when the program runs.
18. A processor, characterized in that the processor is configured to run a program, wherein the program is configured to execute the method for erasing handwriting according to any one of claims 1 to 10 when running.
CN201810403702.2A 2018-04-28 2018-04-28 Method, device and equipment for erasing handwriting Active CN108733296B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810403702.2A CN108733296B (en) 2018-04-28 2018-04-28 Method, device and equipment for erasing handwriting

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810403702.2A CN108733296B (en) 2018-04-28 2018-04-28 Method, device and equipment for erasing handwriting

Publications (2)

Publication Number Publication Date
CN108733296A CN108733296A (en) 2018-11-02
CN108733296B true CN108733296B (en) 2021-07-09

Family

ID=63939410

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810403702.2A Active CN108733296B (en) 2018-04-28 2018-04-28 Method, device and equipment for erasing handwriting

Country Status (1)

Country Link
CN (1) CN108733296B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110007838B (en) * 2019-04-02 2020-12-11 广州视源电子科技股份有限公司 Processing method, device and equipment for erasing control
CN110633042A (en) * 2019-08-23 2019-12-31 厦门亿联网络技术股份有限公司 Handwriting erasing method, device and equipment for electronic whiteboard
CN112051939B (en) * 2020-08-28 2022-06-21 芜湖宏嘉科技有限公司 Network teaching system for electronic screen
CN115705141A (en) * 2021-08-11 2023-02-17 广州视源电子科技股份有限公司 Handwriting erasing method and device, storage medium and electronic equipment
CN113741729A (en) * 2021-08-23 2021-12-03 深圳市唯酷光电有限公司 Local erasing method, device, liquid crystal writing equipment and storage medium
CN115098014A (en) * 2021-12-29 2022-09-23 山东蓝贝思特教装集团股份有限公司 Handwriting display method, controller and TFT liquid crystal writing device
CN114721533B (en) * 2022-06-07 2022-10-04 山东蓝贝思特教装集团股份有限公司 Handwriting display method for TFT liquid crystal writing device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101609560B (en) * 2009-07-16 2011-09-14 广东威创视讯科技股份有限公司 Method for erasing handwriting
CN103106029B (en) * 2013-01-18 2015-12-02 程抒一 Touch-screen erasing gesture recognition system
US9916017B2 (en) * 2014-07-03 2018-03-13 Adobe Systems Incorporated Smart eraser to erase digital strokes
CN104484121A (en) * 2014-12-29 2015-04-01 广州视睿电子科技有限公司 Method and device for erasing contents on touch screen
CN104992460B (en) * 2015-05-28 2019-05-07 深圳市创易联合科技有限公司 The method for wiping vector person's handwriting

Also Published As

Publication number Publication date
CN108733296A (en) 2018-11-02

Similar Documents

Publication Publication Date Title
CN108733296B (en) Method, device and equipment for erasing handwriting
US11301200B2 (en) Method of providing annotation track on the content displayed on an interactive whiteboard, computing device and non-transitory readable storage medium
US8836649B2 (en) Information processing apparatus, information processing method, and program
US20170322713A1 (en) Display apparatus and method for controlling the same and computer-readable recording medium
US10802663B2 (en) Information processing apparatus, information processing method, and information processing system
US20140285453A1 (en) Portable terminal and method for providing haptic effect
US8542199B2 (en) Image processing apparatus, image processing method, and program
CN103729055A (en) Multi display apparatus, input pen, multi display apparatus controlling method, and multi display system
CN104199552A (en) Multi-screen display method, device and system
KR102393295B1 (en) Apparatus and method for styling a content
US10466862B2 (en) Input device, electronic apparatus for receiving signal from input device and controlling method thereof
CN109215098B (en) Handwriting erasing method and device
US9177405B2 (en) Image processing apparatus, computer program product, and image processing system
CN111309203B (en) Method and device for acquiring positioning information of mouse cursor
CN102184077A (en) Computing device amplifying gesture
US20190065030A1 (en) Display apparatus and control method thereof
EP2840517A2 (en) Method and apparatus for managing images in electronic device
CN110007838B (en) Processing method, device and equipment for erasing control
JP6540367B2 (en) Display control apparatus, communication terminal, communication system, display control method, and program
US20130293495A1 (en) Method for inputting touch and touch display apparatus
JP2017068683A (en) Information processing apparatus, image transmission method, and program
JP2019067111A (en) Display control device and program
CN110737417B (en) Demonstration equipment and display control method and device of marking line of demonstration equipment
CN110888581A (en) Element transfer method, device, equipment and storage medium
CN103853470A (en) Data processing and displaying method, device and system

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