Board eraser erasing method and device and storage medium

By detecting and responding to touch screen events, the rectangular eraser icon can be moved arbitrarily, which solves the problem that the existing eraser method is difficult to accurately erase any area, improves erasure accuracy and convenience, and enhances stability.

CN118656015AInactive Publication Date: 2024-09-17GUANGZHOU LANGO ELECTRONICS TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410688124.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-09-17
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When erasing a whiteboard area using existing eraser methods, the eraser icon can only move at a specific angle, making it difficult to erase any area accurately.

Method used

By detecting touch screen events, it is determined whether the triggering object is a rectangular physical eraser, and the rectangular eraser icon is displayed on the touch screen. In response to its movement event, the vertex coordinates of the icon are obtained and connected to realize vertical movement, longitudinal movement and rotation of the rectangular eraser icon. Move at will.

Benefits of technology

It improves the accuracy and convenience of erasing, reduces the jumping problem caused by large angle changes, and enhances the stability and accuracy of erasing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656015A
    Figure CN118656015A
Patent Text Reader

Abstract

The invention discloses a board eraser erasing method and device and a storage medium, and the method comprises the steps: judging whether a triggering object for triggering a touch screen event is a rectangular physical board eraser or not when the touch screen event is detected; when the trigger object is judged to be the rectangular physical eraser, displaying a rectangular eraser icon in an area corresponding to the rectangular physical eraser in the touch screen; responding to a moving event of the rectangular physical eraser, acquiring vertex coordinates of the rectangular eraser icon when the rectangular eraser icon moves along with the rectangular physical eraser, and connecting the vertex coordinates according to a preset sequence. According to the method, the rectangular board eraser icon is controlled to move along with the rectangular physical board eraser, and each vertex coordinate of the rectangular board eraser icon is connected according to the preset sequence, so that the rectangular board eraser icon can realize any movement such as vertical movement, longitudinal movement and rotary movement, and any area can be erased through the rectangular board eraser icon; and the erasing precision and convenience are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent interaction technology, and in particular to a blackboard eraser erasing method, device and storage medium. Background Art

[0002] An eraser, also known as a blackboard eraser or whiteboard eraser, is a tool used to clean a blackboard or whiteboard. Physical erasers are usually made of soft materials, such as sponges, rubber or cloth, to facilitate erasing traces left by chalk or markers. Electronic erasers are an auxiliary tool that came into being with the development of electronic whiteboard technology. As a tool for modern teaching and conference presentations, electronic whiteboards allow users to write or draw on the board with a stylus pen and record and display content electronically. Compared with traditional blackboards or whiteboards, electronic whiteboards require special erasing methods during use.

[0003] When erasing a whiteboard area using an existing eraser method, the eraser icon can usually only move at a specific angle, namely, 90 degrees, making it difficult to accurately erase any area. Summary of the invention

[0004] The present invention provides a blackboard erasing method, device and storage medium to solve the technical problem that when erasing a whiteboard area, the blackboard eraser icon can usually only move at a specific angle, i.e. 90 degrees, and it is difficult to accurately erase any area.

[0005] The present invention provides a blackboard eraser erasing method, comprising:

[0006] When a touch screen event is detected, determining whether the triggering object that triggers the touch screen event is a rectangular physical eraser;

[0007] When it is determined that the triggering object is a rectangular physical eraser, a rectangular eraser icon is displayed in an area corresponding to the rectangular physical eraser on the touch screen;

[0008] In response to the moving event of the rectangular physical eraser, the vertex coordinates of the rectangular eraser icon when following the movement of the rectangular physical eraser are obtained, and each vertex coordinate is connected according to a preset order.

[0009] Further, the determining whether the triggering object that triggers the touch screen event is a rectangular physical eraser comprises:

[0010] Determine whether the arc angle of the trigger object is 0°, -90° and 90°, and if so, determine that the trigger object is not a rectangular physical eraser;

