CN113204293B - Touch sensing processing method, touch sensing processing device, medium and electronic equipment - Google Patents

Touch sensing processing method, touch sensing processing device, medium and electronic equipment Download PDF

Info

Publication number
CN113204293B
CN113204293B CN202110438102.1A CN202110438102A CN113204293B CN 113204293 B CN113204293 B CN 113204293B CN 202110438102 A CN202110438102 A CN 202110438102A CN 113204293 B CN113204293 B CN 113204293B
Authority
CN
China
Prior art keywords
touch
event
points
distance threshold
point
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
CN202110438102.1A
Other languages
Chinese (zh)
Other versions
CN113204293A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202110438102.1A priority Critical patent/CN113204293B/en
Publication of CN113204293A publication Critical patent/CN113204293A/en
Application granted granted Critical
Publication of CN113204293B publication Critical patent/CN113204293B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/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/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/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/0418Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
    • G06F3/04186Touch location disambiguation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/041Indexing scheme relating to G06F3/041 - G06F3/045
    • G06F2203/04104Multi-touch detection in digitiser, i.e. details about the simultaneous detection of a plurality of touching locations, e.g. multiple fingers or pen and finger

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 disclosure provides a touch sensing processing method, a touch sensing processing device, a computer readable storage medium and electronic equipment, and relates to the technical field of computers. The touch sensing processing method comprises the following steps: determining a distance threshold according to the number of touch points in the historical touch event; acquiring the position of each touch point in the current touch event; and merging the two touch points into one touch point when detecting that the distance between the two touch points in the current touch event is smaller than the distance threshold value. The method and the device can effectively and accurately process the points of the touch points.

Description

