Method, device and medium for smoothing sliding path of electronic blackboard eraser

By constructing a closed polygon as an erasing path on the electronic whiteboard, the problems of discontinuity and jagged feeling during sliding are solved, and the effect of simulating the real blackboard erasing effect is significantly improved.

CN115494982BActive Publication Date: 2025-04-15LANGYUAN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211322108.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-27
Publication Date
2025-04-15
Estimated Expiration
2042-10-27

AI Technical Summary

Technical Problem

In the existing electronic whiteboard technology, when the user swipes quickly, the screen captures fewer touch points, resulting in the drawn erasing area being discontinuous, accompanied by a strong sense of jagging, which cannot effectively simulate the effect of erasing on the real blackboard.

Method used

By obtaining contacts on the sliding path, the board erases the graphics, and determining the connection method based on the vertex coordinate information of these graphics, forming a closed polygon as an erasing path, eliminating the sense of aliasing and improving the simulation effect.

Benefits of technology

It effectively eliminates the discontinuity and jagging of the erase area, improves the simulation effect of electronic board eras, and makes it closer to the erase effect on the real blackboard.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115494982B_ABST
    Figure CN115494982B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device and medium for smoothing the sliding path of an electronic blackboard eraser, comprising: obtaining a first contact point and a second contact point, constructing a first blackboard eraser figure and a second blackboard eraser figure respectively with the first contact point and the second contact point as the center, and recording the coordinate information of all vertices of the first blackboard eraser figure and the second blackboard eraser figure at the same time; wherein the first contact point and the second contact point are two non-overlapping contact points on the sliding path of the electronic blackboard eraser; determining the connection mode between the vertices of the two blackboard eraser figures according to the coordinate information of all vertices of the first blackboard eraser figure and the coordinate information of all vertices of the second blackboard eraser figure, connecting the first blackboard eraser figure and the second blackboard eraser figure according to the connection mode, constructing a closed polygon, and using the closed polygon as the erasing path of the electronic blackboard eraser from the first contact point to the second contact point. The present invention improves the simulation effect of the electronic blackboard eraser.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of electronic whiteboards, and in particular to a method, a device and a medium for smoothing the sliding path of an electronic whiteboard eraser. Background Art

[0002] Electronic whiteboards generally include the function of erasing whiteboard content with an electronic eraser. After the user switches to the eraser mode, the whiteboard will form an erasing path according to the user's touch point, and draw the erased area on this path, thereby simulating the effect of erasing written content on a real blackboard with an eraser. In the existing solution, the area first obtains the touch point, then adds a rectangular area the size of the eraser, and then obtains the erased area by moving the touch point.

[0003] In the process of implementing the present invention, the inventors found that the prior art has the following technical problems: if the user slides quickly, the screen will only capture a few touch points, resulting in the drawn erasing area being a discontinuous eraser area, which is usually accompanied by a strong jagged feeling, and therefore cannot well simulate the effect of erasing on a real blackboard. Summary of the invention

[0004] The embodiment of the present invention provides a method, device and medium for smoothing the sliding path of an electronic blackboard eraser, which can effectively solve the problem of discontinuity and jaggedness of the simulated blackboard eraser area in the prior art, and improve the simulation effect of the electronic blackboard eraser.

[0005] An embodiment of the present invention provides a method for smoothing the sliding path of an electronic eraser, comprising:

[0006] Acquire a first contact point, construct a first eraser figure with the first contact point as the center, and record coordinate information of all vertices of the first eraser figure;

[0007] Acquire a second contact point, construct a second eraser graph with the second contact point as the center, and record the coordinate information of all vertices of the second eraser graph; wherein the first contact point and the second contact point are two non-overlapping contact points on the sliding path of the electronic eraser;

[0008] Determine the connection mode between the vertices of the two eraser graphics according to the coordinate information of all vertices of the first eraser graphics and the coordinate information of all vertices of the second eraser graphics, connect the first eraser graphics and the second eraser graphics according to the connection mode, construct a closed polygon, and use the closed polygon as the erasing path of the electronic eraser from the first contact point to the second contact point.

