A handwriting separation method, device, equipment and storage medium for electronic whiteboard

By obtaining the longest edge value and shortest edge value in the touch event data on the electronic whiteboard, we can determine whether it is a finger touch, which solves the problem of difficulty in hand-splitting in the prior art, and achieves high-accurate finger touch recognition and hand-splitting separation , reducing equipment costs.

CN115220638BActive Publication Date: 2025-02-21LANGYUAN TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210756646.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-29
Publication Date
2025-02-21
Estimated Expiration
2042-06-29

AI Technical Summary

Technical Problem

Existing electronic whiteboards cannot effectively distinguish finger touch and touch pen touch, which makes it difficult to separate the pen and the equipment cost of capacitive touch screens.

Method used

By touch detection on the screen, the longest edge value and the shortest edge value in the touch event data are obtained, and whether it is a finger touch is determined based on these values. If it is a finger touch, the touch event will not be responded to; if it is not a finger touch, the touch event will be written and drawn.

Benefits of technology

It improves the accuracy of finger touch recognition, realizes manual separation, reduces equipment costs, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115220638B_ABST
    Figure CN115220638B_ABST
Patent Text Reader

Abstract

The present invention discloses a hand-pen separation method, device, equipment and storage medium for an electronic whiteboard. When receiving a hand-pen separation instruction, the method performs touch detection on the screen, and when detecting the presence of a first touch event, obtains first touch event data, wherein the first touch event data includes the longest side value of the touch area and the shortest side value of the touch area; according to the longest side value and the shortest side value, it is determined whether the first touch event is triggered by a finger, and if not, the first touch event is responded to and writing and drawing is performed, and if so, the first touch event is not responded to. Compared with the prior art, the technical solution of the present invention can determine whether the current touch is a finger touch based on the longest side value and the shortest side value of the touch area, and perform subsequent processing based on the judgment result, which can improve the accuracy of finger touch recognition and realize hand-pen separation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of touch screen technology processing, and in particular to a handwriting separation method, device, equipment and storage medium for an electronic whiteboard. Background Art

[0002] Infrared touch screens are commonly used in current electronic whiteboards. However, infrared touch screens can obtain the touch track of the touching object on the infrared touch screen, but they cannot directly distinguish whether the current touch track is generated by a touch pen or a finger touch. In addition, in order to achieve hand-pen separation, the infrared touch screen is replaced with a capacitive touch screen for detection, but compared with the infrared touch screen, the equipment cost of the capacitive touch screen is higher. Summary of the invention

[0003] The technical problem to be solved by the present invention is to provide a hand-pen separation method, device, equipment and storage medium for an electronic whiteboard, so as to improve the accuracy of finger touch recognition and realize hand-pen separation.

[0004] In order to solve the above technical problems, the present invention provides a handwriting separation method for an electronic whiteboard, comprising:

[0005] When receiving a hand-pen separation instruction, performing touch detection on the screen, and when detecting a first touch event, obtaining first touch event data, wherein the first touch event data includes the longest side value and the shortest side value of the touch area;

[0006] According to the longest side value and the shortest side value, it is determined whether the first touch event is triggered by a finger. If not, the first touch event is responded to to write and draw. If so, the first touch event is not responded to.

[0007] In a possible implementation, judging whether the first touch event is triggered by a finger according to the longest side value and the shortest side value specifically includes:

[0008] Get the preset longest edge threshold and the preset shortest edge threshold;

[0009] Determine whether the longest side value is greater than the preset longest side threshold, and determine whether the shortest side value is greater than the preset shortest side threshold;

[0010] When the longest side value is greater than the preset longest side threshold, and the shortest side value is greater than the preset shortest side threshold, determining that the first touch event is triggered by a finger;

[0011] When either the longest side value is not greater than the preset longest side threshold, or the shortest side value is not greater than the preset shortest side threshold, it is determined that the first touch event is triggered by a touch pen.

[0012] In a possible implementation, obtaining a preset longest edge threshold and a preset shortest edge threshold specifically includes:

[0013] Acquire a historical touch event data set, wherein the historical touch event data set includes historical longest edge values ​​of multiple historical touch areas and historical shortest edge values ​​of multiple historical touch areas;

[0014] Calculate a first average value of historical longest side values ​​of multiple historical touch areas, and use the first average value as a preset longest side threshold;

