CN115220638A - Method, device, equipment and storage medium for separating hand and pen of electronic whiteboard - Google Patents

Method, device, equipment and storage medium for separating hand and pen of electronic whiteboard Download PDF

Info

Publication number
CN115220638A
CN115220638A CN202210756646.7A CN202210756646A CN115220638A CN 115220638 A CN115220638 A CN 115220638A CN 202210756646 A CN202210756646 A CN 202210756646A CN 115220638 A CN115220638 A CN 115220638A
Authority
CN
China
Prior art keywords
touch
value
touch event
edge
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210756646.7A
Other languages
Chinese (zh)
Inventor
罗益峰
陈龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Changsha Langyuan Electronic Technology Co Ltd
Original Assignee
Changsha Langyuan Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Changsha Langyuan Electronic Technology Co Ltd filed Critical Changsha Langyuan Electronic Technology Co Ltd
Priority to CN202210756646.7A priority Critical patent/CN115220638A/en
Publication of CN115220638A publication Critical patent/CN115220638A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Position Input By Displaying (AREA)

Abstract

The invention discloses a method, a device, equipment and a storage medium for separating a stylus of an electronic whiteboard, wherein the method comprises the steps of performing touch detection on a screen when a stylus separating instruction is received, and acquiring first touch event data when a first touch event is detected to exist, wherein the first touch event data comprises the longest edge value of a touch area and the shortest edge value of the touch area; and judging whether the first touch event is triggered by a finger or not according to the longest edge value and the shortest edge value, if not, responding to the first touch event to carry out writing and drawing, and if so, not responding to the first touch event. Compared with the prior art, the technical scheme of the invention can judge whether the current finger touch is performed or not based on the longest edge value and the shortest edge value of the touch area, and perform subsequent processing based on the judgment result, so that the accuracy of finger touch identification can be improved, and the separation of the pen and the hand can be realized.

Description