[0009] Compared with the prior art, the electronic eraser sliding path smoothing method disclosed in the embodiment of the present invention connects the electronic eraser graphics to form a closed polygon, and uses the closed polygon as the erasing path to simulate the erasing area of ​​a real eraser, thereby eliminating the jagged feeling and improving the simulation effect of the electronic eraser.

[0010] Furthermore, when the first contact point and the second contact point are two contact points that do not overlap and are adjacent to each other on the sliding path of the electronic eraser, the electronic eraser sliding path smoothing method further includes:

[0011] Each adjacent contact point on the electronic eraser sliding path is used as the first contact point and the second contact point respectively, and the erasing path of each adjacent contact point is determined, and then the electronic eraser erasing path corresponding to the electronic eraser sliding path is obtained.

[0012] Further, the electronic eraser sliding path smoothing method also includes:

[0013] The touch screen erasing path required by the user is obtained, the touch screen erasing path is split into several sub-paths, the first and last points of the several sub-paths are respectively taken as the first touch point and the second touch point, and then several slice areas are obtained, and the several slice areas are combined to form a complete erasing path.

[0014] Two other different erasing path smoothing methods are provided as a supplement to claim 1, so that the application scope is wider and the practicality is higher.

[0015] Further, the method of determining the connection mode between two eraser graphic vertices according to the coordinate information of all vertices of the first eraser graphic and the coordinate information of all vertices of the second eraser graphic specifically includes:

[0016] Connect the vertices of the two eraser figures respectively, arbitrarily select two vertex lines to combine the two eraser figures into a plurality of closed polygons, calculate the areas of the plurality of closed polygons through the coordinate information of each vertex, and select the vertex line method corresponding to the closed polygon with the largest area as the connection method between the vertices of the two eraser figures.

[0017] By calculating the area of ​​closed polygons under various connection modes and finally selecting the connection mode corresponding to the one with the largest closed polygon area, it is possible to adapt well to various irregular eraser shapes and achieve better simulation effects when simulating erasing.

[0018] Furthermore, the first touch point and the second touch point are both touch points of the user on the electronic whiteboard, and the first eraser graphic and the second eraser graphic are synchronized with the electronic eraser pattern displayed on the electronic whiteboard and can be set to any geometric shape by the user.

[0019] Another embodiment of the present invention provides a device for smoothing the sliding path of an electronic eraser, including: a contact point acquisition module, an erasing path generation module;

[0020] The contact point acquisition module is used to acquire a first contact point and a second contact point, and construct a first blackboard eraser figure and a second blackboard eraser figure with the first contact point and the second contact point as the center, and record the coordinate information of all vertices of the first blackboard eraser figure and the second blackboard eraser figure; wherein the second contact point does not overlap with the first contact point;

[0021] The erasing path generating module is used to determine the connection mode between the vertices of two eraser graphics according to the coordinate information of all vertices of the first eraser graphics and the coordinate information of all vertices of the second eraser graphics, connect the first eraser graphics with the second eraser graphics according to the connection mode, construct a closed polygon, and use the closed polygon as the erasing path of the electronic eraser from the first contact point to the second contact point.

[0022] Compared with the prior art, an electronic eraser sliding path smoothing device disclosed in an embodiment of the present invention connects the electronic eraser graphics to form a closed polygon, and uses the closed polygon as an erasing path to simulate the erasing area of ​​a real eraser, thereby eliminating the jagged feeling and greatly improving the simulation effect of the electronic eraser.

[0023] Further, the erasing path generation module is used to determine the connection mode between the vertices of two eraser graphics according to the coordinate information of all vertices of the first eraser graphics and the coordinate information of all vertices of the second eraser graphics, specifically including:

[0024] Connect the vertices of the two eraser figures respectively, arbitrarily select two vertex connection lines to combine the two eraser figures into a number of closed polygons, calculate the areas of the several closed polygons through the coordinate information of each vertex, compare the areas of the several polygons, and finally select the vertex connection method corresponding to the one with the largest area as the connection method between the vertices of the two eraser figures.

[0025] Furthermore, the first touch point and the second touch point are both touch points of the user on the electronic whiteboard, and the first eraser graphic and the second eraser graphic are synchronized with the electronic eraser pattern displayed on the electronic whiteboard and can be set to any geometric shape by the user.

