Smooth erasing method and system for electronic board eraser
By optimizing the touch point list through real-time updates and interpolation algorithms, a smooth erasing path is generated, solving the jagged edge problem during electronic whiteboard erasing, improving the user experience, and adapting to different erasing needs.
Patent Information
- Application Number
- PCT/CN2024/139818
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-07-26
- Filing Date
- 2024-12-17
- Publication Date
- 2026-01-29
AI Technical Summary
In existing technologies, the erasing methods for electronic whiteboards are prone to jagged edges when erasing with a moving motion, which affects the user experience.
The touch point list is initialized based on the initial touch point coordinates, updated in real time, and a smooth touch point list is generated using a preset interpolation algorithm. The connection and external tangent between consecutive touch points are calculated to generate a smooth erasure path, and finally the erasure result is displayed.
It achieves a natural and continuous erasing effect, eliminates jagged edges, improves the user experience, and dynamically adjusts the size and intensity of the erasing area by detecting pressure input to adapt to different erasing needs.
Smart Images

Figure CN2024139818_29012026_PF_FP_ABST
Abstract
Description
A method and system for smooth erasing electronic circuit boards Technical Field
[0001] This invention relates to the field of electronic whiteboard applications, and in particular to a method and system for smooth erasing electronic whiteboards. Background Technology
[0002] An electronic whiteboard, with the support of an application, allows writing on a display device by touching a pen, hand, or other tactile object. Erasing the whiteboard refers to erasing the written content using an eraser, hand, or other tactile object.
[0003] Currently, existing technologies use methods such as connecting polygonal erasers at two touch points to form a polygonal erasing area, or using erasers of fixed size and shape (e.g., rounded rectangles or circles) to erase displayed handwriting. Because the erasing methods used in existing technologies erase only a single type of handwriting and have poor accuracy, jagged edges are easily produced when moving the eraser, which affects the user experience. Summary of the Invention
[0004] To address the aforementioned issues, this invention proposes an electronic eraser smoothing method and system, which solves the problem that existing technologies often produce jagged edges during mobile erasing, affecting user experience.
[0005] To achieve the above objectives, embodiments of the present invention provide a method for smooth erasing electronic circuit boards, comprising:
[0006] Initialize the touch point list based on the initial touch point coordinates;
[0007] Based on the initial touch point coordinates, the touch point list is updated by obtaining the current touch point coordinates.
[0008] A smooth touch point list is generated based on a preset interpolation algorithm and the touch point list;
[0009] Based on the smooth touch point list, calculate the connection between consecutive touch points to generate an erasure area;
[0010] Based on the erasure area, calculate the external tangent between consecutive touch points to generate a smooth erasure path;
[0011] The erasure result is displayed based on the smooth erasure path.
[0012] This invention proposes a smooth erasing method for electronic circuit boards. Starting from initial coordinates, the method acquires touch point coordinates in real time and updates the touch point list, providing the data foundation for generating the erasing area. Then, a preset interpolation algorithm is used to optimize the touch point list, increasing the touch point density to obtain a smooth touch point list, ensuring the continuity of the erasing path. Finally, based on calculations using connecting lines and external tangents, the erasing path is smoothed, and the final erasing result is displayed, resulting in a more natural erasing effect while eliminating jagged edges that occur during the erasing process, thus ensuring a better user experience.
[0013] Furthermore, the initialization of the touch point list based on the initial touch point coordinates specifically involves:
[0014] Real-time detection of touch input and acquisition of initial touch point coordinates;
[0015] Initialize the touch point list based on the initial touch point coordinates.
[0016] Furthermore, the step of updating the touch point list based on the initial touch point coordinates by obtaining the current touch point coordinates specifically involves:
[0017] Based on the initial touch point coordinates, the touch action input is detected in real time to obtain the current touch point coordinates;
[0018] Based on the initial touch point coordinates and the current touch point coordinates, the distance between the current touch point coordinates and the previous touch point coordinates is calculated to obtain the touch point interval distance;
[0019] If the distance between the touch points is greater than a preset interval threshold, then the coordinates of an intermediate touch point are inserted between the current touch point coordinates and the previous touch point coordinates.
[0020] Update the touch point list using the initial touch point coordinates, the current touch point coordinates, and the intermediate touch point coordinates.
[0021] Furthermore, it also includes:
[0022] Stop updating the touch point list whenever the touch action stops.
[0023] When a touch input is detected again, the initial touch point coordinates are retrieved again, and the touch point list is initialized.
[0024] Furthermore, the step of generating a smooth touch point list based on a preset interpolation algorithm and the touch point list specifically involves:
[0025] Based on a preset interpolation algorithm, touch points are interpolated to generate virtual touch points;
[0026] A smooth touch point list is generated by updating the virtual touch points to the touch point list.
[0027] Furthermore, the step of calculating the connection between consecutive touch points based on the smooth touch point list to generate an erasure region specifically involves:
[0028] Get all touch points in the smooth touch point list;
[0029] By calculating the line connecting each pair of consecutive touch points, an erasure region containing all pixels between the two points is generated.
[0030] Furthermore, it also includes:
[0031] Based on touch action input, obtain the pressure value corresponding to the touch action input;
[0032] The size and intensity of the erasure area are dynamically adjusted based on the pressure value changes corresponding to the touch input.
[0033] The present invention proposes an electronic eraser smooth erasing method that dynamically adjusts the size and intensity of the erasing area in real time by detecting pressure input. This provides users with a better erasing experience through superior adaptability and prevents the problem of being unable to erase local fine marks due to a fixed erasing size.
[0034] Furthermore, based on the erasure area, the calculation of the external tangent between consecutive touch points to generate a smooth erasure path specifically involves:
[0035] Based on the erased area, the external tangent between every two consecutive touch points is calculated to obtain several external tangents for touch points;
[0036] Connect the outer tangents of the several touch points to generate a smooth erasure path.
[0037] Furthermore, it also includes:
[0038] When an undo action input is detected, restore the smooth erase path from the previous moment;
[0039] When a redo action input is detected, the smooth erase path from the previous moment is reapplied.
[0040] This invention also provides an electronic eraser smooth erasure system, comprising: an initialization module, a list update module, a smooth list generation module, an erasure area generation module, a smooth path generation module, and a result display module;
[0041] The initialization module is used to initialize the touch point list based on the initial touch point coordinates;
[0042] The list update module is used to update the touch point list based on the initial touch point coordinates by obtaining the current touch point coordinates.
[0043] The smoothing list generation module is used to generate a smoothing touch point list based on a preset interpolation algorithm and the touch point list;
[0044] The erase region generation module is used to calculate the connection between consecutive touch points based on the smooth touch point list to generate an erase region;
[0045] The smooth path generation module is used to calculate the external tangent between consecutive touch points based on the erasure area, and generate a smooth erasure path;
[0046] The result display module is used to display the erasure result based on the smooth erasure path.
[0047] This invention proposes an electronic eraser smoothing system. An initialization module uses initial coordinates as the starting point to acquire touch point coordinates in real time and updates the touch point list via a list update module, providing the data foundation for generating the erasure area. A smoothing list generation module then optimizes the touch point list using a preset interpolation algorithm, increasing the touch point density to obtain a smoothed touch point list, ensuring the continuity of the erasure path. Finally, an erasure area generation module and a smoothing path generation module calculate based on the connecting lines and external tangents to smooth the erasure path, ultimately displaying the erasure result. This results in a more natural erasure effect while eliminating jagged edges that occur during the erasure process, ensuring a better user experience. Attached Figure Description
[0048] Figure 1 is a schematic flowchart of a method for smoothing and erasing electronic boards according to a certain embodiment of the present invention.
[0049] Figure 2 is a schematic diagram of the module structure of an electronic board eraser smoothing system according to a certain embodiment of the present invention;
[0050] Figure 3 is a schematic diagram of the smooth movement of the touch point in an electronic board eraser smooth erasure method provided in a certain embodiment of the present invention;
[0051] Figure 4 is a schematic diagram of the touch point smoothing optimization before a smooth erasing method for electronic board erasers provided in a certain embodiment of the present invention.
[0052] Figure 5 is a schematic diagram of the touch point smoothing optimization of an electronic board eraser smoothing method provided in a certain embodiment of the present invention. Detailed Implementation
[0053] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0054] Example 1
[0055] Referring to Figure 1, Figure 1 is a schematic flowchart of a smooth erasing method for electronic circuit boards according to a certain embodiment of the present invention. As shown in Figure 1, the embodiment of the present invention proposes a smooth erasing method for electronic circuit boards, including steps 101 to 106, each step of which is as follows:
[0056] Step 101: Initialize the touch point list based on the initial touch point coordinates;
[0057] As an example of this embodiment, touch input is detected in real time to obtain the initial touch point coordinates;
[0058] The touch point list is initialized based on the initial touch point coordinates. In one specific implementation, a coordinate system XOY is preset in the electronic whiteboard. Whenever a user touch input is detected—that is, when a circular eraser is selected and moved on the electronic whiteboard with a finger or stylus—the user touch input is acquired. The coordinates of the current touch input point are used as the initial touch point coordinates (x0, y0). The touch point list is initialized using these initial touch point coordinates (x0, y0) to serve as the starting list values, as shown in Table 1.
[0059] Table 1 Initial Touch Point List
[0060] Step 102: Based on the initial touch point coordinates, update the touch point list by obtaining the current touch point coordinates;
[0061] As an example of this embodiment, based on the initial touch point coordinates, touch action input is detected in real time to obtain the current touch point coordinates; based on the initial touch point coordinates and the current touch point coordinates, the distance between the current touch point coordinates and the previous touch point coordinates is calculated to obtain the touch point interval distance; when the touch point interval distance is greater than a preset interval threshold, an intermediate touch point coordinate is inserted between the current touch point coordinates and the previous touch point coordinates; the touch point list is updated using the initial touch point coordinates, the current touch point coordinates, and the intermediate touch point coordinates. Specifically, in one possible implementation, based on the initial touch point coordinates (x0, y0), continuous touch action input is detected to obtain the coordinates (x0, y0) of each touch point. i ,y i ), where i is a positive integer; calculate the touch point interval d between two consecutive touch points, the specific formula is:
[0062] Among them, (x i ,y i ) and (x i+1 ,y i+1() represents the coordinates of two consecutive touch points;
[0063] If the distance d between the two touch points is greater than a preset value, an intermediate point is inserted between the two touch points, and the coordinates (x, y) of the intermediate point are recorded. m ,y m ), where x m ∈(x i ,x i+1 ), y m ∈(y i ,y i+1 Finally, (x0, y0) and (x i ,y i ), (x m ,y m ) and (x i+1 ,y i+1 Update the touch point list to ensure the touch points are densely packed, as shown in Table 2.
[0064] Table 2 Touch Point List Update
[0065] As another example of this embodiment, the touch point list is stopped updating whenever a touch action stops input; when another touch action input is detected, the initial touch point coordinates are retrieved again, and the touch point list is initialized. Specifically, whenever a touch action stops input, it is assumed that the user has stopped the erasing operation, and the update of the touch point list is stopped until the next touch action input is detected. The initial touch point coordinates (x'0, y'0) are retrieved again, and the touch point list is initialized with the retrieved initial touch point coordinates (x'0, y'0), as shown in Table 3.
[0066] Table 3 List of reinitialized touch points
[0067] Step 103: Generate a smooth touch point list based on a preset interpolation algorithm and the touch point list;
[0068] As an example of this embodiment, touch points are interpolated based on a preset interpolation algorithm to generate virtual touch points; a smooth touch point list is generated by updating the virtual touch points to the touch point list. Specifically, one possible implementation is to interpolate touch points based on Bézier curves or spline curves to obtain virtual touch points. The interpolation formula for Bézier curves is as follows: B(t) = (1-t) 3 P0+3(1-t) 2 tP1+3(1-t)t 2 P2+t 3 P3
[0069] Where P0, P1, P2, and P3 are touch points, and t is a parameter ranging from 0 to 1. This formula can generate a series of virtual touch points, thus making the touch point list smoother.
[0070] Another preferred method is to use linear interpolation to generate the erasure area between each pair of consecutive touch points. The specific steps are as follows: First, calculate the coordinates of all pixels between the two touch points; then add these pixels to the touch list to update and generate the erasure area.
[0071] Step 104: Based on the smooth touch point list, calculate the connection between consecutive touch points to generate the erasure area;
[0072] As an example of this embodiment, all touch points in the smooth touch point list are obtained; by calculating the connection between each pair of consecutive touch points, an erasure region containing all pixels between the two points is generated. For a specific explanation, see Figure 3. Figure 3 is a schematic diagram of the smooth movement of touch points in an electronic eraser smooth erasure method provided in a certain embodiment of the present invention. As shown in Figure 3, assuming P1 and P2 are two consecutive touch points, the connection between the two touch points is calculated to connect P1 and P2. Then, based on the size and intensity of the erasure region, an erasure region containing all pixels between the two points is generated, corresponding to the region between Eraser1 and Eraser2 in Figure 3.
[0073] As another example of this embodiment, based on touch action input, the pressure value corresponding to the touch action input is obtained; based on the change in the pressure value corresponding to the touch action input, the size and intensity of the erasing area are dynamically adjusted. As one possible implementation, when detecting touch action input, the pressure value at the time of the action input can also be detected simultaneously, and the size and intensity of the erasing area are dynamically adjusted according to the pressure value at the time of the action input. The calculation formula for the relationship between the pressure value and the size of the erasing area is:
[0074] Size of the area to be wiped = f (touch pressure value)
[0075] The relationship between pressure f and the size of the erasure area can be adjusted in real time according to user needs.
[0076] Step 105: Based on the erasure area, calculate the external tangent between consecutive touch points to generate a smooth erasure path;
[0077] As an example of this embodiment, based on the erasure region, the external tangent between every two consecutive touch points is calculated to obtain a plurality of touch point external tangents; the plurality of touch point external tangents are connected to generate a smooth erasure path. For a specific explanation, see Figure 3. Figure 3 is a schematic diagram of the smooth movement of touch points in an electronic eraser smooth erasure method provided in a certain embodiment of the present invention. As shown in Figure 3, based on the obtained erasure region between Eraser1 and Eraser2, the external tangent between P1 and P2 is calculated, and the external tangents are connected to obtain a continuous smooth erasure path (Eraser Region).
[0078] As another example of this embodiment, when an undo action input is detected, the smooth erase path from the previous moment is restored; when a redo action input is detected, the smooth erase path from the previous moment is reapplied. Specifically, when an undo action input is detected, the erased path from the previous moment is restored and the whiteboard display content is updated; when a redo action input is detected, the touch point list is reapplied to the last updated touch point list from the previous moment, thus reapplying the smooth erase path of the previous erasure effect.
[0079] Step 106: Display the erasure result based on the smooth erasure path.
[0080] As an example of this embodiment, the smoothed erasure path is applied to the whiteboard for display, and the result of the erasure operation is reflected by updating the display of the electronic whiteboard in real time. Furthermore, when the user moves the eraser, the system records the touch points in real time and generates an erasure area. Referring to Figures 4 and 5, Figure 4 is a schematic diagram of the electronic whiteboard smoothing method before touch point smoothing optimization according to a certain embodiment of the present invention; Figure 5 is a schematic diagram of the electronic whiteboard smoothing method after touch point smoothing optimization according to a certain embodiment of the present invention. As shown in Figures 4 and 5, before the erasure path is smoothed, the erasure path displayed on the electronic whiteboard has jagged edges; after the erasure path is smoothed and optimized, the erasure path displayed on the electronic whiteboard is smooth and without jagged edges.
[0081] This invention proposes a smooth erasing method for electronic erasers. Starting from initial coordinates, it acquires touch point coordinates in real time and updates the touch point list, providing the data foundation for generating the erasing area. Then, it optimizes the touch point list using a preset interpolation algorithm, increasing the touch point density to obtain a smooth touch point list, ensuring the continuity of the erasing path. Next, it smooths the erasing path based on calculations using connecting lines and external tangents, ultimately displaying the erasing result. This makes the erasing effect more natural and eliminates jagged edges during the erasing process, ensuring a better user experience. Furthermore, it dynamically adjusts the size and intensity of the erasing area in real time by detecting pressure input, providing a better erasing experience and preventing the inability to erase fine local handwriting due to a fixed erasing size.
[0082] Example 2
[0083] Referring to Figure 2, Figure 2 is a schematic diagram of the module structure of an electronic eraser smooth erasing system according to a certain embodiment of the present invention. As shown in Figure 2, the embodiment of the present invention proposes an electronic eraser smooth erasing system, including:
[0084] The module includes an initialization module, a list update module, a smooth list generation module, an erased area generation module, a smooth path generation module, and a result display module.
[0085] The initialization module is used to initialize the touch point list based on the initial touch point coordinates;
[0086] The list update module is used to update the touch point list based on the initial touch point coordinates by obtaining the current touch point coordinates.
[0087] The smoothing list generation module is used to generate a smoothing touch point list based on a preset interpolation algorithm and the touch point list;
[0088] The erase region generation module is used to calculate the connection between consecutive touch points based on the smooth touch point list to generate an erase region;
[0089] The smooth path generation module is used to calculate the external tangent between consecutive touch points based on the erasure area, and generate a smooth erasure path;
[0090] The result display module is used to display the erasure result based on the smooth erasure path.
[0091] This invention proposes an electronic eraser smoothing system. An initialization module uses initial coordinates as the starting point to acquire touch point coordinates in real time and updates the touch point list via a list update module, providing the data foundation for generating the erasure area. A smoothing list generation module then optimizes the touch point list using a preset interpolation algorithm, increasing the touch point density to obtain a smoothed touch point list, ensuring the continuity of the erasure path. Finally, an erasure area generation module and a smoothing path generation module calculate based on the connecting lines and external tangents to smooth the erasure path, ultimately displaying the erasure result. This results in a more natural erasure effect while eliminating jagged edges that occur during the erasure process, ensuring a better user experience.
[0092] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the technical principles of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
[0093] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of those different embodiments or examples.
[0094] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "a plurality of" means two or more, unless otherwise explicitly specified.
Claims
1. An electronic board eraser smoothing erasing method characterized by, The method comprises the following steps: initializing a touch point list based on initial touch point coordinates; updating the touch point list based on the initial touch point coordinates by acquiring current touch point coordinates; generating a smooth touch point list based on a preset interpolation algorithm and the touch point list; calculating a connection line between continuous touch points based on the smooth touch point list to generate an erasing area; calculating a tangent line between the continuous touch points based on the erasing area to generate a smooth erasing path; displaying an erasing result based on the smooth erasing path.
2. The electronic board eraser smoothing erasing method of claim 1, wherein, The step of initializing the touch point list based on the initial touch point coordinates comprises the following steps: detecting touch action input in real time to acquire the initial touch point coordinates; initializing the touch point list based on the initial touch point coordinates.
3. The electronic board eraser smoothing erasing method of claim 1, wherein, The step of updating the touch point list based on the initial touch point coordinates by acquiring current touch point coordinates comprises the following steps: detecting touch action input in real time based on the initial touch point coordinates to acquire the current touch point coordinates; calculating a distance between the current touch point coordinates and the previous touch point coordinates based on the initial touch point coordinates and the current touch point coordinates to obtain a touch point interval distance; when the touch point interval distance is greater than a preset interval threshold, inserting an intermediate touch point coordinate between the current touch point coordinate and the previous touch point coordinate; updating the touch point list by using the initial touch point coordinates, the current touch point coordinates and the intermediate touch point coordinate.
4. An electronic board eraser smoothing erasing method as claimed in claim 2 or 3, characterized in that, The method further comprises the following steps: stopping updating the touch point list when the touch action input stops; re-acquiring the initial touch point coordinates to initialize the touch point list when the touch action input is detected again.
5. The electronic board eraser smoothing erasing method of claim 1, wherein, The step of generating the smooth touch point list based on the preset interpolation algorithm and the touch point list comprises the following steps: generating a virtual touch point by interpolating the touch point based on the preset interpolation algorithm; generating the smooth touch point list by updating the virtual touch point to the touch point list.
6. The electronic board eraser smoothing erasing method of claim 1, wherein, The step of calculating the connection line between the continuous touch points based on the smooth touch point list to generate the erasing area comprises the following steps: acquiring all the touch points in the smooth touch point list; generating an erasing area containing all the pixel points between two touch points by calculating the connection line between each pair of continuous touch points.
7. An electronic board eraser smoothing erasing method as claimed in claim 2 or 6, characterized in that, The method further comprises the following steps: acquiring a pressure value corresponding to the touch action input based on the touch action input; dynamically adjusting the size and intensity of the erasing area based on the change of the pressure value corresponding to the touch action input.
8. The electronic board eraser smoothing erasing method of claim 1, wherein, The step of calculating the tangent line between the continuous touch points based on the erasing area to generate the smooth erasing path comprises the following steps: calculating a tangent line between each two continuous touch points based on the erasing area to obtain a plurality of touch point tangent lines; connecting the plurality of touch point tangent lines to generate the smooth erasing path.
9. The electronic board eraser smoothing erasing method according to claim 1 or 8, wherein The method further comprises the following steps: restoring the smooth erasing path of the previous moment when a cancel action input is detected; reapplying the smooth erasing path of the previous moment when a redo action input is detected.
10. An electronic board eraser smooth erasing system characterized by, The method comprises the following steps: initializing a module, a list updating module, a smooth list generating module, an erasing area generating module, a smooth path generating module and a result displaying module; the initializing module is configured to initialize the touch point list based on the initial touch point coordinates; The list updating module is configured to update the touch point list by acquiring the touch point coordinates at the current time based on the initial touch point coordinates; The smooth list generating module is configured to generate a smooth touch point list based on a preset interpolation algorithm and the touch point list; The erasing area generating module is configured to generate an erasing area based on the smooth touch point list by calculating the lines between the continuous touch points; The smooth path generating module is configured to generate a smooth erasing path based on the erasing area by calculating the tangent lines between the continuous touch points; The result displaying module is configured to display an erasing result based on the smooth erasing path.
Citation Information
Patent Citations
Handwriting forming method, handwriting forming device and electronic equipment
CN113590002A
Drawing track display method, device and system and computer readable storage medium
CN118312083A
Smooth erasing method and system for electronic board eraser
CN118885103A
Erasing device, erasing method and display system with erasing device
JP2012018603A