Method, device, equipment and storage medium for separating hand and pen of electronic whiteboard
Technical Field
The invention relates to the technical field of touch screen technical processing, in particular to a method, a device, equipment and a storage medium for separating a hand pen and a stylus of an electronic whiteboard.
Background
In the current electronic whiteboard, an infrared touch screen is generally adopted, but for the infrared touch screen, a touch track of a touch object on the infrared touch screen can be acquired, but the current touch track cannot be directly distinguished as the current touch track is generated by a touch pen or a finger. In addition, in the prior art, in order to realize the separation of the stylus, the infrared touch screen is replaced by the capacitive touch screen for detection, but the equipment cost of the capacitive touch screen is higher than that of the infrared touch screen.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: the method, the device, the equipment and the storage medium for separating the hand pens of the electronic whiteboard are provided, so that the accuracy of finger touch recognition is improved, and the hand pen separation is realized.
In order to solve the above technical problem, the present invention provides a method for separating a stylus of an electronic whiteboard, comprising:
when a stylus separating instruction is received, performing touch detection on a screen, and when a first touch event is detected to exist, acquiring first touch event data, wherein the first touch event data comprises a longest edge value of a touch area and a shortest edge value of the touch area;
and judging whether the first touch event is triggered by a finger or not according to the longest edge value and the shortest edge value, if not, responding to the first touch event to carry out writing and drawing, and if so, not responding to the first touch event.
In a possible implementation manner, determining whether the first touch event is triggered by a finger according to the longest edge value and the shortest edge value specifically includes:
acquiring a preset longest edge threshold and a preset shortest edge threshold;
judging whether the longest edge value is larger than the preset longest edge threshold value or not, and simultaneously judging whether the shortest edge value is larger than the preset shortest edge threshold value or not;
when the longest edge value is larger than the preset longest edge threshold value and the shortest edge value is larger than the preset shortest edge threshold value, judging that the first touch event is triggered by a finger;
and when the longest edge value is not greater than the preset longest edge threshold value and the shortest edge value is not greater than the preset shortest edge threshold value, judging that the first touch event is triggered by the touch pen.
In a possible implementation manner, obtaining the preset longest edge threshold and the preset shortest edge threshold specifically includes:
acquiring a historical touch event data set, wherein the historical touch event data set comprises historical longest edge values of a plurality of historical touch areas and historical shortest edge values of the plurality of historical touch areas;
calculating a first average value of historical longest edge values of a plurality of historical touch areas, and taking the first average value as a preset longest edge threshold value;
and calculating a second average value of historical shortest edge values of the plurality of historical touch areas, and taking the second average value as a preset shortest edge threshold value.
In a possible implementation manner, when it is detected that the first touch event exists, acquiring first touch event data specifically includes:
when a first touch event is detected to exist, traversing all touch points on a screen to obtain all shielded touch points to obtain a touch area;
extracting edge coordinate points of the touch area according to the touch area, combining all the edge coordinate points pairwise, and calculating the distance of each group of coordinate points to obtain a plurality of coordinate distances;
and taking the maximum value in the coordinate distances as the longest edge value of the touch area, and taking the minimum value in the coordinate distances as the shortest edge value of the touch area.
The embodiment of the invention also provides a device for separating the hand pen from the electronic whiteboard, which comprises: the device comprises a first touch event data acquisition module and a first touch event judgment module;
the first touch event data acquisition module is used for performing touch detection on a screen when a stylus separation instruction is received, and acquiring first touch event data when a first touch event is detected to exist, wherein the first touch event data comprises the longest edge value of a touch area and the shortest edge value of the touch area;
and the first touch event judging module is used for judging whether the first touch event is triggered by a finger according to the longest edge value and the shortest edge value, if not, responding to the first touch event to carry out writing and drawing, and if so, not responding to the first touch event.
In a possible implementation manner, the first touch event determining module is configured to determine whether the first touch event is triggered by a finger according to the longest edge value and the shortest edge value, and specifically includes:
acquiring a preset longest edge threshold and a preset shortest edge threshold;
judging whether the longest edge value is larger than the preset longest edge threshold value or not, and judging whether the shortest edge value is larger than the preset shortest edge threshold value or not;
when the longest edge value is larger than the preset longest edge threshold value and the shortest edge value is larger than the preset shortest edge threshold value, judging that the first touch event is finger triggering;
and when the longest edge value is not greater than the preset longest edge threshold value and the shortest edge value is not greater than the preset shortest edge threshold value, judging that the first touch event is triggered by the touch pen.
In a possible implementation manner, the first touch event determining module is configured to obtain a preset longest edge threshold and a preset shortest edge threshold, and specifically includes:
obtaining a historical touch event data set, wherein the historical touch event data set comprises historical longest edge values of a plurality of historical touch areas and historical shortest edge values of the plurality of historical touch areas;
calculating a first average value of historical longest edge values of a plurality of historical touch areas, and taking the first average value as a preset longest edge threshold value;
and calculating a second average value of historical shortest edge values of the plurality of historical touch areas, and taking the second average value as a preset shortest edge threshold value.
In a possible implementation manner, the first touch event data acquiring module is configured to acquire first touch event data when it is detected that a first touch event exists, and specifically includes:
when a first touch event is detected, traversing all touch points on a screen to obtain all shielded touch points and obtain a touch area;
extracting edge coordinate points of the touch area according to the touch area, combining all the edge coordinate points pairwise, and calculating the distance of each group of coordinate points to obtain a plurality of coordinate distances;
and taking the maximum value in the coordinate distances as the longest edge value of the touch area, and taking the minimum value in the coordinate distances as the shortest edge value of the touch area.
An embodiment of the present invention further provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, where the processor, when executing the computer program, implements the method for separating a stylus from an electronic whiteboard according to any one of the above mentioned items.
The embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, and when the computer program runs, the apparatus where the computer-readable storage medium is located is controlled to execute the method for separating a stylus from a whiteboard according to any of the above mentioned items.
Compared with the prior art, the method, the device, the equipment and the storage medium for separating the hand and the pen of the electronic whiteboard have the following beneficial effects that:
when a stylus separating instruction is received, performing touch detection on a screen, and when a first touch event is detected to exist, acquiring first touch event data, wherein the first touch event data comprises a longest edge value of a touch area and a shortest edge value of the touch area; and judging whether the first touch event is triggered by a finger or not according to the longest edge value and the shortest edge value, if not, responding to the first touch event to carry out writing and drawing, and if so, not responding to the first touch event. Compared with the prior art, the technical scheme of the invention can judge whether the current finger touch is the finger touch or not based on the longest edge value and the shortest edge value of the touch area, and carry out subsequent processing based on the judgment result, thereby improving the accuracy of finger touch identification, realizing stylus separation and simultaneously improving the use experience of a user.
Drawings
Fig. 1 is a schematic flowchart of an embodiment of a method for separating a stylus from an electronic whiteboard according to the present invention;
fig. 2 is a schematic structural diagram of an embodiment of a hand-pen separating device of an electronic whiteboard provided in the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, the meaning of a plurality is one or more, the meaning of a plurality is two or more, and the above, below, exceeding, etc. are understood as excluding the present numbers, and the above, below, within, etc. are understood as including the present numbers. If the first and second are described for the purpose of distinguishing technical features, they are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated.
Example 1
Referring to fig. 1, fig. 1 is a schematic flowchart of an embodiment of a method for separating a pen from a hand of an electronic whiteboard provided by the present invention, as shown in fig. 1, the method includes steps 101 to 102, which are specifically as follows:
step 101: the method comprises the steps of performing touch detection on a screen when a stylus separating instruction is received, and acquiring first touch event data when a first touch event is detected to exist, wherein the first touch event data comprises the longest edge value of a touch area and the shortest edge value of the touch area.
In one embodiment, when the screen is written, the screen needs to be touched, so that when a stylus separation instruction is received, touch detection is performed on the screen, wherein the set screen is an infrared touch screen, and compared with an existing capacitive touch screen, the cost of equipment can be reduced.
In one embodiment, when the screen is touched and detected, a touch area is detected and positioned based on infrared matrixes in X and Y directions on the screen, specifically, a circuit board outer frame is arranged in front of a display of the infrared touch screen, infrared transmitting tubes and infrared receiving tubes are distributed on four sides of the screen of the circuit board, and the infrared matrixes which are crossed horizontally and vertically are formed in a one-to-one correspondence manner; when a user touches the screen, a finger or a touch pen can block two infrared rays passing through the position, so that the position of a touch point on the screen can be judged. Therefore, in this embodiment, all the occluded touch points are obtained by traversing all the touch points on the screen, so as to obtain the touch area.
Preferably, the present embodiment may further obtain the touch area of the first touch event ACTION _ DOWN based on the getSize () method of the android system.
In an embodiment, according to the touch area, performing edge detection on the touch area to obtain an edge image of the touch area, and after obtaining the edge image of the touch area, determining whether the edge image is a single closed edge image, if so, determining that a first touch event generates a single first touch area, and if not, generating a plurality of touch areas for the first touch event.
In one embodiment, edge coordinate points of a single closed edge image are extracted to obtain a plurality of edge coordinate points, all the edge coordinate points are combined pairwise to obtain a plurality of coordinate groups, and the distance of the coordinate points between each coordinate group is calculated to obtain a plurality of coordinate distances; and taking the maximum value in the coordinate distances as the longest edge value of the touch area, and taking the minimum value in the coordinate distances as the shortest edge value of the touch area. Preferably, in this embodiment, corresponding edge coordinate points may be extracted simultaneously for a plurality of closed edge images.
Preferably, the generated touch area is an elliptical area, the obtained shortest side value of the touch area is a value of the shortest side of the elliptical area, and the obtained longest side value of the touch area is a value of the longest side of the elliptical area.
Preferably, the embodiment may also directly obtain the longest edge value and the shortest edge value of the touch area based on an interface method provided by a MotionEvent touch event of the android system, where getTouchMajor () obtains the longest edge value and getTouchMinor () obtains the shortest edge value.
Step 102: and judging whether the first touch event is triggered by a finger or not according to the longest edge value and the shortest edge value, if not, responding to the first touch event to carry out writing and drawing, and if so, not responding to the first touch event.
In one embodiment, a historical touch event data set is obtained, wherein the historical touch event data set comprises historical longest edge values of a plurality of historical touch areas and historical shortest edge values of the plurality of historical touch areas; calculating a first average value of historical longest edge values of a plurality of historical touch areas, and taking the first average value as a preset longest edge threshold value; and calculating a second average value of historical shortest edge values of the plurality of historical touch areas, and taking the second average value as a preset shortest edge threshold value.
Preferably, the preset longest edge threshold and the preset shortest edge threshold in this embodiment may also be customized according to experience.
In one embodiment, after acquiring a preset longest edge threshold and a preset shortest edge threshold; whether the longest edge value is larger than the preset longest edge threshold value or not is also judged, and whether the shortest edge value is larger than the preset shortest edge threshold value or not is also judged; when the longest edge value is larger than the preset longest edge threshold value and the shortest edge value is larger than the preset shortest edge threshold value, judging that the first touch event is triggered by a finger; and when the longest edge value is not greater than the preset longest edge threshold value and the shortest edge value is not greater than the preset shortest edge threshold value, judging that the first touch event is triggered by the touch pen.
In one embodiment, when the first touch event is detected to be a finger trigger, the response to the first touch event needs to be stopped, and subsequent writing and drawing are not performed, that is, the writing of the finger needs to be limited; when the first touch event is detected to be triggered by the touch pen, the response to the first touch event is maintained, a drawing track is generated by acquiring the touch contour of the first touch event, and subsequent writing and drawing are performed, so that the effect of separating the pen from the hand is achieved.
Preferably, when a plurality of touch areas are generated by a first touch event, each touch area is judged at the same time, writing limitation is performed on the touch area triggered by the first touch event in the plurality of touch areas, and writing drawing is performed on the touch area triggered by the first touch event in the plurality of touch areas, so that the condition that the touch areas generated by the finger and the touch pen are the same touch area under the condition that the finger and the touch pen generate the touch areas on the screen at the same time is avoided, and false detection on the touch areas is caused.
Example 2
Referring to fig. 2, fig. 2 is a schematic structural diagram of an embodiment of a device for separating a pen from a hand of an electronic whiteboard provided in the present invention, as shown in fig. 2, the device includes a first touch event data acquisition module 201 and a first touch event determination module 202, which are specifically as follows:
the first touch event data obtaining module 201 is configured to perform touch detection on a screen when a stylus separation instruction is received, and obtain first touch event data when a first touch event is detected to exist, where the first touch event data includes a longest edge value of a touch area and a shortest edge value of the touch area.
The first touch event determining module 202 is configured to determine whether the first touch event is triggered by a finger according to the longest edge value and the shortest edge value, if not, respond to the first touch event to perform writing and drawing, and if so, not respond to the first touch event.
In an embodiment, the first touch event determining module 202 is configured to determine whether the first touch event is triggered by a finger according to the longest edge value and the shortest edge value, and specifically includes: acquiring a preset longest edge threshold and a preset shortest edge threshold; judging whether the longest edge value is larger than the preset longest edge threshold value or not, and simultaneously judging whether the shortest edge value is larger than the preset shortest edge threshold value or not; when the longest edge value is larger than the preset longest edge threshold value and the shortest edge value is larger than the preset shortest edge threshold value, judging that the first touch event is finger triggering; and when the longest edge value is not greater than the preset longest edge threshold value and the shortest edge value is not greater than the preset shortest edge threshold value, judging that the first touch event is triggered by the touch pen.
In an embodiment, the first touch event determining module 202 is configured to obtain a preset longest edge threshold and a preset shortest edge threshold, and specifically includes: obtaining a historical touch event data set, wherein the historical touch event data set comprises historical longest edge values of a plurality of historical touch areas and historical shortest edge values of the plurality of historical touch areas; calculating a first average value of historical longest edge values of a plurality of historical touch areas, and taking the first average value as a preset longest edge threshold value; and calculating a second average value of historical shortest edge values of the plurality of historical touch areas, and taking the second average value as a preset shortest edge threshold value.
In an embodiment, the first touch event data acquiring module 201 is configured to acquire first touch event data when detecting that a first touch event exists, and specifically includes: when a first touch event is detected to exist, all the shielded touch points are obtained by traversing all the touch points on the screen to obtain a touch area; extracting edge coordinate points of the touch area according to the touch area, combining all the edge coordinate points pairwise, and calculating the distance of each group of coordinate points to obtain a plurality of coordinate distances; and taking the maximum value in the coordinate distances as the longest edge value of the touch area, and taking the minimum value in the coordinate distances as the shortest edge value of the touch area.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus described above may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
It should be noted that the above-mentioned embodiment of the device for separating a pen from a stylus of an electronic whiteboard is merely illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
On the basis of the above-mentioned embodiment of the method for separating the hand and the pen from the electronic whiteboard, another embodiment of the present invention provides a terminal device for separating the hand and the pen from the electronic whiteboard, where the terminal device for separating the hand and the pen from the electronic whiteboard includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, the method for separating the hand and the pen from the electronic whiteboard according to any one of the embodiments of the present invention is implemented.
Illustratively, the computer program may be partitioned in this embodiment into one or more modules that are stored in the memory and executed by the processor to implement the invention. The one or more modules may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program in the pen-and-stylus separation terminal device of the electronic whiteboard.
The hand-pen separation terminal device of the electronic whiteboard can be a desktop computer, a notebook, a palm computer, a cloud server and other computing devices. The pen-stylus separation terminal device of the electronic whiteboard can comprise, but is not limited to, a processor and a memory.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, the processor being the control center of the whiteboard's stylus-splitting terminal device, the various parts of the whiteboard's stylus-splitting terminal device being connected by various interfaces and lines.
The memory may be configured to store the computer program and/or module, and the processor may implement various functions of the whiteboard pen-separation terminal device by running or executing the computer program and/or module stored in the memory and calling data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the mobile phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
On the basis of the above embodiment of the method for separating the handwriting of the electronic whiteboard, another embodiment of the present invention provides a storage medium, where the storage medium includes a stored computer program, and when the computer program runs, the apparatus on which the storage medium is located is controlled to execute the method for separating the handwriting of the electronic whiteboard according to any one of the embodiments of the present invention.
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, and so on. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer-readable medium may contain suitable additions or subtractions depending on the requirements of legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer-readable media may not include electrical carrier signals or telecommunication signals in accordance with legislation and patent practice.
In summary, the present invention discloses a method, an apparatus, a device, and a storage medium for separating a stylus of an electronic whiteboard, where the method performs touch detection on a screen when receiving a stylus separation instruction, and acquires first touch event data when detecting that a first touch event exists, where the first touch event data includes a longest edge value of a touch area and a shortest edge value of the touch area; and judging whether the first touch event is triggered by a finger or not according to the longest edge value and the shortest edge value, if not, responding to the first touch event to carry out writing and drawing, and if so, not responding to the first touch event. Compared with the prior art, the technical scheme of the invention can judge whether the current finger touch is performed or not based on the longest edge value and the shortest edge value of the touch area, and perform subsequent processing based on the judgment result, so that the accuracy of finger touch identification can be improved, and the separation of the pen and the hand can be realized.
The above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, many modifications and substitutions can be made without departing from the technical principle of the present invention, and these modifications and substitutions should also be regarded as the protection scope of the present invention.