[0026] Another embodiment of the present invention provides a storage medium, wherein 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 electronic eraser sliding path smoothing method described in the above-mentioned invention embodiment.

[0027] Another embodiment of the present invention provides an electronic blackboard eraser sliding path smoothing device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements an electronic blackboard eraser sliding path smoothing method described in the above-mentioned invention embodiment. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 The present invention is a flowchart of a method for smoothing the sliding path of an electronic eraser provided by an embodiment of the present invention.

[0029] Figure 2 It is a schematic diagram of a six-link structure constructed in a preferred embodiment provided by an embodiment of the present invention.

[0030] Figure 3 The present invention is a schematic structural diagram of a device for smoothing the sliding path of an electronic blackboard eraser provided in one embodiment of the present invention. DETAILED DESCRIPTION

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

[0032] See also Figure 1 , is a flow chart of a method for smoothing the sliding path of an electronic eraser provided by an embodiment of the present invention, comprising:

[0033] S101: obtaining a first contact point, constructing a first blackboard eraser graphic with the first contact point as the center, and recording coordinate information of all vertices of the first blackboard eraser graphic;

[0034] S102: Acquire a second contact point, construct a second eraser graphic with the second contact point as the center, and record coordinate information of all vertices of the second eraser graphic; wherein the first contact point and the second contact point are two non-overlapping contact points on the sliding path of the electronic eraser;

[0035] S103: Determine a connection method between the vertices of the two eraser graphics according to the coordinate information of all vertices of the first eraser graphics and the coordinate information of all vertices of the second eraser graphics, connect the first eraser graphics and the second eraser graphics according to the connection method, construct a closed polygon, and use the closed polygon as an erasing path of the electronic eraser from the first contact point to the second contact point.

[0036] An electronic eraser sliding path smoothing method disclosed in an embodiment of the present invention connects electronic eraser graphics to form a closed polygon, and uses the closed polygon as an erasing path to simulate the erasing area of ​​a real eraser, thereby eliminating the jagged feeling and improving the simulation effect of the electronic eraser.

[0037] Furthermore, when the first contact point and the second contact point are two contact points that do not overlap and are adjacent to each other on the sliding path of the electronic eraser, the electronic eraser sliding path smoothing method further includes:

[0038] Each adjacent contact point on the electronic eraser sliding path is used as the first contact point and the second contact point respectively, and the erasing path of each adjacent contact point is determined, and then the electronic eraser erasing path corresponding to the electronic eraser sliding path is obtained.

[0039] Further, the electronic eraser sliding path smoothing method also includes:

[0040] The touch screen erasing path required by the user is obtained, the touch screen erasing path is split into several sub-paths, the first and last points of the several sub-paths are respectively taken as the first touch point and the second touch point, and then several slice areas are obtained, and the several slice areas are combined to form a complete erasing path.

[0041] The above two situations serve as a supplement to the electronic eraser sliding path smoothing method, making it more applicable and more practical.

[0042] For step S101 and step S102, specifically, the first touch point and the second touch point are both touch points of the user on the electronic whiteboard, and the first eraser graphic and the second eraser graphic are synchronized with the electronic eraser pattern displayed on the electronic whiteboard and can be set to any geometric shape by the user.

[0043] For step S101 and step S102, in a preferred embodiment, the first blackboard eraser figure and the second blackboard eraser figure are set to be rectangles, and the code generated by the blackboard eraser rectangle is specifically:

[0044]

[0045] Among them, eraserWidth, eraserHeight are the width and height of the eraser, which are assumed to be 80*120 here, and the unit is pixel, where the upper left corner of the rectangle is left, top, left = x-(half of the eraser width), top = y-(half of the eraser height), right = left + eraser width, bottom = top + (eraser height). In this way, the center point of the eraser rectangle is the user's touch point.

[0046] For step S103, specifically, the erasure path generation module is used to determine the connection mode between the vertices of two eraser graphics according to the coordinate information of all vertices of the first eraser graphics and the coordinate information of all vertices of the second eraser graphics, specifically including:

[0047] Connect the vertices of the two eraser figures respectively, arbitrarily select two vertex connection lines to combine the two eraser figures into a number of closed polygons, calculate the areas of the several closed polygons through the coordinate information of each vertex, compare the areas of the several polygons, and finally select the vertex connection method corresponding to the one with the largest area as the connection method between the vertices of the two eraser figures.

