CN109240531B - Touch data sampling compensation method and device, mobile terminal and storage medium - Google Patents

Touch data sampling compensation method and device, mobile terminal and storage medium Download PDF

Info

Publication number
CN109240531B
CN109240531B CN201810778147.1A CN201810778147A CN109240531B CN 109240531 B CN109240531 B CN 109240531B CN 201810778147 A CN201810778147 A CN 201810778147A CN 109240531 B CN109240531 B CN 109240531B
Authority
CN
China
Prior art keywords
sampling
point
critical
value
touch
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
CN201810778147.1A
Other languages
Chinese (zh)
Other versions
CN109240531A (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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201810778147.1A priority Critical patent/CN109240531B/en
Publication of CN109240531A publication Critical patent/CN109240531A/en
Application granted granted Critical
Publication of CN109240531B publication Critical patent/CN109240531B/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/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

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)
  • Position Input By Displaying (AREA)

Abstract

The embodiment of the invention provides a method and a device for sampling and compensating touch data, a mobile terminal and a storage medium, wherein the method comprises the following steps: acquiring touch data, wherein the touch data comprises a plurality of sampling points; selecting a sampling point in a reporting point critical range as a sampling reference point; identifying a sampling target point triggered by touch control in a non-hand-held state according to a sampling point adjacent to the sampling reference point; and carrying out sampling compensation on the sampling target point. The sampling target point triggered by touch in the non-hand-held state is identified through the combination of the sampling reference point and the adjacent sampling points, the accuracy is high, sampling compensation is performed after the sampling target point is identified, the accuracy of touch identification in the non-hand-held state is improved, the accuracy of point reporting is improved, multi-finger touch is performed in the non-hand-held state, the probability of missed touch point reporting is reduced, and the probability of misoperation is reduced.

Description