[0015] A second average value of the historical shortest side values ​​of the plurality of historical touch areas is calculated, and the second average value is used as a preset shortest side threshold.

[0016] In a possible implementation, when the first touch event is detected, obtaining first touch event data specifically includes:

[0017] When a first touch event is detected, all touch points on the screen are traversed to obtain all blocked touch points and obtain a touch area;

[0018] Extracting edge coordinate points of the touch area according to the touch area, combining all edge coordinate points in pairs, and calculating the distance of each group of coordinate points to obtain multiple coordinate distances;

[0019] The maximum value among the plurality of coordinate distances is used as the longest side value of the touch area, and the minimum value among the plurality of coordinate distances is used as the shortest side value of the touch area.

[0020] The embodiment of the present invention further provides a hand-pen separation device for an electronic whiteboard, comprising: a first touch event data acquisition module and a first touch event judgment module;

[0021] The first touch event data acquisition module is configured to perform touch detection on the screen when receiving a hand-pen separation instruction, and acquire first touch event data when a first touch event is detected, wherein the first touch event data includes the longest side value and the shortest side value of the touch area;

[0022] The first touch event judgment module is used to judge whether the first touch event is triggered by a finger according to the longest side value and the shortest side value. If not, respond to the first touch event and write and draw; if so, do not respond to the first touch event.

[0023] In a possible implementation, the first touch event determination module is used to determine whether the first touch event is triggered by a finger according to the longest side value and the shortest side value, specifically including:

[0024] Get the preset longest edge threshold and the preset shortest edge threshold;

[0025] Determine whether the longest side value is greater than the preset longest side threshold, and determine whether the shortest side value is greater than the preset shortest side threshold;

[0026] When the longest side value is greater than the preset longest side threshold, and the shortest side value is greater than the preset shortest side threshold, determining that the first touch event is triggered by a finger;

[0027] When either the longest side value is not greater than the preset longest side threshold, or the shortest side value is not greater than the preset shortest side threshold, it is determined that the first touch event is triggered by a touch pen.

[0028] In a possible implementation, the first touch event determination module is used to obtain a preset longest side threshold and a preset shortest side threshold, specifically including:

[0029] Acquire a historical touch event data set, wherein the historical touch event data set includes historical longest edge values ​​of multiple historical touch areas and historical shortest edge values ​​of multiple historical touch areas;

[0030] Calculate a first average value of historical longest side values ​​of multiple historical touch areas, and use the first average value as a preset longest side threshold;

[0031] A second average value of the historical shortest side values ​​of the plurality of historical touch areas is calculated, and the second average value is used as a preset shortest side threshold.

[0032] In a possible implementation, the first touch event data acquisition module is used to acquire the first touch event data when the first touch event is detected, specifically including:

[0033] When a first touch event is detected, all touch points on the screen are traversed to obtain all blocked touch points and obtain a touch area;

[0034] Extracting edge coordinate points of the touch area according to the touch area, combining all edge coordinate points in pairs, and calculating the distance of each group of coordinate points to obtain multiple coordinate distances;

[0035] The maximum value among the plurality of coordinate distances is used as the longest side value of the touch area, and the minimum value among the plurality of coordinate distances is used as the shortest side value of the touch area.

[0036] An embodiment of the present invention also provides a terminal device, including 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, it implements the handwriting separation method of the electronic whiteboard as described in any one of the above.

[0037] An embodiment of the present invention further 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 handwriting separation method for the electronic whiteboard as described in any one of the above.

[0038] Compared with the prior art, the present invention provides a handwriting separation method, device, equipment and storage medium for an electronic whiteboard, which has the following beneficial effects:

[0039] When a hand-pen separation instruction is received, the screen is touched and detected. When a first touch event is detected, the first touch event data is obtained, wherein the first touch event data includes the longest side value of the touch area and the shortest side value of the touch area; according to the longest side value and the shortest side value, it is determined whether the first touch event is triggered by a finger. If not, the first touch event is responded to and writing is performed. If so, the first touch event is not responded to. Compared with the prior art, the technical solution of the present invention can determine whether the current touch is a finger touch based on the longest side value and the shortest side value of the touch area, and perform subsequent processing based on the judgment result, which can improve the accuracy of finger touch recognition, realize hand-pen separation, and improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 It is a flow chart of an embodiment of a handwriting separation method for an electronic whiteboard provided by the present invention;

