CN112835470B - Touch detection method, mobile terminal and computer readable storage medium - Google Patents
Touch detection method, mobile terminal and computer readable storage medium Download PDFInfo
- Publication number
- CN112835470B CN112835470B CN202110120013.2A CN202110120013A CN112835470B CN 112835470 B CN112835470 B CN 112835470B CN 202110120013 A CN202110120013 A CN 202110120013A CN 112835470 B CN112835470 B CN 112835470B
- Authority
- CN
- China
- Prior art keywords
- touch
- mobile terminal
- center point
- touch screen
- timer
- 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
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 55
- 230000008859 change Effects 0.000 claims abstract description 22
- 238000000034 method Methods 0.000 claims abstract description 21
- 238000012545 processing Methods 0.000 claims description 12
- 238000004364 calculation method Methods 0.000 claims description 2
- 230000008569 process Effects 0.000 description 7
- 238000011161 development Methods 0.000 description 6
- 239000004973 liquid crystal related substance Substances 0.000 description 4
- 230000003993 interaction Effects 0.000 description 3
- 238000010295 mobile communication Methods 0.000 description 3
- 241000282414 Homo sapiens Species 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 206010064571 Gene mutation Diseases 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 231100000089 gene mutation induction Toxicity 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000006698 induction Effects 0.000 description 1
- 230000001939 inductive effect Effects 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 230000004807 localization Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0416—Control or interface arrangements specially adapted for digitisers
- G06F3/04166—Details of scanning methods, e.g. sampling time, grouping of sub areas or time sharing with display driving
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0412—Digitisers structurally integrated in a display
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0416—Control or interface arrangements specially adapted for digitisers
- G06F3/0418—Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
Abstract
The application discloses a touch detection method, a mobile terminal and a computer readable storage medium, wherein the method comprises the following steps: when the mobile terminal detects that a finger touches the touch screen, starting a timer; the mobile terminal detects whether the touch center point of the touch screen changes, if the touch center point does not change, the timer is closed, and the touch center point coordinates are reported; and if the mobile terminal detects that the touch center point changes, repeatedly detecting whether the touch center point of the touch screen changes or not until the timer is overtime. The application aims to accurately detect the central point position of touch input when the input is carried out through the touch screen in the mobile terminal, and the correct application program can be opened through the central point position, so that the problem of incorrect operation input caused by the slower operation speed or the relation of unsmooth finger surface during user input is avoided, and convenience is brought to the user in using the mobile terminal.
Description
Technical Field
The present application relates to the field of mobile terminals, and in particular, to a touch detection method, a mobile terminal, and a computer readable storage medium.
Background
The mobile terminal or mobile communication terminal refers to a computer device that can be used in mobile, and broadly includes a mobile phone, a notebook, a tablet computer, a POS machine, and even includes a vehicle-mounted computer. But in most cases refers to cell phones or smart phones with multiple application functions and tablet computers. With the development of networks and technologies toward increasingly broadband, the mobile communications industry will move toward the true mobile information age. On the other hand, with the rapid development of integrated circuit technology, the processing power of mobile terminals has been in possession of a great deal of processing power, and mobile terminals are changing from simple telephony tools to an integrated information processing platform. This also adds more room for development to the mobile terminal.
Mobile terminals have been developed as simple communication devices along with mobile communication for decades. Since 2007, intelligent induction of gene mutation of mobile terminals radically changes the traditional localization of terminals as mobile network terminals. The mobile intelligent terminal is almost changed into a key entrance and a main innovation platform of internet business between one moment, a novel media, electronic commerce and information service platform, and the most important hub of internet resources, mobile network resources and environment interaction resources, and an operating system and a processor chip of the mobile intelligent terminal even become strategic high points of the whole ICT industry nowadays. The subversion revolution induced by the mobile intelligent terminal opens the prologue of the development of the mobile internet industry and opens a new technical industry period. With the continuous development of the mobile intelligent terminal, the influence of the mobile intelligent terminal is more than that of a shoulder radio, a television and the Internet (PC), and the mobile intelligent terminal becomes a terminal product which is widely penetrated by the 4 th historical part of human beings, is rapidly popularized, has great influence and goes deep into the aspects of human society life.
Touch screens (Touch panels) are also called "Touch screens" and "Touch panels", and are an inductive liquid crystal display device capable of receiving input signals such as contacts, and when a graphic button on a screen is touched, a Touch feedback system on the screen can drive various connecting devices according to a preprogrammed program, and can be used to replace a mechanical button Panel, and a vivid audio/video effect can be produced by means of a liquid crystal display. The touch screen is used as the latest computer input equipment, and is a simple, convenient and natural man-machine interaction mode. It gives the multimedia a new appearance, and is a very attractive and totally new multimedia interaction device. The method is mainly applied to public information inquiry, industrial control, military command, electronic games, multimedia teaching and the like.
Touch screens are commonly used in mobile terminals, and most operations of the mobile terminals are performed by the touch screen, and many square icons are often arranged on the mobile terminal, wherein the square icons represent an application program installed in the mobile terminal, and when a user operates the icon through the touch screen, the user operates the application program, for example, clicking the icon can open the application program. For the operation of the user on the touch screen, the operation is usually performed by a finger, when the finger falls into the touch screen, the mobile terminal rapidly detects the current touch center point, judges whether the touch center point is positioned in an application icon or not according to the touch center point, and starts the application if the touch center point is positioned in the application icon.
However, in actual use, the user places the finger on the touch screen, possibly because of the non-smooth surface of the finger, a touch center is detected first and used to judge whether the finger is located in an application icon, if so, the application is started; in practice, the user's finger does not complete the touch operation. The above problems are particularly prominent in elderly users because of the slow operating speed of the elderly users and the high degree of finger non-gloss.
Accordingly, the prior art is still in need of improvement and development.
Disclosure of Invention
The application mainly aims to provide a touch detection method, a mobile terminal and a computer readable storage medium, and aims to solve the problem that in the prior art, operation input is incorrect due to the fact that operation speed is slow or the surface of a finger is not smooth when the user inputs the touch detection method, the mobile terminal and the computer readable storage medium.
In order to achieve the above object, the present application provides a touch detection method, including the steps of:
when the mobile terminal detects that a finger touches the touch screen, starting a timer;
and the mobile terminal detects whether the touch center point of the touch screen changes, if the touch center point does not change, the timer is closed, and the touch center point coordinates are reported.
Optionally, the touch detection method, wherein the mobile terminal detects whether a touch center point of the touch screen changes, and further includes:
and if the mobile terminal detects that the touch center point changes, repeatedly detecting whether the touch center point of the touch screen changes or not until the timer is overtime.
Optionally, in the touch detection method, when the mobile terminal detects that the finger touches the touch screen, starting a timer, and before the step of further including:
the mobile terminal presets the overtime of the timer as preset time;
or the mobile terminal acquires the time spent from the last time of detecting that the finger touches the touch screen to the touch center point, and presetting the timeout time of the timer as the spent time;
or the mobile terminal detects the average value of the time spent by the finger touching the touch screen until the touch center point is acquired and finishes before acquiring the preset times, and the timeout time of the timer is preset as the average value of the spent time.
Optionally, the method for detecting a touch of the touch screen includes:
the mobile terminal acquires the center point coordinate detected by the current touch screen;
the mobile terminal acquires all coordinate points detected by the current touch screen, and acquires an abscissa maximum value, an abscissa minimum value, an ordinate maximum value and an ordinate minimum value from all coordinate points;
according to the abscissa average value f1 of the abscissa maximum value and the abscissa minimum value, and according to the ordinate average value f2 of the ordinate maximum value and the ordinate minimum value;
it is determined whether or not the abscissa average value f1 and the ordinate average value f2 change.
Optionally, in the touch detection method, if the touch center point is not changed, closing the timer and reporting the touch center point coordinates, including:
if the mobile terminal judges that the horizontal coordinate average value f1 and the vertical coordinate average value f2 are not changed, the coordinates of the touch center point are not changed;
and the mobile terminal closes the timer and reports the coordinates of the touch center point.
Optionally, in the touch detection method, if the mobile terminal detects that the touch center point changes, repeatedly detecting whether the touch center point of the touch screen changes until the timer times out, including:
if the mobile terminal judges that the horizontal coordinate average value f1 and the vertical coordinate average value f2 are changed, the coordinates of the touch center point are changed;
and the mobile terminal repeatedly detects whether the touch center point of the touch screen changes or not until the timer is overtime.
Optionally, in the touch detection method, the preset time is 2 seconds; the preset times are 10 times.
In addition, to achieve the above object, the present application also provides a touch detection system, wherein the touch detection system includes:
the touch detection module is used for starting a timer when detecting that the finger touches the touch screen;
and the touch processing module is used for detecting whether the touch center point of the touch screen changes, and if the touch center point does not change, closing the timer and reporting the coordinates of the touch center point.
In addition, to achieve the above object, the present application also provides a mobile terminal, wherein the mobile terminal includes: the touch detection device comprises a memory, a processor and a touch detection program stored on the memory and capable of running on the processor, wherein the touch detection program realizes the steps of the touch detection method when being executed by the processor.
In addition, in order to achieve the above object, the present application also provides a computer-readable storage medium storing a touch detection program which, when executed by a processor, implements the steps of the touch detection method described above.
When the mobile terminal detects that a finger touches the touch screen, a timer is started; the mobile terminal detects whether the touch center point of the touch screen changes, if the touch center point does not change, the timer is closed, and the touch center point coordinates are reported; and if the mobile terminal detects that the touch center point changes, repeatedly detecting whether the touch center point of the touch screen changes or not until the timer is overtime. The application aims to accurately detect the central point position of touch input when the input is carried out through the touch screen in the mobile terminal, and the correct application program can be opened through the central point position, so that the problem of incorrect operation input caused by the slower operation speed or the relation of unsmooth finger surface during user input is avoided, and convenience is brought to the user in using the mobile terminal.
Drawings
FIG. 1 is a flow chart of a preferred embodiment of the touch detection method of the present application;
FIG. 2 is a flow chart of detecting whether a touch center point of a touch screen is changed in a preferred embodiment of the touch detection method of the present application;
FIG. 3 is a flowchart of the process when the touch center point is unchanged in the preferred embodiment of the touch detection method of the present application;
FIG. 4 is a flowchart of the process when a touch center point is changed in a preferred embodiment of the touch detection method of the present application;
FIG. 5 is a schematic diagram of a preferred embodiment of a touch detection system of the present application;
FIG. 6 is a schematic diagram of an operating environment of a mobile terminal according to a preferred embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clear and clear, the present application will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
Touch screens are commonly used in mobile terminals, and most operations of the mobile terminals are performed by the touch screen, and many square icons are often arranged on the mobile terminal, wherein the square icons represent an application program installed in the mobile terminal, and when a user operates the icon through the touch screen, the user operates the application program, for example, clicking the icon can open the application program. For the operation of the user on the touch screen, the operation is usually performed by a finger, when the finger falls into the touch screen, the mobile terminal rapidly detects the current touch center point, judges whether the touch center point is positioned in an application icon or not according to the touch center point, and starts the application if the touch center point is positioned in the application icon.
However, in actual use, the user places the finger on the touch screen, possibly because of the non-smooth surface of the finger, a touch center is detected first and used to judge whether the finger is located in an application icon, if so, the application is started; in practice, the user's finger does not complete the touch operation. The above problems are particularly prominent in elderly users because of the slow operating speed of the elderly users and the high degree of finger non-gloss.
In view of the above-mentioned drawbacks of the prior art, the touch detection method according to the preferred embodiment of the present application, as shown in fig. 1, includes the following steps:
and step S10, when the mobile terminal detects that the finger touches the touch screen, starting a timer.
Specifically, before the step S10, the method further includes: the mobile terminal presets the overtime of the timer as preset time, wherein the preset time is preferably 2 seconds, namely the mobile terminal presets the overtime of the timer as 2 seconds; or the mobile terminal acquires the time spent from the last time of detecting that the finger touches the touch screen to the touch center point, and presetting the timeout time of the timer as the spent time; or the mobile terminal obtains the average value of the time spent by the finger touching the touch screen to the touch center point for the preset times, and presets the timeout time of the timer to be the average value of the spent time, wherein the preset times are preferably 10 times, namely the mobile terminal obtains the average value of the time spent by the finger touching the touch screen to the touch center point for the preset times, and presets the timeout time of the timer to be the average value of the spent time. After the mobile terminal finishes setting the timeout time of the timer, the mobile terminal detects whether a finger touches the touch screen in real time, and when the mobile terminal detects that the finger touches the touch screen, the timer is started.
And step S20, the mobile terminal detects whether the touch center point of the touch screen changes, and if the touch center point does not change, the timer is closed and the touch center point coordinates are reported.
Fig. 2 is a flowchart of a mobile terminal detecting whether a touch center point of the touch screen changes in the touch detection method according to the present application.
As shown in fig. 2, the mobile terminal detecting whether the touch center point of the touch screen is changed includes:
s211, the mobile terminal acquires the center point coordinates detected by the current touch screen;
s212, the mobile terminal acquires all coordinate points detected by the current touch screen, and acquires an abscissa maximum value, an abscissa minimum value, an ordinate maximum value and an ordinate minimum value from all coordinate points;
s213, according to an abscissa average value f1 of the abscissa maximum value and the abscissa minimum value, and according to an ordinate average value f2 of the ordinate maximum value and the ordinate minimum value;
s214, judging whether the abscissa average value f1 and the ordinate average value f2 change.
Specifically, the mobile terminal acquires the coordinates of the central point detected by the current touch screen, acquires all coordinate points detected by the current touch screen, acquires the maximum value, the minimum value, the maximum value and the minimum value of the horizontal coordinates in the coordinate points, acquires the average value f1 of the maximum value and the minimum value of the horizontal coordinates in the four values, acquires the average value f2 of the maximum value and the minimum value of the vertical coordinates in the four values, judges whether the f1 and the f2 change, and if not, the coordinates of the touch central point do not change.
Fig. 3 is a flowchart of a process when a touch center point is unchanged in the touch detection method according to the present application.
As shown in fig. 3, if the touch center point is unchanged, closing the timer and reporting the touch center point coordinates, specifically including:
s221, if the mobile terminal judges that the abscissa average value f1 and the ordinate average value f2 are unchanged, the coordinates of the touch center point are unchanged;
s222, the mobile terminal closes the timer and reports the coordinates of the touch center point.
The mobile terminal judges that the abscissa average value f1 and the ordinate average value f2 are unchanged (the abscissa average value f1 and the ordinate average value f2 are unchanged), the touch center point coordinate is unchanged, and the mobile terminal closes the timer and reports the touch center point coordinate.
Further, after the step S20, the method further includes: and if the mobile terminal detects that the touch center point changes, repeatedly detecting whether the touch center point of the touch screen changes or not until the timer is overtime.
Fig. 4 is a flowchart of a process when a touch center point changes in the touch detection method according to the present application.
As shown in fig. 4, if the mobile terminal detects that the touch center point changes, repeatedly detecting whether the touch center point of the touch screen changes until the timer times out, specifically includes:
s221, if the mobile terminal judges that the abscissa average value f1 and the ordinate average value f2 are changed, the coordinates of the touch center point are changed;
s222, the mobile terminal repeatedly detects whether the touch center point of the touch screen changes or not until the timer is overtime.
If the mobile terminal determines that the abscissa average value f1 and the ordinate average value f2 change (the abscissa average value f1 and the ordinate average value f2 change), the coordinates of the touch center point change, and the mobile terminal repeatedly detects whether the touch center point of the touch screen changes or not until the timer times out.
The application provides a touch detection method of a mobile terminal, which comprises the steps of starting a timer by detecting that a finger touches a touch screen; detecting whether the touch center point changes or not, if the touch center point does not change, closing a timer and reporting the coordinates of the touch center point; if the timer is unstable, the step is repeatedly executed until the timer is overtime. When the input is carried out through the touch screen in the mobile terminal, the center point position of the touch input can be accurately detected, a correct application program can be opened through the center point position, and the problem that the operation input is incorrect due to the fact that the operation speed is slow or the finger surface is not smooth during the user input is avoided, so that the user experience is improved.
Further, based on the above touch detection method, as shown in fig. 5, the present application further provides a touch detection system, where the touch detection system includes:
the touch detection module 50 is used for starting a timer when detecting that a finger touches the touch screen;
the touch processing module 60 is configured to detect whether a touch center point of the touch screen changes, and if the touch center point does not change, close the timer and report coordinates of the touch center point.
The touch detection system further includes:
and the repetition detection module is used for repeatedly detecting whether the touch center point of the touch screen changes or not if the mobile terminal detects that the touch center point changes, until the timer is overtime.
The touch detection system further includes:
the preset module is used for presetting the overtime of the timer to be preset time; or the mobile terminal acquires the time spent from the last time of detecting that the finger touches the touch screen to the touch center point, and presetting the timeout time of the timer as the spent time; or the mobile terminal detects the average value of the time spent by the finger touching the touch screen until the touch center point is acquired and finishes before acquiring the preset times, and the timeout time of the timer is preset as the average value of the spent time.
The touch processing module 60 specifically includes:
the mobile terminal comprises a central point coordinate detection unit, a touch screen and a touch screen, wherein the central point coordinate detection unit is used for acquiring the central point coordinate detected by the current touch screen by the mobile terminal;
the coordinate value acquisition unit is used for acquiring all coordinate points detected by the current touch screen by the mobile terminal, and acquiring an abscissa maximum value, an abscissa minimum value, an ordinate maximum value and an ordinate minimum value from all coordinate points;
a coordinate average value calculation unit, configured to calculate an abscissa average value f1 according to the abscissa maximum value and the abscissa minimum value, and an ordinate average value f2 according to the ordinate maximum value and the ordinate minimum value;
and the coordinate change judging unit is used for judging whether the abscissa average value f1 and the ordinate average value f2 are changed or not.
The touch processing module 60 further includes:
the first touch center point coordinate judging unit is used for judging that the coordinate of the touch center point is unchanged if the mobile terminal judges that the abscissa average value f1 and the ordinate average value f2 are unchanged;
and closing the reporting unit, wherein the reporting unit is used for closing the timer by the mobile terminal and reporting the coordinates of the touch center point.
The duplicate detection module includes:
the second touch center point coordinate judging unit is used for judging that if the mobile terminal judges that the horizontal coordinate average value f1 and the vertical coordinate average value f2 are changed, the touch center point coordinate is changed;
and the repeated judging unit is used for repeatedly detecting whether the touch center point of the touch screen changes or not by the mobile terminal until the timer is overtime.
The application aims to accurately detect the central point position of touch input when the input is carried out through the touch screen in the mobile terminal, and the correct application program can be opened through the central point position, so that the problem of incorrect operation input caused by the slower operation speed or the relation of the unsmooth finger surface during user input is avoided, and the user experience is improved.
Further, as shown in fig. 6, based on the above touch detection method and system, the present application further provides a mobile terminal correspondingly, where the mobile terminal includes a processor 10, a memory 20 and a display 30. Fig. 6 shows only some of the components of the mobile terminal, but it should be understood that not all of the illustrated components are required to be implemented and that more or fewer components may alternatively be implemented.
The memory 20 may in some embodiments be an internal storage unit of the mobile terminal, such as a hard disk or a memory of the mobile terminal. The memory 20 may in other embodiments also be an external storage device of the mobile terminal, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the mobile terminal. Further, the memory 20 may also include both an internal storage unit and an external storage device of the mobile terminal. The memory 20 is used for storing application software installed in the mobile terminal and various data, such as program codes for installing the mobile terminal. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, the memory 20 stores a touch detection program 40, and the touch detection program 40 is executable by the processor 10 to implement the touch detection method of the present application.
The processor 10 may in some embodiments be a central processing unit (Central Processing Unit, CPU), microprocessor or other data processing chip for executing program code or processing data stored in the memory 20, for example for performing the touch detection method or the like.
The display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch, or the like in some embodiments. The display 30 is used for displaying information on the mobile terminal and for displaying a visual user interface. The components 10-30 of the mobile terminal communicate with each other via a system bus.
In one embodiment, the following steps are implemented when the processor 10 executes the touch detection program 40 in the memory 20:
when the mobile terminal detects that a finger touches the touch screen, starting a timer;
and the mobile terminal detects whether the touch center point of the touch screen changes, if the touch center point does not change, the timer is closed, and the touch center point coordinates are reported.
The mobile terminal detects whether the touch center point of the touch screen changes or not, and then further comprises:
and if the mobile terminal detects that the touch center point changes, repeatedly detecting whether the touch center point of the touch screen changes or not until the timer is overtime.
When the mobile terminal detects that the finger touches the touch screen, a timer is started, and the method comprises the following steps:
the mobile terminal presets the overtime of the timer as preset time;
or the mobile terminal acquires the time spent from the last time of detecting that the finger touches the touch screen to the touch center point, and presetting the timeout time of the timer as the spent time;
or the mobile terminal detects the average value of the time spent by the finger touching the touch screen until the touch center point is acquired and finishes before acquiring the preset times, and the timeout time of the timer is preset as the average value of the spent time.
The mobile terminal detects whether the touch center point of the touch screen changes or not, and specifically comprises the following steps:
the mobile terminal acquires the center point coordinate detected by the current touch screen;
the mobile terminal acquires all coordinate points detected by the current touch screen, and acquires an abscissa maximum value, an abscissa minimum value, an ordinate maximum value and an ordinate minimum value from all coordinate points;
according to the abscissa average value f1 of the abscissa maximum value and the abscissa minimum value, and according to the ordinate average value f2 of the ordinate maximum value and the ordinate minimum value;
it is determined whether or not the abscissa average value f1 and the ordinate average value f2 change.
If the touch center point is not changed, closing the timer and reporting the touch center point coordinates, wherein the method specifically comprises the following steps:
if the mobile terminal judges that the horizontal coordinate average value f1 and the vertical coordinate average value f2 are not changed, the coordinates of the touch center point are not changed;
and the mobile terminal closes the timer and reports the coordinates of the touch center point.
If the mobile terminal detects that the touch center point changes, repeatedly detecting whether the touch center point of the touch screen changes or not until the timer is overtime, specifically comprising:
if the mobile terminal judges that the horizontal coordinate average value f1 and the vertical coordinate average value f2 are changed, the coordinates of the touch center point are changed;
and the mobile terminal repeatedly detects whether the touch center point of the touch screen changes or not until the timer is overtime.
Wherein the preset time is 2 seconds; the preset times are 10 times.
The present application also provides a computer-readable storage medium storing a touch detection program which, when executed by a processor, implements the steps of the touch detection method as described above.
In summary, the present application provides a touch detection method, a mobile terminal and a computer readable storage medium, where the method includes: when the mobile terminal detects that a finger touches the touch screen, starting a timer; the mobile terminal detects whether the touch center point of the touch screen changes, if the touch center point does not change, the timer is closed, and the touch center point coordinates are reported; and if the mobile terminal detects that the touch center point changes, repeatedly detecting whether the touch center point of the touch screen changes or not until the timer is overtime. The application aims to accurately detect the central point position of touch input when the input is carried out through the touch screen in the mobile terminal, and the correct application program can be opened through the central point position, so that the problem of incorrect operation input caused by the slower operation speed or the relation of unsmooth finger surface during user input is avoided, and convenience is brought to the user in using the mobile terminal.
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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Of course, those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by a computer program for instructing relevant hardware (e.g., processor, controller, etc.), the program may be stored on a computer readable storage medium, and the program may include the above described methods when executed. The computer readable storage medium may be a memory, a magnetic disk, an optical disk, etc.
It is to be understood that the application is not limited in its application to the examples described above, but is capable of modification and variation in light of the above teachings by those skilled in the art, and that all such modifications and variations are intended to be included within the scope of the appended claims.
Claims (7)
1. A touch detection method, the touch detection method comprising:
when the mobile terminal detects that a finger touches the touch screen, starting a timer;
the mobile terminal detects whether the touch center point of the touch screen changes, if the touch center point does not change, the timer is closed, and the touch center point coordinates are reported;
if the mobile terminal detects that the touch center point changes, repeatedly detecting whether the touch center point of the touch screen changes or not until the timer is overtime;
the mobile terminal detects whether the touch center point of the touch screen changes or not, and specifically comprises the following steps:
the mobile terminal acquires the center point coordinate detected by the current touch screen;
the mobile terminal acquires all coordinate points detected by the current touch screen, and acquires an abscissa maximum value, an abscissa minimum value, an ordinate maximum value and an ordinate minimum value from all coordinate points;
according to the abscissa average value f1 of the abscissa maximum value and the abscissa minimum value, and according to the ordinate average value f2 of the ordinate maximum value and the ordinate minimum value;
judging whether the abscissa average value f1 and the ordinate average value f2 change or not;
if the mobile terminal detects that the touch center point changes, repeatedly detecting whether the touch center point of the touch screen changes or not until the timer is overtime, specifically comprising:
if the mobile terminal judges that the horizontal coordinate average value f1 and the vertical coordinate average value f2 are changed, the coordinates of the touch center point are changed;
the mobile terminal repeatedly detects whether the touch center point of the touch screen changes or not until the timer is overtime;
when the mobile terminal inputs through the touch screen, the central point position of the touch input is accurately detected, and the correct application program is opened through the central point position, so that the influence of incorrect operation input caused by low operation speed or uneven finger surface is effectively reduced.
2. The touch detection method according to claim 1, wherein when the mobile terminal detects that the finger touches the touch screen, starting a timer, further comprising:
the mobile terminal presets the overtime of the timer as preset time.
3. The method for detecting a touch according to claim 1, wherein if the touch center point is unchanged, closing the timer and reporting the touch center point coordinates, specifically comprising:
if the mobile terminal judges that the horizontal coordinate average value f1 and the vertical coordinate average value f2 are not changed, the coordinates of the touch center point are not changed;
and the mobile terminal closes the timer and reports the coordinates of the touch center point.
4. The touch detection method of claim 2, wherein the preset time is 2 seconds.
5. A touch detection system, the touch detection system comprising:
the touch detection module is used for starting a timer when detecting that the finger touches the touch screen;
the touch processing module is used for detecting whether the touch center point of the touch screen changes or not, if the touch center point does not change, closing the timer and reporting the coordinates of the touch center point;
if the mobile terminal detects that the touch center point changes, repeatedly detecting whether the touch center point of the touch screen changes or not until the timer is overtime;
the touch processing module specifically comprises:
the mobile terminal comprises a central point coordinate detection unit, a touch screen and a touch screen, wherein the central point coordinate detection unit is used for acquiring the central point coordinate detected by the current touch screen by the mobile terminal;
the coordinate value acquisition unit is used for acquiring all coordinate points detected by the current touch screen by the mobile terminal, and acquiring an abscissa maximum value, an abscissa minimum value, an ordinate maximum value and an ordinate minimum value from all coordinate points;
a coordinate average value calculation unit, configured to calculate an abscissa average value f1 according to the abscissa maximum value and the abscissa minimum value, and an ordinate average value f2 according to the ordinate maximum value and the ordinate minimum value;
the coordinate change judging unit is used for judging whether the abscissa average value f1 and the ordinate average value f2 are changed or not;
the duplicate detection module includes:
the second touch center point coordinate judging unit is used for judging that if the mobile terminal judges that the horizontal coordinate average value f1 and the vertical coordinate average value f2 are changed, the touch center point coordinate is changed;
the repeated judging unit is used for repeatedly detecting whether the touch center point of the touch screen changes or not by the mobile terminal until the timer is overtime;
when the mobile terminal inputs through the touch screen, the central point position of the touch input is accurately detected, and the correct application program is opened through the central point position, so that the influence of incorrect operation input caused by low operation speed or uneven finger surface is effectively reduced.
6. A mobile terminal, the mobile terminal comprising: a memory, a processor and a touch detection program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the touch detection method of any of claims 1-4.
7. A computer readable storage medium storing a touch detection program which when executed by a processor implements the steps of the touch detection method according to any one of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110120013.2A CN112835470B (en) | 2021-01-28 | 2021-01-28 | Touch detection method, mobile terminal and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110120013.2A CN112835470B (en) | 2021-01-28 | 2021-01-28 | Touch detection method, mobile terminal and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112835470A CN112835470A (en) | 2021-05-25 |
CN112835470B true CN112835470B (en) | 2023-11-14 |
Family
ID=75930992
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110120013.2A Active CN112835470B (en) | 2021-01-28 | 2021-01-28 | Touch detection method, mobile terminal and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112835470B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103389877A (en) * | 2013-07-24 | 2013-11-13 | Tcl通讯(宁波)有限公司 | Finger tilt identification method and system based on touch screen and mobile terminal |
CN106534556A (en) * | 2016-11-22 | 2017-03-22 | 努比亚技术有限公司 | Mobile terminal and data processing method thereof |
-
2021
- 2021-01-28 CN CN202110120013.2A patent/CN112835470B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103389877A (en) * | 2013-07-24 | 2013-11-13 | Tcl通讯(宁波)有限公司 | Finger tilt identification method and system based on touch screen and mobile terminal |
CN106534556A (en) * | 2016-11-22 | 2017-03-22 | 努比亚技术有限公司 | Mobile terminal and data processing method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN112835470A (en) | 2021-05-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103135914B (en) | A kind of screenshotss method based on touch-screen and device | |
US7770136B2 (en) | Gesture recognition interactive feedback | |
CN105335048B (en) | Electronic equipment with hidden application icon and method for hiding application icon | |
EP3693843B1 (en) | Method and apparatus for designating entire area using partial area touch in a portable equipment | |
US20130033436A1 (en) | Electronic device, controlling method thereof and computer program product | |
CN106371789A (en) | Method for displaying prompt message in application program, and mobile terminal | |
CN105302693A (en) | Time management method and system and electronic device | |
CN102768597B (en) | Method and device for operating electronic equipment | |
CN105183331A (en) | Method and device for controlling gesture on electronic device | |
WO2022022566A1 (en) | Graphic code identification method and apparatus and electronic device | |
CN106371745A (en) | Interface switching method and mobile terminal | |
CN101482799A (en) | Method for controlling electronic equipment through touching type screen and electronic equipment thereof | |
CN106228085A (en) | The method for secret protection of application program and mobile terminal | |
US11455071B2 (en) | Layout method, device and equipment for window control bars | |
CN109634487B (en) | Information display method, device and storage medium | |
US20170269775A1 (en) | Touch control operation | |
CN112835470B (en) | Touch detection method, mobile terminal and computer readable storage medium | |
CN107608521B (en) | Touch screen failure processing method, storage medium and mobile terminal | |
CN104750375B (en) | interface display method and device | |
CN104571847B (en) | operation method of electronic device | |
US11460971B2 (en) | Control method and electronic device | |
CN104049867A (en) | Information processing method and electronic device | |
EP2741194A1 (en) | Scroll jump interface for touchscreen input/output device | |
CN108021313B (en) | Picture browsing method and terminal | |
CN111049952A (en) | Intelligent terminal and control method thereof |
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 |