[0048] In a preferred embodiment, at first, in the process of each touch point pressing and moving, the eraser rectangle of the current point is obtained by the first step, and it is stored in the eraser rectangle formed by the last touch point. In the process of moving, through these two rectangles, the vertices are connected by straight lines, and there are 6 external vertices, which are finally constructed into a six-connected shape. The six-connected shape after the construction is as shown in FIG. Figure 2 shown.

[0049] In a preferred embodiment, it is also necessary to consider that the two touch points of the user may move from bottom to top or from top to bottom. Depending on the situation, the connection order of the external vertices is also changed. The specific code is as follows:

[0050]

[0051] Explanation of the above code: By comparing the current point x with the previous point mX, rect1 is the eraser rectangle on the left (the first eraser figure), and rect2 is the eraser rectangle on the right (the second eraser figure).

[0052] Then, through the two eraser points, we get 6 points to form a path:

[0053] Path path = new Path();

[0054] path.moveTo(rect1.left,rect1.bottom); / / Point 1

[0055] path.lineTo(rect1.left,rect1.top); / / Point 2

[0056] Explanation of the above code: According to the actual drawing, it is found that point 1 is always the lower left corner of the first eraser figure, and point 2 is always the upper left corner of the first eraser figure.

[0057]

[0058]

[0059] Explanation of the above code: According to observation, if the top of the first eraser figure is smaller than the top of the second eraser figure, then point 3 is the upper right corner of the first eraser figure, otherwise it is the upper left corner of the second eraser figure.

[0060] path.lineTo(rect2.right,rect2.top);

[0061] path.lineTo(rect2.right,rect2.bottom);

[0062] Explanation of the above code: According to the actual drawing, it is found that point 4 is always the upper right corner of the second eraser figure, and point 5 is always the lower right corner of the second eraser figure.

[0063]

[0064] Explanation of the above code: According to observation, if the bottom of the second eraser figure is greater than or equal to the bottom of the first eraser figure, then point 6 is the lower left corner of the second eraser figure, otherwise it is the lower right corner of the first eraser figure.

[0065] Finally, the closed path will automatically connect point 1 to form a closed six-connected shape:

[0066] path.close();

[0067] return path;

[0068] }

[0069] In fact, since the eraser figure is not fixed, the external vertex connection method of the first eraser figure and the second eraser figure can be summarized as connecting the vertices of the two eraser figures respectively, arbitrarily selecting two vertex lines to combine the two eraser figures into a number of closed polygons, calculating the areas of the several closed polygons through the coordinate information of each vertex, comparing the areas of the several polygons, and finally selecting the vertex line method corresponding to the one with the largest area as the connection method between the vertices of the two eraser figures.

[0070] In a preferred embodiment, the program ultimately needs a slice area, so the path obtained in the previous step needs to be converted into a slice area. The code is as follows:

[0071] Region region=new Region();

[0072] RectF pathR = new RectF();

[0073] path.computeBounds(pathR,false);

[0074] region.setPath(path, new Region(GraphicsUtils.toRect(pathR)));

[0075] After obtaining the area, the existing scheme can be used to erase it. The edge of the erased area obtained by using this scheme is very smooth without jagged feeling, which can better simulate the real eraser effect.

[0076] See also Figure 3 , is a schematic diagram of the structure of an electronic eraser path smoothing device provided by an embodiment of the present invention, comprising: a contact point acquisition module 201, an erasing path generation module 202;

[0077] The contact point acquisition module 201 is used to acquire the first contact point and the second contact point, and construct the first blackboard eraser figure and the second blackboard eraser figure with the first contact point and the second contact point as the center, and record the coordinate information of all vertices of the first blackboard eraser figure and the second blackboard eraser figure at the same time; wherein the second contact point does not overlap with the first contact point;

[0078] The erasing path generating module 202 is used to determine the connection mode between the vertices of two eraser graphics according to the coordinate information of all vertices of the first eraser graphics and the coordinate information of all vertices of the second eraser graphics, connect the first eraser graphics with the second eraser graphics according to the connection mode, construct a closed polygon, and use the closed polygon as the erasing path of the electronic eraser from the first contact point to the second contact point.