[0041] Figure 2 It is a structural schematic diagram of an embodiment of a hand-pen separation device for an electronic whiteboard provided by the present invention. DETAILED DESCRIPTION

[0042] The following will be combined with the accompanying drawings in 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.

[0043] In the description of the present invention, "several" means more than one, "many" means more than two, "greater than", "less than", "exceed", etc. are understood to exclude the number itself, and "above", "below", "within", etc. are understood to include the number itself. If there is a description of "first" or "second", it is only used for the purpose of distinguishing the technical features, and cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

[0044] Example 1

[0045] See also Figure 1 , Figure 1 FIG. 1 is a flow chart of an embodiment of a handwriting separation method for an electronic whiteboard provided by the present invention. Figure 1 As shown, the method includes steps 101 to 102, which are specifically as follows:

[0046] Step 101: When a hand-pen separation instruction is received, touch detection is performed on the screen. When a first touch event is detected, first touch event data is obtained, wherein the first touch event data includes the longest side value and the shortest side value of the touch area.

[0047] In one embodiment, since the screen needs to be touched when writing on it, when a pen separation instruction is received, touch detection of the screen is started, wherein the screen is set as an infrared touch screen, which can reduce equipment costs compared to existing capacitive touch screens.

[0048] In one embodiment, when the screen is touched, the touch area is detected and located based on the infrared matrix in the X and Y directions on the screen. Specifically, the infrared touch screen is equipped with a circuit board frame in front of the display. The circuit board arranges infrared transmitting tubes and infrared receiving tubes on the four sides of the screen, forming a horizontal and vertical cross infrared matrix in one-to-one correspondence. When the user touches the screen, the finger or touch pen will block the two horizontal and vertical infrared rays passing through the position, so the position of the touch point on the screen can be determined. Therefore, in this embodiment, all the touch points on the screen are traversed to obtain all the blocked touch points and obtain the touch area.

[0049] Preferably, this embodiment can also obtain the touch area of ​​the first touch event ACTION_DOWN based on the getSize() method of the Android system.

[0050] In one embodiment, edge detection is performed on the touch area based on the touch area to obtain an edge image of the touch area, and after obtaining the edge image of the touch area, it is determined whether the edge image is a single closed edge image. If so, it is considered that the first touch event generates a single first touch area. If the edge image is not a single closed edge image, the first touch event is generated into multiple touch areas.

[0051] In one embodiment, edge coordinate points are extracted from a single closed edge image to obtain multiple edge coordinate points, all edge coordinate points are combined in pairs to obtain multiple coordinate groups, the distance between the coordinate points of each coordinate group is calculated to obtain multiple coordinate distances; the maximum value of the multiple coordinate distances is used as the longest side value of the touch area, and the minimum value of the multiple coordinate distances is used as the shortest side value of the touch area. Preferably, in this embodiment, corresponding edge coordinate points can be extracted from multiple closed edge images at the same time.

[0052] Preferably, the generated touch area is an elliptical area, the acquired shortest side value of the touch area is the value of the shortest side of the elliptical area, and the acquired longest side value of the touch area is the value of the longest side of the elliptical area.

[0053] Preferably, this embodiment can also directly obtain the longest side value and the shortest side value of the touch area based on the interface method provided by the MotionEvent touch event of the Android system, wherein getTouchMajor() obtains the longest side value and getTouchMinor() obtains the shortest side value.

[0054] Step 102: judging whether the first touch event is triggered by a finger according to the longest side value and the shortest side value; if not, responding to the first touch event and performing writing and drawing; if so, not responding to the first touch event.

[0055] In one embodiment, a historical touch event data set is obtained, wherein the historical touch event data set includes historical longest edge values ​​of multiple historical touch areas and historical shortest edge values ​​of multiple historical touch areas; a first average value of the historical longest edge values ​​of the multiple historical touch areas is calculated, and the first average value is used as a preset longest edge threshold; a second average value of the historical shortest edge values ​​of the multiple historical touch areas is calculated, and the second average value is used as a preset shortest edge threshold.

[0056] Preferably, the preset longest side threshold and the preset shortest side threshold in this embodiment can also be customized based on experience.