Touch data sampling compensation method and device, mobile terminal and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for sampling and compensating touch data, a mobile terminal, and a storage medium.
Background
With the development of science and technology, mobile terminals such as mobile phones and tablet computers have higher and higher utilization rate in various aspects such as work, study and daily communication of people.
At present, a touch screen is mostly used for a mobile terminal, touch operation is supported, and in a non-hand-held state, if a user puts the mobile terminal on a desktop, a sampling change value of the touch screen is low, and it is easy to judge that no touch occurs, that is, no touch point is reported.
The multi-finger touch is one of the common functions of the touch screen, that is, the multi-finger touch is supported to be simultaneously touched by a plurality of fingers, and the multi-finger touch is executed in a non-hand-held state, so that touch points are easily missed to report, and misoperation is caused.
Disclosure of Invention
The embodiment of the invention provides a method and a device for sampling and compensating touch data, a mobile terminal and a storage medium, which are used for solving the problem of misoperation caused by the fact that touch points are easily missed to report when the touch data is executed in a non-hand-held state.
According to an aspect of the present invention, a method for compensating sampling of touch data is provided, including:
acquiring touch data, wherein the touch data comprises a plurality of sampling points;
selecting a sampling point in a reporting point critical range as a sampling reference point;
identifying a sampling target point triggered by touch control in a non-hand-held state according to a sampling point adjacent to the sampling reference point;
and carrying out sampling compensation on the sampling target point.
Optionally, the selecting a sampling point in the threshold range of the reporting point as a sampling reference point includes:
respectively taking a first proportion and a second proportion on the basis of a preset change threshold value to obtain a critical reporting point lower limit value and a critical reporting point upper limit value, wherein the first proportion is smaller than 1, and the second proportion is larger than 1;
and if the sampling change value of the sampling point is between the lower limit value of the critical report point and the upper limit value of the critical report point, setting the sampling point as a sampling reference point.
Optionally, the identifying, according to sampling points adjacent to the sampling reference point, a sampling target point triggered by touch in a non-handheld state includes:
determining sampling points adjacent to the sampling reference point;
judging whether the sampling variation amplitude between the sampling reference point and the adjacent sampling point is within a preset amplitude range;
and if so, determining a sampling target point triggered by touch control in a non-hand-held state through the sampling reference point.
Optionally, the adjacent sampling points include adjacent sampling points in a first range and adjacent sampling points in a second range, and the first range is smaller than the second range;
the judging whether the sampling variation amplitude between the sampling reference point and the adjacent sampling point is within a preset amplitude range includes:
taking a third proportion and a fourth proportion on the basis of the sampling change value of the sampling reference point to obtain a first change threshold value and a second change threshold value;
counting the number of sampling points with sampling variation values larger than the second variation threshold value in adjacent sampling points in the second range;
judging whether the adjacent sampling points in the first range are larger than or equal to the first change threshold value or not, and the number is larger than or equal to a preset number threshold value;
and if so, determining that the sampling variation amplitude between the sampling reference point and the adjacent sampling point is within a preset amplitude range.
Optionally, the determining, by the sampling reference point, a sampling target point of the touch trigger in the non-hand-held state includes:
determining a third range by taking the sampling reference point as a benchmark;
and marking the sampling points in the third range as sampling target points triggered by touch in a non-hand-held state.
Optionally, the performing sampling compensation on the sampling target point includes:
and taking a fifth proportion to the sampling change value of the sampling target point to obtain a sampling change value after sampling compensation.
According to another aspect of the present invention, there is provided a touch data sampling compensation apparatus, including:
the touch data acquisition module is used for acquiring touch data, and the touch data comprises a plurality of sampling points;
the sampling reference point selection module is used for selecting a sampling point in a report point critical range as a sampling reference point;
the sampling target point identification module is used for identifying a sampling target point triggered by touch control in a non-hand-held state according to a sampling point adjacent to the sampling reference point;
and the sampling compensation module is used for performing sampling compensation on the sampling target point.
Optionally, the sampling reference point selecting module includes:
the critical report point value operator module is used for respectively taking a first proportion and a second proportion on the basis of a preset change threshold value to obtain a critical report point lower limit value and a critical report point upper limit value, wherein the first proportion is smaller than 1, and the second proportion is larger than 1;
and the sampling reference point setting submodule is used for setting the sampling point as a sampling reference point if the sampling change value of the sampling point is between the lower limit value of the critical report point and the upper limit value of the critical report point.
Optionally, the sampling target point identification module includes:
the adjacent sampling point determination sub-module is used for determining the sampling point adjacent to the sampling reference point;
the sampling change amplitude judgment sub-module is used for judging whether the sampling change amplitude between the sampling reference point and the adjacent sampling point is within a preset amplitude range or not; if yes, calling a sampling target point determining submodule;
and the sampling target point determining submodule is used for determining a sampling target point triggered by touch in a non-hand-held state through the sampling reference point.
Optionally, the adjacent sampling points include adjacent sampling points in a first range and adjacent sampling points in a second range, and the first range is smaller than the second range;
the sampling change amplitude judgment submodule comprises:
the change threshold calculation unit is used for taking a third proportion and a fourth proportion on the basis of the sampling change value of the sampling reference point to obtain a first change threshold and a second change threshold;
the quantity counting unit is used for counting the quantity of sampling points with sampling variation values larger than the second variation threshold value in adjacent sampling points in the second range;
the condition judging unit is used for judging whether the adjacent sampling points in the first range are larger than or equal to the first change threshold value or not, and the number is larger than or equal to a preset number threshold value; if yes, calling a change determining unit;
and the change determining unit is used for determining that the sampling change amplitude between the sampling reference point and the adjacent sampling point is within a preset amplitude range.
Optionally, the sampling target point determination submodule includes:
a range determination unit configured to determine a third range with the sampling reference point as a reference;
and the range marking unit is used for marking the sampling points in the third range as sampling target points triggered by touch in a non-hand-held state.
Optionally, the sampling compensation module comprises:
and the proportion value-taking submodule is used for taking a fifth proportion to the sampling change value of the sampling target point to obtain a sampling change value after sampling compensation.
According to another aspect of the present invention, there is provided a mobile terminal including a processor, a memory, and a computer program stored on the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the method for sampling compensation of touch data.
According to another aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored, which, when being executed by a processor, implements the steps of the method for sample compensation of touch data.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, touch data is collected, the touch data comprises a plurality of sampling points, the sampling points in the critical range of the report points are selected as sampling reference points, the sampling reference points are identified as sampling target points triggered by touch in the non-hand-held state according to the sampling points adjacent to the sampling reference points, the sampling target points are used as references to perform sampling compensation on the sampling points, the sampling target points triggered by touch in the non-hand-held state are identified through the combination of the sampling reference points and the adjacent sampling points, the accuracy is high, the sampling compensation is performed after the sampling target points are identified, the accuracy of touch identification in the non-hand-held state is improved, the accuracy of report points is improved, multi-finger touch is performed in the non-hand-held state, the probability of missed report of the touch points is reduced, and the probability of misoperation is reduced.
Drawings
Fig. 1 is a flowchart illustrating steps of a method for sampling and compensating touch data according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating another method for compensating touch data sampling according to an embodiment of the present invention;
fig. 3A to 3D are exemplary diagrams of touch data according to an embodiment of the invention;
fig. 4 is a block diagram of a touch data sampling compensation apparatus according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Referring to fig. 1, a flowchart illustrating steps of a method for sampling and compensating touch data according to an embodiment of the present invention is shown, which may specifically include the following steps:
step 101, touch data is collected.
In a specific implementation, the embodiment of the present invention may be applied to a mobile terminal, for example, a mobile phone, a tablet computer, a wearable device (such as VR (Virtual Reality) glasses, a VR helmet, a smart watch), and the like, which is not limited in this respect.
The mobile terminal is provided with a touch screen, namely an induction type display device capable of receiving input signals.
Touch screens are distinguished from technical principles and may include vector pressure sensing touch screens, resistive touch screens, capacitive touch screens, infrared touch screens, surface acoustic wave touch screens, and the like.
When the touch screen operates, multi-frame touch data are collected, wherein the touch data are provided with a plurality of sampling points, and each sampling point is provided with a sampling change value.
In order to make the embodiments of the present invention better understood by those skilled in the art, a capacitive touch screen is described as an example of a touch screen in the present specification.
For a capacitive touch screen, the sample change value is diff, i.e., a capacitance change value.
And 102, selecting the sampling point in the report point critical range as a sampling reference point.
In a specific implementation, for different touch screens, corresponding reporting point threshold values may be set, and a nearby range is determined as a reporting point critical range with the reporting point threshold value as a reference.
In a frame of touch data, the sampling point within the threshold range of the report point has a low sampling variation value, and may be a sampling point detected by touch in a non-hand-held state, and may be selected as a sampling reference point for further identification.
And 103, identifying a sampling target point triggered by touch in a non-hand-held state according to the sampling point adjacent to the sampling reference point.
In a frame of touch data, the sampling change value of the sampling reference point is used as a reference object, and compared with the sampling change values of other adjacent sampling points, if the change amplitude of the sampling change value is small, the sampling reference point and the surrounding sampling points can be regarded as sampling target points triggered by touch in a non-hand-held state.
And 104, performing sampling compensation on the sampling target point.
If the sampling target point is determined, sampling compensation can be performed on the sampling point based on the sampling target point, namely, the sampling change value of the sampling point is improved.
It should be noted that, for the detected touch data, sampling compensation may be directly performed on each frame of touch data (i.e., steps 102 to 104), or whether a preset condition is met may be determined, for example, whether the detected touch data is still (i.e., the acceleration is smaller than a smaller threshold and is close to 0), if the preset condition is met, a non-hand-held state may occur, sampling compensation is performed (i.e., steps 102 to 104), and the like, which is not limited in the embodiment of the present invention.
In the embodiment of the invention, touch data is collected, the touch data comprises a plurality of sampling points, the sampling points in the critical range of the report points are selected as sampling reference points, the sampling reference points are identified as sampling target points triggered by touch in the non-hand-held state according to the sampling points adjacent to the sampling reference points, the sampling target points are used as references to perform sampling compensation on the sampling points, the sampling target points triggered by touch in the non-hand-held state are identified through the combination of the sampling reference points and the adjacent sampling points, the accuracy is high, the sampling compensation is performed after the sampling target points are identified, the accuracy of touch identification in the non-hand-held state is improved, the accuracy of report points is improved, multi-finger touch is performed in the non-hand-held state, the probability of missed report of the touch points is reduced, and the probability of misoperation is reduced.
Referring to fig. 2, a flowchart illustrating another step of a method for sampling and compensating touch data according to an embodiment of the present invention is shown, which may specifically include the following steps:
step 201, touch data is collected.
The touch data comprises a plurality of sampling points.
Referring to fig. 3A to 3D, exemplary diagrams of touch data according to an embodiment of the invention are shown.
In fig. 3A to 3D, each numerical value represents both the position of the acquisition point and the diff (sample variation value) of the acquisition point.
Fig. 3A shows that, in touch data triggered by a user holding the mobile terminal with one hand and touching the touch screen with 3 fingers with the other hand, the maximum value of diff (i.e., the square area in fig. 3A) of the collection point touched by the fingers of the user is over 600, and the data change amplitude is large.
Fig. 3B-3D show touch data triggered by a hand touching a touch screen with 4, 3, or 2 fingers, respectively, when the mobile phone is prevented from being plastic cut, the maximum value of the diff (i.e., the square area in fig. 3B-3D) of the collection point touched by the user's finger is substantially below 200, and the data change amplitude is small.
Step 202, respectively taking a first proportion and a second proportion on the basis of a preset variation threshold value to obtain a critical reporting point lower limit value and a critical reporting point upper limit value.
Step 203, if the sampling variation value of the sampling point is between the critical reporting point lower limit value and the critical reporting point upper limit value, setting the sampling point as a sampling reference point.
In the embodiment of the invention, the sampling change value of the sampling reference point is multiplied by the first proportion, so that the lower limit value of the critical report point can be obtained.
And multiplying the sampling change value of the sampling reference point by a second proportion to obtain the upper limit value of the critical report point.
The first ratio is smaller than 1, and the second ratio is larger than 1, so that the critical reporting point lower limit value is smaller than the reporting point threshold value, and the critical reporting point upper limit value is larger than the reporting point threshold value, thereby forming a reporting point critical range.
Generally, the critical hit threshold is smaller than the finger hit threshold.
The finger pointing lower limit value is a numerical value obtained by multiplying a pointing threshold by a certain multiple with respect to the characteristics of the user's finger.
For example, if the sampling point is X, the threshold value of the report is Limit, and the lower Limit value of the finger report is generally greater than 3 × Limit, the first ratio is 0.7, the second ratio is 2, and diff is used as the sampling variation value, the sampling variation value of X is diff (X), and 2 × Limit < diff (X) < 0.7 × Limit, X is defined as the sampling reference point.
And comparing the sampling change value of the sampling point in one frame of touch data with a critical report point lower limit value and a critical report point upper limit value, and setting the sampling change value between the critical report point lower limit value and the critical report point upper limit value as a sampling reference point.
And step 204, determining sampling points adjacent to the sampling reference point.
Step 205, judging whether the sampling variation amplitude between the sampling reference point and the adjacent sampling point is within a preset amplitude range; if yes, go to step 206.
In the embodiment of the invention, the sampling points within a certain range from the sampling reference point are called as adjacent sampling points.
For example, the distance from the sampling reference point is 0 sampling point, the distance from the sampling reference point is 1 sampling point, the distance from the sampling reference point is 2 sampling points, and the like, which is not limited in this embodiment of the present invention.
And comparing the sampling change value of the sampling reference point with the sampling change value of the adjacent sampling point to obtain the sampling change amplitude.
If the sampling variation amplitude is within the set amplitude range, the sampling variation amplitude is small, and the sampling reference point can be considered as a sampling target point triggered by touch in a non-hand-held state.
In one embodiment of the present invention, the first range and the second range are divided with the sampling reference point as a reference, and the sampling points adjacent to the sampling reference point include sampling points adjacent to each other in the first range and sampling points adjacent to each other in the second range.
Wherein the first range is less than the second range.
In one example, the first range is shown in the following table:
*
* A *
*
the second range is shown in the following table:
* * *
* A *
* * *
where "a" represents a sampling reference point and "+" represents an adjacent sampling point.
In an embodiment of the present invention, step 205 may include the following sub-steps:
and a substep S11 of taking the third proportion and the fourth proportion based on the sampling variation value of the sampling reference point to obtain a first variation threshold value and a second variation threshold value.
And multiplying the sampling change value of the sampling reference point by the third proportion to obtain the first change threshold value.
And multiplying the sampling change value of the sampling reference point by the fourth proportion to obtain a second change threshold value.
Wherein the third ratio and the fourth ratio are both less than 1, and the third ratio is less than the fourth ratio, so the first variation threshold is less than the second variation threshold.
And a sub-step S12 of counting the number of sampling points having a sampling variation value greater than the second variation threshold value among the adjacent sampling points in the second range.
A substep S13, determining whether the adjacent sampling points in the first range are greater than or equal to the first variation threshold, and the number is greater than or equal to a preset number threshold; if yes, go to substep S14.
And a sub-step S14 of determining that the sampling variation amplitude between the sampling reference point and the adjacent sampling point is within a preset amplitude range.
If the sampling variation value of the adjacent sampling points is greater than or equal to the first variation threshold value in a first range around the sampling reference point a, and the number of the adjacent sampling points, of which the sampling variation value is greater than or equal to the second variation threshold value, is greater than or equal to the number threshold value in a second range around the sampling reference point a, the sampling variation amplitude between the sampling reference point and the adjacent sampling points can be considered to be within a preset amplitude range, that is, the sampling variation amplitude is smaller.
For example, assuming that the sampling reference point is a, the third ratio is 0.25, the fourth ratio is 0.5, diff is used as a sampling variation value, diff of 4 sampling points adjacent to the same row and column of a is greater than or equal to 0.25 × diff (a), and the number of sampling points having diff greater than or equal to 0.5 × diff (a) in 8 sampling points adjacent to a (the remaining 8 sampling points in the nine-square grid) is greater than or equal to 3, the sampling variation amplitude between the sampling reference point and the adjacent sampling points can be considered to be within a preset amplitude range.
And step 206, determining a sampling target point of touch trigger in a non-hand-held state through the sampling reference point.
In a specific implementation, the third range may be determined with the sampling target point as a reference, that is, a range at a certain distance from the sampling target point is defined as the third range (the third range may include the sampling reference point).
And marking the sampling points in the third range as sampling target points triggered by touch in a non-hand-held state.
In one example, the third range is shown in the following table:
# # #
# A #
# # #
where "a" represents a sampling reference point and "#" represents a sampling point in the third range (including a itself).
And step 207, performing sampling compensation on the sampling target point.
In a specific implementation, a fifth proportion may be taken for the sampling variation value of the sampling target point, and a sampling variation value after sampling compensation is obtained.
Wherein the fifth ratio is greater than 1, such as 1.5 (i.e., 50% offset); and the sampling change value after sampling compensation of the sampling reference point is at least larger than the report point threshold value.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 4, a block diagram of a structure of a touch data sampling compensation apparatus according to an embodiment of the present invention is shown, which may specifically include the following modules:
the touch data acquisition module 401 is configured to acquire touch data, where the touch data includes a plurality of sampling points;
a sampling reference point selecting module 402, configured to select a sampling point in a report critical range as a sampling reference point;
a sampling target point identification module 403, configured to identify a sampling target point triggered by touch in a non-hand-held state according to a sampling point adjacent to the sampling reference point;
and a sampling compensation module 404, configured to perform sampling compensation on the sampling target point.
In one embodiment of the present invention, the sampling reference point selecting module 402 comprises:
the critical report point value operator module is used for respectively taking a first proportion and a second proportion on the basis of a preset change threshold value to obtain a critical report point lower limit value and a critical report point upper limit value, wherein the first proportion is smaller than 1, and the second proportion is larger than 1;
and the sampling reference point setting submodule is used for setting the sampling point as a sampling reference point if the sampling change value of the sampling point is between the lower limit value of the critical report point and the upper limit value of the critical report point.
In one embodiment of the present invention, the sampling target point identification module 403 includes:
the adjacent sampling point determination sub-module is used for determining the sampling point adjacent to the sampling reference point;
the sampling change amplitude judgment sub-module is used for judging whether the sampling change amplitude between the sampling reference point and the adjacent sampling point is within a preset amplitude range or not; if yes, calling a sampling target point determining submodule;
and the sampling target point determining submodule is used for determining a sampling target point triggered by touch in a non-hand-held state through the sampling reference point.
In one embodiment of the invention, the adjacent sampling points comprise adjacent sampling points in a first range and adjacent sampling points in a second range, and the first range is smaller than the second range;
the sampling change amplitude judgment submodule comprises:
the change threshold calculation unit is used for taking a third proportion and a fourth proportion on the basis of the sampling change value of the sampling reference point to obtain a first change threshold and a second change threshold;
the quantity counting unit is used for counting the quantity of sampling points with sampling variation values larger than the second variation threshold value in adjacent sampling points in the second range;
the condition judging unit is used for judging whether the adjacent sampling points in the first range are larger than or equal to the first change threshold value or not, and the number is larger than or equal to a preset number threshold value; if yes, calling a change determining unit;
and the change determining unit is used for determining that the sampling change amplitude between the sampling reference point and the adjacent sampling point is within a preset amplitude range.
In one embodiment of the invention, the sampling target point determination submodule includes:
a range determination unit configured to determine a third range with the sampling reference point as a reference;
and the range marking unit is used for marking the sampling points in the third range as sampling target points triggered by touch in a non-hand-held state.
In one embodiment of the present invention, the sample compensation module 404 includes:
and the proportion value-taking submodule is used for taking a fifth proportion to the sampling change value of the sampling target point to obtain a sampling change value after sampling compensation.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
In the embodiment of the invention, touch data is collected, the touch data comprises a plurality of sampling points, the sampling points in the critical range of the report points are selected as sampling reference points, the sampling reference points are identified as sampling target points triggered by touch in the non-hand-held state according to the sampling points adjacent to the sampling reference points, the sampling target points are used as references to perform sampling compensation on the sampling points, the sampling target points triggered by touch in the non-hand-held state are identified through the combination of the sampling reference points and the adjacent sampling points, the accuracy is high, the sampling compensation is performed after the sampling target points are identified, the accuracy of touch identification in the non-hand-held state is improved, the accuracy of report points is improved, multi-finger touch is performed in the non-hand-held state, the probability of missed report of the touch points is reduced, and the probability of misoperation is reduced.
Fig. 5 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention.
The mobile terminal 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 5 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 510 is configured to acquire touch data, where the touch data includes a plurality of sampling points; selecting a sampling point in a reporting point critical range as a sampling reference point; identifying a sampling target point triggered by touch control in a non-hand-held state according to a sampling point adjacent to the sampling reference point; and carrying out sampling compensation on the sampling target point.
In the embodiment of the invention, touch data is collected, the touch data comprises a plurality of sampling points, the sampling points in the critical range of the report points are selected as sampling reference points, the sampling reference points are identified as sampling target points triggered by touch in the non-hand-held state according to the sampling points adjacent to the sampling reference points, the sampling target points are used as references to perform sampling compensation on the sampling points, the sampling target points triggered by touch in the non-hand-held state are identified through the combination of the sampling reference points and the adjacent sampling points, the accuracy is high, the sampling compensation is performed after the sampling target points are identified, the accuracy of touch identification in the non-hand-held state is improved, the accuracy of report points is improved, multi-finger touch is performed in the non-hand-held state, the probability of missed report of the touch points is reduced, and the probability of misoperation is reduced.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 501 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 502, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the mobile terminal 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive an audio or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 506. The image frames processed by the graphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 501 in case of the phone call mode.
The mobile terminal 500 also includes at least one sensor 505, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 5061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 5061 and/or a backlight when the mobile terminal 500 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 505 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 506 is used to display information input by the user or information provided to the user. The Display unit 506 may include a Display panel 5061, and the Display panel 5061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 507 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, stylus, or any suitable object or attachment). The touch panel 5071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 5, the touch panel 5071 and the display panel 5061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 508 is an interface through which an external device is connected to the mobile terminal 500. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 508 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 500 or may be used to transmit data between the mobile terminal 500 and external devices.
The memory 509 may be used to store software programs as well as various data. The memory 509 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 by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 509 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 volatile solid-state storage device.
The processor 510 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 509 and calling data stored in the memory 509, thereby performing overall monitoring of the mobile terminal. Processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
The mobile terminal 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, the power supply 511 may be logically connected to the processor 510 via a power management system, so that functions of managing charging, discharging, and power consumption are performed via the power management system.
In addition, the mobile terminal 500 includes some functional modules that are not shown, and thus, are not described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 510, a memory 509, and a computer program that is stored in the memory 509 and can be run on the processor 510, and when the computer program is executed by the processor 510, the processes of the above embodiment of the method for sampling and compensating touch data are implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned method for sampling and compensating touch data, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A method for sampling and compensating touch data is characterized by comprising the following steps:
acquiring touch data, wherein the touch data comprises a plurality of sampling points; each sampling point has a sampling variation value;
selecting a sampling point in a reporting point critical range as a sampling reference point;
identifying a sampling target point triggered by touch control in a non-hand-held state according to a sampling point adjacent to the sampling reference point;
performing sampling compensation on the sampling target point; the sampling compensation is to increase the sampling change value of the sampling target point;
the critical point reporting range comprises a critical point reporting lower limit value and a critical point reporting upper limit value; the sampling reference point comprises a sampling point with a sampling change value between the lower limit value of the critical report point and the upper limit value of the critical report point;
the critical reporting point lower limit value is determined according to a product value of the sampling change value of the sampling reference point and a first proportion, and the critical reporting point upper limit value is determined according to a product value of the sampling change value of the sampling reference point and a second proportion; the first ratio is less than 1 and the second ratio is greater than 1.
2. The method of claim 1, wherein selecting the sampling point in the threshold range of the report point as the sampling reference point comprises:
respectively taking a first proportion and a second proportion on the basis of a preset change threshold value to obtain a critical reporting point lower limit value and a critical reporting point upper limit value;
and if the sampling change value of the sampling point is between the lower limit value of the critical report point and the upper limit value of the critical report point, setting the sampling point as a sampling reference point.
3. The method of claim 1, wherein identifying a sampling target point of a touch trigger in a non-hand-held state according to sampling points adjacent to the sampling reference point comprises:
determining sampling points adjacent to the sampling reference point;
judging whether the sampling variation amplitude between the sampling reference point and the adjacent sampling point is within a preset amplitude range;
and if so, determining a sampling target point triggered by touch control in a non-hand-held state through the sampling reference point.
4. The method of claim 3, wherein the adjacent sample points comprise adjacent sample points in a first range, adjacent sample points in a second range, the first range being less than the second range;
the judging whether the sampling variation amplitude between the sampling reference point and the adjacent sampling point is within a preset amplitude range includes:
taking a third proportion and a fourth proportion on the basis of the sampling change value of the sampling reference point to obtain a first change threshold value and a second change threshold value;
counting the number of sampling points with sampling variation values larger than the second variation threshold value in adjacent sampling points in the second range;
judging whether the adjacent sampling points in the first range are larger than or equal to the first change threshold value or not, and the number is larger than or equal to a preset number threshold value;
and if so, determining that the sampling variation amplitude between the sampling reference point and the adjacent sampling point is within a preset amplitude range.
5. The method of claim 3, wherein determining the sampling target point of the touch trigger in the non-hand-held state by the sampling reference point comprises:
determining a third range by taking the sampling reference point as a benchmark;
and marking the sampling points in the third range as sampling target points triggered by touch in a non-hand-held state.
6. The method according to any one of claims 1-5, wherein the sample compensation of the sample target points comprises:
and taking a fifth proportion to the sampling change value of the sampling target point to obtain a sampling change value after sampling compensation.
7. A sampling compensation device for touch data is characterized by comprising:
the touch data acquisition module is used for acquiring touch data, and the touch data comprises a plurality of sampling points; each sampling point has a sampling variation value;
the sampling reference point selection module is used for selecting a sampling point in a report point critical range as a sampling reference point;
the sampling target point identification module is used for identifying a sampling target point triggered by touch control in a non-hand-held state according to a sampling point adjacent to the sampling reference point;
the sampling compensation module is used for performing sampling compensation on the sampling target point; the sampling compensation is to increase the sampling change value of the sampling target point;
the critical point reporting range comprises a critical point reporting lower limit value and a critical point reporting upper limit value; the sampling reference point comprises a sampling point with a sampling change value between the lower limit value of the critical report point and the upper limit value of the critical report point;
the critical reporting point lower limit value is determined according to a product value of the sampling change value of the sampling reference point and a first proportion, and the critical reporting point upper limit value is determined according to a product value of the sampling change value of the sampling reference point and a second proportion; the first ratio is less than 1 and the second ratio is greater than 1.
8. The apparatus of claim 7, wherein the sampling reference point selection module comprises:
the critical report point value operator module is used for respectively taking a first proportion and a second proportion on the basis of a preset change threshold value to obtain a critical report point lower limit value and a critical report point upper limit value;
and the sampling reference point setting submodule is used for setting the sampling point as a sampling reference point if the sampling change value of the sampling point is between the lower limit value of the critical report point and the upper limit value of the critical report point.
9. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, implements the steps of the method for sample compensation of touch data according to any one of claims 1 to 6.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for sample compensation of touch data according to any one of claims 1 to 6.
CN201810778147.1A 2018-07-16 2018-07-16 Touch data sampling compensation method and device, mobile terminal and storage medium Active CN109240531B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810778147.1A CN109240531B (en) 2018-07-16 2018-07-16 Touch data sampling compensation method and device, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810778147.1A CN109240531B (en) 2018-07-16 2018-07-16 Touch data sampling compensation method and device, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN109240531A CN109240531A (en) 2019-01-18
CN109240531B true CN109240531B (en) 2022-02-22