Claims (10)

1. A method for separating a stylus of an electronic whiteboard is characterized by comprising the following steps:
when a stylus separation instruction is received, performing touch detection on a screen, and when a first touch event is detected to exist, acquiring first touch event data, wherein the first touch event data comprises the longest edge value of a touch area and the shortest edge value of the touch area;
and judging whether the first touch event is triggered by a finger or not according to the longest edge value and the shortest edge value, if not, responding to the first touch event to carry out writing and drawing, and if so, not responding to the first touch event.
2. The method for separating a stylus from a whiteboard of claim 1, wherein determining whether the first touch event is triggered by a finger according to the longest edge value and the shortest edge value specifically comprises:
acquiring a preset longest edge threshold and a preset shortest edge threshold;
judging whether the longest edge value is larger than the preset longest edge threshold value or not, and judging whether the shortest edge value is larger than the preset shortest edge threshold value or not;
when the longest edge value is larger than the preset longest edge threshold value and the shortest edge value is larger than the preset shortest edge threshold value, judging that the first touch event is finger triggering;
and when the longest edge value is not greater than the preset longest edge threshold value and the shortest edge value is not greater than the preset shortest edge threshold value, judging that the first touch event is triggered by the touch pen.
3. The method for separating the handwriting from the electronic whiteboard of claim 1, wherein obtaining the preset longest edge threshold and the preset shortest edge threshold specifically comprises:
obtaining a historical touch event data set, wherein the historical touch event data set comprises historical longest edge values of a plurality of historical touch areas and historical shortest edge values of the plurality of historical touch areas;
calculating a first average value of historical longest edge values of a plurality of historical touch areas, and taking the first average value as a preset longest edge threshold value;
and calculating a second average value of historical shortest edge values of the plurality of historical touch areas, and taking the second average value as a preset shortest edge threshold value.
4. The method for separating a stylus of an electronic whiteboard according to claim 1, wherein when detecting that the first touch event exists, acquiring the first touch event data specifically comprises:
when a first touch event is detected to exist, all the shielded touch points are obtained by traversing all the touch points on the screen to obtain a touch area;
extracting edge coordinate points of the touch area according to the touch area, combining all the edge coordinate points pairwise, and calculating the distance of each group of coordinate points to obtain a plurality of coordinate distances;
and taking the maximum value in the coordinate distances as the longest edge value of the touch area, and taking the minimum value in the coordinate distances as the shortest edge value of the touch area.
5. A hand-pen separating device of an electronic whiteboard is characterized by comprising: the device comprises a first touch event data acquisition module and a first touch event judgment module;
the first touch event data acquisition module is used for performing touch detection on a screen when a stylus separation instruction is received, and acquiring first touch event data when a first touch event is detected to exist, wherein the first touch event data comprises the longest edge value of a touch area and the shortest edge value of the touch area;
and the first touch event judging module is used for judging whether the first touch event is triggered by a finger according to the longest edge value and the shortest edge value, if not, responding to the first touch event to carry out writing and drawing, and if so, not responding to the first touch event.
6. The device for separating a pen from a hand of an electronic whiteboard of claim 5, wherein the first touch event determining module is configured to determine whether the first touch event is triggered by a finger according to the longest edge value and the shortest edge value, and specifically includes:
acquiring a preset longest edge threshold and a preset shortest edge threshold;
judging whether the longest edge value is larger than the preset longest edge threshold value or not, and simultaneously judging whether the shortest edge value is larger than the preset shortest edge threshold value or not;
when the longest edge value is larger than the preset longest edge threshold value and the shortest edge value is larger than the preset shortest edge threshold value, judging that the first touch event is finger triggering;
and when the longest edge value is not greater than the preset longest edge threshold value and the shortest edge value is not greater than the preset shortest edge threshold value, judging that the first touch event is triggered by the touch pen.
7. The device for separating a stylus from a whiteboard of claim 6, wherein the first touch event determining module is configured to obtain a preset longest edge threshold and a preset shortest edge threshold, and specifically includes:
obtaining a historical touch event data set, wherein the historical touch event data set comprises historical longest edge values of a plurality of historical touch areas and historical shortest edge values of the plurality of historical touch areas;
calculating a first average value of historical longest edge values of a plurality of historical touch areas, and taking the first average value as a preset longest edge threshold value;
and calculating a second average value of historical shortest edge values of the plurality of historical touch areas, and taking the second average value as a preset shortest edge threshold value.
8. The device as claimed in claim 5, wherein the first touch event data acquiring module is configured to acquire the first touch event data when detecting that the first touch event exists, and specifically includes:
when a first touch event is detected to exist, all the shielded touch points are obtained by traversing all the touch points on the screen to obtain a touch area;
extracting edge coordinate points of the touch area according to the touch area, combining all the edge coordinate points pairwise, and calculating the distance of each group of coordinate points to obtain a plurality of coordinate distances;
and taking the maximum value in the coordinate distances as the longest edge value of the touch area, and taking the minimum value in the coordinate distances as the shortest edge value of the touch area.
9. A terminal device comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, the processor when executing the computer program implementing the method of hand-pen separation of an electronic whiteboard of any of claims 1 to 4.
10. A computer-readable storage medium, comprising a stored computer program, wherein the computer program, when executed, controls an apparatus in which the computer-readable storage medium is located to perform the method of separating a stylus of an electronic whiteboard according to any one of claims 1 to 4.
CN202210756646.7A 2022-06-29 2022-06-29 Method, device, equipment and storage medium for separating hand and pen of electronic whiteboard Pending CN115220638A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210756646.7A CN115220638A (en) 2022-06-29 2022-06-29 Method, device, equipment and storage medium for separating hand and pen of electronic whiteboard

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210756646.7A CN115220638A (en) 2022-06-29 2022-06-29 Method, device, equipment and storage medium for separating hand and pen of electronic whiteboard