[0057] In one embodiment, after obtaining the preset longest side threshold and the preset shortest side threshold, it is also determined whether the longest side value is greater than the preset longest side threshold, and at the same time, it is determined whether the shortest side value is greater than the preset shortest side threshold; when the longest side value is greater than the preset longest side threshold, and the shortest side value is greater than the preset shortest side threshold, the first touch event is determined to be triggered by a finger; but when either the longest side value is not greater than the preset longest side threshold, or the shortest side value is not greater than the preset shortest side threshold, the first touch event is determined to be triggered by a touch pen.

[0058] In one embodiment, when it is detected that the first touch event is triggered by a finger, it is necessary to stop responding to the first touch event and not perform subsequent writing and drawing, that is, it is necessary to limit finger writing; when it is detected that the first touch event is triggered by a touch pen, the response to the first touch event is maintained, and a drawing trajectory is generated by acquiring the touch contour of the first touch event, and subsequent writing and drawing are performed to achieve the effect of hand and pen separation.

[0059] Preferably, when the first touch event generates multiple touch areas, each touch area is judged at the same time, writing restrictions are performed on the touch area in the multiple touch areas where the first touch event is triggered by a finger, and writing and drawing are performed on the touch area in the multiple touch areas where the first touch event is triggered by a touch pen. This avoids the situation where the touch areas generated by the finger and the touch pen are treated as the same touch area when the finger and the touch pen generate touch areas on the screen at the same time, resulting in misdetection of the touch areas. Therefore, this embodiment can improve the accuracy of hand-pen separation.

[0060] Example 2

[0061] See also Figure 2 , Figure 2 : is a schematic diagram of a structure of an embodiment of a hand-pen separation device for an electronic whiteboard provided by the present invention. Figure 2 As shown, the device includes a first touch event data acquisition module 201 and a first touch event judgment module 202, which are specifically as follows:

[0062] The first touch event data acquisition module 201 is used to perform touch detection on the screen when a hand separation instruction is received, and to acquire first touch event data when a first touch event is detected, wherein the first touch event data includes the longest side value and the shortest side value of the touch area.

[0063] The first touch event judgment module 202 is used to judge whether the first touch event is triggered by a finger according to the longest side value and the shortest side value. If not, respond to the first touch event and write and draw. If so, do not respond to the first touch event.

[0064] In one embodiment, the first touch event judgment module 202 is used to judge whether the first touch event is triggered by a finger based on the longest side value and the shortest side value, specifically including: obtaining a preset longest side threshold and a preset shortest side threshold; judging whether the longest side value is greater than the preset longest side threshold, and judging whether the shortest side value is greater than the preset shortest side threshold; when the longest side value is greater than the preset longest side threshold, and the shortest side value is greater than the preset shortest side threshold, judging that the first touch event is triggered by a finger; when either the longest side value is not greater than the preset longest side threshold, or the shortest side value is not greater than the preset shortest side threshold, judging that the first touch event is triggered by a touch pen.

[0065] In one embodiment, the first touch event judgment module 202 is used to obtain a preset longest side threshold and a preset shortest side threshold, specifically including: obtaining a historical touch event data set, wherein the historical touch event data set includes historical longest side values ​​of multiple historical touch areas and historical shortest side values ​​of multiple historical touch areas; calculating a first average value of the historical longest side values ​​of multiple historical touch areas, and using the first average value as the preset longest side threshold; calculating a second average value of the historical shortest side values ​​of multiple historical touch areas, and using the second average value as the preset shortest side threshold.

[0066] In one embodiment, the first touch event data acquisition module 201 is used to acquire first touch event data when a first touch event is detected, specifically including: when a first touch event is detected, all touch points on the screen are traversed to acquire all obscured touch points to obtain a touch area; according to the touch area, edge coordinate points of the touch area are extracted, all edge coordinate points are combined in pairs, and the distance of each group of coordinate points is calculated to obtain multiple coordinate distances; the maximum value of the multiple coordinate distances is used as the longest side value of the touch area, and the minimum value of the multiple coordinate distances is used as the shortest side value of the touch area.

[0067] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0068] It should be noted that the above-mentioned embodiment of the handwriting separation device of the electronic whiteboard is only illustrative, wherein the modules described as separation components may or may not be physically separated, and the components displayed as modules 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.