[0079] Compared with the prior art, an electronic eraser sliding path smoothing device disclosed in an embodiment of the present invention connects the electronic eraser graphics to form a closed polygon, and uses the closed polygon as an erasing path to simulate the erasing area of ​​a real eraser, thereby eliminating the jagged feeling and greatly improving the simulation effect of the electronic eraser.

[0080] Further, the erasing path generating module 202 is used to determine the connection mode between two eraser graphic vertices according to the coordinate information of all vertices of the first eraser graphic and the coordinate information of all vertices of the second eraser graphic, specifically including:

[0081] Connect the vertices of the two eraser figures respectively, arbitrarily select two vertex connection lines to combine the two eraser figures into a number of closed polygons, calculate the areas of the several closed polygons through the coordinate information of each vertex, compare the areas of the several polygons, and finally select the vertex connection method corresponding to the one with the largest area as the connection method between the vertices of the two eraser figures.

[0082] Furthermore, the first touch point and the second touch point are both touch points of the user on the electronic whiteboard, and the first eraser graphic and the second eraser graphic are synchronized with the electronic eraser pattern displayed on the electronic whiteboard and can be set to any geometric shape by the user.

[0083] An embodiment of the present invention further provides an electronic eraser sliding path smoothing device, comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor, such as an electronic eraser sliding path smoothing program. When the processor executes the computer program, the steps in the above-mentioned electronic eraser sliding path smoothing method embodiments are implemented, such as Figure 1 Alternatively, when the processor executes the computer program, the functions of the modules in the above-mentioned device embodiments are implemented, such as the erasure path generation module 202 .

[0084] Exemplarily, the computer program can be divided into one or more modules, and the one or more modules are stored in the memory and executed by the processor to complete the present invention. The one or more modules 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 the electronic eraser sliding path smoothing device. For example, the computer program can be divided into a contact acquisition module and an erasing path generation module, and the specific functions of each module are as follows:

[0085] The contact point acquisition module is used to acquire a first contact point and a second contact point, and construct a first blackboard eraser figure and a second blackboard eraser figure with the first contact point and the second contact point as the center, and record the coordinate information of all vertices of the first blackboard eraser figure and the second blackboard eraser figure; wherein the second contact point does not overlap with the first contact point;

[0086] The erasing path generating module is used to determine the connection mode between the vertices of two eraser graphics according to the coordinate information of all vertices of the first eraser graphics and the coordinate information of all vertices of the second eraser graphics, connect the first eraser graphics with the second eraser graphics according to the connection mode, construct a closed polygon, and use the closed polygon as the erasing path of the electronic eraser from the first contact point to the second contact point.

[0087] The electronic blackboard eraser sliding path smoothing device can be a computing device such as a desktop computer, a notebook, a palm computer, a cloud server, etc. The electronic blackboard eraser sliding path smoothing device can include, but is not limited to, a processor and a memory.

[0088] The so-called processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The processor is the control center of the electronic blackboard eraser sliding path smoothing device, and utilizes various interfaces and lines to connect the various parts of the whole electronic blackboard eraser sliding path smoothing device.

[0089] The memory can be used to store the computer programs and modules, and the processor realizes various functions of the electronic eraser sliding path smoothing device by running or executing the computer programs and 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, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), 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 Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0090] Wherein, if the module integrated in the electronic eraser sliding path smoothing 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 such an 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 a processor. Wherein, 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, etc. The computer-readable medium can include: any entity or device, 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, etc. that can carry the computer program code. 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, computer-readable media does not include electrical carrier signals and telecommunication signals.

[0091] It should be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.

[0092] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A method for smoothing the sliding path of an electronic eraser, characterized in that: The following steps are involved: Acquire a first contact point, construct a first eraser figure with the first contact point as the center, and record coordinate information of all vertices of the first eraser figure; Acquire a second contact point, construct a second blackboard eraser figure with the second contact point as the center, and record the coordinate information of all vertices of the second blackboard eraser figure; The first contact point and the second contact point are two non-overlapping contact points on the sliding path of the electronic eraser; Determining a connection mode between the vertices of the two eraser graphics according to the coordinate information of all vertices of the first eraser graphics and the coordinate information of all vertices of the second eraser graphics, connecting the first eraser graphics and the second eraser graphics according to the connection mode, constructing a closed polygon, and using the closed polygon as an erasing path of the electronic eraser from the first contact point to the second contact point; Determining the connection mode between the vertices of two eraser graphics according to the coordinate information of all vertices of the first eraser graphics and the coordinate information of all vertices of the second eraser graphics specifically includes: Respectively connect the vertices of the two blackboard eraser figures, arbitrarily select two vertex connection lines to combine the two blackboard eraser figures into a plurality of closed polygons, calculate the areas of the plurality of closed polygons by using the coordinate information of each vertex, and select the vertex connection method corresponding to the closed polygon with the largest area as the connection method between the vertices of the two blackboard eraser figures; Compare the areas of the plurality of closed polygons, and finally select the vertex connection method corresponding to the one with the largest area as the connection method between the vertices of the two eraser graphics; The first touch point and the second touch point are both touch points of the user on the electronic whiteboard. The first eraser graphic and the second eraser graphic are synchronized with the electronic eraser pattern displayed on the electronic whiteboard and can be set to any geometric shape by the user.

2. A method for smoothing the sliding path of an electronic eraser as claimed in claim 1, characterized in that: When the first contact point and the second contact point are two contact points that do not overlap and are adjacent to each other on the sliding path of the electronic eraser, the electronic eraser sliding path smoothing method further includes: Each adjacent contact point on the electronic eraser sliding path is used as the first contact point and the second contact point respectively, and the erasing path of each adjacent contact point is determined, and then the electronic eraser erasing path corresponding to the electronic eraser sliding path is obtained.

3. The method for smoothing the sliding path of an electronic eraser as claimed in claim 1, characterized in that: The electronic blackboard eraser sliding path smoothing method also includes: The touch screen erasing path required by the user is obtained, the touch screen erasing path is split into several sub-paths, the first and last points of the several sub-paths are respectively taken as the first touch point and the second touch point, and then several slice areas are obtained, and the several slice areas are combined to form a complete erasing path.

4. An electronic eraser sliding path smoothing device, characterized in that: include: Contact acquisition module, erasure path generation module; The contact point acquisition module is used to acquire the first contact point and the second contact point, and construct the first blackboard eraser figure and the second blackboard eraser figure with the first contact point and the second contact point as the center, and record the coordinate information of all vertices of the first blackboard eraser figure and the second blackboard eraser figure at the same time; wherein the second contact point does not overlap with the first contact point; The erasing path generating module is used for determining the connection mode between the vertices of the two eraser graphics according to the coordinate information of all vertices of the first eraser graphics and the coordinate information of all vertices of the second eraser graphics, connecting the first eraser graphics and the second eraser graphics according to the connection mode, constructing a closed polygon, and using the closed polygon as the erasing path of the electronic eraser from the first contact point to the second contact point; Determining the connection mode between the vertices of two eraser graphics according to the coordinate information of all vertices of the first eraser graphics and the coordinate information of all vertices of the second eraser graphics specifically includes: Respectively connect the vertices of the two blackboard eraser figures, arbitrarily select two vertex connection lines to combine the two blackboard eraser figures into a plurality of closed polygons, calculate the areas of the plurality of closed polygons by using the coordinate information of each vertex, and select the vertex connection method corresponding to the closed polygon with the largest area as the connection method between the vertices of the two blackboard eraser figures; Compare the areas of the plurality of closed polygons, and finally select the vertex connection method corresponding to the one with the largest area as the connection method between the vertices of the two eraser graphics; The first touch point and the second touch point are both touch points of the user on the electronic whiteboard. The first eraser graphic and the second eraser graphic are synchronized with the electronic eraser pattern displayed on the electronic whiteboard and can be set to any geometric shape by the user.

5. An electronic eraser sliding path smoothing device, comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, characterized in that: When the processor executes the computer program, the electronic blackboard eraser sliding path smoothing method as claimed in any one of claims 1 to 3 is implemented.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the electronic eraser sliding path smoothing method according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Method for erasing trace line and generating new trace line for closed geometric figure

    CN103077025A

  • Generation method and device for electronic whiteboard choice box, and terminal equipment

    CN108491141A