[0011] If not, the aspect ratio of the trigger object is determined, and when the aspect ratio of the trigger object is within a preset data interval, the trigger object is determined to be a rectangular physical eraser.

[0012] Furthermore, before determining whether the arc angle of the triggering object is 0°, -90°, and 90°, the method further includes:

[0013] The arc angle of the triggering object is calculated according to the arc of the triggering object relative to the direction directly above the touch screen.

[0014] Furthermore, the size of the rectangular eraser icon is consistent with the size of the rectangular physical eraser.

[0015] Further, the step of obtaining the vertex coordinates of the rectangular eraser icon when following the movement of the rectangular physical eraser comprises:

[0016] During the movement of the rectangular physical eraser, the radian angle of each time node is obtained at a preset interval;

[0017] Select the radian angles of the nearest multiple time nodes;

[0018] Calculate the average value of the radian angles of the multiple time nodes, and use the average value as the radian angle of the current time node of the rectangular eraser icon;

[0019] Determine the vertex coordinates of the current time node based on the radian angle of the current time node.

[0020] The present invention also provides a blackboard eraser, comprising:

[0021] A physical eraser judging module is used to judge whether the triggering object that triggers the touch screen event is a rectangular physical eraser when a touch screen event is detected;

[0022] The eraser icon display module is used for displaying a rectangular eraser icon in an area corresponding to the rectangular physical eraser in the touch screen when it is determined that the triggering object is a rectangular physical eraser;

[0023] The eraser icon moving module is used to respond to the moving event of the rectangular physical eraser, obtain the vertex coordinates of the rectangular eraser icon when following the movement of the rectangular physical eraser, and connect each vertex coordinate according to a preset order.

[0024] Further, the physical eraser judgment module is also used for:

[0025] Determine whether the arc angle of the trigger object is 0°, -90° and 90°, and if so, determine that the trigger object is not a rectangular physical eraser;

[0026] If not, the aspect ratio of the trigger object is determined, and when the aspect ratio of the trigger object is within a preset data interval, the trigger object is determined to be a rectangular physical eraser.

[0027] Furthermore, before determining whether the arc angle of the triggering object is 0°, -90°, and 90°, the method further includes:

[0028] The arc angle of the triggering object is calculated according to the arc of the triggering object relative to the direction directly above the touch screen.

[0029] Further, the eraser icon moving module is also used for:

[0030] During the movement of the rectangular physical eraser, the radian angle of each time node is obtained at a preset interval;

[0031] Select the radian angles of the nearest multiple time nodes;

[0032] Calculate the average value of the radian angles of the multiple time nodes, and use the average value as the radian angle of the current time node of the rectangular eraser icon;

[0033] Determine the vertex coordinates of the current time node based on the radian angle of the current time node.

[0034] The present invention also provides a computer-readable storage medium, which includes a stored computer program; wherein, when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the above-mentioned eraser erasing method.

[0035] The present invention controls a rectangular eraser icon to move following a rectangular physical eraser, and connects each vertex coordinate of the rectangular eraser icon according to a preset sequence, so that the rectangular eraser icon can realize any movement such as vertical movement, longitudinal movement and rotational movement, so that any area can be erased by the rectangular eraser icon, thereby improving erasing accuracy and convenience.

[0036] Furthermore, during the movement of the rectangular physical eraser, the present invention performs smoothing filtering on the radian angle, determines the vertex coordinates of the current time node based on the ultimately determined radian angle, and connects these vertex coordinates in a preset order, thereby reducing the jumping problem caused by the large amplitude of the angle change during the movement of the rectangular icon, thereby effectively improving the stability and accuracy of the eraser's erasing. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 It is a schematic flow chart of a blackboard eraser erasing method provided by an embodiment of the present invention;

[0038] Figure 2 It is a schematic diagram of generating a rectangular eraser icon provided by an embodiment of the present invention;