Touch sensing processing method, touch sensing processing device, medium and electronic equipment
Technical Field
The disclosure relates to the field of computer technology, and in particular, to a touch sensing processing method, a touch sensing processing device, a computer readable storage medium and an electronic device.
Background
With rapid development and wide use of terminal devices, touch screens have received a great deal of attention as important media for connecting users to perform interactive operations with terminal devices. The basic principle of the touch screen is capacitive sensing, and when a human body performs touch operation on the surface of the touch screen through fingers or other objects, the touch screen can identify information, such as the number and the position, of the fingers or the touch objects currently performing the touch operation through the change of sensing data. Particularly, along with the gradual increase of the requirements of users on terminal equipment, the touch screen can simultaneously identify a plurality of touch points so as to meet the requirements of the users in the application scene of multi-finger touch operation. However, in this case, the touch screen may misidentify the number of touch points, for example, when the user uses one finger to perform an operation, the touch points are considered to be two touch points, and thus, the touch points need to be properly combined to improve the accuracy of the touch operation of the user and the use experience of the user.
Disclosure of Invention
The disclosure provides a touch sensing processing method, a touch sensing processing device, a computer readable storage medium and an electronic device, so as to at least improve the situation that the touch points cannot be effectively combined in the prior art to a certain extent.
Other features and advantages of the present disclosure will be apparent from the following detailed description, or may be learned in part by the practice of the disclosure.
According to a first aspect of the present disclosure, there is provided a touch sensing processing method, including: determining a distance threshold according to the number of touch points in the historical touch event; acquiring the position of each touch point in the current touch event; and merging the two touch points into one touch point when detecting that the distance between the two touch points in the current touch event is smaller than the distance threshold value.
According to a second aspect of the present disclosure, there is provided a touch-sensitive processing apparatus including: the distance threshold determining module is used for determining a distance threshold according to the number of touch points in the historical touch event; the touch point position acquisition module is used for acquiring the position of each touch point in the current touch event; and the touch point merging module is used for merging the two touch points into one touch point when detecting that the distance between the two touch points in the current touch event is smaller than the distance threshold value.
According to a third aspect of the present disclosure, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the touch-sensitive processing method of the first aspect and possible implementations thereof.
According to a fourth aspect of the present disclosure, there is provided an electronic device comprising: a processor; and the memory is used for storing executable instructions of the processor. Wherein the processor is configured to perform the touch-sensitive processing method of the first aspect and possible implementations thereof via execution of the executable instructions.
The technical scheme of the present disclosure has the following beneficial effects:
determining a distance threshold according to the number of touch points in the historical touch event; acquiring the position of each touch point in the current touch event; when the distance between two touch points in the current touch event is detected to be smaller than the distance threshold value, the two touch points are combined into one touch point. On the one hand, the present exemplary embodiment may determine, according to the determination result of the distance between the touch points and the distance threshold in the current touch event, whether to merge the two touch points, so as to avoid the situation of abnormal touch operation due to the misidentification of the number of touch points by the touch screen in a reasonable and effective manner, and improve the user experience; on the other hand, the distance threshold is determined according to the number of touch points in the historical touch event, variability exists, when the number of touch points in the historical touch event changes, different distance thresholds can be determined, namely whether the distance between two touch points in the current touch event meets the combination requirement of the touch points or not is not fixed, self-adaptive adjustment can be performed according to the condition of touch operation in practical application, and the method has higher flexibility, and reliability and accuracy of touch point combination.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure. It will be apparent to those of ordinary skill in the art that the drawings in the following description are merely examples of the disclosure and that other drawings may be derived from them without undue effort.
Fig. 1 shows a structural diagram of an electronic device in the present exemplary embodiment;
fig. 2 shows a flowchart of a touch sensing processing method in the present exemplary embodiment;
fig. 3 illustrates a system structure for transmitting an interrupt signal in a touch event processing method according to the present exemplary embodiment;
fig. 4 shows a sub-flowchart of a touch sensing processing method in the present exemplary embodiment;
fig. 5 shows a schematic diagram of sensing data of a touch area in the present exemplary embodiment;
fig. 6 shows a sub-flowchart of another touch sensing processing method in the present exemplary embodiment;
fig. 7 shows a flowchart of another touch sensing processing method in the present exemplary embodiment;
fig. 8 shows a structural diagram of a touch-sensitive processing apparatus in the present exemplary embodiment.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the present disclosure. However, those skilled in the art will recognize that the aspects of the present disclosure may be practiced with one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software or in one or more hardware modules or integrated circuits or in different networks and/or processor devices and/or microcontroller devices.
Exemplary embodiments of the present disclosure provide an electronic device for implementing a touch-sensitive processing method, the electronic device including at least a processor and a memory, the memory for storing executable instructions of the processor, the processor configured to perform the touch-sensitive processing method via execution of the executable instructions.
The configuration of the above-described electronic device will be exemplarily described below taking the mobile terminal 100 in fig. 1 as an example. It will be appreciated by those skilled in the art that the configuration of fig. 1 can also be applied to stationary type devices in addition to components specifically for mobile purposes.
As shown in fig. 1, the mobile terminal 100 may specifically include: processor 110, internal memory 121, external memory interface 122, USB (Universal Serial Bus ) interface 130, charge management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 171, receiver 172, microphone 173, headset interface 174, sensor module 180, display screen 190, camera module 191, indicator 192, motor 193, keys 194, and SIM (Subscriber Identification Module, subscriber identity module) card interface 195, and the like.
The processor 110 may include one or more processing units, such as: the processor 110 may include an AP (Application Processor ), modem processor, GPU (Graphics Processing Unit, graphics processor), ISP (Image Signal Processor ), controller, encoder, decoder, DSP (Digital Signal Processor ), baseband processor and/or NPU (Neural-Network Processing Unit, neural network processor), and the like. An encoder may encode (i.e., compress) image or video data; the decoder may decode (i.e., decompress) the code stream data of the image or video to restore the image or video data.
In some embodiments, the processor 110 may include one or more interfaces through which connections are made with other components of the mobile terminal 100.
The internal memory 121 may be used to store computer-executable program code that includes instructions. The internal memory 121 may include volatile memory, nonvolatile memory, and the like. The processor 110 performs various functional applications of the mobile terminal 100 and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
The external memory interface 122 may be used to connect an external memory, such as a Micro SD card, to enable expansion of the memory capabilities of the mobile terminal 100. The external memory communicates with the processor 110 through an external memory interface 122 to implement data storage functions, such as storing files of music, video, etc.
The USB interface 130 is an interface conforming to the USB standard specification, and may be used to connect a charger to charge the mobile terminal 100, or may be connected to a headset or other electronic device.
The charge management module 140 is configured to receive a charge input from a charger. The charging management module 140 can also supply power to the device through the power management module 141 while charging the battery 142; the power management module 141 may also monitor the status of the battery.
The wireless communication function of the mobile terminal 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like. The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. The mobile communication module 150 may provide a solution including 2G/3G/4G/5G wireless communication applied to the mobile terminal 100. The wireless communication module 160 may provide wireless communication solutions including WLAN (Wireless Local Area Networks, wireless local area network) (e.g., wi-Fi (Wireless Fidelity, wireless fidelity) network), BT (Bluetooth), GNSS (Global Navigation Satellite System ), FM (Frequency Modulation, frequency modulation), NFC (Near Field Communication, short range wireless communication technology), IR (Infrared technology), etc. applied on the mobile terminal 100. The mobile terminal 100 may implement a display function through a GPU, a display screen 190, an AP, and the like, and display a user interface.
The mobile terminal 100 may implement a photographing function through an ISP, a camera module 191, an encoder, a decoder, a GPU, a display screen 190, an AP, etc., and may implement an audio function through an audio module 170, a speaker 171, a receiver 172, a microphone 173, an earphone interface 174, an AP, etc.
The sensor module 180 may include a depth sensor 1801, a pressure sensor 1802, a gyroscope sensor 1803, a barometric pressure sensor 1804, etc. to implement different sensing functionality.
The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc. The motor 193 may generate vibration cues, may also be used for touch vibration feedback, and the like. The keys 194 include a power-on key, a volume key, etc.
The mobile terminal 100 may support one or more SIM card interfaces 195 for interfacing with a SIM card to perform functions such as telephony and data communications.
The exemplary embodiments of the present disclosure provide a touch sensing processing method, which may be applied to a touch terminal that may include a touch device such as a touch screen or a touch pad. The touch terminal may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, a palm computer, a personal digital assistant (Personal Digital Assistant, PDA), a portable media player (Protable Media Player, PMP), an electronic reader, a vehicle-mounted device, a navigation device, a wearable device, and the like, which include a touch device. The touch element is arranged in the terminal equipment and can be used for realizing the interactive operation between the user and the terminal equipment. The present exemplary embodiment will be explained later taking a touch screen as an example.
A touch screen, also called a "touch screen" or "touch panel", is an inductive liquid crystal display device that can be used to receive user input signals. According to the operating principle of the touch screen and the transmission medium, the touch screen can be divided into various types, including a resistive touch screen, a capacitive touch screen, an infrared touch screen, a surface acoustic wave touch screen and the like; among them, the capacitive touch screen is one of the most widely used types of touch screens in terminal devices. In the present exemplary embodiment, the touch screen may be a capacitive touch screen, which may operate using a capacitive sensing principle of the touch screen.
Fig. 2 shows an exemplary flow of the touch sensing processing method, including the following steps S210 to S230:
in step S210, a distance threshold is determined according to the number of touch points in the historical touch event.
The touch event refers to an operation event that a user makes contact with the touch screen, for example, an event that the user performs operations such as clicking, pressing, moving, or long pressing on the touch screen, and the user may perform a touch event with the touch screen through a specific object, for example, a finger, a stylus, or other touchable objects, so as to implement a corresponding function. The touch event may generally include various information such as a pressing force of a user pressing the touch screen by a finger, the number of fingers used for pressing, a pressing area of the finger, sensing data generated by the pressing area, and a pressing time.
When a user performs a touch operation in the touch screen, the touch screen may continuously perform data acquisition on the touch operation of the user, where the historical touch event refers to a touch event before the current touch event, specifically, may be a touch event at any time before the touch event corresponding to the current time, for example, the user performs a press operation for 2 seconds on the touch screen, the current touch event is a press operation corresponding to 2 seconds, then the press operation corresponding to 1 second may be a historical touch event, the press operation corresponding to 1.5 seconds may also be a historical touch event, and the specific time granularity division may be finer. In addition to determining the historical touch event according to the time dimension, the historical touch event can also be determined according to the collection frequency of the touch operation by the touch screen, for example, the touch screen periodically collects the touch event, the current period corresponds to the current touch event, the previous period corresponds to the historical touch event, and so on.
The touch point is a point reflecting which position or area of the touch screen is operated by the user, and in fact, the touch point can be regarded as a sensing area where the system can receive touch operation, for example, when the user uses two fingers to operate, the touch point can be a contact point between the two fingers and the touch screen, and the number of touch points is usually 2. In practical application, due to different pressing modes, force, angles and other parameters when a user performs pressing operation, two sensing areas may occur in one finger, for example, when the user performs touch operation on the touch screen by using the thumb with the abdomen pressed flat, the user may be identified as two or more touch points due to the large abdomen area, and specifically, the touch screen may be determined according to the sensing data of the actually received sensing areas.
The distance threshold refers to a criterion for determining whether or not merging is required between different touch points, and in this exemplary embodiment, the distance threshold may be determined by historical touch events. In different application scenes, the distance threshold value is adaptively adjusted, so that more effective point strategy is ensured.
In this exemplary embodiment, the touch screen may have its own memory and processor, and when the touch screen receives a touch event input by a user, as shown in fig. 3, the touch screen 310 will typically periodically trigger an interrupt signal to make the processor 320 of the touch terminal read the touch event through a specific pin, such as an INT pin or I2C (Inter-Integrated Circuit, two-wire serial bus)/SPI (Serial Peripheral Interface ), that is, the exemplary embodiment may receive the touch event by the touch screen system and report the touch event to the touch terminal for an information processing procedure.
Step S220, the position of each touch point in the current touch event is obtained.
Further, the present exemplary embodiment may acquire the position of each touch point in the current touch event, and in consideration of the fact that the touch point is a point capable of characterizing the sensing area where the touch event currently occurs, the touch point may be determined in the sensing area first, and then the position of the touch point may be acquired. The location of the touch point may be the coordinates of the touch point on the touch screen or the coordinate location on the inductive display interface, such as in an interface made up of a receive channel and a transmit channel, etc. In this exemplary embodiment, the touch terminal may directly read the position of the touch point from the touch screen system, or may return to the touch terminal after the touch screen system determines the position of the touch point.
In an exemplary embodiment, as shown in fig. 4, the touch sensing processing method may further include the following steps:
step S410, a plurality of touch areas in a current touch event are acquired;
in step S420, a touch point is determined in each touch area, and the position of the touch point is acquired.
Generally, when a user performs an operation on a touch screen, the touch screen generates a corresponding sensing area according to a touch object, for example, when the user performs the operation with two fingers, the two fingers can generate two or more sensing areas corresponding to each other, the sensing areas can include sensing data, for example, sensing capacitance values generated by pressing the corresponding sensing areas, and the sensing capacitance values at different positions are different, and the sensing areas are the touch areas. In the present exemplary embodiment, one touch point may be determined in each touch area to characterize the current touch area. Specifically, the touch point of each touch area may be determined in various manners, for example, the touch point may be any point in the sensing area, a certain point calculated according to the sensing data of each point in the sensing area, a point in the sensing area where the sensing data is at a peak, and the like, and in addition, the manner of determining the touch point of each touch area may be the same or different, which is not particularly limited in the present disclosure.
Specifically, in an exemplary embodiment, in the step S420, determining a touch point in each touch area may include:
the point with the highest sensing signal value in each touch area is determined as the touch point of the touch area.
The sensing signal value refers to sensing data, such as a sensing capacitance value, generated after the touch screen receives a touch event input by a user, and a point with the highest sensing signal value is the point with the highest sensing capacitance value. For example, fig. 5 shows a schematic diagram of sensing capacitance values of different sensing points in a list formed by a transmitting channel and a receiving channel acquired by a touch screen after the touch screen receives a touch event input by a user, fig. 5 shows that the sensing points included in a touch area S and a touch area P have different sensing capacitance values, and the sensing capacitance values of other areas are basically 0, so that it can be considered that a user in other areas does not perform a touch operation.
In step S230, when the distance between the two touch points in the current touch event is detected to be smaller than the distance threshold, the two touch points are combined into one touch point.
In other words, it may be considered that whether to merge the touch areas corresponding to the two touch points according to the distance between the two touch points, so that the touch terminal considers that the touch terminal is currently a touch area, for example, when the user uses the thumb to press the abdomen, the two touch points are detected, but in practice, the user only needs to perform single-finger touch, at this time, based on the above-mentioned determination procedure of combining the touch points, if the combination requirement is met, the two touch points may be combined into one touch point, so as to ensure that the touch terminal can accurately recognize the single-finger operation of the user.
Specifically, after the two touch areas are combined into one touch area, the touch point corresponding to the touch area may be determined in various manners, for example, one of the touch points before being combined may be adopted as a combined touch point, or two touch points before being combined may be adopted to perform calculation, determine a combined touch point, and the like, which is not specifically limited in the disclosure.
In addition, in the present exemplary embodiment, the distance between two touch points in the current touch event may be determined by first acquiring a first distance of the two touch points in a first axial direction and a second distance in a second axial direction, wherein the first axial direction is perpendicular to the second axial direction, for example, the first axial direction may be a horizontal direction, the second axial direction may be a vertical direction, and further, calculating based on the pythagorean theorem according to the first distance and the second distance to determine the straight path distance of the two touch points. In addition, other ways of calculating the distance between two touch points should also fall within the scope of the present disclosure.
In an exemplary embodiment, the step S230 may include the following steps:
and combining the plurality of touch points into one touch point when detecting that the distance between any two touch points in the plurality of touch points in the current touch event is smaller than a distance threshold value.
In practical application, a situation that a plurality of touch points are detected may occur, whether to combine the plurality of touch points is determined, and one touch point is determined, in this exemplary embodiment, distance judgment of every two touch points may be performed on the plurality of touch points, when the distances between any two touch points are smaller than a distance threshold, it is indicated that the current plurality of touch points are very close, and the probability of the current plurality of touch points belongs to the plurality of touch points determined by misjudgment, so that the current plurality of touch points may be combined into one touch point.
In summary, in the present exemplary embodiment, a distance threshold is determined according to the number of touch points in the historical touch event; acquiring the position of each touch point in the current touch event; when the distance between two touch points in the current touch event is detected to be smaller than the distance threshold value, the two touch points are combined into one touch point. On the one hand, the present exemplary embodiment may determine, according to the determination result of the distance between the touch points and the distance threshold in the current touch event, whether to merge the two touch points, so as to avoid the situation of abnormal touch operation due to the misidentification of the number of touch points by the touch screen in a reasonable and effective manner, and improve the user experience; on the other hand, the distance threshold is determined according to the number of touch points in the historical touch event, variability exists, when the number of touch points in the historical touch event changes, different distance thresholds can be determined, namely whether the distance between two touch points in the current touch event meets the combination requirement of the touch points or not is not fixed, self-adaptive adjustment can be performed according to the condition of touch operation in practical application, and the method has higher flexibility, and reliability and accuracy of touch point combination.
In an exemplary embodiment, the step S210 may include:
when the number of touch points in the historical touch event is smaller than a preset number threshold, determining a distance threshold as a first distance threshold;
when the number of touch points in the historical touch event is greater than or equal to a preset number threshold, determining a distance threshold as a second distance threshold;
wherein the first distance threshold is less than the second distance threshold.
The present exemplary embodiment may be preset with a preset number threshold, and is used to determine whether the number of touch points in the historical touch event is excessive, so as to determine which distance threshold is adopted by the current touch point, so as to determine whether to perform a point judgment. The preset number threshold may be set in a user-defined manner according to actual needs or needs of application scenarios, for example, if in some social application programs, a scenario requiring a user to perform touch operations with three or more fingers is rarely involved, so that the preset number threshold may be set to 3, in a game application program, a scenario involving a user to perform touch operations with multiple fingers may be involved, the preset number threshold may be set to 4, and the like, which is not specifically limited in the present disclosure.
When the number of touch points in the historical touch event is greater than the preset number threshold, it is considered that the situation that the number of touch points is wrongly identified is likely to occur, for example, when the preset number threshold is set to be 4, when the number of touch points is determined to be 4, the user may use four fingers to operate, or the user uses three fingers to operate and is wrongly identified as four touch points, and at the moment, the touch points are more prone to be subjected to point processing, so that a larger second distance threshold can be determined; when the number of touch points in the historical touch event is smaller than the preset number threshold, the accuracy of the identification result of the current number of touch points is considered to be higher, so that a smaller first distance threshold can be set, namely, when the fingers used by the user are very close, the combination of the touch points is considered. The first distance threshold and the second distance threshold may be set in a customized manner according to actual needs, for example, the first distance threshold may be 5mm (millimeters) or 10 pixel units, the second distance threshold may be 10mm or 20 pixel units, and the disclosure is not limited in this way. Based on this, the present exemplary embodiment may implement, for different application scenarios, setting different distance thresholds in a targeted and flexible manner, so as to determine whether to perform a point on a touch point.
In an exemplary embodiment, as shown in fig. 6, the history touch event includes a last touch event, and the touch sensing processing method may include the steps of:
step S610, recording the number of touch points of the last touch event through a preset variable;
in step S620, when the current touch event is ended, the preset variable is updated according to the number of touch points in the current touch event.
The present exemplary embodiment may set a preset variable for counting the number of touch points of the last touch event, for example, a preset variable Mlast. The preset variable may be updated following a change in the touch event time attribute, for example, if the user performs a pressing operation for 2 seconds or more, the number of touch points corresponding to the touch event at 1 st second is 3, the number of touch points corresponding to the touch event at 2 nd second is 2, when the 2 nd second touch event is the current touch event, the preset variable mlast=3, when the 2 nd second touch event ends to enter the next current touch event, and when the 2 nd second touch event becomes the history touch event, the preset variable Mlast will be updated to 2.
In particular, in an exemplary embodiment, the touch sensing processing method may further include the steps of:
when the current touch event is a lift event, the preset variable is set to 0.
If the current touch event is a lifting event, for example, the current touch event is lifted after the user performs the pressing operation, and if the current touch event corresponds to the user performing the lifting operation, it is considered that whether the touch point of the touch event is at the point is not required to be judged, and because the preset variable can be set to 0, the update of the preset variable can be performed next time.
Fig. 7 is a flowchart illustrating another touch sensing processing method in the present exemplary embodiment, which may specifically include the following steps:
step S702, obtaining a current touch event;
step S704, judging whether the current touch event is a lifting event;
step S706, if the current touch event is a lift event, the preset variable is set to 0;
step S708, if the current touch event is not a lifting event, recording the number of touch points of the last touch event through a preset variable;
step S710, judging whether the number of touch points in the last touch event is smaller than a preset number threshold;
step S712, if the number of touch points in the last touch event is smaller than a preset number threshold, determining the distance threshold as a first distance threshold;
step S714, if the number of touch points in the last touch event is greater than or equal to the preset number threshold, determining the distance threshold as a second distance threshold;
step S716, determining a plurality of touch areas in the current touch event, determining the point with the highest sensing signal value in each touch area as the touch point of the touch area, and acquiring the position of the touch point;
step S718, detecting whether the distance between two touch points in the current touch event is smaller than a distance threshold;
step S720, if the distance between two touch points in the current touch event is smaller than the distance threshold, combining the two touch points into one touch point;
in step S722, if the distance between the two touch points in the current touch event is greater than the distance threshold, the point processing is not performed.
The exemplary embodiment of the disclosure also provides a touch sensing processing device. As shown in fig. 8, the touch sensing processing apparatus 800 may include: a distance threshold determining module 810, configured to determine a distance threshold according to the number of touch points in the historical touch events; a touch point position acquisition module 820, configured to acquire a position of each touch point in the current touch event; the touch point merging module 830 is configured to merge two touch points into one touch point when detecting that a distance between the two touch points in the current touch event is less than a distance threshold.
In an exemplary embodiment, the distance threshold determination module includes: a first distance determining unit configured to determine a distance threshold as a first distance threshold when the number of touch points in the historical touch events is smaller than a preset number threshold; when the number of touch points in the historical touch event is greater than or equal to a preset number threshold, determining a distance threshold as a second distance threshold; wherein the first distance threshold is less than the second distance threshold.
In an exemplary embodiment, the historical touch event includes a last touch event; the touch-sensitive processing device further includes: the touch point number recording module is used for recording the number of touch points of the last touch event through a preset variable; and the preset variable updating module is used for updating the preset variable according to the number of touch points in the current touch event when the current touch event is ended.
In an exemplary embodiment, the touch sensing processing apparatus further includes: and the zero setting module is used for setting the preset variable to 0 when the current touch event is a lifting event.
In an exemplary embodiment, the touch point location acquisition module includes: a touch area acquisition unit for acquiring a plurality of touch areas in a current touch event; and the touch point position acquisition unit is used for determining one touch point in each touch area and acquiring the position of the touch point.
In an exemplary embodiment, the touch point position obtaining unit is configured to determine a point with a highest sensing signal value in each touch area as a touch point of the touch area, and obtain a position of the touch point.
In an exemplary embodiment, the touch point combining module includes: and combining the plurality of touch points into one touch point when detecting that the distance between any two touch points in the plurality of touch points in the current touch event is smaller than a distance threshold value.
The specific details of each part in the above apparatus are already described in the method part embodiments, and thus will not be repeated.
Exemplary embodiments of the present disclosure also provide a computer readable storage medium, which may be implemented in the form of a program product, comprising program code for causing a terminal device to perform the steps according to the various exemplary embodiments of the present disclosure described in the above section of the "exemplary method" when the program product is run on the terminal device, e.g. any one or more of the steps of fig. 2, fig. 4, fig. 6 or fig. 7 may be performed. The program product may employ a portable compact disc read-only memory (CD-ROM) and comprise program code and may be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, a random access memory, a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
Those skilled in the art will appreciate that the various aspects of the present disclosure may be implemented as a system, method, or program product. Accordingly, various aspects of the disclosure may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system. Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A touch-sensitive processing method, comprising:
determining a distance threshold according to the number of touch points in a historical touch event, wherein the number of touch points in the historical touch event is used for representing the accuracy rate of a recognition result of the number of touch points in a current touch event, the smaller the number of touch points is, the higher the accuracy rate of the recognition result is, and the distance threshold is reduced along with the increase of the accuracy rate of the recognition result;
acquiring the position of each touch point in the current touch event;
and merging the two touch points into one touch point when detecting that the distance between the two touch points in the current touch event is smaller than the distance threshold value.
2. The method of claim 1, wherein determining the distance threshold based on the number of touch points in the historical touch events comprises:
when the number of touch points in the historical touch event is smaller than a preset number threshold, determining the distance threshold as a first distance threshold;
when the number of touch points in the historical touch event is greater than or equal to the preset number threshold, determining the distance threshold as a second distance threshold;
wherein the first distance threshold is less than the second distance threshold.
3. The method of claim 2, wherein the historical touch event comprises a last touch event; the method further comprises the steps of:
recording the number of touch points of the last touch event through a preset variable;
and when the current touch event is ended, updating the preset variable according to the number of touch points in the current touch event.
4. A method according to claim 3, characterized in that the method further comprises:
and when the current touch event is a lifting event, setting the preset variable to 0.
5. The method of claim 1, wherein the obtaining the location of each touch point in the current touch event comprises:
acquiring a plurality of touch areas in a current touch event;
and determining a touch point in each touch area, and acquiring the position of the touch point.
6. The method of claim 5, wherein said determining a touch point in each touch area comprises:
and determining the point with the highest sensing signal value in each touch area as the touch point of the touch area.
7. The method of claim 1, wherein merging two touch points into one touch point when a distance between the two touch points in the current touch event is detected to be less than the distance threshold comprises:
and merging the plurality of touch points into one touch point when detecting that the distance between any two touch points in the current touch event is smaller than the distance threshold value.
8. A touch-sensitive processing apparatus, comprising:
the distance threshold determining module is used for determining a distance threshold according to the number of touch points in the historical touch event, wherein the number of touch points in the historical touch event is used for representing the accuracy rate of the identification result of the number of touch points in the current touch event, the smaller the number of touch points is, the higher the accuracy rate of the identification result is, and the distance threshold is reduced along with the increase of the accuracy rate of the identification result;
the touch point position acquisition module is used for acquiring the position of each touch point in the current touch event;
and the touch point merging module is used for merging the two touch points into one touch point when detecting that the distance between the two touch points in the current touch event is smaller than the distance threshold value.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the method of any of claims 1 to 7.
10. An electronic device, comprising:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the method of any one of claims 1 to 7 via execution of the executable instructions.
CN202110438102.1A 2021-04-22 2021-04-22 Touch sensing processing method, touch sensing processing device, medium and electronic equipment Active CN113204293B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110438102.1A CN113204293B (en) 2021-04-22 2021-04-22 Touch sensing processing method, touch sensing processing device, medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110438102.1A CN113204293B (en) 2021-04-22 2021-04-22 Touch sensing processing method, touch sensing processing device, medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN113204293A CN113204293A (en) 2021-08-03
CN113204293B true CN113204293B (en) 2023-09-08

Family

ID=77027941

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110438102.1A Active CN113204293B (en) 2021-04-22 2021-04-22 Touch sensing processing method, touch sensing processing device, medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN113204293B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115033165A (en) * 2022-06-29 2022-09-09 Oppo广东移动通信有限公司 Touch event processing method and device, storage medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101604220A (en) * 2009-07-20 2009-12-16 华硕电脑股份有限公司 The detection method of electric resistance touch-control panel and contact point form thereof
CN102681738A (en) * 2012-05-04 2012-09-19 敦泰科技有限公司 Multi-point touch identifying method and touch device for mutual capacitance type touch equipment
CN103955334A (en) * 2014-04-02 2014-07-30 联想(北京)有限公司 Information processing method and electronic equipment
CN106484194A (en) * 2015-08-26 2017-03-08 上海精研电子科技有限公司 A kind of infrared touch panel multipoint positioning method
CN108196708A (en) * 2017-12-19 2018-06-22 迈巨(深圳)科技有限公司 A kind of touch point anti-loss method, electronic equipment and storage medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100141607A1 (en) * 2008-12-04 2010-06-10 Electronics And Telecommunications Research Institute Apparatus and method for recognizing multi touch point
TWI503730B (en) * 2009-07-20 2015-10-11 Asustek Comp Inc Resistive touch panel and method of detecting type of touch point on resistive touch panel
EP2588942A4 (en) * 2010-07-01 2017-01-25 FlatFrog Laboratories AB Data processing in relation to a multi-touch sensing apparatus
TW201333787A (en) * 2011-10-11 2013-08-16 Flatfrog Lab Ab Improved multi-touch detection in a touch system
JP5979916B2 (en) * 2012-03-07 2016-08-31 キヤノン株式会社 Information processing apparatus and control method thereof
TWI610211B (en) * 2014-02-07 2018-01-01 財團法人工業技術研究院 Touching device, processor and touching signal accessing method thereof
US9406025B2 (en) * 2014-06-04 2016-08-02 International Business Machines Corporation Touch prediction for visual displays
CN105892877A (en) * 2015-10-23 2016-08-24 乐卡汽车智能科技(北京)有限公司 Multi-finger closing/opening gesture recognition method and device as well as terminal equipment
US10895927B2 (en) * 2019-01-23 2021-01-19 Novatek Microelectronics Corp. Touch display device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101604220A (en) * 2009-07-20 2009-12-16 华硕电脑股份有限公司 The detection method of electric resistance touch-control panel and contact point form thereof
CN102681738A (en) * 2012-05-04 2012-09-19 敦泰科技有限公司 Multi-point touch identifying method and touch device for mutual capacitance type touch equipment
CN103955334A (en) * 2014-04-02 2014-07-30 联想(北京)有限公司 Information processing method and electronic equipment
CN106484194A (en) * 2015-08-26 2017-03-08 上海精研电子科技有限公司 A kind of infrared touch panel multipoint positioning method
CN108196708A (en) * 2017-12-19 2018-06-22 迈巨(深圳)科技有限公司 A kind of touch point anti-loss method, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113204293A (en) 2021-08-03

Similar Documents

Publication Publication Date Title
CN106095284B (en) Electronic device
KR102193181B1 (en) Power sharing method and electronic device implementing the same
US20170199712A1 (en) Electronic device and method of recognizing wearing form thereof
US10659886B2 (en) Electronic device and sound output method thereof
US20150128068A1 (en) Method for operating message application and electronic device implementing the same
CN109583271B (en) Method, device and terminal for fitting lane line
EP3133473A1 (en) Method of sensing pressure by touch sensor and electronic device adapted thereto
EP2813928A1 (en) Method and terminal for data transmission between terminals
KR20150051663A (en) Method for executing function in response to touch input and electronic device implementing the same
KR102126568B1 (en) Method for processing data and an electronic device thereof
EP2843534B1 (en) Method for display control and electronic device thereof
KR102144588B1 (en) Sensor module and device therewith
CN113919390A (en) Method for identifying touch operation and electronic equipment
US10432926B2 (en) Method for transmitting contents and electronic device thereof
US9606665B2 (en) Object moving method and electronic device implementing the same
CN110096865B (en) Method, device and equipment for issuing verification mode and storage medium
KR20150057080A (en) Apparatas and method for changing a input mode according to input method in an electronic device
CN110837343A (en) Snapshot processing method and device and terminal
CN113204293B (en) Touch sensing processing method, touch sensing processing device, medium and electronic equipment
US20140348334A1 (en) Portable terminal and method for detecting earphone connection
CN110431518A (en) A kind of method and electronic equipment exporting touching signals
KR20150109110A (en) Input device for detecting external input
KR20170141012A (en) Method for processing user input and electronic device thereof
KR102187244B1 (en) Method for presenting a notification and an electronic device thereof
US10553578B2 (en) Electronic device and method for operating the same

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