Publications (1)

Publication Number Publication Date
CN115220638A true CN115220638A (en) 2022-10-21

Family

ID=83609293

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210756646.7A Pending CN115220638A (en) 2022-06-29 2022-06-29 Method, device, equipment and storage medium for separating hand and pen of electronic whiteboard

Country Status (1)

Country Link
CN (1) CN115220638A (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104679421A (en) * 2013-11-29 2015-06-03 ***通信集团公司 Accidental touch screen edge touch preventing method and equipment
CN106598291A (en) * 2016-11-29 2017-04-26 广州视源电子科技股份有限公司 Intelligent writing method, infrared touch screen and intelligent writing system
CN106775084A (en) * 2016-12-16 2017-05-31 广东欧珀移动通信有限公司 A kind of false-touch prevention method of touch-screen, device and mobile terminal
CN107908307A (en) * 2017-11-09 2018-04-13 苏州佳世达光电有限公司 The false-touch prevention of mobile terminal and its touch-screen controls method, apparatus
CN109933276A (en) * 2019-03-01 2019-06-25 安徽戴特教育科技有限公司 A kind of determination method accidentally touched based on hand sleeve in touch large-size screen monitors electronic whiteboard handwriting
CN110058782A (en) * 2016-02-22 2019-07-26 广州视睿电子科技有限公司 Touch operation method and system based on interactive electronic whiteboard
CN111208917A (en) * 2019-12-31 2020-05-29 广州视源电子科技股份有限公司 Touch data processing method and device, intelligent equipment and storage medium
CN111488897A (en) * 2019-01-28 2020-08-04 上海品奇数码科技有限公司 Method and device for detecting and identifying touch object
CN112347744A (en) * 2020-11-04 2021-02-09 广州朗国电子科技有限公司 Method and device for automatically triggering annotation mode by touch device and storage medium
CN112835497A (en) * 2021-01-14 2021-05-25 广州朗国电子科技有限公司 Method and device for quickly entering electronic whiteboard and storage medium
US20210174075A1 (en) * 2019-12-10 2021-06-10 Samsung Electronics Co., Ltd. Electronic device and method for processing writing input
CN113934312A (en) * 2020-06-29 2022-01-14 深圳市创易联合科技有限公司 Touch object identification method based on infrared touch screen and terminal equipment

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104679421A (en) * 2013-11-29 2015-06-03 ***通信集团公司 Accidental touch screen edge touch preventing method and equipment
CN110058782A (en) * 2016-02-22 2019-07-26 广州视睿电子科技有限公司 Touch operation method and system based on interactive electronic whiteboard
CN106598291A (en) * 2016-11-29 2017-04-26 广州视源电子科技股份有限公司 Intelligent writing method, infrared touch screen and intelligent writing system
CN106775084A (en) * 2016-12-16 2017-05-31 广东欧珀移动通信有限公司 A kind of false-touch prevention method of touch-screen, device and mobile terminal
CN107908307A (en) * 2017-11-09 2018-04-13 苏州佳世达光电有限公司 The false-touch prevention of mobile terminal and its touch-screen controls method, apparatus
CN111488897A (en) * 2019-01-28 2020-08-04 上海品奇数码科技有限公司 Method and device for detecting and identifying touch object
CN109933276A (en) * 2019-03-01 2019-06-25 安徽戴特教育科技有限公司 A kind of determination method accidentally touched based on hand sleeve in touch large-size screen monitors electronic whiteboard handwriting
US20210174075A1 (en) * 2019-12-10 2021-06-10 Samsung Electronics Co., Ltd. Electronic device and method for processing writing input
CN111208917A (en) * 2019-12-31 2020-05-29 广州视源电子科技股份有限公司 Touch data processing method and device, intelligent equipment and storage medium
CN113934312A (en) * 2020-06-29 2022-01-14 深圳市创易联合科技有限公司 Touch object identification method based on infrared touch screen and terminal equipment
CN112347744A (en) * 2020-11-04 2021-02-09 广州朗国电子科技有限公司 Method and device for automatically triggering annotation mode by touch device and storage medium
CN112835497A (en) * 2021-01-14 2021-05-25 广州朗国电子科技有限公司 Method and device for quickly entering electronic whiteboard and storage medium

Similar Documents

Publication Publication Date Title
EP3627365A1 (en) Unlocking control method and related product
JP6641306B2 (en) Touch classification
TWI695311B (en) Method, device and terminal for simulating mouse operation using gestures
CN104268498A (en) Two-dimension code recognition method and terminal
CN110610127B (en) Face recognition method and device, storage medium and electronic equipment
US10521105B2 (en) Detecting primary hover point for multi-hover point device
CN108781252B (en) Image shooting method and device
CN103399674B (en) A kind of multipoint touch detection method and device
WO2020168861A1 (en) Method for obtaining fingerprint template and related device
CN105183217A (en) Touch display device and touch display method
CN113934312B (en) Touch object identification method based on infrared touch screen and terminal equipment
CN105786373B (en) A kind of touch trajectory display methods and electronic equipment
CN109298809A (en) A kind of touch action recognition methods, device and terminal device
CN105426729A (en) Information processing method and electronic equipment
CN114816130B (en) Writing recognition method and system of electronic whiteboard, storage medium and electronic whiteboard
CN111967529A (en) Identification method, device, equipment and system
CN115220638A (en) Method, device, equipment and storage medium for separating hand and pen of electronic whiteboard
CN113934323B (en) Multi-point display method and device based on intelligent blackboard and terminal equipment
CN113296616B (en) Pen point selection method and device and intelligent terminal
CN111639573B (en) ORB algorithm-based gesture recognition method, storage medium and electronic equipment
CN109189259B (en) Touch erase anti-interference method and device and terminal equipment
US20200341583A1 (en) Position detection circuit and position detection method
CN105808041B (en) A kind of information processing method and electronic equipment
CN113486826A (en) Capacitance fingerprint identification method and device, finger sensing equipment, terminal equipment and storage medium
US9274703B2 (en) Method for inputting instruction and portable electronic device and computer readable recording medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination