CN111208917B - Touch data processing method and device, intelligent equipment and storage medium - Google Patents

Touch data processing method and device, intelligent equipment and storage medium Download PDF

Info

Publication number
CN111208917B
CN111208917B CN201911420137.1A CN201911420137A CN111208917B CN 111208917 B CN111208917 B CN 111208917B CN 201911420137 A CN201911420137 A CN 201911420137A CN 111208917 B CN111208917 B CN 111208917B
Authority
CN
China
Prior art keywords
touch
touch data
data
position signal
operating system
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.)
Active
Application number
CN201911420137.1A
Other languages
Chinese (zh)
Other versions
CN111208917A (en
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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201911420137.1A priority Critical patent/CN111208917B/en
Publication of CN111208917A publication Critical patent/CN111208917A/en
Priority to PCT/CN2020/139242 priority patent/WO2021136080A1/en
Application granted granted Critical
Publication of CN111208917B publication Critical patent/CN111208917B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0414Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using force sensing means to determine a position
    • 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0412Digitisers structurally integrated in a display
    • 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/042Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by opto-electronic means
    • G06F3/0421Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by opto-electronic means by interrupting or reflecting a light beam, e.g. optical touch-screen
    • 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/044Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means
    • 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/04883Interaction 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 for inputting data by handwriting, e.g. gesture or text

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)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application relates to a touch data processing method and device, intelligent equipment and a storage medium. The touch data processing method of the embodiment of the application comprises the following steps: receiving first touch data generated by a first touch device; caching the first touch data; if the current cache progress meets a preset trigger condition, detecting whether second touch data generated by a second touch device is received; when second touch data are received, determining whether the distance between the first touch position signal and the second touch position signal is smaller than a preset distance threshold value; and when the distance between the first touch position signal and the second touch position signal is smaller than the preset distance threshold, discarding the first touch data, and transmitting the second touch data to an operating system of the intelligent device. The touch data processing method effectively realizes the separation of two types of touch data generated simultaneously when the writing pen is used for touch operation.

Description

Touch data processing method and device, intelligent equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of intelligent interactive panels, in particular to a touch data processing method and device, intelligent equipment and a storage medium.
Background
Along with the development of intelligent technology, the types of electronic products contacted by people in daily life are increasingly rich, and interactive electronic equipment realized based on touch technology is widely applied to group interaction occasions such as conferences, teaching, commercial exhibition and the like due to good human-computer interaction experience. In the interactive electronic equipment, the used touch parts mainly comprise an infrared touch frame, an electromagnetic screen and a capacitive screen. In the product development process, in order to support more detailed writing experience, the electromagnetic screen and the capacitive screen are often used in one device at the same time, or the infrared touch frame and the electromagnetic screen are combined. The electromagnetic screen only supports touch control of an electromagnetic pen, the capacitive screen can support touch control of fingers or other conductive objects, and the infrared touch frame can support touch control of fingers, a writing pen or other objects. Because the sensing modes of the infrared touch frame, the electromagnetic screen and the capacitive screen are different, when a writing pen is used for touch control on equipment with two types of touch component combinations, the interactive electronic equipment can receive more than two types of touch data generally, in the prior art, one type of touch data is shielded generally according to the setting, but the condition that the touch data needed actually is shielded wrongly often occurs, and the conditions of line breaking during writing, unsmooth writing and the like are caused.
Disclosure of Invention
The embodiment of the application provides a touch data processing method and device, a storage medium and an intelligent device, which effectively realize the separation of two types of touch data generated simultaneously when a writing pen is used for touch operation, and avoid the situations of broken writing lines, unsmooth writing and the like caused by the wrong shielding of one type of touch data.
In a first aspect, an embodiment of the present application provides a touch data processing method, including:
receiving first touch data generated by a first touch device, wherein the first touch data comprises a first touch position signal;
caching the first touch data, and recording the caching progress;
when the caching progress meets a preset trigger condition, detecting whether second touch data generated by a second touch device is received, wherein the second touch data comprises a second touch position signal;
when the second touch data is received, determining whether the distance between the first touch position signal and the second touch position signal is smaller than a preset distance threshold value; the preset distance threshold comprises a straight line threshold and/or a coordinate threshold;
when the distance between the first touch position signal and the second touch position signal is smaller than the preset distance threshold, discarding the first touch data, and transmitting the second touch data to an operating system, so that the operating system responds to the second touch data;
when the distance between the first touch position signal and the second touch position signal is larger than or equal to the preset distance threshold, the first touch data and the second touch data are respectively transmitted to an operating system, and the operating system respectively responds to the first touch data and the second touch data.
Optionally, when the second touch data is not received, the first touch data is transmitted to an operating system, so that the operating system responds to the first touch data.
Optionally, the second touch data further includes a touch pressure signal, and the operating system responds to the second touch data by:
and the operating system displays writing handwriting on a display screen of the intelligent device according to the touch pressure signal and the second touch position signal, and determines the thickness of the writing handwriting according to the value of the touch pressure signal.
Optionally, the first touch data further includes a touch point area value, and the operating system responds to the first touch data by:
and the operating system displays writing handwriting on a display screen of the intelligent device according to the touch point area value and the first touch position signal, and determines the thickness of the writing handwriting according to the size of the touch point area value.
Optionally, transmitting the first touch data to an operating system includes:
and sequentially outputting the cached first touch data from the cache region, wherein the frequency of outputting the first touch data from the cache region is greater than the sampling frequency of the first touch device for the first touch data.
Optionally, the cache progress includes cache time and/or cache data amount, and the preset trigger condition includes:
whether the caching time reaches a first threshold value and/or whether the caching data amount reaches a second threshold value.
Optionally, performing cache processing on the first touch data includes:
and sequentially storing the first touch data into a buffer area from the initial touch point of the first touch data.
Optionally, determining whether the distance between the first touch position signal and the second touch position signal is smaller than a preset distance threshold includes:
determining whether a distance between a start touch point of the first touch position signal and a start touch point of the second touch position signal is less than a preset distance threshold.
In a second aspect, an embodiment of the present application provides a touch data processing apparatus, including:
the touch control device comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving first touch data generated by a first touch control device, and the first touch data comprises a first touch position signal;
the cache module is used for caching the first touch data and recording the cache progress;
the detection module is used for detecting whether second touch data generated by a second touch device is received or not when the caching progress meets a preset trigger condition, wherein the second touch data comprises a second touch position signal;
the judging module is used for determining whether the distance between the first touch position signal and the second touch position signal is smaller than a preset distance threshold value or not when the second touch data is received; the preset distance threshold comprises a straight line threshold and/or a coordinate threshold;
and the discarding module discards the first touch data and transmits the second touch data to an operating system when the distance between the first touch position signal and the second touch position signal is smaller than the preset distance threshold, so that the operating system responds based on the second touch data.
In a third aspect, an embodiment of the present application provides an intelligent device, including a memory and a processor;
the memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the touch data processing method according to the first aspect of the embodiment of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium, which stores a computer program, and the computer program, when executed by a processor, implements the steps of the touch data processing method according to the first aspect of the present application.
In the embodiment of the application, after first touch data generated by a first touch device is received, caching the first touch data, after the caching progress meets a preset trigger condition, detecting whether second touch data is received, and when the second touch data is received and the distance between the second touch data and the first touch data is smaller than a preset distance threshold, discarding the first touch data, so that separation of two types of touch data generated simultaneously when a writing pen is used for touch operation is effectively realized, and situations of line breaking during writing, unsmooth writing and the like caused by error shielding of one type of touch data are avoided.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Drawings
Fig. 1 is a schematic view of an application scenario of a touch data processing method according to an embodiment of the present application, shown in an exemplary embodiment;
FIGS. 2A and 2B are schematic diagrams of a display screen touch recognition area of a smart device shown in an exemplary embodiment;
FIG. 3 is a diagram of a prior art touch data separation method writing display, shown in an exemplary embodiment;
FIG. 4 is a flow diagram illustrating a touch data processing method according to an embodiment of the present application, shown in one exemplary embodiment;
FIG. 5 is a schematic diagram illustrating the adjacency of initial touch points in an exemplary embodiment;
FIG. 6 is a diagram illustrating a multi-user simultaneous writing scenario in an exemplary embodiment;
FIG. 7 is a diagram illustrating a multi-user simultaneous writing scenario in another exemplary embodiment;
FIG. 8 is a flow diagram illustrating a touch data processing method according to an embodiment of the present application, shown in one exemplary embodiment;
FIG. 9 is a flow diagram illustrating a touch data processing method according to an embodiment of the present application, shown in an exemplary embodiment;
FIG. 10 is a schematic diagram of a touch data processing device according to an embodiment of the present application, shown in an exemplary embodiment;
fig. 11 is a schematic structural diagram of an intelligent device according to an embodiment of the present application, shown in an exemplary embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
It should be understood that the embodiments described are only some embodiments of the present application, and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without any creative effort belong to the protection scope of the embodiments in the present application.
The terminology used in the embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the embodiments of the present application. As used in the examples of this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the application, as detailed in the appended claims. In the description of the present application, it is to be understood that the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not necessarily used to describe a particular order or sequence, nor are they to be construed as indicating or implying relative importance. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate.
Further, in the description of the present application, "a plurality" means two or more unless otherwise specified. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
Fig. 1 is a schematic view of an application scenario of a touch data processing method in an exemplary embodiment of the present application, in the application scenario of fig. 1, the touch data processing method in the present application is applied to an intelligent device 100, the intelligent device 100 is an integrated device that performs control and realizes human-computer interaction operation on a display panel through a touch technology, and in an embodiment, the intelligent device 100 may be an intelligent interaction tablet. In other application scenarios, the touch data processing method according to the embodiment of the present application may also be applied to other intelligent devices, such as a computer, a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), an e-book reader, a multimedia player, and the like.
An operating system is loaded in the main control chip of the smart device 100, the operating system may include windows, android and the like, and the operating system is used for the smart device, and a touch driver is run on the operating system and used for responding to a touch signal generated by the touch device.
The intelligent Device 100 is equipped with a touch Device, the touch Device is an HID Device for implementing Human-computer interaction, and the HID is an abbreviation of Human Interface Device and belongs to a Device for Human-computer interaction operation, however, the HID Device does not necessarily need to have a Human-computer Interface, and as long as the devices conforming to the HID category specification are all HID devices. The touch device installed on the smart device 100 may be a combination of an infrared touch frame and an electromagnetic screen, or a combination of an electromagnetic screen and a capacitive screen.
The Electromagnetic screen refers to an Electromagnetic touch screen that can implement accurate touch and original handwriting writing by using an Electromagnetic induction technology (Electromagnetic response), and can implement touch only by being matched with an Electromagnetic pen, and is used for identifying touch operations, such as click operations, writing operations and the like, of a user on the Electromagnetic screen by using the Electromagnetic pen 200 as shown in fig. 1.
As an embodiment, the infrared touch frame works on the principle that infrared geminate transistors are distributed around a display screen of an intelligent device, the infrared geminate transistors comprise infrared receiving tubes and infrared transmitting tubes, the infrared geminate transistors are arranged on the surface of the display screen in a one-to-one corresponding position relationship to form an optical network formed by infrared light, and the optical network forms a positioning system. When an object (for example, a finger 300 in fig. 1, or other articles such as a writing pen) enters the infrared light net to block infrared light emission and reception at a certain position, the intensity of infrared light received by the infrared receiving pair tubes in the horizontal and vertical directions at the point changes, and the device can know the coordinate position of the contact point blocking the infrared light in the whole infrared touch frame by knowing the change of the infrared receiving condition.
The capacitive screen works by utilizing the current induction of a human body. When a finger 300 or other conductive object in fig. 1 touches the surface of the capacitive screen, a coupling capacitor is formed between the user and the surface of the capacitive screen due to the electric field of the human body, and for high-frequency current, the capacitor is a direct conductor, so that the finger 300 draws a small current from the contact point, the current flows out from the electrodes on the four corners of the capacitive screen respectively, the current flowing through the four electrodes is proportional to the distances from the finger to the four corners, and the position of the touch point is obtained by accurately calculating the proportions of the four currents.
According to the working principle of the touch device, when a user uses the electromagnetic pen 200 to perform touch operation on the display panel of the smart device 100, if the touch device installed in the smart device 100 is a combination of the infrared touch frame and the electromagnetic screen, the electromagnetic screen and the infrared touch frame detect input of touch data according to the touch operation of the electromagnetic pen, respectively, and if the touch device installed in the smart device 100 is a combination of the electromagnetic screen and the capacitive screen, although the capacitive screen does not detect input of touch data according to the touch operation of the electromagnetic pen, when the user uses the electromagnetic pen 200 to perform touch operation, fingers or palms of the user may erroneously touch the surface of the capacitive screen, so that the capacitive screen also detects input of touch data.
When the electromagnetic pen is used for writing, a user generally only needs touch data detected by the electromagnetic screen, so that the touch data generated by an infrared touch frame or a capacitive screen attached to the electromagnetic pen is separated when the electromagnetic pen is used for touch operation. The existing touch data separation method generally sets a touch data priority mode, for example, sets an electromagnetic touch data priority mode, in which the smart device 100 receives inputs of two types of touch data generated by an infrared touch frame and an electromagnetic screen, or an electromagnetic screen and a capacitive screen from a touch device at the same time, and only responds to the touch data generated by the electromagnetic screen, but not responds to the touch data generated by the infrared touch frame or the capacitive screen.
As shown in fig. 2A, fig. 2A is a schematic diagram of a touch recognition area of a display screen of a smart device in an example, where the recognition area of an infrared touch frame is 3mm above the display panel, and the recognition area of an electromagnetic screen is 10mm above the display panel, and in an ideal situation, the electromagnetic screen recognizes an electromagnetic pen preferentially over the infrared touch frame.
As shown in fig. 2B, in practical applications, if the flatness of the display panel of the smart device is not good, the infrared touch frame may recognize the electromagnetic pen before the electromagnetic screen, and at this time, the infrared touch frame may generate touch data earlier than the electromagnetic screen.
In other applications, the speed of writing with the electromagnetic pen and the speed of uploading touch data by different touch devices may also cause the smart device 100 to respond to the touch data generated by the infrared touch frame or the capacitive screen due to the touch operation before receiving the touch data generated by the electromagnetic screen when the user uses the electromagnetic pen for touch operation.
As shown in fig. 3, fig. 3 is a schematic diagram illustrating a writing effect when the smart device 100 preferentially recognizes touch data generated by the infrared touch frame in a process of responding to a touch signal, in fig. 3, a user performs a writing operation using an electromagnetic pen to draw a line 400, and since the touch data generated by the infrared touch frame is preferentially recognized, before recognizing the touch data generated by the electromagnetic screen, a front end 410 of the line 400 is written in response to the touch data generated by the infrared touch frame, and in an actual application, colors or thicknesses of the front end 410 and other portions of the line 400 may not be the same, so that the current writing operation may be broken and writing may not be smooth.
In order to solve the technical problem, an embodiment of the present application provides a touch data processing method, which may be executed by a touch data processing unit provided by the intelligent device 100, where the touch data processing unit may be implemented in a software and/or hardware manner and may be integrated in a main control chip of the intelligent device 100, and the touch data processing unit is connected to a touch device through a signal input/output interface, receives and processes touch data generated by the touch device, and sends the processed data to an operating system of the intelligent device 100. As shown in fig. 4, in an exemplary embodiment, the touch data processing method includes the steps of:
step S401: first touch data generated by a first touch device is received, wherein the first touch data comprises a first touch position signal.
The first touch device is a capacitive screen or an infrared touch frame, and the first touch data is touch data generated by the infrared touch frame when a user performs touch operation through a finger, a writing pen or other objects, or touch data generated by the capacitive screen when the user performs touch operation through the finger or other conductive objects.
When the first touch device detects a touch operation of a user, the generated first touch data includes a touch position signal of the touch data in the first touch device, and generally, the touch position signal is a coordinate signal of each touch point.
Step S402: and caching the first touch data, and recording the caching progress.
The complete touch data generally includes an initial touch state, a touch moving or sliding state and a touch lifting state of a touch point, the initial touch state is a state when a touch signal is initially generated, and the touch point corresponding to the initial touch state is an initial touch point.
In an example, as shown in table 1 below, when the first touch device is an infrared touch frame, the infrared touch frame reports the generated touch data through a message shown in the following table. In table 1, a plurality of sets of touch Data are shown, for a first set of touch Data, Point1 Data is a starting touch Point of the touch Data, and Point Data is a last touch Point of the touch Data when a touch-up state is detected.
Figure GDA0003398899100000071
TABLE 1
In the embodiment of the application, after the first touch data is received from the first touch device, the first touch data is not directly sent to the operating system for response, but the first touch data is cached.
The cache processing refers to caching data, and the cache processing may be performed by a special processor, where the processor stores the data in a cache region of the processor, or the processor sends the data to a cache memory or a cache region of a memory to perform cache processing during processing, in a specific example, the first touch data is cached in such a manner that the first touch data is stored in the cache region of the processor from a start touch point of the first touch data, and since the sequence of reading the data by the processor is to read the cached data first and then the data in the memory, the subsequent processing of the first touch data can be performed more quickly.
After the caching process is started, recording the caching progress, wherein the caching progress reflects the progress degree of caching the first touch data in real time.
Step S403: and when the cache progress meets a preset trigger condition, detecting whether second touch data generated by a second touch device is received currently, wherein the second touch data comprises a second touch position signal.
According to the embodiment of the application, whether the preset triggering condition is met or not is judged according to the cache progress, the preset triggering condition is a triggering condition preset according to the cache progress, and when the cache progress reaches the preset value, the preset triggering condition can be triggered.
The second touch device is an electromagnetic screen, and the second touch data is touch data generated by the electromagnetic screen when a user performs touch operation through an electromagnetic pen.
When the second touch device detects a touch operation of a user, the generated second touch data includes a touch position signal of the touch data in the second touch device, and generally, the touch position signal is a coordinate signal of each touch point.
Step S404: and when the second touch data is received, determining whether the distance between the first touch position signal and the second touch position signal is smaller than a preset distance threshold value.
After receiving the first touch data, it is necessary to determine whether the first touch data is generated by writing with an electromagnetic pen that generates the second touch data, and if so, the initial touch points of the first touch data and the second touch data should coincide or have relatively close distances.
The distance between the first touch signal and the second touch signal may be calculated in various ways, and may have different expressions, for example, the distance may be a straight-line distance between the first touch position signal and the second touch position signal, or whether the distance is within a preset coordinate range of the first touch position signal, or whether the distance is within a preset coordinate range of the second touch position signal. Correspondingly, the preset distance threshold may be a specific straight-line threshold Δ d, or may be a coordinate threshold (Δ X, Δ Y). In a more preferred example, the distance between the first touch position signal and the second touch position signal is calculated by a distance between a position of a start touch point of the first touch position signal and a start touch point of the second touch position signal, or whether the start touch point of the second touch position signal is in a preset coordinate range of the start touch point of the first touch position signal, or whether the start touch point of the first touch position signal is in a preset coordinate range of the start touch point of the second touch position signal.
For example, if the initial touch point coordinate of the first touch data is (X)Ir down,YIrdown), the initial touch point coordinate of the second touch data is (X)EMR down,YEMRdown), if the coordinate is (X)Ir down,YIrdown) falls on (X)EMRdown±ΔX,YEMRdown ± Δ Y), it may be determined that a distance between the initial touch point of the first touch data and the initial touch point of the second touch data is smaller than a preset distance threshold, where Δ X and Δ Y are preset coordinate thresholds.
As shown in fig. 5, fig. 5 illustrates two cases where a distance between a start touch point of infrared touch data and a start touch point of electromagnetic touch data is smaller than a preset distance threshold, in fig. 5, a first start touch point is the start touch point of the infrared touch data, a second start touch point is the start touch point of the electromagnetic touch data, and in fig. 5, the start touch point of the infrared touch data and the start touch point of the electromagnetic touch data are smaller than the preset distance threshold, it may be determined that the first touch data and the second touch data are generated by touch operations of the same electromagnetic pen.
Step S405: when the distance between the first touch position signal and the second touch position signal is smaller than the preset distance threshold, discarding the first touch data, and transmitting the second touch data to an operating system, so that the operating system responds based on the second touch data.
Discarding the first touch data means not performing subsequent processing on the first touch data, that is, not sending the first touch data to the operating system of the smart device, so that the operating system of the smart device does not respond to the touch operation of the first touch data, but only responds to the touch operation of the second touch data.
When the distance between the first touch position signal and the second touch position signal is smaller than a preset distance threshold, it is indicated that the first touch data and the second touch data may be generated by touch operation of the same electromagnetic pen, and the first touch data is generated by mistaken touch of a finger in the process of operating the electromagnetic pen, and the first touch data is discarded.
In the embodiment of the application, after first touch data generated by a first touch device is received, caching the first touch data, after the caching progress meets a preset trigger condition, detecting whether second touch data is received, and when the second touch data is received and the distance between the second touch data and the first touch data is smaller than a preset distance threshold, discarding the first touch data, so that separation of two types of touch data generated simultaneously when a writing pen is used for touch operation is effectively realized, and situations of line breaking during writing, unsmooth writing and the like caused by error shielding of one type of touch data are avoided.
In addition, in one embodiment, when the distance between the first touch position signal and the second touch position signal is greater than or equal to the preset distance threshold, the first touch data and the second touch data are respectively transmitted to an operating system, so that the operating system respectively responds based on the first touch data and the second touch data.
In other words, in this case, the first touch data and the second touch data are not generated by touch operations of the same electromagnetic pen, the first touch data are not generated by erroneous touch during operation of the electromagnetic pen, and the first touch data and the second touch data are respectively transmitted to the operating system, so that simultaneous processing of the two touch data can be realized, and simultaneous responses of the smart device to the two touch data can be realized.
In another embodiment, if the second touch data is not received, the first touch data is transmitted to an operating system, so that the operating system responds based on the first touch data, and therefore the response of the infrared touch frame or the capacitive screen to other touch operations is realized during the non-electromagnetic pen touch operation.
In some examples, when the writing device is an electromagnetic pen, the second touch data further includes a touch pressure signal, and the operating system responds to the second touch data by: and the operating system displays writing handwriting on a display screen of the intelligent device according to the touch pressure signal and the second touch position signal, and determines the thickness of the writing handwriting according to the value of the touch pressure signal.
When the user writes and presses the pen point of the electromagnetic pen, the electromagnetic pen transmits the touch pressure signal to a second touch device, namely an electromagnetic screen, and the second touch device takes the touch pressure signal and a second touch position signal as contents in second touch data and sends the contents together to the touch data processing unit of the intelligent device for processing.
The response of the operating system of the intelligent device to the writing operation of the electromagnetic pen is usually according to the touch position of the electromagnetic pen, and the writing handwriting is correspondingly generated on the display panel of the intelligent device.
In some other examples, the first touch data further includes a touch point area value, and the operating system responds to the first touch data by:
and the operating system displays writing handwriting on a display screen of the intelligent device according to the touch point area value and the first touch position signal, and determines the thickness of the writing handwriting according to the size of the touch point area value.
The operating system responds based on the first touch data, and the response mode is determined based on a specific application scene, for example, when the application scene is a whiteboard, the response is to display writing handwriting according to the first touch data, and when the application scene is other, the response can be corresponding other touch operations, such as clicking, dragging, and an eraser function.
In this embodiment, the first touch device further detects an area of a touch point where a writing device (a finger, a writing pen, or other articles) contacts a display panel of the smart device, and the first touch device uses the area value of the touch point and the first touch position signal as contents in the first touch data, and sends the contents to the touch data processing unit of the smart device for processing, so that the thickness of the written handwriting can be determined according to the size of the touch pressure signal value in a writing scene, and the writing effect can be determined according to the requirements of a user.
Based on the data format of the first touch data, in an example, the first touch data is cached by sequentially storing the first touch data into a cache region from a start touch point of the first touch data, so that the caching progress can be determined more accurately.
After the preset trigger condition is met, the first touch data is transmitted to an operating system, where the method may be: and sequentially outputting the cached first touch data from the cache region, wherein the frequency of outputting the first touch data from the cache region is greater than the sampling frequency of the first touch device for the first touch data.
Since the first touch data may be continuously input from the first touch device to the touch data processing unit, the first touch data stored in the buffer needs to be quickly sent to the operating system for subsequent response to the fluency of the first touch data, and therefore, the frequency of the first touch data output from the buffer is greater than the sampling frequency of the first touch data. The sampling frequency of the first touch data is the frequency of reporting the first touch data by the first input device, for example, if the reporting frequency is 8ms to update one data, the output of the buffered first touch data from the buffer may be 6ms, 4ms, or 2 ms.
According to the embodiment of the application, the processed data is processed quickly, so that delay of a subsequent operating system responding to the first touch data is avoided.
In one example, the cache progress includes a cache time and/or a cache data amount, and the preset trigger condition includes:
whether the caching time reaches a first threshold value and/or whether the caching data amount reaches a second threshold value.
When the first touch data is generated in a scene where a user quickly clicks and lifts, if the first touch data is infrared touch data and the reporting frequency of the infrared touch data is, for example, 8ms to update one piece of data, the cache progress may be cache time, and the preset trigger condition may be to determine whether the cache time reaches a first threshold, specifically, the next step of determining whether the second touch data input by the second touch device is currently received may be performed by starting timing with a timer when the first touch data is stored in the cache region, and meeting the preset trigger condition when the timing time reaches the first threshold, for example, 50 ms. In some examples, the timer restarts timing each time a new start touch point of the first touch data is received.
In another example, if the first touch data is generated in another scenario with a large data volume, such as writing, the caching progress may be the cached data volume, and the preset trigger condition may be to determine whether the cached data volume reaches a second threshold. The specific implementation may be that the first touch data is stored in the buffer area, the counter starts to count, and when the amount of the buffered data reaches a second threshold, for example, 6 data, a preset trigger condition is met, and a next operation of determining whether the second touch data input by the second touch device is currently received is performed. In some examples, the counter restarts counting each time a starting touch point of new first touch data is received.
In other examples, in the determination process, the two cache schedules may also be determined simultaneously, and the relationship in the determination process may be "or", that is, any cache schedule satisfies the preset trigger condition, or "and", that is, when both cache schedules satisfy the preset trigger condition, the preset trigger condition is satisfied.
In the embodiment of the application, different caching schedules are set to meet different triggering conditions, and the separation of hand touch signals and pen touch signals in different application scenes is achieved.
In one example, determining whether the distance between the first touch position signal and the second touch position signal is less than a preset distance threshold comprises: and determining whether the distance between the initial touch point of the first touch position signal and the initial touch point of the second touch position signal is smaller than a preset distance threshold value, so that whether the first touch data is adjacent to the second touch data can be more accurately judged.
In the scenario shown in fig. 6, the touch device installed in the smart device 600 is a combination of an infrared touch frame and an electromagnetic screen, in the scenario shown in fig. 7, the touch device installed in the smart device 600 is a combination of a capacitive screen and an electromagnetic screen, and in fig. 6 and 7, the application program run by the smart device 600 is a writing application program, that is, a way in which an operating system of the smart device 600 responds to touch data generated by the infrared touch frame or the capacitive screen, is to display handwriting on the display panel.
In fig. 6, a user a and a user B perform touch operations at different portions of a display panel of the smart device 600 at the same time, where the user a performs writing operations using an electromagnetic pen, and the user B performs writing operations using hands.
As shown in fig. 8, for the scenario in fig. 6, the touch data processing unit in the embodiment of the present application performs the following operations for the touch data generated by writing by the user a:
step S801: receiving first infrared touch data a1 generated by the infrared touch frame, wherein the first infrared touch data a1 comprises a first infrared touch position signal and a first touch point area value.
The first infrared touch data a1 is touch data generated by the infrared touch frame in response to a writing operation of a user a, and in fig. 6, the first infrared touch data a1, the second infrared touch data b1 and the electromagnetic touch data a2 are schematic positions of touch data generated by a touch device in a display panel.
Step S802: and starting from the initial touch point a11, performing caching processing on the first infrared touch data a1, and recording the caching progress.
Step S803: when the caching progress meets the preset triggering condition, for example, the cached data amount reaches 8, which are a11 to a18, respectively, whether the electromagnetic touch data a2 generated by the electromagnetic screen is received is detected, wherein the electromagnetic touch data a2 includes an electromagnetic touch position signal and a touch pressure signal.
Step S804: when the electromagnetic touch data a2 is received, it is determined whether a distance between the position of the start touch point a11 and the position of the start touch point a21 of the electromagnetic touch data is less than a preset distance threshold.
As shown in fig. 6, since the first infrared touch data a1 and the electromagnetic touch data a2 are generated according to the writing operation of the user a, the position between the start touch point a11 of the first infrared touch data and the start touch point a21 of the electromagnetic touch data is close to be less than the preset distance threshold.
For example, if the coordinates of the start touch point of the first infrared touch data are (a11, a12) and the coordinates of the start touch point a2 of the electromagnetic touch data are (a21, a22), it may be determined whether the distance between the two coordinates is less than the preset distance threshold.
Step S805: when the distance between the initial touch point position a11 and the initial touch point position a21 of the electromagnetic touch data is smaller than the preset distance threshold, discarding the first infrared touch data a1, and transmitting the electromagnetic touch data to an operating system, so that the operating system displays writing on a display screen of the intelligent device, and determining the thickness of the writing according to the size of the touch pressure signal value.
As shown in fig. 9, the touch data processing unit in the embodiment of the present application performs the following operations on touch data generated by writing by the user B:
step S901: receiving second infrared touch data b1 generated by the infrared touch frame, wherein the second infrared touch data b1 comprises a second infrared touch position signal and a second touch point area value.
Wherein the second infrared touch data B1 is touch data generated by the infrared touch box responding to the writing operation of the user B.
Step S902: b11, starting from the initial touch point, performing buffer processing on the second infrared touch data b1, and recording the buffer progress.
Step S903: when the caching progress meets the preset triggering condition, detecting whether electromagnetic touch data a2 generated by the electromagnetic screen is received, wherein the electromagnetic touch data a2 comprises an electromagnetic touch position signal and a touch pressure signal.
Step S904: when the electromagnetic touch data a2 is received, it is determined whether the distance between the position of the start touch point b11 and the position of the start touch point a21 of the electromagnetic touch signal is less than a preset distance threshold.
As shown in fig. 6, since the second infrared touch data B1 and the electromagnetic touch data a2 are generated according to writing operations of the user B and the user a, respectively, a distance between the position of the start touch point B11 of the second infrared touch data and the position of the start touch point a21 of the electromagnetic touch data is far greater than the preset distance threshold.
Step S905: when the distance between the position of the initial touch point B11 and the position of the initial touch point a21 of the electromagnetic touch signal is larger than the preset distance threshold, the second infrared touch data B1 and the electromagnetic touch data a2 are respectively transmitted to an operating system, so that the operating system respectively displays writing scripts of a user A and a user B on a display screen of the intelligent device, the thickness of the writing script of the user A is determined according to the value of the touch pressure signal, and the thickness of the writing script of the user B is determined according to the value of the area of the second touch point.
Regarding the scenario in fig. 7, the touch data generated by the touch data processing unit in the embodiment of the present application for writing by the user a and the touch data generated by writing by the user B are substantially the same as the above-mentioned flows in fig. 8 and fig. 9, and the main difference is that the touch data generated by the capacitive screen in response to the writing by the user a is generated by touching the capacitive screen by mistake by a finger or a palm of the user a, and the position of the touch data is larger than the position of the touch data generated by the electromagnetic screen in response to the writing operation by the user a, so in the scenario in fig. 7, the preset distance threshold needs to be larger than the distance between the palm of the user and the pen tip of the electromagnetic pen.
According to the touch data processing method, when the electromagnetic pen is used for writing on the condition that the touch device of the user A is the combination of the infrared touch frame and the electromagnetic screen or the combination of the capacitive screen and the electromagnetic screen, touch data generated by the infrared touch frame or the capacitive screen responding to the writing and touch data generated by the electromagnetic screen responding to the writing are effectively separated, so that the writing of the user A cannot be broken, unsmooth and the like, meanwhile, the common response of the intelligent device to touch operations of the user A and the user B is realized, and the writing handwriting of the user B of the user A is displayed on the display panel at the same time.
Corresponding to the foregoing touch data processing method, an embodiment of the present application further provides a touch data processing apparatus, where the apparatus may be installed in any intelligent terminal, and may be embodied as a computer, a server, an analysis device, and the like. The touch data processing device provided by the embodiment of the application carries out cache processing on first touch data after the first touch data generated by the first touch device is received, detects whether second touch data are received or not after the cache progress meets a preset trigger condition, discards the first touch data when the second touch data are received and the distance between the second touch data and the first touch data is smaller than a preset distance threshold value or not, thereby effectively realizing the separation of two types of touch data generated simultaneously when a writing pen is used for touch operation, and avoiding the situations of broken writing lines, unsmooth writing and the like caused by error shielding of one type of touch data.
In an exemplary embodiment, as shown in fig. 10, the touch data processing apparatus 1000 includes:
a receiving module 1001, configured to receive first touch data generated by a first touch device, where the first touch data includes a first touch position signal;
the caching module 1002 is configured to perform caching processing on the first touch data, and record a caching progress;
the detecting module 1003 is configured to detect whether second touch data generated by a second touch device is received or not when the cache progress meets a preset trigger condition, where the second touch data includes a second touch position signal;
a determining module 1004, configured to determine whether a distance between the first touch position signal and the second touch position signal is smaller than a preset distance threshold when the second touch data is received;
a discarding module 1005, configured to discard the first touch data and transmit the second touch data to an operating system when the distance between the first touch position signal and the second touch position signal is smaller than the preset distance threshold, so that the operating system responds to the second touch data.
In an exemplary embodiment, the touch data processing apparatus 1000 further includes:
and the first sending module is used for sending the first touch data to an operating system when the second touch data is not received, so that the operating system responds to the first touch data.
In an exemplary embodiment, the touch data processing apparatus 1000 further includes:
the second sending module is configured to transmit the first touch data and the second touch data to an operating system respectively when a distance between the first touch position signal and the second touch position signal is greater than or equal to the preset distance threshold, so that the operating system responds to the first touch data and the second touch data respectively.
In an exemplary embodiment, the second touch data further includes a touch pressure signal, and the discarding module 1005 includes:
and the first writing unit is used for displaying writing handwriting on a display screen of the intelligent device by the operating system according to the touch pressure signal and the second touch position signal, and determining the thickness of the writing handwriting according to the value of the touch pressure signal.
In an exemplary embodiment, the first touch data further includes a touch point area value, and the first sending module includes:
and the second writing unit is used for displaying the writing handwriting on the display screen of the intelligent device by the operating system according to the touch point area value and the first touch position signal, and determining the thickness of the writing handwriting according to the size of the touch point area value.
In one exemplary embodiment, the first transmitting module further comprises:
and the cache output unit is used for sequentially outputting the cached first touch data from the cache region, wherein the frequency of outputting the first touch data from the cache region is greater than the sampling frequency of the first touch device for the first touch data.
In an exemplary embodiment, the cache progress includes a cache time and/or a cache data amount, and the preset trigger condition includes:
whether the caching time reaches a first threshold value and/or whether the caching data amount reaches a second threshold value.
In an exemplary embodiment, the caching module 1002 further includes:
and the buffer unit is used for sequentially storing the first touch data into a buffer area from the initial touch point of the first touch data.
In an exemplary embodiment, the determining module 1004 includes:
and the determining unit is used for determining whether the distance between the initial touch point of the first touch position signal and the initial touch point of the second touch position signal is smaller than a preset distance threshold value.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Corresponding to the touch data processing method, the embodiment of the application also provides an intelligent device applied to the touch data processing device, and the intelligent device can be a computer, a mobile phone, a tablet computer, an interactive intelligent tablet and the like. The intelligent device caches first touch data after receiving the first touch data generated by the first touch device, detects whether second touch data are received or not after the caching progress meets a preset triggering condition, discards the first touch data when the second touch data are received and the distance between the second touch data and the first touch data is smaller than a preset distance threshold value, thereby effectively realizing the separation of two types of touch data generated simultaneously when a writing pen is used for touch operation, and avoiding the situations of broken writing lines, unsmooth writing and the like caused by error shielding of one type of touch data.
As shown in fig. 11, fig. 11 is a block diagram illustrating a structure of an intelligent device according to an exemplary embodiment of the present application.
This smart machine includes: a processor 1200, a memory 1201, a display screen 1202 with touch functionality, an input device 1203, an output device 1204, and a communication device 1205. The number of the processors 1200 in the smart device may be one or more, and one processor 1200 is taken as an example in fig. 11. The number of the memories 1201 in the smart device may be one or more, and one memory 1201 is taken as an example in fig. 11. The processor 1200, the memory 1201, the display 1202, the input device 1203, the output device 1204, and the communication device 1205 of the smart device may be connected by a bus or other means, and fig. 11 illustrates an example of connection by a bus. In an embodiment, the smart device may be a computer, a mobile phone, a tablet computer, an interactive smart tablet, a PDA (Personal Digital Assistant), an e-book reader, a multimedia player, and the like. In the embodiment of the present application, an example in which an intelligent device is an intelligent interactive tablet is described.
The memory 1201 is used as a computer-readable storage medium, and can be used to store software programs, computer-executable programs, and modules, such as the resource calling method program described in any embodiment of the present application, and program instructions/modules corresponding to the resource calling method described in any embodiment of the present application (for example, the receiving module 1001, the caching module 1002, the detecting module 1003, the determining module 1004, the discarding module 1005, and the like in the touch data processing apparatus). The memory 1201 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; the storage data area may store data created according to use of the device, and the like. Further, the memory 1201 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 1201 may further include memory located remotely from the processor 1200, which may be connected to the devices through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The display screen 1202 may be a touch-enabled display screen, which may be a capacitive screen, an electromagnetic screen, or an infrared screen. Generally, the display screen 1202 is used for displaying data according to instructions of the processor 1200, and is also used for receiving touch operations applied to the display screen 1202 and sending corresponding signals to the processor 1200 or other devices. Optionally, when the display screen 1202 is an infrared screen, the display screen 1202 further includes an infrared touch frame, and the infrared touch frame is disposed around the display screen 1202, and may also be configured to receive an infrared signal and send the infrared signal to the processor 1200 or other devices. In other examples, the display screen 1202 may also be a display screen without touch functionality.
The communication means 1205 for establishing a communication connection with other devices may be a wired communication means and/or a wireless communication means.
The input means 1203 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the smart device, and may also be a camera for acquiring images and a sound pickup device for acquiring audio data. The output device 1204 may include an audio device such as a speaker. It should be noted that the specific composition of the input device 1203 and the output device 1204 can be set according to actual situations.
The processor 1200 executes various functional applications and data processing of the device by executing software programs, instructions, and modules stored in the memory 1201, that is, implements the touch data processing method described in any of the above embodiments.
Specifically, in an exemplary embodiment, when the processor 1200 executes one or more programs stored in the memory 1201, the following operations are implemented:
receiving first touch data generated by a first touch device, wherein the first touch data comprises a first touch position signal;
caching the first touch data, and recording the caching progress;
when the caching progress meets a preset trigger condition, detecting whether second touch data generated by a second touch device is received, wherein the second touch data comprises a second touch position signal;
when the second touch data is received, determining whether the distance between the first touch position signal and the second touch position signal is smaller than a preset distance threshold value;
when the distance between the first touch position signal and the second touch position signal is smaller than the preset distance threshold, discarding the first touch data, and transmitting the second touch data to an operating system, so that the operating system responds to the second touch data.
On the basis of the above embodiment, when the second touch data is not received, the first touch data is transmitted to an operating system, so that the operating system responds to the first touch data.
On the basis of the above embodiment, when the distance between the first touch position signal and the second touch position signal is greater than or equal to the preset distance threshold, the first touch data and the second touch data are respectively transmitted to an operating system, so that the operating system respectively responds to the first touch data and the second touch data.
On the basis of the above embodiment, the second touch data further includes a touch pressure signal, and the operating system responds to the second touch data by:
and the operating system displays writing handwriting on a display screen of the intelligent device according to the touch pressure signal and the second touch position signal, and determines the thickness of the writing handwriting according to the value of the touch pressure signal.
On the basis of the above embodiment, the first touch data further includes a touch point area value, and the operating system responds to the first touch data by:
and the operating system displays writing handwriting on a display screen of the intelligent device according to the touch point area value and the first touch position signal, and determines the thickness of the writing handwriting according to the size of the touch point area value.
On the basis of the above embodiment, transmitting the first touch data to an operating system includes:
and sequentially outputting the cached first touch data from the cache region, wherein the frequency of outputting the first touch data from the cache region is greater than the sampling frequency of the first touch device for the first touch data.
On the basis of the above embodiment, the cache progress includes cache time and/or cache data amount, and the preset trigger condition includes:
whether the caching time reaches a first threshold value and/or whether the caching data amount reaches a second threshold value.
On the basis of the above embodiment, performing cache processing on the first touch data includes:
and sequentially storing the first touch data into a buffer area from the initial touch point of the first touch data.
On the basis of the foregoing embodiment, determining whether the distance between the first touch position signal and the second touch position signal is smaller than a preset distance threshold includes:
determining whether a distance between a start touch point of the first touch position signal and a start touch point of the second touch position signal is less than a preset distance threshold.
The implementation process of the functions and actions of each component in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the apparatus embodiment, since it basically corresponds to the method embodiment, reference may be made to the partial description of the method embodiment for relevant points. The above-described device embodiments are merely illustrative, wherein the components described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution. One of ordinary skill in the art can understand and implement it without inventive effort. The intelligent device provided by the above can be used to execute the resource calling method provided by any of the above embodiments, and has corresponding functions and beneficial effects. The implementation process of the function and the action of each component in the device is specifically described in the implementation process of the corresponding step in the resource calling method, and is not described herein again.
The present invention also provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the touch data processing method described in any of the above embodiments.
The present invention may take the form of a computer program product embodied on one or more storage media including, but not limited to, disk storage, CD-ROM, optical storage, and the like, having program code embodied therein. Computer readable storage media, which include both non-transitory and non-transitory, removable and non-removable media, may implement any method or technology for storage of information. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of the storage medium of the computer include, but are not limited to: phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium may be used to store information that may be accessed by a computing device.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the embodiments of the application following, in general, the principles of the embodiments of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the embodiments of the application pertain. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the embodiments of the application being indicated by the following claims.
It is to be understood that the embodiments of the present application are not limited to the precise arrangements described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the embodiments of the present application is limited only by the following claims.
The above-mentioned embodiments only express a few embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for those skilled in the art, variations and modifications can be made without departing from the concept of the embodiments of the present application, and these embodiments are within the scope of the present application.