[0069] Based on the above-mentioned embodiment of the handwriting separation method for an electronic whiteboard, another embodiment of the present invention provides a handwriting separation terminal device for an electronic whiteboard. The handwriting separation terminal device for an electronic whiteboard includes 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, the handwriting separation method for an electronic whiteboard of any embodiment of the present invention is implemented.

[0070] Exemplarily, in this embodiment, the computer program may be divided into one or more modules, which are stored in the memory and executed by the processor to complete the present invention. The one or more modules may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program in the hand-pen separation terminal device of the electronic whiteboard.

[0071] The handwriting separation terminal device of the electronic whiteboard can be a computing device such as a desktop computer, a notebook, a palm computer, a cloud server, etc. The handwriting separation terminal device of the electronic whiteboard can include, but is not limited to, a processor and a memory.

[0072] The processor may 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 may be a microprocessor or any conventional processor, etc. The processor is the control center of the hand-pen separation terminal device of the electronic whiteboard, and uses various interfaces and lines to connect the various parts of the hand-pen separation terminal device of the entire electronic whiteboard.

[0073] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the hand-pen separation terminal device of the electronic whiteboard by running or executing the computer program and / or module 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 phone, 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.

[0074] Based on the above-mentioned embodiment of the handwriting separation method for an electronic whiteboard, another embodiment of the present invention provides a storage medium, wherein the storage medium includes a stored computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute the handwriting separation method for an electronic whiteboard of any embodiment of the present invention.

[0075] In this embodiment, the storage medium is a computer-readable storage medium, and the computer program includes computer program code, which may be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may 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 do not include electric carrier signals and telecommunication signals.

[0076] In summary, the present invention discloses a hand-pen separation method, device, equipment and storage medium for an electronic whiteboard. When receiving a hand-pen separation instruction, the method performs touch detection on the screen, and when detecting the presence of a first touch event, obtains first touch event data, wherein the first touch event data includes the longest side value of the touch area and the shortest side value of the touch area; according to the longest side value and the shortest side value, it is determined whether the first touch event is triggered by a finger, and if not, the first touch event is responded to and writing and drawing is performed, and if so, the first touch event is not responded to. Compared with the prior art, the technical solution of the present invention can determine whether the current touch is a finger touch based on the longest side value and the shortest side value of the touch area, and perform subsequent processing based on the judgment result, which can improve the accuracy of finger touch recognition and realize hand-pen separation.

[0077] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and substitutions can be made without departing from the technical principles of the present invention. These improvements and substitutions should also be regarded as the scope of protection of the present invention.

Claims

1. A handwriting separation method for an electronic whiteboard, characterized in that: include: When receiving a hand-pen separation instruction, performing touch detection on the screen, and when detecting a first touch event, obtaining first touch event data, wherein the first touch event data includes the longest side value and the shortest side value of the touch area; According to the longest side value and the shortest side value, determining whether the first touch event is triggered by a finger, if not, determining that the first touch event is triggered by a touch pen, responding to the first touch event, and performing writing and drawing; if yes, determining that the first touch event is triggered by a finger, and not responding to the first touch event; When the first touch event generates multiple touch areas, each of the touch areas is judged at the same time, writing restrictions are performed on the touch areas in each of the touch areas where the first touch event is triggered by a finger, and writing and drawing are performed on the touch areas in each of the touch areas where the first touch event is triggered by a touch pen; Judging whether the first touch event is triggered by a finger according to the longest side value and the shortest side value specifically includes: Get the preset longest edge threshold and the preset shortest edge threshold; Determine whether the longest side value is greater than the preset longest side threshold, and determine whether the shortest side value is greater than the preset shortest side threshold; When the longest side value is greater than the preset longest side threshold, and the shortest side value is greater than the preset shortest side threshold, it is determined that the first touch event is triggered by a finger; When either the longest side value is not greater than the preset longest side threshold, or the shortest side value is not greater than the preset shortest side threshold, it is determined that the first touch event is triggered by a touch pen.

2. The handwriting separation method of an electronic whiteboard as claimed in claim 1, characterized in that: Get the preset longest edge threshold and the preset shortest edge threshold, including: Acquire a historical touch event data set, wherein the historical touch event data set includes historical longest edge values ​​of multiple historical touch areas and historical shortest edge values ​​of multiple historical touch areas; Calculate a first average value of historical longest side values ​​of multiple historical touch areas, and use the first average value as a preset longest side threshold; A second average value of the historical shortest side values ​​of the plurality of historical touch areas is calculated, and the second average value is used as a preset shortest side threshold.

