CN113986041B - Method and system for erasing electronic data based on electronic whiteboard eraser - Google Patents

Method and system for erasing electronic data based on electronic whiteboard eraser Download PDF

Info

Publication number
CN113986041B
CN113986041B CN202111258798.6A CN202111258798A CN113986041B CN 113986041 B CN113986041 B CN 113986041B CN 202111258798 A CN202111258798 A CN 202111258798A CN 113986041 B CN113986041 B CN 113986041B
Authority
CN
China
Prior art keywords
point
data
current touch
eraser
touch point
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
CN202111258798.6A
Other languages
Chinese (zh)
Other versions
CN113986041A (en
Inventor
吴声浩
蔡文生
张健新
方荣福
钟伟杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Baoze Technology Co ltd
Original Assignee
Shenzhen Baoze Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Baoze Technology Co ltd filed Critical Shenzhen Baoze Technology Co ltd
Priority to CN202111258798.6A priority Critical patent/CN113986041B/en
Publication of CN113986041A publication Critical patent/CN113986041A/en
Application granted granted Critical
Publication of CN113986041B publication Critical patent/CN113986041B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/0412Digitisers structurally integrated in a display
    • 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
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a method and a system for erasing electronic data based on an electronic whiteboard eraser, wherein the method comprises the following steps: acquiring point data of a current touch point on touch equipment; judging whether the history point data storage is stored in the source point memory; when the history point data is stored in the source point memory, the point data of the current touch point is stored in a source point buffer area; the source point processor acquires point data of a current touch point stored in a source point buffer area and history point data stored in a source point memory; the source point processor calculates to obtain the moving speed and the eraser width of the current touch point based on the point data and the history point data of the current touch point; and erasing the electronic data of the current erasing area in the intelligent whiteboard based on the moving speed and the width of the eraser. The embodiment of the invention can simulate the current moving speed of the user to the maximum extent, support the user to erase the designated area quickly and reduce the risk of error erasure.

Description

Method and system for erasing electronic data based on electronic whiteboard eraser
Technical Field
The invention relates to the technical field of communication, in particular to a method and a system for erasing electronic data based on an electronic whiteboard eraser.
Background
In the existing electronic whiteboard of the intelligent conference integrated machine, the electronic whiteboard generally has the functions of writing, erasing, roaming and the like, wherein the writing is that a user outputs an object on software, the erasing can enable the user to erase an input object, and the roaming can enable the user to move the input object at will.
The variable erasing modes in the existing writing whiteboard mainly comprise three modes: the first method is to capture touch data on a screen in a hardware mode and process the touch data technically, and after the palm is identified, gesture erasure can be performed, and as a plurality of touch points exist between the palm and a touch frame, the calculation of the touch width is deviated, so that the condition that the erasure area is negligent and small occurs, and the erasure area is controlled by hardware. The second is to call the eraser interface by software and then erase by moving to the selected area, the erase area being controlled by software or the system. Thirdly, clicking the screen by means of touch equipment such as a pressure sensing pen, and recognizing the touch equipment as an eraser after the system recognizes a pressure threshold value, so that the erasing operation is performed, the pressing force can influence the final erasing area, and the erasing area is controlled by the attribute of the touch equipment and the pressure sensing data.
Since the finger or the touch device can only determine the size of the eraser when pressed, but cannot determine the size of the eraser in the single erasing process, the erasing area is controlled by software in the single erasing process, and a user erases a certain area in the process of moving the eraser, and writing handwriting which the user does not need to erase may be included in the area. And different touch devices may have differences in properties, and may require some preparation such as wireless connection before use, consuming time for the user. The size of the eraser cannot be increased or decreased according to the user's wish in a single erasing process, and a large area is still erased when the area which the user wants to erase is small.
Thus, the three methods described above always have the following drawbacks: the size of the single erasing area is fixed after the finger or the touch equipment is pressed, the single erasing area can be changed after the finger or the touch equipment is lifted and pressed again, and the situation of error erasing can occur; the erasure accuracy and the range are uncontrollable and are easily influenced by external factors; the erase area cannot be changed dynamically and the erase effect is not ideal for the user.
Disclosure of Invention
The invention aims to overcome the defects of the prior art, and provides a method and a system for erasing electronic data based on an electronic whiteboard eraser, which can simulate the current moving speed of a user to the maximum extent, support the user to erase a designated area quickly and reduce the risk of error erasure.
In order to solve the problems, the invention provides a method for erasing electronic data based on an electronic whiteboard eraser, which comprises the following steps:
acquiring point data of a current touch point on touch equipment;
judging whether the history point data storage is stored in the source point memory;
when the history point data is stored in the source point memory, the point data of the current touch point is stored in a source point buffer area;
the source point processor acquires point data of a current touch point stored in a source point buffer area and history point data stored in a source point memory;
the source point processor calculates to obtain the moving speed and the eraser width of the current touch point based on the point data and the history point data of the current touch point;
and erasing the electronic data of the current erasing area in the intelligent whiteboard based on the moving speed and the width of the eraser.
The determining whether the history point data is stored in the source point memory further comprises:
when no history point data is stored in the source point memory, calculating that the initial moving speed of the current touch point is zero, the initial rubber width is the initial width data of the touch equipment, and storing the point data of the current touch point into the source point memory to form history point data;
and erasing the electronic data of the current erasing area in the intelligent whiteboard based on the initial moving speed being zero and the initial eraser width.
The erasing the electronic data of the current erasing area in the intelligent whiteboard based on the moving speed and the eraser width comprises:
updating the moving speed of the current point and the width of the eraser in the erasing area;
updating a current erasing area in the intelligent whiteboard based on the moving speed and the width of the eraser;
and erasing the electronic data of the current erasing area based on the moving speed and the width of the eraser.
The source point processor calculates based on the point data and the history point data of the current touch point to obtain the moving speed and the eraser width of the current touch point, and then the source point processor further comprises:
clearing point data of a current touch point stored in the source point buffer; and/or
And storing the point data of the current touch point into the source point memory to form historical point data.
The step of acquiring the point data of the current touch point on the touch equipment further comprises the following steps:
and when the current touch point is identified as the initial touch point, clearing the historical point data on the source point memory.
The point data of the current touch point comprises an abscissa and an ordinate mapped into a plane rectangular coordinate system; the history point data includes: the history corresponding touch points are mapped to the abscissa and the ordinate in the plane rectangular coordinate system, the moving speed and the eraser width.
The source point processor calculating to obtain the moving speed and the eraser width of the current touch point based on the point data and the history point data of the current touch point comprises the following steps:
acquiring the point set number of the history point data stored in the source point memory;
judging whether the point set number is larger than a preset threshold value or not;
if the point set number is judged to be larger than the preset threshold value, linear interpolation operation is carried out based on the point data of the current touch point and the historical point data, and the moving speed and the eraser width of the current touch point are calculated;
and when the point set number is not larger than the preset threshold value, carrying out logarithmic operation based on the point data of the current touch point and the historical point data, and calculating the moving speed of the current touch point and the width of the rubber.
The calculating the moving speed and the eraser width of the current touch point based on the linear interpolation operation of the point data and the history point data of the current touch point comprises the following steps:
extracting all history point data in a source point memory;
performing linear interpolation operation on all the historical point data, and obtaining a speed interpolation function and an eraser width interpolation function;
extracting point data of a current touch point in a source point buffer area;
substituting the point data of the current touch point into a speed interpolation function to obtain the moving speed of the current touch point;
substituting the moving speed of the current touch point into an eraser width interpolation function to obtain the eraser width of the current touch point;
and outputting the moving speed of the current touch point and the width of the eraser.
The calculating the moving speed and the eraser width of the current touch point based on the point data of the current touch point and the historical point data comprises the following steps:
extracting historical point data corresponding to a last touch point in a source point memory;
extracting point data of a current touch point in a source point buffer area;
carrying out logarithmic operation on historical point data corresponding to the last touch point and point data of the current touch point to obtain the moving speed of the current touch point;
obtaining the eraser width of the current touch point by carrying out index operation based on the moving speed of the current touch point and the historical point data corresponding to the last touch point;
and outputting the moving speed of the current touch point and the width of the eraser.
Correspondingly, the invention also provides a system for erasing electronic data based on the electronic whiteboard eraser, which is characterized by comprising:
the point data acquisition module is used for acquiring point data of a current touch point on the touch equipment;
the judging module is used for judging whether the historical point data storage is stored in the source point storage or not;
the source point buffer area is used for storing the point data of the current touch point in the source point buffer area when judging that the history point data is stored in the source point memory;
a source point processor for acquiring point data of a current touch point stored in a source point buffer and history point data stored in a source point memory; calculating based on the point data of the current touch point and the historical point data to obtain the moving speed and the eraser width of the current touch point;
an erasing module for erasing the electronic data of the current erasing area in the intelligent whiteboard based on the moving speed and the eraser width;
and the source point memory is used for storing the history point data.
According to the embodiment of the invention, the input data of the user is automatically identified into different erasure area sizes after being processed by the technology in a single erasure process, so that the expected erasure effect of the user is achieved. Compared with the prior art, the embodiment of the invention reduces the influence of a system and hardware, enriches the erasing variability, ensures that the size of the initial area of single erasing is determined by a palm or touch equipment, can also be fixed by software, automatically changes the erasing area according to the use habit of a user in the erasing process, ensures that the erasing area can be dynamically changed, improves the overall controllability of an erasing function and reduces the risk of false erasing. Can be applied to the fields of high-efficiency conferences, intelligent education and the like. According to the embodiment of the invention, the touch point data is processed in a software mode, so that an erasure error caused by determining an erasure area by single touch hardware is avoided. The current moving speed of the user is calculated through simulation of the source point processor, and then the current eraser width is calculated through simulation, so that an ideal erasing area of the user is achieved, and the risk that the ideal erasing effect of the user is not matched with the current erasing effect is reduced. All known touch point data are processed through linear interpolation operation, the current moving speed of a user is simulated to the maximum extent, the user is supported to erase a designated area quickly, and the risk of error erasure is reduced.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings which are required in the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the description below are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for erasing electronic data based on an electronic whiteboard eraser in an embodiment of the invention;
FIG. 2 is a flow chart of a method for obtaining a movement speed and an eraser width of a current touch point in an embodiment of the invention;
fig. 3 is a schematic diagram of a system structure for erasing electronic data based on an electronic whiteboard eraser in an embodiment of the invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The method for erasing electronic data based on the electronic whiteboard eraser comprises the steps of obtaining point data of a current touch point on touch equipment; judging whether the history point data storage is stored in the source point memory; when the history point data is stored in the source point memory, the point data of the current touch point is stored in a source point buffer area; the source point processor acquires point data of a current touch point stored in a source point buffer area and history point data stored in a source point memory; the source point processor calculates to obtain the moving speed and the eraser width of the current touch point based on the point data and the history point data of the current touch point; and erasing the electronic data of the current erasing area in the intelligent whiteboard based on the moving speed and the width of the eraser. In the one-time erasing process, the moving speed and the eraser width of the current touch point are obtained by continuously identifying point data and then carrying out data processing based on the point data, and the one-time erasing process of the intelligent whiteboard is completed based on the moving speed and the eraser width.
Specifically, fig. 1 shows a flowchart of a method for erasing electronic data based on an electronic whiteboard eraser in an embodiment of the invention, and the method includes the following steps:
starting;
in the implementation of the present invention, a data structure of a touch point may be defined, where the data content includes: based on an abscissa value X, an ordinate value Y, a moving speed V and an eraser width W of the touch point, the obtained point data of the current touch point comprises an abscissa and an ordinate mapped into a plane rectangular coordinate system; the historical point data for the storage includes: the history corresponding touch points are mapped to the abscissa and ordinate in the plane rectangular coordinate system, the moving speed, the width of the eraser and the like.
In the implementation process of the invention, the definition based on the data structure is as follows: source point buffer, source point processor and source point memory, wherein:
the source point buffer area is used for storing point data of the current touch point of the user;
the source point storage is used for storing point data of all touch points in a single erasing process of a user, namely the point data of the touch points which have occurred, and is also called history point data herein;
the source point processor is used for inputting data of the source point buffer area and the source point processor; the method comprises the steps of simulating and calculating the moving speed and the eraser width of a current touch point based on data of a source point buffer area and a source point processor; and the device is used for outputting the moving speed of the current touch point and the width of the eraser.
Initializing a single erasure initial movement speed v=0, and an initial eraser width w=fixed value (determined by a touch device or software); and collecting touch points in the single erasing process, putting the touch points into a memory, and informing a system or software to update the current eraser size after the touch points are processed by a processor.
S101, generating point data based on a touch device;
when a user acts on the touch device, point data is generated on the corresponding touch point, and an erasing action is generated in one erasing process.
S102, judging whether the current touch point is an initial touch point, if so, entering S103, otherwise, entering S104;
s103, clearing history point data on a source point memory;
it should be noted that, the historical point data on the source point memory can be emptied after the last erasing action is completed, or can be emptied before the starting action, and the historical point data on the source point memory can be emptied after the starting action is identified, so that the calculation interference of the original historical point data on the calculation of the current erasing process is avoided, and the situation that the erasing process cannot well reflect the operation behavior of a user is avoided.
S104, acquiring point data of a current touch point on the touch equipment;
when a finger or touch equipment is pressed down, the system recognizes the touch point as an eraser, acquires an initial touch width value, takes the value as the initial eraser width value of the current erasure, continuously acquires touch point data in the erasure process, temporarily stores the touch point data in a source point buffer area, then outputs the moving speed Vn and the eraser width Wn of the current touch point after the processing of an algorithm by a source point processor, synchronously updates the current touch point, puts the point data in a source point memory, clears the buffer area data, and finally sends a notice to update the erasure area of the intelligent whiteboard and carries out erasure operation.
S105, whether history point data are stored or not, if the history point data are stored, entering S106, and if the history point data are not stored, entering S110;
it should be noted that, because the erasing operation is an operation behavior of a time sequence segment, when the point data of the first touch point is generated, the history point data on the source point memory is emptied, the history point data does not exist on the source point memory, and the point data of the first touch point needs to generate the moving speed and the eraser width of the current touch point according to the initialization value; when the point data of the first touch point is stored in the source point memory in the current erasing process, in the subsequent erasing process, the source point memory stores historical data points, and the next processing process is performed under the condition that the historical point data are referred.
S106, storing the point data of the current touch point in a source point buffer area;
s107, the source point processor acquires point data of a current touch point stored in a source point buffer area and history point data stored in a source point memory;
s108, calculating and obtaining the moving speed of the current touch point and the width of the eraser;
in the steps S107 to S108, the calculating, by the source point processor, the moving speed and the eraser width of the current touch point based on the point data and the history point data of the current touch point includes: acquiring the point set number of the history point data stored in the source point memory; judging whether the point set number is larger than a preset threshold value or not; if the point set number is judged to be larger than the preset threshold value, linear interpolation operation is carried out based on the point data of the current touch point and the historical point data, and the moving speed and the eraser width of the current touch point are calculated; and when the point set number is not larger than the preset threshold value, carrying out logarithmic operation based on the point data of the current touch point and the historical point data, and calculating the moving speed of the current touch point and the width of the rubber.
Specifically, fig. 2 shows a flowchart of a method for obtaining a moving speed and an eraser width of a current touch point in an embodiment of the present invention, including the following steps:
s201, acquiring the point set number of the history point data stored in a source point memory;
after the erasing process is generated, the continuous point data are stored in the source point memory to form historical point data, and the number of touch points corresponding to all the historical point data or the number of all the historical point data is the point set number.
S202, judging whether the point set number is larger than a preset threshold value, if so, entering S203, otherwise, entering S208;
it should be noted that the preset threshold is set in combination with the condition that the number of samples of the linear interpolation is satisfied, and may be any integer between 3 and 10.
S203, extracting all history point data in a source point memory;
s204, performing linear interpolation operation on all the historical point data, and obtaining a speed interpolation function and an eraser width interpolation function;
s205, extracting point data of a current touch point in a source point buffer area;
s206, substituting the point data of the current touch point into a speed interpolation function to obtain the moving speed of the current touch point;
s207, substituting the moving speed of the current touch point into an eraser width interpolation function to obtain the eraser width of the current touch point;
S203-S207 realize the specific process of carrying out linear interpolation operation based on the point data of the current touch point and the historical point data, and calculating the moving speed of the current touch point and the width of the rubber.
S208, extracting historical point data corresponding to a previous touch point in the source point memory;
s209, extracting point data of a current touch point in a source point buffer area;
s210, carrying out logarithmic operation on historical point data corresponding to the last touch point and point data of the current touch point to obtain the moving speed of the current touch point;
s211, carrying out index operation based on the moving speed of the current touch point and historical point data corresponding to the last touch point to obtain the eraser width of the current touch point;
S208-S211 realize the specific process of calculating the moving speed of the current touch point and the width of the rubber based on the point data of the current touch point and the historical point data. The moving speed and the erasing width can be calculated by carrying out logarithmic operation and exponential operation, the moving speed is calculated by carrying out logarithmic operation on historical point data, and then the erasing width is calculated by carrying out exponential operation on the moving speed. In the processing process, point data indicating the last touch point is combined, specifically X, Y coordinates of the last point, and speed and width data corresponding to the last point are not used. The logarithmic operation involves the coordinate of the upper point X, Y, and the exponential operation is performed after the velocity V is obtained; the exponential operation also involves the X, Y coordinates of the last point, as well as the movement velocity V of the current touch point just calculated. Therefore, the calculation process is sequential, namely, the moving speed of the current touch point is calculated first, then the eraser width of the current touch point is calculated, namely, the logarithmic operation is performed first, and then the exponential operation is performed.
S212, outputting the moving speed of the current touch point and the width of the eraser.
When the number of the source points in the source point memory is small, the coordinate data of the previous point and the current touch point are processed in an exponential and logarithmic operation mode, so that the speed during initial movement and the width of the rubber are obtained (the point set threshold value can be defined as 5); when the number of source points is large, namely, the number of samples meeting the condition of linear interpolation, interpolation operation is carried out on all acquired touch point data (excluding the current touch point), and a speed V interpolation function f (xi, yi) and an eraser width W interpolation function f (xi, yi, vi) are obtained, wherein the interpolation function can better describe the change trend of the current moving speed and width of the eraser within a certain error range, namely, unknown data is simulated and predicted by using known data. And finally substituting the current touch point coordinates Xn and Yn into f (xi and yi) to obtain the current touch point moving speed Vn, and substituting the Xn, yn and Vn into f (xi and yi and vi) to obtain the current eraser width Wn.
S109, clearing point data of the current touch point stored in the source point buffer;
the erasing process is continuous, and continuous calculation processing process is guaranteed through continuous emptying and storage, so that the erasing function and effect are finally achieved, and the processing process can be completed after the data is acquired by the source point memory and before the point data of the next touch point is inserted.
S110, calculating that the initial moving speed of the current touch point is zero, and the initial eraser width is initial width data of the touch equipment;
when no history point data is stored in the source point memory, calculating that the initial moving speed of the current touch point is zero, the initial eraser width is the initial width data of the touch equipment, and storing the point data of the current touch point into the source point memory to form history point data; and erasing the electronic data of the current erasing area in the intelligent whiteboard based on the initial moving speed being zero and the initial eraser width.
S111, storing the point data of the current touch point into the source point memory to form historical point data;
because the erasing process is continuous, the point data of the touch points are required to be continuously stored in the source point memory to ensure the continuous calculation processing process, and the historical point data can be convenient for a subsequent source point processor to acquire data and perform a corresponding data processing process. In addition to the coordinate point X, Y, the history point data records the speed and the current eraser width when moving to a certain point, and the four attribute values corresponding to each moving point are always different.
S112, updating the moving speed of the current point and the width of the eraser in the erasing area;
s113, updating a current erasing area in the intelligent whiteboard based on the moving speed and the width of the eraser;
s114, erasing the electronic data of the current erasing area based on the moving speed and the width of the eraser;
it should be noted that, S112-S114 implement a specific process of erasing the electronic data of the current erasing area in the intelligent whiteboard based on the moving speed and the width of the eraser, and in the case that no history point data is stored in the source point memory, the electronic data of the current erasing area in the intelligent whiteboard is erased based on the initial moving speed being zero and the initial width of the eraser; under the condition that historical point data are stored in a source point memory, calculating by a source point processor based on the point data of the current touch point and the historical point data to obtain the moving speed and the eraser width of the current touch point, and erasing the electronic data of the current erasing area based on the moving speed and the eraser width.
S115, judging whether the erasing process is completed, if not, entering S104, otherwise, ending the flow;
and (5) ending.
The touch point data is processed in a software mode, so that erasure errors caused by determining an erasure area by single touch hardware are avoided. The current moving speed of the user is calculated through simulation of the source point processor, and then the current eraser width is calculated through simulation, so that an ideal erasing area of the user is achieved, and the risk that the ideal erasing effect of the user is not matched with the current erasing effect is reduced. All known touch point data are processed through linear interpolation operation, the current moving speed of a user is simulated to the maximum extent, the user is supported to erase a designated area quickly, and the risk of error erasure is reduced.
Fig. 3 is a schematic diagram of a system structure for erasing electronic data based on an electronic whiteboard eraser in an embodiment of the invention, where the system includes:
the point data acquisition module is used for acquiring point data of a current touch point on the touch equipment;
the judging module is used for judging whether the historical point data storage is stored in the source point storage or not;
the source point buffer area is used for storing the point data of the current touch point in the source point buffer area when judging that the history point data is stored in the source point memory;
a source point processor for acquiring point data of a current touch point stored in a source point buffer and history point data stored in a source point memory; calculating based on the point data of the current touch point and the historical point data to obtain the moving speed and the eraser width of the current touch point;
an erasing module for erasing the electronic data of the current erasing area in the intelligent whiteboard based on the moving speed and the eraser width;
and the source point memory is used for storing the history point data.
Specifically, when the judging module judges that no history point data is stored in the source point memory, the initial moving speed of the current touch point is calculated to be zero, the initial rubber width is the initial width data of the touch equipment, and the point data of the current touch point is stored in the source point memory to form history point data; an erase module erases electronic data of a currently erased area in the intelligent whiteboard based on the initial movement speed being zero and the initial eraser width.
Specifically, the erasing module is used for updating the moving speed of the current point and the width of the eraser in the erasing area; updating a current erasing area in the intelligent whiteboard based on the moving speed and the width of the eraser; and erasing the electronic data of the current erasing area based on the moving speed and the width of the eraser.
Specifically, after the source point processor calculates based on the point data of the current touch point and the history point data to obtain the moving speed and the eraser width of the current touch point, the source point buffer area empties the point data of the current touch point stored in the source point buffer area.
Specifically, when the current touch point is identified as the initial touch point, the source point memory clears the history point data on the source point memory.
Specifically, a source point processor acquires the number of point sets of history point data stored on a source point memory; judging whether the point set number is larger than a preset threshold value or not; if the point set number is judged to be larger than the preset threshold value, linear interpolation operation is carried out based on the point data of the current touch point and the historical point data, and the moving speed and the eraser width of the current touch point are calculated; and when the point set number is not larger than the preset threshold value, carrying out logarithmic operation based on the point data of the current touch point and the historical point data, and calculating the moving speed of the current touch point and the width of the rubber.
Specifically, the source point processor extracts historical point data corresponding to a last touch point in the source point memory; extracting point data of a current touch point in a source point buffer area; carrying out logarithmic operation on historical point data corresponding to the last touch point and point data of the current touch point to obtain the moving speed of the current touch point; obtaining the eraser width of the current touch point by carrying out index operation based on the moving speed of the current touch point and the historical point data corresponding to the last touch point; and outputting the moving speed of the current touch point and the width of the eraser.
Specifically, a source point processor extracts all history point data in a source point memory; performing linear interpolation operation on all the historical point data, and obtaining a speed interpolation function and an eraser width interpolation function; extracting point data of a current touch point in a source point buffer area; substituting the point data of the current touch point into a speed interpolation function to obtain the moving speed of the current touch point; substituting the moving speed of the current touch point into an eraser width interpolation function to obtain the eraser width of the current touch point; and outputting the moving speed of the current touch point and the width of the eraser.
According to the embodiment of the invention, the input data of the user is automatically identified into different erasure area sizes after being processed by the technology in a single erasure process, so that the expected erasure effect of the user is achieved. Compared with the prior art, the embodiment of the invention reduces the influence of a system and hardware, enriches the erasing variability, ensures that the size of the initial area of single erasing is determined by a palm or touch equipment, can also be fixed by software, automatically changes the erasing area according to the use habit of a user in the erasing process, ensures that the erasing area can be dynamically changed, improves the overall controllability of an erasing function and reduces the risk of false erasing. Can be applied to the fields of high-efficiency conferences, intelligent education and the like. According to the embodiment of the invention, the touch point data is processed in a software mode, so that an erasure error caused by determining an erasure area by single touch hardware is avoided. The current moving speed of the user is calculated through simulation of the source point processor, and then the current eraser width is calculated through simulation, so that an ideal erasing area of the user is achieved, and the risk that the ideal erasing effect of the user is not matched with the current erasing effect is reduced. All known touch point data are processed through linear interpolation operation, the current moving speed of a user is simulated to the maximum extent, the user is supported to erase a designated area quickly, and the risk of error erasure is reduced.
The foregoing has outlined rather broadly the more detailed description of embodiments of the invention, wherein the principles and embodiments of the invention are explained in detail using specific examples, the description of the embodiments being merely intended to facilitate an understanding of the method of the invention and its core concepts; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (7)

1. A method for erasing electronic data based on an electronic whiteboard eraser, the method comprising:
acquiring point data of a current touch point on touch equipment;
judging whether the history point data storage is stored in the source point memory;
when the history point data is stored in the source point memory, the point data of the current touch point is stored in a source point buffer area;
the source point processor acquires point data of a current touch point stored in a source point buffer area and history point data stored in a source point memory;
the source point processor calculates to obtain the moving speed and the eraser width of the current touch point based on the point data and the history point data of the current touch point;
erasing electronic data of a current erasing area in the intelligent whiteboard based on the moving speed and the eraser width;
the source point processor calculating to obtain the moving speed and the eraser width of the current touch point based on the point data and the history point data of the current touch point comprises the following steps:
acquiring the point set number of the history point data stored in the source point memory;
judging whether the point set number is larger than a preset threshold value or not;
if the point set number is judged to be larger than the preset threshold value, linear interpolation operation is carried out based on the point data of the current touch point and the historical point data, and the moving speed and the eraser width of the current touch point are calculated;
when the point set number is judged to be not larger than a preset threshold value, carrying out logarithmic operation based on the point data of the current touch point and the historical point data, and calculating the moving speed of the current touch point and the width of the eraser;
the calculating the moving speed and the eraser width of the current touch point based on the linear interpolation operation of the point data and the history point data of the current touch point comprises the following steps:
extracting all history point data in a source point memory;
performing linear interpolation operation on all the historical point data, and obtaining a speed interpolation function and an eraser width interpolation function;
extracting point data of a current touch point in a source point buffer area;
substituting the point data of the current touch point into a speed interpolation function to obtain the moving speed of the current touch point;
substituting the moving speed of the current touch point into an eraser width interpolation function to obtain the eraser width of the current touch point;
outputting the moving speed of the current touch point and the width of the eraser;
the calculating the moving speed and the eraser width of the current touch point based on the point data of the current touch point and the historical point data comprises the following steps:
extracting historical point data corresponding to a last touch point in a source point memory;
extracting point data of a current touch point in a source point buffer area;
carrying out logarithmic operation on historical point data corresponding to the last touch point and point data of the current touch point to obtain the moving speed of the current touch point;
obtaining the eraser width of the current touch point by carrying out index operation based on the moving speed of the current touch point and the historical point data corresponding to the last touch point;
and outputting the moving speed of the current touch point and the width of the eraser.
2. The method for erasing electronic data based on an electronic whiteboard eraser as claimed in claim 1, wherein said determining whether there is history point data stored in the source point memory further comprises:
when no history point data is stored in the source point memory, calculating that the initial moving speed of the current touch point is zero, the initial rubber width is the initial width data of the touch equipment, and storing the point data of the current touch point into the source point memory to form history point data;
and erasing the electronic data of the current erasing area in the intelligent whiteboard based on the initial moving speed being zero and the initial eraser width.
3. The method of erasing electronic data based on an electronic whiteboard eraser of claim 1, wherein said erasing electronic data of a currently erased area in a smart whiteboard based on said moving speed and said eraser width comprises:
updating the moving speed of the current point and the width of the eraser in the erasing area;
updating a current erasing area in the intelligent whiteboard based on the moving speed and the width of the eraser;
and erasing the electronic data of the current erasing area based on the moving speed and the width of the eraser.
4. The method for erasing electronic data based on the electronic whiteboard eraser according to claim 1, wherein the source point processor calculates based on the point data of the current touch point and the history point data to obtain the moving speed of the current touch point and the width of the eraser, further comprises:
clearing point data of a current touch point stored in the source point buffer; and/or
And storing the point data of the current touch point into the source point memory to form historical point data.
5. The method for erasing electronic data based on an electronic whiteboard eraser according to claim 1, wherein the acquiring the point data of the current touch point on the touch device further comprises, before:
and when the current touch point is identified as the initial touch point, clearing the historical point data on the source point memory.
6. The method for erasing electronic data based on an electronic whiteboard eraser as claimed in claim 1, wherein the point data of the current touch point includes an abscissa and an ordinate mapped into a planar rectangular coordinate system; the history point data includes: the history corresponding touch points are mapped to the abscissa and the ordinate in the plane rectangular coordinate system, the moving speed and the eraser width.
7. A system for erasing electronic data based on an electronic whiteboard eraser, the system comprising:
the point data acquisition module is used for acquiring point data of a current touch point on the intelligent whiteboard;
the judging module is used for judging whether the history point data storage is stored in the source point memory;
the source point buffer area is used for storing the point data of the current touch point in the source point buffer area when judging that the history point data is stored in the source point memory;
a source point processor for acquiring point data of a current touch point stored in a source point buffer and history point data stored in a source point memory; calculating based on the point data of the current touch point and the historical point data to obtain the moving speed and the eraser width of the current touch point;
an erasing module for erasing the electronic data of the current erasing area in the intelligent whiteboard based on the moving speed and the eraser width;
a source point memory for storing history point data;
the calculating based on the point data and the history point data of the current touch point to obtain the moving speed and the eraser width of the current touch point comprises the following steps:
acquiring the point set number of the history point data stored in the source point memory;
judging whether the point set number is larger than a preset threshold value or not;
if the point set number is judged to be larger than the preset threshold value, linear interpolation operation is carried out based on the point data of the current touch point and the historical point data, and the moving speed and the eraser width of the current touch point are calculated;
when the point set number is judged to be not larger than a preset threshold value, carrying out logarithmic operation based on the point data of the current touch point and the historical point data, and calculating the moving speed of the current touch point and the width of the eraser;
the calculating the moving speed and the eraser width of the current touch point based on the linear interpolation operation of the point data and the history point data of the current touch point comprises the following steps:
extracting all history point data in a source point memory;
performing linear interpolation operation on all the historical point data, and obtaining a speed interpolation function and an eraser width interpolation function;
extracting point data of a current touch point in a source point buffer area;
substituting the point data of the current touch point into a speed interpolation function to obtain the moving speed of the current touch point;
substituting the moving speed of the current touch point into an eraser width interpolation function to obtain the eraser width of the current touch point;
outputting the moving speed of the current touch point and the width of the eraser;
the calculating the moving speed and the eraser width of the current touch point based on the point data of the current touch point and the historical point data comprises the following steps:
extracting historical point data corresponding to a last touch point in a source point memory;
extracting point data of a current touch point in a source point buffer area;
carrying out logarithmic operation on historical point data corresponding to the last touch point and point data of the current touch point to obtain the moving speed of the current touch point;
obtaining the eraser width of the current touch point by carrying out index operation based on the moving speed of the current touch point and the historical point data corresponding to the last touch point;
and outputting the moving speed of the current touch point and the width of the eraser.
CN202111258798.6A 2021-10-27 2021-10-27 Method and system for erasing electronic data based on electronic whiteboard eraser Active CN113986041B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111258798.6A CN113986041B (en) 2021-10-27 2021-10-27 Method and system for erasing electronic data based on electronic whiteboard eraser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111258798.6A CN113986041B (en) 2021-10-27 2021-10-27 Method and system for erasing electronic data based on electronic whiteboard eraser

Publications (2)

Publication Number Publication Date
CN113986041A CN113986041A (en) 2022-01-28
CN113986041B true CN113986041B (en) 2023-07-21

Family

ID=79742934

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111258798.6A Active CN113986041B (en) 2021-10-27 2021-10-27 Method and system for erasing electronic data based on electronic whiteboard eraser

Country Status (1)

Country Link
CN (1) CN113986041B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6353193B1 (en) * 1996-10-01 2002-03-05 Greensteel, Inc. Electronic whiteboard system and method
JP2015022524A (en) * 2013-07-19 2015-02-02 株式会社日立ソリューションズ Terminal device and system
CN106886304A (en) * 2017-02-20 2017-06-23 联想(北京)有限公司 Data processing method, stylus applications client and electronic equipment
JP2018163684A (en) * 2018-06-07 2018-10-18 シャープ株式会社 Information processing device, information processing program, and information processing method
CN109542278A (en) * 2018-09-27 2019-03-29 江苏特思达电子科技股份有限公司 Processing method, device and the touch apparatus of touch data
CN111352563A (en) * 2019-04-17 2020-06-30 鸿合科技股份有限公司 Content deleting method of interactive service and related equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170090713A1 (en) * 2015-09-29 2017-03-30 International Business Machines Corporation Adjusting eraser size in drawing applications
CN105302437B (en) * 2015-10-13 2019-10-29 联想(北京)有限公司 A kind of erasing rubber size switching method and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6353193B1 (en) * 1996-10-01 2002-03-05 Greensteel, Inc. Electronic whiteboard system and method
JP2015022524A (en) * 2013-07-19 2015-02-02 株式会社日立ソリューションズ Terminal device and system
CN106886304A (en) * 2017-02-20 2017-06-23 联想(北京)有限公司 Data processing method, stylus applications client and electronic equipment
JP2018163684A (en) * 2018-06-07 2018-10-18 シャープ株式会社 Information processing device, information processing program, and information processing method
CN109542278A (en) * 2018-09-27 2019-03-29 江苏特思达电子科技股份有限公司 Processing method, device and the touch apparatus of touch data
CN111352563A (en) * 2019-04-17 2020-06-30 鸿合科技股份有限公司 Content deleting method of interactive service and related equipment

Also Published As

Publication number Publication date
CN113986041A (en) 2022-01-28

Similar Documents

Publication Publication Date Title
US7256773B2 (en) Detection of a dwell gesture by examining parameters associated with pen motion
CN108960163B (en) Gesture recognition method, device, equipment and storage medium
US9207858B2 (en) Method and apparatus for drawing and erasing calligraphic ink objects on a display surface
WO2019000681A1 (en) Information layout method, device, apparatus and computer storage medium
WO2007097548A1 (en) Method and apparatus for user-interface using the hand trace
WO2009074047A1 (en) Method, system, device and terminal for correcting touch screen error
WO2015081606A1 (en) Method for deleting characters displayed on touch screen and electronic device
CN110727496B (en) Layout method and device of graphical user interface, electronic equipment and storage medium
US9262012B2 (en) Hover angle
CN110647246A (en) Predictive detection of user intent in stylus use
CN104049874A (en) Touch chirography generation method and system of touch pen
CN106598422B (en) hybrid control method, control system and electronic equipment
CN113867521A (en) Hand input method and device based on gesture visual recognition and electronic equipment
EP2767897A2 (en) Method for generating writing data and an electronic device thereof
CN110858291A (en) Character segmentation method and device
CN113986041B (en) Method and system for erasing electronic data based on electronic whiteboard eraser
CN113311981A (en) Erasing method and device, intelligent terminal and computer readable storage medium
CN106990900A (en) One kind writing implementation method and device
CN111475057A (en) Touch identification method and device
CN113296616B (en) Pen point selection method and device and intelligent terminal
JP2015022524A (en) Terminal device and system
CN111124222B (en) Input switching method and device, electronic equipment and storage medium
CN110570930B (en) Medical image sketching method and system based on tablet personal computer
CN110262864B (en) Application processing method and device, storage medium and terminal
CN106775000B (en) Method and device for moving cursor of intelligent terminal along with pen point of mouse pen

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