Claims (11)

1. A method of touch data processing, the method comprising:
receiving first touch data generated by a first touch device, wherein the first touch data comprises a first touch position signal;
caching the first touch data, and recording the caching progress;
when the caching progress meets a preset trigger condition, detecting whether second touch data generated by a second touch device is received, wherein the second touch data comprises a second touch position signal;
when the second touch data is received, determining whether the distance between the first touch position signal and the second touch position signal is smaller than a preset distance threshold value; the preset distance threshold comprises a straight line threshold and/or a coordinate threshold;
when the distance between the first touch position signal and the second touch position signal is smaller than the preset distance threshold, discarding the first touch data, and transmitting the second touch data to an operating system, so that the operating system responds to the second touch data;
when the distance between the first touch position signal and the second touch position signal is larger than or equal to the preset distance threshold, the first touch data and the second touch data are respectively transmitted to an operating system, and the operating system respectively responds to the first touch data and the second touch data.
2. The touch data processing method according to claim 1, wherein:
and when the second touch data is not received, transmitting the first touch data to an operating system, so that the operating system responds to the first touch data.
3. The touch data processing method of claim 1, wherein the second touch data further comprises a touch pressure signal, the operating system responding to the second touch data by:
and the operating system displays writing handwriting on a display screen of the intelligent device according to the touch pressure signal and the second touch position signal, and determines the thickness of the writing handwriting according to the value of the touch pressure signal.
4. The method of claim 1, wherein the first touch data further comprises a touch point area value, and wherein the operating system responds to the first touch data by:
and the operating system displays writing handwriting on a display screen of the intelligent device according to the touch point area value and the first touch position signal, and determines the thickness of the writing handwriting according to the size of the touch point area value.
5. The method of claim 1, wherein transmitting the first touch data to an operating system comprises:
and sequentially outputting the cached first touch data from a cache region, wherein the frequency of outputting the first touch data from the cache region is greater than the sampling frequency of the first touch device for the first touch data.
6. The touch data processing method according to claim 1, wherein the cache progress includes cache time and/or cache data amount, and the preset trigger condition includes:
whether the caching time reaches a first threshold value and/or whether the caching data amount reaches a second threshold value.
7. The touch data processing method according to claim 1, wherein the buffering the first touch data includes:
and sequentially storing the first touch data into a buffer area from the initial touch point of the first touch data.
8. The method of claim 1, wherein determining whether the distance between the first touch position signal and the second touch position signal is less than a preset distance threshold comprises:
determining whether a distance between a start touch point of the first touch position signal and a start touch point of the second touch position signal is less than a preset distance threshold.
9. A touch data processing apparatus, characterized in that the apparatus comprises:
the touch control device comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving first touch data generated by a first touch control device, and the first touch data comprises a first touch position signal;
the cache module is used for caching the first touch data and recording the cache progress;
the detection module is used for detecting whether second touch data generated by a second touch device is received or not when the caching progress meets a preset trigger condition, wherein the second touch data comprises a second touch position signal;
the judging module is used for determining whether the distance between the first touch position signal and the second touch position signal is smaller than a preset distance threshold value or not when the second touch data is received; the preset distance threshold comprises a straight line threshold and/or a coordinate threshold;
and the discarding module is used for discarding the first touch data and transmitting the second touch data to an operating system when the distance between the first touch position signal and the second touch position signal is smaller than the preset distance threshold, so that the operating system responds to the second touch data.
10. A smart device, comprising:
at least one memory and at least one processor;
the memory for storing one or more programs;
when executed by the at least one processor, cause the at least one processor to implement a touch data processing method as claimed in any one of claims 1 to 8.
11. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 8.
CN201911420137.1A 2019-12-31 2019-12-31 Touch data processing method and device, intelligent equipment and storage medium Active CN111208917B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201911420137.1A CN111208917B (en) 2019-12-31 2019-12-31 Touch data processing method and device, intelligent equipment and storage medium
PCT/CN2020/139242 WO2021136080A1 (en) 2019-12-31 2020-12-25 Touch data processing method and apparatus, intelligent device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911420137.1A CN111208917B (en) 2019-12-31 2019-12-31 Touch data processing method and device, intelligent equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111208917A CN111208917A (en) 2020-05-29
CN111208917B true CN111208917B (en) 2022-04-08