3. The handwriting separation method of an electronic whiteboard as claimed in claim 1, characterized in that: When a first touch event is detected, first touch event data is acquired, specifically including: When a first touch event is detected, all touch points on the screen are traversed to obtain all blocked touch points and obtain a touch area; Extracting edge coordinate points of the touch area according to the touch area, combining all edge coordinate points in pairs, and calculating the distance of each group of coordinate points to obtain multiple coordinate distances; The maximum value among the plurality of coordinate distances is used as the longest side value of the touch area, and the minimum value among the plurality of coordinate distances is used as the shortest side value of the touch area.

4. A hand-pen separation device for an electronic whiteboard, characterized in that: include: A first touch event data acquisition module and a first touch event determination module; The first touch event data acquisition module is configured to perform touch detection on the screen when receiving a hand-pen separation instruction, and acquire first touch event data when a first touch event is detected, wherein the first touch event data includes the longest side value and the shortest side value of the touch area; The first touch event judgment module is used to judge whether the first touch event is triggered by a finger according to the longest side value and the shortest side value; if not, determine that the first touch event is triggered by a touch pen, respond to the first touch event and perform writing and drawing; if yes, determine that the first touch event is triggered by a finger and do not respond to the first touch event; When the first touch event generates multiple touch areas, each of the touch areas is judged at the same time, writing restrictions are performed on the touch areas in each of the touch areas where the first touch event is triggered by a finger, and writing and drawing are performed on the touch areas in each of the touch areas where the first touch event is triggered by a touch pen; The first touch event judgment module is used to judge whether the first touch event is triggered by a finger according to the longest side value and the shortest side value, and specifically includes: Get the preset longest edge threshold and the preset shortest edge threshold; Determine whether the longest side value is greater than the preset longest side threshold, and determine whether the shortest side value is greater than the preset shortest side threshold; When the longest side value is greater than the preset longest side threshold, and the shortest side value is greater than the preset shortest side threshold, it is determined that the first touch event is triggered by a finger; When either the longest side value is not greater than the preset longest side threshold, or the shortest side value is not greater than the preset shortest side threshold, it is determined that the first touch event is triggered by a touch pen.

5. The handwriting separation device for an electronic whiteboard as claimed in claim 4, characterized in that: The first touch event determination module is used to obtain a preset longest side threshold and a preset shortest side threshold, specifically including: Acquire a historical touch event data set, wherein the historical touch event data set includes historical longest edge values ​​of multiple historical touch areas and historical shortest edge values ​​of multiple historical touch areas; Calculate a first average value of historical longest side values ​​of multiple historical touch areas, and use the first average value as a preset longest side threshold; A second average value of the historical shortest side values ​​of the plurality of historical touch areas is calculated, and the second average value is used as a preset shortest side threshold.

6. The handwriting separation device for an electronic whiteboard as claimed in claim 4, characterized in that: The first touch event data acquisition module is used to acquire the first touch event data when the first touch event is detected, and specifically includes: When a first touch event is detected, all touch points on the screen are traversed to obtain all blocked touch points and obtain a touch area; Extracting edge coordinate points of the touch area according to the touch area, combining all edge coordinate points in pairs, and calculating the distance of each group of coordinate points to obtain multiple coordinate distances; The maximum value among the plurality of coordinate distances is used as the longest side value of the touch area, and the minimum value among the plurality of coordinate distances is used as the shortest side value of the touch area.

7. A terminal device, characterized in that: The invention comprises a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements the handwriting separation method of the electronic whiteboard as claimed in any one of claims 1 to 3 when executing the computer program.

8. 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 handwriting separation method for an electronic whiteboard as claimed in any one of claims 1 to 3.

Citation Information

Patent Citations

  • Method and device for preventing false touch for touch screen and mobile terminal

    CN106775084A

  • Mobile terminal and anti-mistaken-touch control method and device for touch screen of mobile terminal

    CN107908307A

  • Method and device for quickly entering electronic whiteboard and storage medium

    CN112835497A

  • Touch object recognition method based on infrared touch screen and terminal equipment

    CN113934312A