CN115407889A - Handwriting erasing method and device and electronic whiteboard - Google Patents

Handwriting erasing method and device and electronic whiteboard Download PDF

Info

Publication number
CN115407889A
CN115407889A CN202110584302.8A CN202110584302A CN115407889A CN 115407889 A CN115407889 A CN 115407889A CN 202110584302 A CN202110584302 A CN 202110584302A CN 115407889 A CN115407889 A CN 115407889A
Authority
CN
China
Prior art keywords
area
electronic whiteboard
erasing
writing
erasing area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110584302.8A
Other languages
Chinese (zh)
Inventor
陈钟辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics 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 Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN202110584302.8A priority Critical patent/CN115407889A/en
Publication of CN115407889A publication Critical patent/CN115407889A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/04162Control or interface arrangements specially adapted for digitisers for exchanging data with external devices, e.g. smart pens, via the digitiser sensing hardware
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Abstract

The invention discloses a method and a device for erasing handwriting and an electronic whiteboard. Wherein, the method comprises the following steps: displaying an electronic whiteboard for writing, wherein writing handwriting is displayed on the electronic whiteboard; determining a contact position of a writing pen used for writing in the electronic whiteboard and the electronic whiteboard, and generating an erasing area in the electronic whiteboard according to the contact position; acquiring state information of a writing pen for writing operation in the electronic whiteboard; and adjusting the area of the erasing area according to the state information to obtain a target area, and erasing the handwriting covered by the target area. The invention solves the technical problem of poor writing experience caused by the fact that the area size of the erasing area cannot be adjusted conveniently and accurately.

Description

Handwriting erasing method and device and electronic whiteboard
Technical Field
The invention relates to the field of electronic equipment, in particular to a handwriting erasing method and device and an electronic whiteboard.
Background
At present, more and more electronic products with touch function are equipped with active function pens, especially large-size commercial application electronic whiteboards (over 32 inches). However, in the practical application process, the current main functions of the pen are common writing, pressure writing and the like. In addition, on the electronic whiteboard, handwriting is to be erased, and more ways such as large-area palm erasing, selective functional erasing or customized induction functional erasing (such as tail erasing) are not sufficient to bring convenience to the full play of the functional characteristics of the pen. And the above erasing manner generally cannot accurately control the size of the erasing area or conveniently adjust the size of the area of the erasing area.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a method and a device for erasing handwriting and an electronic whiteboard, which at least solve the technical problem of poor writing experience caused by the fact that the area of an erasing area cannot be adjusted conveniently and accurately.
According to an aspect of the embodiments of the present invention, there is provided a method for erasing writing, including: displaying an electronic whiteboard for writing, wherein writing handwriting is displayed on the electronic whiteboard; determining a contact position of a writing pen used for writing in the electronic whiteboard and the electronic whiteboard, and generating an erasing area in the electronic whiteboard according to the contact position; acquiring state information of a writing pen for writing in the electronic whiteboard; and adjusting the area of the erasing area according to the state information to obtain a target area, and erasing the handwriting covered by the target area.
Optionally, acquiring status information of a writing pen used for writing in the electronic whiteboard includes: acquiring a first inclination angle of a writing pen relative to the electronic whiteboard when the writing pen is in contact with the electronic whiteboard, and taking the first inclination angle as state information, wherein the first inclination angle is an included angle between the writing pen and the vertical direction of a display screen where the electronic whiteboard is located; adjusting the area of the erasing area according to the state information comprises the following steps: and determining a first target erasing area corresponding to the first inclination angle according to a first incidence relation between the inclination angle and the erasing area, and adjusting the area of the erasing area to be the first target erasing area.
Optionally, the magnitude of the first inclination angle is positively correlated with the magnitude of the first target erase area.
Optionally, obtaining a first tilt angle of the writing pen relative to the electronic whiteboard when the writing pen is in contact with the electronic whiteboard includes: and receiving a second inclination angle detected by the writing pen through the built-in angle sensor module, and determining the first inclination angle based on the second inclination angle, wherein the second inclination angle is the angle of the writing pen relative to the target reference plane.
Optionally, determining the first tilt angle based on the second tilt angle comprises: acquiring a third inclination angle of the electronic whiteboard relative to the target reference plane; the first tilt angle is determined from a difference between the second tilt angle and the third tilt angle.
Optionally, acquiring the state information of the writing pen for performing writing operation in the electronic whiteboard includes: acquiring a pressure value applied to a touch screen where the electronic whiteboard is located by the writing pen when the writing pen is in contact with the electronic whiteboard, and acquiring state information of the pressure value; adjusting the area of the erasing area according to the state information comprises the following steps: and determining a second target erasing area corresponding to the pressure value according to a second incidence relation between the pressure value and the area of the erasing area, and adjusting the area of the erasing area to be the second target erasing area, wherein the magnitude of the pressure value is positively correlated with the magnitude of the second target erasing area.
Optionally, acquiring status information of a writing pen used for writing in the electronic whiteboard includes: acquiring the speed of the moving speed of a contact point of a writing pen and a touch screen where the electronic whiteboard is located when the writing pen is in contact with the electronic whiteboard, and taking the speed as state information; adjusting the area of the erasing area according to the state information comprises the following steps: and determining a third target erasing area corresponding to the speed according to a third correlation between the speed and the area of the erasing area, and adjusting the area of the erasing area to be a second target erasing area, wherein the speed is positively correlated with the third target erasing area.
Optionally, before generating the erasing area in the electronic whiteboard according to the contact position, the method further includes: displaying a plurality of erasing area shapes on the electronic whiteboard, wherein the plurality of erasing area shapes comprise a first erasing area and a second erasing area, the first erasing area is an erasing area stored in a set corresponding to the electronic whiteboard, and the second erasing area is a custom shape; in response to a first selection instruction of the target object, one erasing area shape is selected from a plurality of erasing area shapes as a shape of an erasing area generated in the electronic whiteboard.
Optionally, before generating the erasing area in the electronic whiteboard according to the contact position, the method further includes: displaying a plurality of working modes of the stylus on the electronic whiteboard; in response to a second selection instruction of the target object, an erase mode is selected from a plurality of operation modes, wherein in the erase mode, an erase region is generated at the contact position.
According to an aspect of the embodiments of the present invention, there is also provided an apparatus for erasing handwriting, including: the display module is used for displaying the electronic whiteboard used for writing, wherein writing handwriting is displayed on the electronic whiteboard; the electronic whiteboard erasing device comprises a determining module, a judging module and an erasing module, wherein the determining module is used for determining the contact position of a writing pen used for writing in the electronic whiteboard and the electronic whiteboard, and generating an erasing area in the electronic whiteboard according to the contact position; the acquisition module is used for acquiring the state information of a writing pen used for writing in the electronic whiteboard; and the processing module is used for adjusting the area of the erasing area according to the state information to obtain a target area and erasing the handwriting covered by the target area.
According to another aspect of the embodiments of the present invention, there is also provided an electronic whiteboard, including: a memory for storing a program; a processor for executing the program stored in the memory and performing the following functions when executing the program: determining a contact position of a writing pen used for writing in the electronic whiteboard and the electronic whiteboard, and generating an erasing area in the electronic whiteboard according to the contact position; acquiring state information of a writing pen for writing operation in the electronic whiteboard; adjusting the area of the erasing area according to the state information to obtain a target area, and erasing the writing handwriting covered by the target area; the display equipment is used for displaying the electronic whiteboard used for writing and the handwriting needing to be erased; and the communication module is used for receiving the state information of the writing pen.
According to another aspect of the embodiments of the present invention, there is also provided a non-volatile storage medium, which includes a stored program, wherein the program controls a device in which the non-volatile storage medium is located to execute an erasing method of writing when the program runs.
In the embodiment of the invention, an electronic whiteboard for displaying writing is adopted, wherein writing handwriting is displayed on the electronic whiteboard; determining a contact position of a writing pen used for writing in the electronic whiteboard and the electronic whiteboard, and generating an erasing area in the electronic whiteboard according to the contact position; acquiring state information of a writing pen for writing operation in the electronic whiteboard; the area of the erasing area is adjusted according to the state information to obtain the target area, the erasing operation mode is carried out on the handwriting covered by the target area, the purpose of adjusting the area of the erasing area according to the state information of the writing pen state is achieved by detecting the state of the writing pen, the technical effect of quickly and accurately adjusting the size of the erasing area through the writing pen is achieved, and the technical problem that the writing experience is poor due to the fact that the size of the erasing area cannot be conveniently and accurately adjusted is 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 and do not constitute a limitation of the invention. In the drawings:
FIG. 1 is a flow chart of a handwriting erasing method according to an embodiment of the invention;
FIG. 2 is a schematic diagram of a handwriting erasing apparatus according to an embodiment of the present invention;
fig. 3a is a schematic diagram of a positional relationship between a writing pen and an electronic whiteboard according to an embodiment of the present invention;
FIG. 3b is a schematic illustration of an erase region according to an embodiment of the present invention;
fig. 4a is a schematic diagram of a position relationship between a writing pen and an electronic whiteboard according to another embodiment of the present invention;
FIG. 4b is a schematic illustration of another erased area in accordance with an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic whiteboard according to an embodiment 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. Moreover, 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.
In accordance with an embodiment of the present invention, there is provided a method embodiment of a handwriting erasure method, it being 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 presented herein.
Example 1
FIG. 1 is a method for erasing handwriting according to an embodiment of the invention, as shown in FIG. 1, the method includes the following steps:
step S102, displaying an electronic whiteboard for writing, wherein writing handwriting is displayed on the electronic whiteboard;
step S104, determining a contact position between a writing pen for writing in the electronic whiteboard and the electronic whiteboard, and generating an erasing area in the electronic whiteboard according to the contact position;
in some embodiments of the application, before generating an erasing area in the electronic whiteboard according to the contact position, the method further includes: displaying a plurality of working modes of the handwriting pen on the electronic whiteboard; selecting an erase mode from the plurality of operation modes in response to a second selection instruction of the target object, wherein the erase region is generated at the contact position in the erase mode. Note that the shape and size of the erase area generated at this time are default values stored in advance.
The parameters to be determined include the position of the erasing area, the shape and the area of the erasing area to generate the erasing area in the electronic whiteboard. The area of the erasing area can be determined by the technical solution in step S106. The shape of the erasure area can then be determined as follows:
displaying a plurality of erasing area shapes on the electronic whiteboard, wherein the plurality of erasing area shapes comprise a first erasing area and a second erasing area, the first erasing area is an erasing area stored in a set corresponding to the electronic whiteboard, and the second erasing area is a custom shape;
in response to a first selection instruction of a target object (i.e., a user who is using the electronic whiteboard), an erasing area shape is selected from the plurality of erasing area shapes as a shape of an erasing area generated in the electronic whiteboard.
The shape of the first erasing area is generally circular, rectangular, regular polygon, ellipse and the like, and common simple graphs of the center of the graph can be determined. When the shape of the erasing area is the simple figure, the position of the erasing area can be determined by the following method: the position of the contact of the writing pen with the electronic whiteboard is taken as the center of the erasing area, as shown in fig. 3 b. Thus, when the area of the erasing area is determined, the specific position and the coverage area of the erasing area in the electronic whiteboard can be determined.
The customized shape is generated by the electronic whiteboard responding to a second operation instruction and a third operation instruction of the user, and comprises the following steps: the electronic whiteboard responds to the second operation instruction and enters a custom shape generation mode; the electronic whiteboard responds to a writing instruction of the target object and generates handwriting on the electronic whiteboard; and responding to the third operation instruction by the electronic whiteboard, and taking the shape formed by the generated handwriting as the custom shape, wherein the custom shape can be stored by the electronic whiteboard and displayed to a user.
It should be noted that, before the shape formed by the generated handwriting is used as the custom shape, the electronic whiteboard needs to detect the shape formed by the generated handwriting to determine whether the shape is a closed graph. Only if the shape is the closed figure, the shape is taken as the custom shape; and when the shape is not the closed graph, the electronic whiteboard does not take the shape as the custom shape and generates prompt information.
After the custom shape is generated, the user also needs to select a point in the area surrounded by the custom shape as a reference point. After the datum point is selected, the direction of a connecting line between each point on the boundary of the custom shape and the datum point and the ratio of the length of the datum point in the direction and the length of the point on the boundary relative to the preset datum length can be calculated and stored by the electronic whiteboard, so that when a user selects and uses the custom shape as the shape of the erasing area, the erasing area can be quickly generated on the electronic whiteboard.
Step S106, acquiring state information of a writing pen for writing in the electronic whiteboard;
in some embodiments of the present application, there are communication module and multiple sensors in the writing pen, multiple sensors are used for sensing the state of writing pen itself, for example, the gyroscope module is used for detecting the inclination angle of writing pen. And the communication module is used for transmitting the state information of the state to the electronic whiteboard.
In some embodiments of the present application, obtaining status information of a writing pen used for writing in the electronic whiteboard includes: the method comprises the steps of obtaining a first inclination angle of the writing pen relative to the electronic whiteboard when the writing pen (a pen point of the writing pen) is in contact with the electronic whiteboard, and taking the first inclination angle as state information, wherein the first inclination angle is an included angle between the vertical direction of a display screen where the electronic whiteboard is located and the writing pen, namely, a center line of the writing pen and an angle of a disposal direction, as shown in fig. 4a. It should be noted that the magnitude of the first inclination angle is positively correlated to the magnitude of the first target erase area.
As shown in fig. 3a and 3b, fig. 3a is a side view of a pen operating perpendicular to the electronic whiteboard, and fig. 3b is an erasing area in this case.
As shown in fig. 4a and 4b, fig. 4a is a side view of a pen operating at an angle α to the vertical of the electronic whiteboard, and fig. 4b is an erasing area in this case. As can be seen from a comparison between fig. 4b and fig. 3b, when the angle between the pen and the vertical line of the electronic whiteboard becomes larger, the area of the erasing area relative to the area of the electronic whiteboard also increases correspondingly.
Specifically, the adjustment of the area of the erasing area according to the state information may be realized by determining a first target erasing area corresponding to the first inclination angle according to a first association relationship between the inclination angle and the erasing area, and adjusting the area of the erasing area to the first target erasing area, and further determining a corresponding relationship between the inclination angle and the erasing area. The first value set is various areas of the erasing area, and the inclination angles with different sizes respectively correspond to different areas. It should be noted that the association relationship may be a mapping relationship or a functional relationship.
Specifically, when the correlation is a functional relationship, the relationship between the inclination angle and the erasing area is: s = k a. Wherein S represents the area of the erasing area, and the shape of the erasing area can be square, circle, polygon, customized special figure, etc. k is a forward coefficient, which may be a constant or a variable proportional to the screen size, depending on the usage scenario requirements. and a is the included angle between the pen and the screen.
In some embodiments of the present application, a first inclination angle of the writing pen relative to the electronic whiteboard when the writing pen is in contact with the electronic whiteboard can also be obtained in the following manner. The method comprises the following specific steps: receiving a second inclination angle detected by the writing pen through a built-in angle sensor module, and determining the first inclination angle based on the second inclination angle, wherein the second inclination angle is an angle of the writing pen relative to a target reference plane. The angle sensor may be a gyroscope module or another detection module built in the electronic device where the electronic whiteboard is located.
After the angle of the writing pen relative to the target reference plane is obtained, a third inclination angle of the electronic whiteboard relative to the target reference plane is also required to be obtained; determining the first tilt angle in dependence on a difference between the second tilt angle and the third tilt angle. The target reference plane may be arbitrarily set, and for example, the horizontal plane may be used as the target reference plane.
In some embodiments of the present application, a method of adjusting the area of the erasing region by the pressure magnitude of the pressure between the writing pen and the electronic whiteboard may also be provided. The concrete mode is as follows: acquiring a pressure value applied to a touch screen where the electronic whiteboard is located by the writing pen when the writing pen is in contact with the electronic whiteboard, and taking the pressure value as the state information; determining a second target erasing area corresponding to the pressure value according to a second incidence relation between the pressure value and the area of the erasing area, and adjusting the area of the erasing area to the second target erasing area, wherein the magnitude of the pressure value is positively correlated with the magnitude of the second target erasing area. It should be noted that the association relationship may be a mapping relationship or a functional relationship.
Specifically, when the correlation is a functional relationship, the relationship between the area of the erasing area and the pressure is: s = K × P. Wherein S represents the area of the erasing area, and the shape of the erasing area can be square, circle, polygon, customized special figure, etc. k is a forward coefficient, which may be a constant or a variable proportional to the screen size, depending on the usage scenario requirements. P is the pressure value.
In some embodiments of the present application, a method for adjusting the area of the erasing area according to the speed of the writing pen moving on the electronic whiteboard can also be provided. The concrete mode is as follows: acquiring the speed of the moving speed of a contact point of the writing pen and a touch screen where the electronic whiteboard is located when the writing pen is in contact with the electronic whiteboard, and taking the speed as the state information; determining a third target erasing area corresponding to the speed size according to a third correlation between the speed size and the area of the erasing area, and adjusting the area of the erasing area to the third target erasing area, wherein the speed size is positively correlated with the size of the third target erasing area. It should be noted that the association relationship may be a mapping relationship or a functional relationship.
Specifically, when the correlation is a functional relationship, the relationship between the area of the erasing area and the pressure is: s = K × V. Wherein S represents the area of the erasing area, and the shape of the erasing area can be square, circle, polygon, customized special figure, etc. k is a forward coefficient, which may be a constant or a variable proportional to the screen size, depending on the usage scenario requirements. V is the speed of the pen moving on the electronic whiteboard.
Specifically, the speed may be obtained by identifying a movement track of the writing pen and calculating a distance of the movement track within a preset time period, and then dividing the distance by the time period.
It should be noted that, in some examples of the present application, step S106 may be executed first, and then step S104 is executed.
And S108, adjusting the area of the erasing area according to the state information to obtain a target area, and erasing the writing handwriting covered by the target area.
It is understood that the contact position of the writing pen with the electronic whiteboard is constantly moving during the erasing operation. Therefore, the erasing area can also move along with the movement of the writing pen, so that the handwriting at different positions on the electronic whiteboard can be erased.
Through the steps, the area size of the erasing area can be conveniently and accurately adjusted by using the writing pen in the process of erasing the handwriting.
Example 2
Fig. 2 is a device for erasing writing according to an embodiment of the present invention, as shown in fig. 2, the device including: the display module 20 is used for displaying an electronic whiteboard for writing, wherein writing handwriting is displayed on the electronic whiteboard; the determining module 22 is used for determining a contact position between a writing pen used for writing in the electronic whiteboard and the electronic whiteboard, and generating an erasing area in the electronic whiteboard according to the contact position; an obtaining module 24, configured to obtain status information of a writing pen used for performing writing operation in the electronic whiteboard; and the processing module 26 is configured to adjust the area of the erasing area according to the state information to obtain a target area, and perform an erasing operation on the writing trace covered by the target area.
It is understood that the contact position of the writing pen with the electronic whiteboard is constantly moving during the erasing operation. Therefore, the erasing area can also move along with the movement of the writing pen, so that the handwriting at different positions on the electronic whiteboard can be erased.
The determining module 22 may further implement the following functions:
displaying a plurality of working modes of the stylus on the electronic whiteboard; selecting an erase mode from the plurality of operation modes in response to a second selection instruction of the target object, wherein the erase region is generated at the contact position in the erase mode. Note that, the shape and size of the erase area generated at this time are default values stored in advance.
The parameters to be determined include the position of the erasing area, the shape and the area of the erasing area, and the like, when the erasing area is generated in the electronic whiteboard. The area of the erasing area can be determined by the technical solution in step S106. The shape of the erasure area can then be determined as follows:
displaying a plurality of erasing area shapes on the electronic whiteboard, wherein the plurality of erasing area shapes comprise a first erasing area and a second erasing area, the first erasing area is an erasing area stored in a set corresponding to the electronic whiteboard, and the second erasing area is a custom shape;
in response to a first selection instruction of a target object (i.e., a user who is using the electronic whiteboard), an erasing area shape is selected from the plurality of erasing area shapes as a shape of an erasing area generated in the electronic whiteboard.
The shape of the first erasing area is generally circular, rectangular, regular polygon, ellipse and the like, and common simple graphs of the center of the graph can be determined. When the shape of the erasing area is the simple figure, the position of the erasing area can be determined by the following way: the position of the contact of the writing pen with the electronic whiteboard is taken as the center of the erasing area, as shown in fig. 3 b. Thus, when the area of the erasing area is determined, the specific position and the coverage area of the erasing area in the electronic whiteboard can be determined.
The user-defined shape is generated by the electronic whiteboard responding to a second operation instruction and a third operation instruction of a user, and the method comprises the following steps: the electronic whiteboard responds to the second operation instruction and enters a custom shape generation mode; the electronic whiteboard responds to a writing instruction of the target object and generates handwriting on the electronic whiteboard; and the electronic whiteboard responds to the third operation instruction, and takes the shape formed by the generated handwriting as the custom shape, wherein the custom shape can be stored by the electronic whiteboard and displayed to a user.
It should be noted that, before the shape formed by the generated handwriting is used as the custom shape, the electronic whiteboard further needs to detect the shape formed by the generated handwriting and determine whether the shape is a closed figure. Only if the shape is the closed figure, the shape is taken as the custom shape; and when the shape is not the closed graph, the electronic whiteboard does not take the shape as the custom shape and generates prompt information.
After the custom shape is generated, the user also needs to select a point in the area enclosed by the custom shape as a reference point. After the reference point is selected, the direction of a connecting line between each point on the boundary of the custom shape and the reference point and the ratio of the length of the reference point in the direction to the length of the preset reference point on the boundary can be calculated and stored by the electronic whiteboard, so that when a user selects the custom shape as the shape of the erasing area, the erasing area can be quickly generated on the electronic whiteboard.
In some embodiments of the present application, the specific working of the obtaining module 26 is as follows:
in some embodiments of the present application, there are communication module and multiple sensor in the writing pen, multiple sensor is used for responding to the state of writing pen itself, and the angle of inclination that is used for detecting the writing pen like the gyroscope module. And the communication module is used for transmitting the state information of the state to the electronic whiteboard.
In some embodiments of the present application, obtaining status information of a writing pen used for writing in the electronic whiteboard includes: obtain writing pen (writing pen's nib) with when the electronic whiteboard contacts, writing pen is relative to electronic whiteboard's first inclination, and will first inclination regards as status information, wherein, first inclination does electronic whiteboard place display screen's vertical direction with writing pen's contained angle, promptly writing pen's central line with handle the angle of direction, as figure 4a. It should be noted that the magnitude of the first inclination angle is positively correlated to the magnitude of the first target erase area.
As shown in fig. 3a and 3b, fig. 3a is a side view of the pen when it is operated perpendicular to the electronic whiteboard, and fig. 3b is an erasing area in this case.
As shown in fig. 4a and 4b, fig. 4a is a side view of a pen operating at an angle α to the vertical of the electronic whiteboard, and fig. 4b is an erasing area in this case. As can be seen from a comparison between fig. 4b and fig. 3b, when the angle between the pen and the vertical line of the electronic whiteboard becomes larger, the area of the erasing area relative to the area of the electronic whiteboard also increases correspondingly.
Specifically, a first target erasing area corresponding to the first inclination angle may be determined according to a first association relationship between the inclination angle and the erasing area, and the area of the erasing area may be adjusted to the first target erasing area, so as to adjust the area of the erasing area according to the state information, and further determine a correspondence relationship between the inclination angle and the erasing area. The first value set is various area sizes of the erasing area, and the inclination angles with different sizes respectively correspond to different area sizes. It should be noted that the association relationship may be a mapping relationship or a functional relationship.
Specifically, when the correlation is a functional relationship, the relationship between the tilt angle and the erase area is: s = k a. Wherein S represents the area of the erasing area, and the shape of the erasing area can be square, circle, polygon, customized special figure, etc. k is a forward coefficient, which may be a constant or a variable proportional to the screen size, depending on the usage scenario requirements. and a is the included angle between the pen and the screen.
In some embodiments of the present application, a first tilt angle of the writing pen relative to the electronic whiteboard when the writing pen is in contact with the electronic whiteboard may also be obtained as follows. The method comprises the following specific steps: receiving a second inclination angle detected by the writing pen through a built-in angle sensor module, and determining the first inclination angle based on the second inclination angle, wherein the second inclination angle is an angle of the writing pen relative to a target reference plane. The angle sensor may be a gyroscope module or another detection module built in the electronic device where the electronic whiteboard is located.
After the angle of the writing pen relative to the target reference plane is obtained, a third inclination angle of the electronic whiteboard relative to the target reference plane needs to be obtained; determining the first tilt angle in dependence on a difference between the second tilt angle and the third tilt angle. The target reference plane may be arbitrarily set, and for example, a horizontal plane may be used as the target reference plane.
In some embodiments of the present application, a method for adjusting the area of the erasing region by the pressure magnitude of the pressure between the writing pen and the electronic whiteboard can also be provided. The concrete mode is as follows: acquiring a pressure value applied to a touch screen where the electronic whiteboard is located by the writing pen when the writing pen is in contact with the electronic whiteboard, and taking the pressure value as the state information; determining a second target erasing area corresponding to the pressure value according to a second incidence relation between the pressure value and the area of the erasing area, and adjusting the area of the erasing area to the second target erasing area, wherein the magnitude of the pressure value is positively correlated with the magnitude of the second target erasing area. It should be noted that the association relationship may be a mapping relationship or a functional relationship.
Specifically, when the correlation is a functional relationship, the relationship between the area of the erasing area and the pressure is: s = K × P. Wherein S represents the area of the erasing area, and the shape of the erasing area can be square, circle, polygon, customized special figure, etc. k is a forward coefficient, which may be a constant or a variable proportional to the screen size, depending on the usage scenario requirements. P is the pressure value.
In some embodiments of the present application, a method for adjusting the area of the erasing area according to the speed of the moving speed of the contact point between the writing pen and the electronic whiteboard can also be provided. The concrete mode is as follows: acquiring the speed of the moving speed of a contact point of the writing pen and a touch screen where the electronic whiteboard is located when the writing pen is in contact with the electronic whiteboard, and taking the speed as the state information; determining a third target erasing area corresponding to the speed according to a third correlation between the speed and the area of the erasing area, and adjusting the area of the erasing area to the second target erasing area, wherein the speed is positively correlated with the second target erasing area. It should be noted that the association relationship may be a mapping relationship or a functional relationship.
Specifically, when the correlation is a functional relationship, the relationship between the area of the erasing region and the pressure is as follows: s = K × V. Wherein S represents the area of the erasing area, and the shape of the erasing area can be square, circle, polygon, customized special figure, etc. k is a forward coefficient, which may be a constant or a variable proportional to the screen size, depending on the usage scenario requirements. V is the speed of the writing pen moving on the electronic whiteboard.
Example 3
Fig. 5 is an electronic whiteboard according to an embodiment of the present invention, including: a memory for storing a program; a processor for executing the program stored in the memory and performing the following functions when executing the program: determining a contact position of a writing pen used for writing in the electronic whiteboard and the electronic whiteboard, and generating an erasing area in the electronic whiteboard according to the contact position; acquiring state information of a writing pen for writing operation in the electronic whiteboard; adjusting the area of the erasing area according to the state information to obtain a target area, and erasing the writing handwriting covered by the target area; the display equipment is used for displaying the electronic whiteboard used for writing and the handwriting needing to be erased; and the communication module is used for receiving the state information of the writing pen.
Example 4
In some embodiments of the present application, a non-volatile storage medium is further provided, where the non-volatile storage medium includes a stored program, and the program corresponds to the implementation steps of: displaying an electronic whiteboard for writing, wherein writing handwriting is displayed on the electronic whiteboard; determining a contact position of a writing pen used for writing in the electronic whiteboard and the electronic whiteboard, and generating an erasing area in the electronic whiteboard according to the contact position; acquiring state information of a writing pen for writing operation in the electronic whiteboard; and adjusting the area of the erasing area according to the state information to obtain a target area, and erasing the handwriting covered by the target area. When the program runs, the non-volatile storage medium controls the device in which the storage medium is located to execute the erasing method of the handwriting in the above embodiment.
The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages and disadvantages 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 technical content can be implemented in other manners. The above-described apparatus embodiments 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 may be integrated into another system, or some features may be omitted, or may not be executed. In addition, the shown or discussed coupling or direct coupling or communication connection between each other may be an indirect coupling or communication connection through some interfaces, units or modules, and may be electrical or in other forms.
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 position, 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 disk, or an optical disk, and 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 amendments can be made without departing from the principle of the present invention, and these modifications and amendments should also be considered as the protection scope of the present invention.

Claims (12)

1. A method for erasing handwriting, comprising:
displaying an electronic whiteboard for writing, wherein writing handwriting is displayed on the electronic whiteboard;
determining a contact position of a writing pen used for writing in the electronic whiteboard and the electronic whiteboard, and generating an erasing area in the electronic whiteboard according to the contact position;
acquiring state information of a writing pen for writing in the electronic whiteboard;
and adjusting the area of the erasing area according to the state information to obtain a target area, and erasing the handwriting covered by the target area.
2. The method of claim 1,
acquiring state information of a writing pen for performing writing operation in the electronic whiteboard, comprising: acquiring a first inclination angle of the writing pen relative to the electronic whiteboard when the writing pen is in contact with the electronic whiteboard, and taking the first inclination angle as the state information, wherein the first inclination angle is an included angle between the writing pen and a vertical direction of a display screen where the electronic whiteboard is located;
adjusting the area of the erasing area according to the state information, comprising: determining a first target erasing area corresponding to the first inclination angle according to a first incidence relation between the inclination angle and the erasing area, and adjusting the area of the erasing area to be the first target erasing area.
3. The method of claim 2, wherein a magnitude of the first tilt angle is positively correlated with a magnitude of the first target erase area.
4. The method of claim 2, wherein obtaining a first tilt angle of the writing pen relative to the electronic whiteboard when the writing pen is in contact with the electronic whiteboard comprises:
receiving a second inclination angle detected by the writing pen through a built-in angle sensor module, and determining the first inclination angle based on the second inclination angle, wherein the second inclination angle is an angle of the writing pen relative to a target reference plane.
5. The method of claim 4, wherein determining the first tilt angle based on the second tilt angle comprises:
acquiring a third inclination angle of the electronic whiteboard relative to the target reference plane; determining the first tilt angle in dependence on a difference between the second tilt angle and the third tilt angle.
6. The method of claim 1,
acquiring state information of a writing pen for performing writing operation in the electronic whiteboard, comprising: acquiring a pressure value applied to a touch screen where the electronic whiteboard is located by the writing pen when the writing pen is in contact with the electronic whiteboard, and taking the pressure value as the state information;
adjusting the area of the erasing area according to the state information, comprising: determining a second target erasing area corresponding to the pressure value according to a second incidence relation between the pressure value and the area of the erasing area, and adjusting the area of the erasing area to be the second target erasing area, wherein the magnitude of the pressure value is positively correlated with the magnitude of the second target erasing area.
7. The method of claim 1,
acquiring state information of a writing pen for performing writing operation in the electronic whiteboard, comprising: acquiring the speed of the moving speed of a contact point of the writing pen and a touch screen where the electronic whiteboard is located when the writing pen is in contact with the electronic whiteboard, and taking the speed as the state information;
adjusting the area of the erasing area according to the state information, comprising: determining a third target erasing area corresponding to the speed according to a third correlation between the speed and the area of the erasing area, and adjusting the area of the erasing area to the third target erasing area, wherein the speed is positively correlated with the size of the third target erasing area.
8. The method of claim 1, before generating an erase region in the electronic whiteboard according to the contact position, the method further comprising:
displaying a plurality of erasing area shapes on the electronic whiteboard, wherein the plurality of erasing area shapes comprise a first erasing area and a second erasing area, the first erasing area is an erasing area stored in a set corresponding to the electronic whiteboard, and the second erasing area is a custom shape;
selecting one erasing area shape from the plurality of erasing area shapes as the shape of the erasing area generated in the electronic whiteboard in response to a first selection instruction of a target object.
9. The method according to any one of claims 1 to 8, wherein before generating an erasing area in the electronic whiteboard according to the contact position, the method further comprises:
displaying a plurality of working modes of the writing pen on the electronic whiteboard;
selecting an erase mode from the plurality of operation modes in response to a second selection instruction of the target object, wherein the erase region is generated at the contact position in the erase mode.
10. An apparatus for erasing writing, comprising:
the display module is used for displaying the electronic whiteboard used for writing, wherein writing handwriting is displayed on the electronic whiteboard;
the determining module is used for determining the contact position of a writing pen used for writing in the electronic whiteboard and generating an erasing area in the electronic whiteboard according to the contact position;
the acquisition module is used for acquiring the state information of a writing pen used for writing operation in the electronic whiteboard;
and the processing module is used for adjusting the area of the erasing area according to the state information to obtain a target area and erasing the handwriting covered by the target area.
11. An electronic whiteboard, comprising:
a memory for storing a program;
a processor for executing the program stored in the memory and performing the following functions when executing the program: determining a contact position of a writing pen used for writing operation in the electronic whiteboard and the electronic whiteboard, wherein writing handwriting is displayed on the electronic whiteboard; generating an erasing area in the electronic whiteboard according to the contact position; acquiring state information of a writing pen for writing in the electronic whiteboard; adjusting the area of the erasing area according to the state information to obtain a target area, and erasing the handwriting covered by the target area;
the display equipment is used for displaying the electronic whiteboard used for writing and the handwriting needing to be erased;
and the communication module is used for receiving the state information of the writing pen.
12. A non-volatile storage medium, characterized in that it comprises a stored program, wherein the program, when running, controls a device on which the non-volatile storage medium is located to execute the method for erasing written handwriting according to any one of claims 1 to 9.
CN202110584302.8A 2021-05-27 2021-05-27 Handwriting erasing method and device and electronic whiteboard Pending CN115407889A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110584302.8A CN115407889A (en) 2021-05-27 2021-05-27 Handwriting erasing method and device and electronic whiteboard

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110584302.8A CN115407889A (en) 2021-05-27 2021-05-27 Handwriting erasing method and device and electronic whiteboard

Publications (1)

Publication Number Publication Date
CN115407889A true CN115407889A (en) 2022-11-29

Family

ID=84155644

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110584302.8A Pending CN115407889A (en) 2021-05-27 2021-05-27 Handwriting erasing method and device and electronic whiteboard

Country Status (1)

Country Link
CN (1) CN115407889A (en)

Similar Documents

Publication Publication Date Title
EP2492785B1 (en) Creative design system and method
CN100392576C (en) Detection of a dwell gesture by examining parameters associated with pen motion
US11016609B2 (en) Distance-time based hit-testing for displayed target graphical elements
US9477403B2 (en) Drawing on a touchscreen
CN101989145A (en) Method and apparatus for single touch zoom using spiral rotation
US8525780B2 (en) Method and apparatus for inputting three-dimensional location
US9262012B2 (en) Hover angle
CN108829278B (en) Mouse and mouse control method and device
CN110377214B (en) Angle detection method and angle detection device
US20130069861A1 (en) Interface controlling apparatus and method using force
JP6202874B2 (en) Electronic device, calibration method and program
JP2017515241A (en) Element deletion method and apparatus based on touch panel
KR102123406B1 (en) A mobile terminal comprising a touch screen supporting a multi touch and method for controlling the mobile terminal
CN107179875A (en) The method and apparatus of window adjustment
CN111610869B (en) Touch pen, electronic device and control method
US10485056B2 (en) Sensor based interface adjustment
US20090122066A1 (en) Drawing-editing system and apparatus and grouping processing method
CN104750412A (en) Method for controlling display interfaces
CN115407889A (en) Handwriting erasing method and device and electronic whiteboard
JP5708113B2 (en) Computer apparatus and program thereof
CN109388320A (en) Control method, mobile terminal and the computer storage medium of display direction
CN104750356A (en) Mobile terminal
CN108635838B (en) Direction control method and device, storage medium, processor and terminal
CN112529770A (en) Image processing method, image processing device, electronic equipment and readable storage medium
CN104820490A (en) Feature information acquisition method 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