Family

ID=65071926

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810778147.1A Active CN109240531B (en) 2018-07-16 2018-07-16 Touch data sampling compensation method and device, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN109240531B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111338495B (en) * 2019-08-29 2022-10-28 京东方科技集团股份有限公司 Method and device for determining touch point
CN111665985B (en) * 2020-05-29 2024-04-12 西安芯海微电子科技有限公司 Touch sampling control method, device, terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101354621A (en) * 2008-09-12 2009-01-28 青岛海信移动通信技术股份有限公司 Method and apparatus for determining touch screen calibration parameter
CN102819475A (en) * 2011-06-08 2012-12-12 鸿富锦精密工业(深圳)有限公司 System and method for calibrating touch screen of electronic device
CN106557208A (en) * 2016-11-30 2017-04-05 无锡华润矽科微电子有限公司 Realize the method that touch-screen is calibrated automatically
CN107678594A (en) * 2017-09-30 2018-02-09 努比亚技术有限公司 Calibration method, device, terminal device and the storage medium of touch screen

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6595068B2 (en) * 2000-02-25 2003-07-22 Thomas E. Brovold Compact hollow cylinder tensile tester
US20060134662A1 (en) * 2004-10-25 2006-06-22 Pratt Mark R Method and system for genotyping samples in a normalized allelic space
CN101639896A (en) * 2009-05-19 2010-02-03 上海闻泰电子科技有限公司 Data filtering and smoothing method applied to touch screen
KR101239844B1 (en) * 2011-04-11 2013-03-06 주식회사 동부하이텍 apparatus for sensing a touch
CN102945109B (en) * 2012-11-29 2015-10-28 锐迪科科技有限公司 Mutual capacitance screen detects the method for touch area
CN105183669A (en) * 2015-09-22 2015-12-23 珠海格力电器股份有限公司 Data storage method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101354621A (en) * 2008-09-12 2009-01-28 青岛海信移动通信技术股份有限公司 Method and apparatus for determining touch screen calibration parameter
CN102819475A (en) * 2011-06-08 2012-12-12 鸿富锦精密工业(深圳)有限公司 System and method for calibrating touch screen of electronic device
CN106557208A (en) * 2016-11-30 2017-04-05 无锡华润矽科微电子有限公司 Realize the method that touch-screen is calibrated automatically
CN107678594A (en) * 2017-09-30 2018-02-09 努比亚技术有限公司 Calibration method, device, terminal device and the storage medium of touch screen

Also Published As

Publication number Publication date
CN109240531A (en) 2019-01-18

Similar Documents

Publication Publication Date Title
CN108491123B (en) Method for adjusting application program icon and mobile terminal
CN107580147B (en) Management method of notification message and mobile terminal
CN109871174B (en) Virtual key display method and mobile terminal
CN110531915B (en) Screen operation method and terminal equipment
CN109343788B (en) Operation control method of mobile terminal and mobile terminal
CN110752981B (en) Information control method and electronic equipment
CN110231972B (en) Message display method and terminal equipment
CN108108113B (en) Webpage switching method and device
CN111464428B (en) Audio processing method, server, electronic device, and computer-readable storage medium
CN110096203B (en) Screenshot method and mobile terminal
CN110879737A (en) Notification message processing method and device, electronic equipment and storage medium
CN109669656B (en) Information display method and terminal equipment
CN109445653B (en) Icon processing method and mobile terminal
CN108920040B (en) Application icon sorting method and mobile terminal
CN110794989A (en) Key response method and electronic equipment
CN110795002A (en) Screenshot method and terminal equipment
CN108536349B (en) Icon management method and mobile terminal
CN108196781B (en) Interface display method and mobile terminal
CN110309003B (en) Information prompting method and mobile terminal
CN110007821B (en) Operation method and terminal equipment
CN110851219A (en) Information processing method and electronic equipment
CN108628534B (en) Character display method and mobile terminal
CN109240531B (en) Touch data sampling compensation method and device, mobile terminal and storage medium
CN111310165B (en) Account switching or registering method and electronic equipment
CN110740265B (en) Image processing method and terminal equipment

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
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.