Family

ID=70789466

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911420137.1A Active CN111208917B (en) 2019-12-31 2019-12-31 Touch data processing method and device, intelligent equipment and storage medium

Country Status (2)

Country Link
CN (1) CN111208917B (en)
WO (1) WO2021136080A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111208917B (en) * 2019-12-31 2022-04-08 广州视源电子科技股份有限公司 Touch data processing method and device, intelligent equipment and storage medium
CN111831138B (en) * 2020-06-22 2024-03-15 歌尔科技有限公司 Signal identification method and device of wireless earphone and wireless earphone
CN117859110A (en) * 2021-06-30 2024-04-09 海信视像科技股份有限公司 Display device and multi-finger touch control display method
CN113552976B (en) * 2021-07-31 2024-04-02 深圳市华鼎星科技有限公司 Control system and method of electromagnetic touch display device
CN115220638A (en) * 2022-06-29 2022-10-21 长沙朗源电子科技有限公司 Method, device, equipment and storage medium for separating hand and pen of electronic whiteboard

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018233136A1 (en) * 2017-06-19 2018-12-27 广州视源电子科技股份有限公司 Method for responding to touch, human-machine interaction device, chip and intelligent device
CN110083272A (en) * 2019-05-06 2019-08-02 深圳市康冠商用科技有限公司 A kind of touch localization method and relevant apparatus of infrared touch frame

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100459230B1 (en) * 2002-11-14 2004-12-03 엘지.필립스 엘시디 주식회사 touch panel for display device
CN201247458Y (en) * 2008-09-04 2009-05-27 汉王科技股份有限公司 Display device with double-mode input function
CN102314274B (en) * 2011-06-30 2014-12-17 汉王科技股份有限公司 Bimodule input device and method for sending data by using same
CN102541384B (en) * 2012-02-10 2015-02-11 福建华映显示科技有限公司 Dual-mode touch control sensor
KR102066017B1 (en) * 2012-05-11 2020-01-14 삼성전자주식회사 Coordinate indicating apparatus and coordinate measuring apparaturs which measures input position of coordinate indicating apparatus
US20140247238A1 (en) * 2013-03-01 2014-09-04 Barnesandnoble.Com Llc System and method for dual mode stylus detection
US20140267150A1 (en) * 2013-03-14 2014-09-18 Lg Electronics Inc. Apparatus and method for detecting position
CN103207468B (en) * 2013-03-19 2016-09-07 京东方科技集团股份有限公司 A kind of touch control type LCD device
CN103279273B (en) * 2013-06-19 2016-08-10 广州视源电子科技股份有限公司 A kind of electromagnetism and the touch-control changing method of capacitive dual-mode touch screen
KR102209910B1 (en) * 2013-07-04 2021-02-01 삼성전자주식회사 Coordinate measuring apparaturs which measures input position of coordinate indicating apparatus and method for controlling thereof
US10613673B2 (en) * 2016-08-25 2020-04-07 Parade Technologies, Ltd. Signal conditioning on touch-enabled devices using 3D touch
CN107291277B (en) * 2017-08-14 2019-09-03 广州视源电子科技股份有限公司 A kind of method, apparatus of false-touch prevention, equipment and storage medium
CN107704126A (en) * 2017-09-22 2018-02-16 广州视源电子科技股份有限公司 A kind of separation method of touch data, device, equipment and storage medium
CN109144309B (en) * 2018-07-18 2020-11-10 广州视源电子科技股份有限公司 Touch control method and device, storage medium and terminal equipment
CN111208917B (en) * 2019-12-31 2022-04-08 广州视源电子科技股份有限公司 Touch data processing method and device, intelligent equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018233136A1 (en) * 2017-06-19 2018-12-27 广州视源电子科技股份有限公司 Method for responding to touch, human-machine interaction device, chip and intelligent device
CN110083272A (en) * 2019-05-06 2019-08-02 深圳市康冠商用科技有限公司 A kind of touch localization method and relevant apparatus of infrared touch frame

Also Published As

Publication number Publication date
CN111208917A (en) 2020-05-29
WO2021136080A1 (en) 2021-07-08

Similar Documents

Publication Publication Date Title
CN111208917B (en) Touch data processing method and device, intelligent equipment and storage medium
CN105573538B (en) Sliding broken line compensation method and electronic equipment
US20150268789A1 (en) Method for preventing accidentally triggering edge swipe gesture and gesture triggering
CN107145256B (en) Zero touch height implementation method, device and system
CN109753179B (en) User operation instruction processing method and handwriting reading equipment
WO2019033655A1 (en) Method and apparatus for mistouch prevention, device, and storage medium
CN106415472A (en) Gesture control method, device, terminal apparatus and storage medium
CN110287931A (en) Touch coordinate determines method, apparatus, terminal and storage medium
CN108733302B (en) Gesture triggering method
CN110083418A (en) The processing method, equipment and computer readable storage medium of picture in information flow
CN106325726B (en) Touch interaction method
CN114690853A (en) Interaction method and interaction panel
US20240201843A1 (en) Method for displaying handwritten or drawn content and related device
US10394442B2 (en) Adjustment of user interface elements based on user accuracy and content consumption
CN111273809B (en) Data acquisition method and device, electronic equipment and storage medium
CN106775393B (en) The touch operation control method and device of terminal
CN109885233B (en) Screen content identification method and device, electronic equipment and storage medium
CN113934323B (en) Multi-point display method and device based on intelligent blackboard and terminal equipment
CN114690967A (en) Touch operation processing method and device, interactive panel and storage medium
CN114637422A (en) False touch prevention method and device, electronic equipment and computer readable medium
CN105760092B (en) A kind of application control method, apparatus and electronic equipment for touch panel device
CN113608662A (en) Touch response method and device, terminal equipment and storage medium
CN114690931A (en) False touch prevention method and device based on contact tracking, interactive flat plate and storage medium
WO2023039797A1 (en) Method and apparatus for identifying touch operation
CN114578956A (en) Equipment control method and device, virtual wearable equipment and storage 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
GR01 Patent grant
GR01 Patent grant