[0039] Figure 3 Schematic diagram of the rotation of the rectangular eraser icon provided by the embodiment of the present invention

[0040] Figure 4 Another schematic diagram of the rectangular eraser icon rotating according to an embodiment of the present invention

[0041] Figure 5 Schematic diagram of the fan-shaped movement of the rectangular eraser icon provided by the embodiment of the present invention

[0042] Figure 6 It is a schematic diagram of the vertices of a rectangular eraser icon provided by an embodiment of the present invention;

[0043] Figure 7 It is a schematic diagram of the process of the eraser device provided by the embodiment of the present invention. DETAILED DESCRIPTION

[0044] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0045] In the description of this application, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the feature. In the description of this application, unless otherwise specified, "plurality" means two or more.

[0046] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0047] See also Figure 1 The present invention provides a blackboard erasing method, comprising:

[0048] S1. When a touch screen event is detected, determining whether the triggering object that triggers the touch screen event is a rectangular physical eraser;

[0049] In the embodiment of the present invention, when a touch object touches the touch screen of the whiteboard, a touch screen event is generated.

[0050] S2, when it is determined that the triggering object is a rectangular physical eraser, a rectangular eraser icon is displayed in the area corresponding to the rectangular physical eraser on the touch screen;

[0051] In the embodiment of the present invention, the trigger object may be other questions or a rectangular physical eraser.

[0052] See also Figure 2 When the trigger object is determined to be a rectangular physical eraser, the embodiment of the present invention generates a rectangular eraser icon corresponding to the rectangular physical eraser, wherein the generation position may be a position on the touch screen corresponding to the rectangular physical eraser.

[0053] It should be noted that the embodiment of the present invention controls the movement of the rectangular eraser icon to erase the area within the moving track of the rectangular eraser icon.

[0054] S3. In response to the moving event of the rectangular physical eraser, the vertex coordinates of the rectangular eraser icon when following the movement of the rectangular physical eraser are obtained, and each vertex coordinate is connected according to a preset order.

[0055] See also Figure 3-5 In the embodiment of the present invention, the rectangular eraser icon moves following the rectangular physical eraser, and the movement of the rectangular physical eraser can be any movement mode, such as vertical movement, longitudinal movement and rotational movement.

[0056] The rectangular eraser icon moves with the rectangular physical eraser, and each vertex coordinate of the rectangular eraser icon is connected according to a preset order, so that the rectangular eraser icon can realize any movement such as vertical movement, longitudinal movement and rotational movement, so that any area can be erased by the rectangular eraser icon, thereby improving erasing accuracy and convenience.

[0057] In one embodiment, step S1, determining whether the triggering object that triggers the touch screen event is a rectangular physical eraser, comprises:

[0058] S11, determining whether the arc angle of the triggering object is 0°, -90° and 90°, if so, determining that the triggering object is not a rectangular physical eraser;

[0059] In the embodiment of the present invention, the arc angle of the triggering object is the arc angle of the triggering object relative to the natural direction of the touch screen, wherein the natural direction of the touch screen may be directly above the touch screen.

[0060] In actual use, the contact angle between the edge of a rectangular physical eraser and the screen is usually 0° (vertically downward), -90° (horizontally to the right) or 90° (horizontally to the left). By detecting these specific angles, the embodiments of the present invention can more accurately identify non-eraser objects, thereby avoiding erroneous identification of other objects as erasers, and further effectively improving the accuracy of the movement of the eraser icon.

[0061] S12: If not, determine the aspect ratio of the trigger object. When the aspect ratio of the trigger object is within a preset data interval, determine that the trigger object is a rectangular physical eraser.

[0062] In an embodiment of the present invention, it is further possible to determine whether the trigger object is a rectangular physical eraser based on a preset aspect ratio. For example, the aspect ratio is set between 1.5 and 3, and the trigger object whose arc angle meets the conditions and whose aspect ratio is within this range is determined to be a rectangular physical eraser, and then a corresponding rectangular eraser icon is generated, which can further avoid mistakenly identifying other objects as erasers.

[0063] In one embodiment, step S11, before determining whether the arc angle of the triggering object is 0°, -90° and 90°, further includes:

[0064] The arc angle of the triggering object is calculated according to the arc of the triggering object relative to the direction directly above the touch screen.

[0065] In an embodiment of the present invention, the arc of the triggering object can be determined based on the Orientation information in the Android standard touch protocol, and then the arc angle can be further calculated. arrive After being converted into an angle, the value ranges from -90 to 90, which can represent a total of 180 degrees. The radian angle represents the direction of the touching object. The physical rectangular eraser of the embodiment of the present invention is symmetrical left and right and up and down. The directions of 0 and 180 degrees are consistent, and the directions of 90 and 360 are consistent. Therefore, the implementation of the present invention can represent 0 and 180 degrees with -90 to 90.

[0066] In one embodiment, the size of the rectangular eraser icon is consistent with the size of the rectangular physical eraser.

[0067] In one embodiment, step S3, obtaining the vertex coordinates of the rectangular eraser icon when following the movement of the rectangular physical eraser, includes:

[0068] S31, during the movement of the rectangular physical eraser, obtaining the radian angle of each time node at a preset interval;

[0069] In the embodiment of the present invention, during the movement of the rectangular physical eraser, it is necessary to perform smoothing filtering on the arc angle thereof to improve the stability of the angle change.

[0070] In the embodiment of the present invention, the time interval for obtaining the radian angle may be set according to actual needs. For example, the radian angle may be obtained every 8 ms.

[0071] S32, selecting the radian angles of multiple recent time nodes;

[0072] In the embodiment of the present invention, the radian angles of the last five time nodes may be selected, and the five time nodes correspond to five angles. For example, the radian angles of the five time nodes selected are a1, a2, a3, a4, and a5, respectively. a1 is the first reported angle, and a5 is the most recently reported angle.

[0073] S33, calculating the average value of the radian angles of multiple time nodes, and using the average value as the radian angle of the current time node of the rectangular eraser icon;

[0074] In an embodiment of the present invention, the calculation formula for the radian angle of the previous time node is a5=(a1+a2+a3+a4+a5) / 5, that is, the sum and average of the five points closest in time is the actual angle of the current time node.

[0075] S34. Determine the vertex coordinates of the current time node based on the radian angle of the current time node.

[0076] See also Figure 6 In the embodiment of the present invention, during the movement of the rectangular physical eraser, the radian angle is smoothed and filtered, the vertex coordinates of the current time node are determined based on the finally determined radian angle, and these vertex coordinates are connected in a preset order. For example, four vertices are numbered 0, 1, 2, and 3 respectively, and these vertices are connected to form a rectangle, so that the jumping problem caused by the large amplitude of the angle change during the movement of the rectangular icon can be reduced, thereby effectively improving the stability and accuracy of the eraser.

[0077] The implementation of the embodiments of the present invention has the following beneficial effects:

[0078] The rectangular eraser icon of the embodiment of the present invention moves with the rectangular physical eraser, and connects the coordinates of each vertex of the rectangular eraser icon according to a preset order, so that the rectangular eraser icon can realize arbitrary movements such as vertical movement, longitudinal movement and rotational movement, so that any area can be erased by the rectangular eraser icon, thereby improving the erasing accuracy and convenience.

[0079] Furthermore, during the movement of the rectangular physical eraser, the embodiment of the present invention performs smoothing filtering on the radian angle, determines the vertex coordinates of the current time node based on the radian angle finally determined, and connects these vertex coordinates in a preset order, thereby reducing the jumping problem caused by the large amplitude of the angle change during the movement of the rectangular icon, thereby effectively improving the stability and accuracy of the eraser's erasing.

[0080] See also Figure 7 Based on the same inventive concept as the above embodiment, an embodiment of the present invention further provides a blackboard eraser, comprising:

[0081] A physical eraser judging module 10 is used to judge whether the triggering object that triggers the touch screen event is a rectangular physical eraser when a touch screen event is detected;

[0082] The eraser icon display module 20 is used for displaying a rectangular eraser icon in the area corresponding to the rectangular physical eraser in the touch screen when the triggering object is judged to be a rectangular physical eraser;

[0083] The eraser icon moving module 30 is used to respond to the moving event of the rectangular physical eraser, obtain the vertex coordinates of the rectangular eraser icon when it follows the movement of the rectangular physical eraser, and connect each vertex coordinate according to a preset order.

[0084] In one embodiment, the physical eraser determination module 10 is further used for:

[0085] Determine whether the arc angle of the trigger object is 0°, -90° and 90°. If so, determine that the trigger object is not a rectangular physical eraser;

[0086] If not, determine the aspect ratio of the trigger object, and when the aspect ratio of the trigger object is within a preset data interval, determine that the trigger object is a rectangular physical eraser.

[0087] In one embodiment, before determining whether the arc angle of the triggering object is 0°, -90°, and 90°, the method further includes:

[0088] The arc angle of the triggering object is calculated according to the arc of the triggering object relative to the direction directly above the touch screen.

[0089] In one embodiment, the size of the rectangular eraser icon is consistent with the size of the rectangular physical eraser.

[0090] In one embodiment, the eraser icon moving module 30 is also used for:

[0091] During the movement of the rectangular physical eraser, the radian angle of each time node is obtained at a preset interval;

[0092] Select the radian angles of the nearest multiple time nodes;

[0093] Calculate the average value of the radian angles of multiple time nodes, and use the average value as the radian angle of the current time node of the rectangular eraser icon;

[0094] Determine the vertex coordinates of the current time node based on the radian angle of the current time node.

[0095] Correspondingly, an embodiment of the present invention further provides a terminal device, comprising: a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, the eraser erasing method of any one of the above embodiments is implemented.

[0096] The terminal device of this embodiment includes: a processor, a memory, and a computer program and computer instructions stored in the memory and executable on the processor. When the processor executes the computer program, each step in the above embodiment 1 is implemented, for example Figure 1 Alternatively, when the processor executes the computer program, the functions of each module / unit in the above device embodiment, such as the eraser icon moving module 30, are implemented.

[0097] Exemplary, the computer program can be divided into one or more modules / units, one or more modules / units are stored in a memory, and are executed by a processor to complete the present invention. One or more modules / units can be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program in a terminal device. For example, the eraser icon moving module 30 is used to respond to the moving event of the rectangular physical eraser, obtain the vertex coordinates of the rectangular eraser icon when following the movement of the rectangular physical eraser, and connect each vertex coordinate according to a preset order.

[0098] The terminal device may be a computing device such as a desktop computer, a notebook, a PDA, and a cloud server. The terminal device may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that the schematic diagram is merely an example of a terminal device and does not constitute a limitation on the terminal device. The terminal device may include more or fewer components than shown in the diagram, or may combine certain components, or different components. For example, the terminal device may also include an input / output device, a network access device, a bus, etc.

[0099] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the terminal device, and uses various interfaces and lines to connect various parts of the entire terminal device.

[0100] The memory can be used to store computer programs and / or modules. The processor realizes various functions of the terminal device by running or executing the computer programs and / or modules stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the mobile terminal, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Med ia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (F l ash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0101] Among them, if the module / unit integrated in the terminal device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electric carrier signals and telecommunication signals.

[0102] Correspondingly, an embodiment of the present invention further provides a computer-readable storage medium, the computer-readable storage medium including a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the eraser erasing method of any one of the above embodiments.

[0103] The above specific embodiments further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above are only specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.

Claims

1. A blackboard eraser erasing method, characterized in that: include: When a touch screen event is detected, determining whether the triggering object that triggers the touch screen event is a rectangular physical eraser; When it is determined that the triggering object is a rectangular physical eraser, a rectangular eraser icon is displayed in an area corresponding to the rectangular physical eraser on the touch screen; In response to the moving event of the rectangular physical eraser, the vertex coordinates of the rectangular eraser icon when following the movement of the rectangular physical eraser are obtained, and each vertex coordinate is connected according to a preset order.

2. The eraser erasing method as claimed in claim 1, wherein: The step of determining whether the triggering object that triggers the touch screen event is a rectangular physical eraser comprises: Determine whether the arc angle of the trigger object is 0°, -90° and 90°, and if so, determine that the trigger object is not a rectangular physical eraser; If not, the aspect ratio of the trigger object is determined, and when the aspect ratio of the trigger object is within a preset data interval, the trigger object is determined to be a rectangular physical eraser.

3. The eraser erasing method as claimed in claim 2, wherein: Before determining whether the arc angle of the triggering object is 0°, -90° and 90°, the method further includes: The arc angle of the triggering object is calculated according to the arc of the triggering object relative to the direction directly above the touch screen.

4. The eraser erasing method as claimed in claim 1, wherein: The size of the rectangular eraser icon is consistent with the size of the rectangular physical eraser.

5. The eraser erasing method as claimed in claim 1, characterized in that: The step of obtaining the vertex coordinates of the rectangular eraser icon when following the movement of the rectangular physical eraser comprises: During the movement of the rectangular physical eraser, the radian angle of each time node is obtained at preset intervals; Select the radian angles of the nearest multiple time nodes; Calculate the average value of the radian angles of the multiple time nodes, and use the average value as the radian angle of the current time node of the rectangular eraser icon; Determine the vertex coordinates of the current time node based on the radian angle of the current time node.

6. A blackboard eraser, characterized in that: include: A physical eraser judging module is used to judge whether the triggering object that triggers the touch screen event is a rectangular physical eraser when a touch screen event is detected; The eraser icon display module is used for displaying a rectangular eraser icon in an area corresponding to the rectangular physical eraser in the touch screen when it is determined that the triggering object is a rectangular physical eraser; The eraser icon moving module is used to respond to the moving event of the rectangular physical eraser, obtain the vertex coordinates of the rectangular eraser icon when following the movement of the rectangular physical eraser, and connect each vertex coordinate according to a preset order.

7. The eraser device as claimed in claim 6, characterized in that: The physical eraser judgment module is also used for: Determine whether the arc angle of the trigger object is 0°, -90° and 90°, and if so, determine that the trigger object is not a rectangular physical eraser; If not, the aspect ratio of the trigger object is determined, and when the aspect ratio of the trigger object is within a preset data interval, the trigger object is determined to be a rectangular physical eraser.

8. The eraser device as claimed in claim 7, characterized in that: Before determining whether the arc angle of the triggering object is 0°, -90° and 90°, the method further includes: The arc angle of the triggering object is calculated according to the arc of the triggering object relative to the direction directly above the touch screen.

9. The eraser device as claimed in claim 6, characterized in that: The eraser icon moving module is also used for: During the movement of the rectangular physical eraser, the radian angle of each time node is obtained at preset intervals; Select the radian angles of the nearest multiple time nodes; Calculate the average value of the radian angles of the multiple time nodes, and use the average value as the radian angle of the current time node of the rectangular eraser icon; Determine the vertex coordinates of the current time node based on the radian angle of the current time node.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program; wherein, when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the eraser erasing method as described in any one of claims 1-5.

Citation Information

Patent Citations

  • Accurate erasing system for infrared touch screens

    CN102799315A

  • Method and device for erasing screen content

    CN111506215A

  • Handwriting erasing method and device, interaction panel and storage medium

    CN115373772A