[go: up one dir, main page]

CN119902641A - Anti-accidental touch method, device, electronic device and storage medium - Google Patents

Anti-accidental touch method, device, electronic device and storage medium Download PDF

Info

Publication number
CN119902641A
CN119902641A CN202311406145.7A CN202311406145A CN119902641A CN 119902641 A CN119902641 A CN 119902641A CN 202311406145 A CN202311406145 A CN 202311406145A CN 119902641 A CN119902641 A CN 119902641A
Authority
CN
China
Prior art keywords
touch
area
input
preset
false
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311406145.7A
Other languages
Chinese (zh)
Inventor
郭开荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202311406145.7A priority Critical patent/CN119902641A/en
Publication of CN119902641A publication Critical patent/CN119902641A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/0418Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
    • G06F3/04186Touch location disambiguation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0414Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using force sensing means to determine a position
    • G06F3/04142Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using force sensing means to determine a position the force sensing means being located peripherally, e.g. disposed at the corners or at the side of a touch sensing plate

Landscapes

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

Abstract

本公开是关于一种防误触方法、装置、电子设备及存储介质,该方法包括:响应于在触摸屏中显示的输入区域的触控输入,对触摸屏的预设区域进行调整;其中所述输入区域用于对接收的所述触控输入进行文本响应,所述输入区域与所述预设区域至少部分重叠;在输入区域检测到第一触控操作、且第一触控操作作用于调整后的预设区域情况下,采用与所述触控输入对应的误触检测策略,对所述第一触控操作进行误触检测,得到误触检测结果;当所述误触检测结果满足预设的误触判断条件时,不响应所述第一触控操作。本公开能有效、准确地识别预设区域内的正常触控操作和误触操作,提高了触摸屏的打字触控性能,改善了用户打字体验。

The present disclosure is about a method, device, electronic device and storage medium for preventing accidental touches, the method comprising: in response to a touch input in an input area displayed in a touch screen, adjusting a preset area of the touch screen; wherein the input area is used to respond to the received touch input in text, and the input area at least partially overlaps with the preset area; when a first touch operation is detected in the input area, and the first touch operation acts on the adjusted preset area, an accidental touch detection strategy corresponding to the touch input is adopted to perform an accidental touch detection on the first touch operation to obtain an accidental touch detection result; when the accidental touch detection result meets a preset accidental touch judgment condition, the first touch operation is not responded to. The present disclosure can effectively and accurately identify normal touch operations and accidental touch operations in a preset area, improve the typing touch performance of the touch screen, and improve the user typing experience.

Description

False touch prevention method and device, electronic equipment and storage medium
Technical Field
The disclosure relates to the field of communication, and in particular relates to a false touch prevention method, a false touch prevention device, electronic equipment and a storage medium.
Background
With the wide application of touch screens in electronic devices, user interaction with the electronic devices is becoming more and more convenient. To further improve the user's visual experience and the color value of the electronic device, the design of a full-screen is popular, and as the screen duty cycle is higher and higher, the edges of the electronic device are narrower and narrower, which results in that false touches are easily generated when the electronic device is used.
In order to prevent the influence of the edge false touch on the use, the conventional false touch prevention method is to add a dead zone in the edge area, and any touch signal generated in the dead zone is invalid, so as to prevent the false touch. However, the method can cause invalid normal touch operation of the user in the edge area, and influence the use experience of the user.
Disclosure of Invention
The disclosure provides an anti-false touch method, an anti-false touch device, electronic equipment and a storage medium, so as to solve the problem that the edge area of a touch screen is prone to false touch.
According to a first aspect of an embodiment of the present disclosure, there is provided a false touch preventing method, including:
Responding to touch input of an input area displayed in a touch screen, and adjusting a preset area of the touch screen, wherein the input area is used for performing text response on the received touch input, and the input area at least partially overlaps with the preset area;
Under the condition that the first touch operation is detected to act on the adjusted edge suppression area, adopting a false touch detection strategy corresponding to the touch input to perform false touch detection on the first touch operation, and obtaining a false touch detection result;
And when the false touch detection result meets a preset false touch judgment condition, not responding to the first touch operation.
In some embodiments, the method for preventing false touch further comprises:
Acquiring touch data corresponding to the touch input, determining the input state of the touch input based on the touch data, and/or,
And acquiring the acceleration sensor parameters and the gravity sensor parameters of the electronic equipment, inputting the acceleration sensor parameters and the gravity sensor parameters into a state recognition model obtained through training, and obtaining the input state of the touch input.
In some embodiments, determining the input state of the touch input based on the touch data includes:
determining a touch area corresponding to the touch input based on the touch data corresponding to the touch input;
Performing ellipse fitting on the touch area to determine an ellipse area and ellipse parameters corresponding to the ellipse area;
Determining an input state of the touch input based on the ellipse parameters;
wherein the ellipse parameters include the number of the ellipse regions.
In some embodiments, determining the input state of the touch input based on the ellipse parameters includes:
under the condition that the number of the elliptical areas is larger than one, determining that the input state of the touch input is a two-hand input state;
and under the condition that the number of the elliptical areas is equal to one, determining the input state of the touch input to be a one-hand input state.
In some embodiments, adjusting the preset area of the touch screen includes:
when the input state of the touch input is a one-hand input state, adjusting the preset area to an edge area of one side acted by the touch input;
When the input state of the touch input is a two-hand input state, adjusting the preset area to the edge areas of the two sides acted by the touch input;
the area of the preset area in the one-hand input state is larger than that of each preset area in the two-hand input state.
In some embodiments, a false touch detection policy corresponding to the input state is adopted to perform false touch detection on the first touch operation, so as to obtain a false touch detection result, including:
Determining a current pressing force distribution parameter based on sensor touch data corresponding to the first touch operation under the condition that the input state of the touch input is a one-hand input state or a two-hand input state, wherein the pressing force parameter is used for representing the pressing force distribution trend of the first touch operation;
And when the false touch detection result meets a preset false touch judgment condition, not responding to the first touch operation, including:
And under the condition that the current pressing force distribution parameter is larger than a preset force distribution threshold value, the first touch operation is not responded.
In some embodiments, determining the current pressing force distribution parameter based on the touch data corresponding to the first touch operation includes:
And under the condition that the input state of the touch input is a one-hand input state, the number of touch areas is one when the first touch operation acts on the preset area, and no touch operation exists in a non-preset area of the touch screen, determining the current pressing force distribution parameter based on touch data corresponding to the first touch operation.
In some embodiments, the compression force profile parameters include corner compression force profile parameters and/or edge compression force profile parameters;
the determining, based on the touch data corresponding to the first touch operation, a current pressing force distribution parameter includes:
If the coordinate corresponding to the maximum value in the touch data is positioned at the vertex angle position of the touch screen, determining a first sum value between the touch data in a first L-shaped area containing the maximum value and a second sum value between the touch data in a second L-shaped area adjacent to the first L-shaped area, and determining the corner pressing force distribution parameter based on the ratio between the first sum value and the second sum value, and/or
And determining a third sum value between at least one piece of touch data in the direction of the straight line where the maximum value is located and a fourth sum value between at least one piece of touch data in the direction of the straight line adjacent to the straight line where the maximum value is located, and determining the edge pressing force distribution parameter based on the ratio between the third sum value and the fourth sum value.
In some embodiments, a false touch detection policy corresponding to the touch input is adopted to perform false touch detection on the first touch operation, so as to obtain a false touch detection result, including:
Determining the area of a finger touch area and the area of a palm touch area based on touch data corresponding to the first touch operation under the condition that the input state of the touch input is a one-hand input state;
And when the false touch detection result meets a preset false touch judgment condition, not responding to the first touch operation, including:
and under the condition that the area of the finger touch area is smaller than that of the palm touch area, the first touch operation is not responded.
In some embodiments, determining the area of the finger touch area and the area of the palm touch area based on the touch data corresponding to the first touch operation includes:
The first touch operation is simultaneously applied to the preset area and the non-preset area of the touch screen, or
And under the condition that the number of the touch areas is multiple when the first touch operation acts on the preset area and no touch operation exists in the non-preset area of the touch screen, determining the area of the finger touch area and the area of the palm touch area based on the touch data corresponding to the first touch operation.
In some embodiments, the method for preventing false touch further comprises:
under the condition that the first touch operation is simultaneously applied to the preset area and the non-preset area of the touch screen, taking the area where the touch data corresponding to the first touch operation in the preset area is located as a palm touch area;
And taking the region where the touch data corresponding to the first touch operation in the non-preset region is located as a finger touch region.
In some embodiments, the method for preventing false touch further comprises:
when the number of the touch areas is multiple and no touch operation exists in a non-preset area of the touch screen when the first touch operation acts on the preset area, determining multiple touch areas based on touch data corresponding to the first touch operation and coordinates of the touch data;
Performing curve fitting on each touch area to obtain an elliptical area and a non-elliptical area;
and determining the elliptical area as the finger touch area, and determining the non-elliptical area as the palm touch area.
According to a second aspect of embodiments of the present disclosure, there is provided an anti-false touch device, including:
the device comprises an adjustment module, a display module and a display module, wherein the adjustment module is configured to respond to touch input of an input area displayed in a touch screen and adjust a preset area of the touch screen, the input area is used for performing text response on the received touch input, and the input area is at least partially overlapped with the preset area;
the detection module is configured to perform false touch detection on the first touch operation by adopting a false touch detection strategy corresponding to the touch input under the condition that the first touch operation is detected in the input area and acts on the adjusted preset area, so as to obtain a false touch detection result;
and the determining module is configured to not respond to the first touch operation when the false touch detection result meets a preset false touch judgment condition.
In some embodiments, the adjustment module is further configured to:
Acquiring touch data corresponding to the touch input, determining the input state of the touch input based on the touch data, and/or,
And acquiring the acceleration sensor parameters and the gravity sensor parameters of the electronic equipment, inputting the acceleration sensor parameters and the gravity sensor parameters into a state recognition model obtained through training, and obtaining the input state of the touch input.
In some embodiments, the adjustment module is further configured to:
determining a touch area corresponding to the touch input based on the touch data corresponding to the touch input;
Performing ellipse fitting on the touch area to determine an ellipse area and ellipse parameters corresponding to the ellipse area;
Determining an input state of the touch input based on the ellipse parameters;
wherein the ellipse parameters include the number of the ellipse regions.
In some embodiments, the adjustment module is further configured to:
under the condition that the number of the elliptical areas is larger than one, determining that the input state of the touch input is a two-hand input state;
and under the condition that the number of the elliptical areas is equal to one, determining the input state of the touch input to be a one-hand input state.
In some embodiments, the adjustment module is further configured to:
when the input state of the touch input is a one-hand input state, adjusting the preset area to an edge area of one side acted by the touch input;
When the input state of the touch input is a two-hand input state, adjusting the preset area to the edge areas of the two sides acted by the touch input;
The size of the preset area in the one-hand input state is larger than that of each preset area in the two-hand input state.
In some embodiments, the detection module is further configured to:
And under the condition that the input state of the touch input is a one-hand input state, determining a current pressing force distribution parameter based on touch data corresponding to the first touch operation, wherein the pressing force parameter is used for representing the pressing force distribution trend of the first touch operation.
In some embodiments, the determination module is further configured to:
And under the condition that the current pressing force distribution parameter is larger than a preset force distribution threshold value, not responding to the first touch operation.
In some embodiments, the detection module is further configured to:
And under the condition that the touch area is one when the first touch operation acts on the preset area and no touch operation exists in a non-preset area of the touch screen, determining the current pressing force distribution parameter based on touch data corresponding to the first touch operation.
In some embodiments, the detection module is further configured to:
If the coordinate corresponding to the maximum value in the touch data is at the vertex angle position of the touch screen, determining a first sum value between the touch data in a first L-shaped area containing the maximum value and a second sum value between the touch data in a second L-shaped area adjacent to the first L-shaped area, and determining the corner pressing force distribution parameter based on the ratio between the first sum value and the second sum value, and/or
And determining a third sum value between at least one piece of touch data in the direction of the straight line where the maximum value is located and a fourth sum value between at least one piece of touch data in the direction of the straight line adjacent to the straight line where the maximum value is located, and determining the edge pressing force distribution parameter based on the ratio between the third sum value and the fourth sum value.
In some embodiments, the detection module is further configured to:
And under the condition that the input state of the touch input is a one-hand input state, determining the area of the finger touch area and the area of the palm touch area based on the touch data corresponding to the first touch operation.
In some embodiments, the determination module is further configured to:
And under the condition that the area of the finger touch area is smaller than that of the palm touch area, the first touch operation is not responded.
In some embodiments, the detection module is further configured to:
The first touch operation is simultaneously applied to the preset area and the non-preset area of the touch screen, or
And under the condition that the number of the touch areas is multiple when the first touch operation acts on the preset area and no touch operation exists in the non-preset area of the touch screen, determining the area of the finger touch area and the area of the palm touch area based on the touch data corresponding to the first touch operation.
In some embodiments, the detection module is further configured to:
under the condition that the first touch operation is simultaneously applied to the preset area and the non-preset area of the touch screen, taking the area where the touch data corresponding to the first touch operation in the preset area is located as a palm touch area;
And taking the region where the touch data corresponding to the first touch operation in the non-preset region is located as a finger touch region.
In some embodiments, the detection module is further configured to:
when the number of the touch areas is multiple and no touch operation exists in a non-preset area of the touch screen when the first touch operation acts on the preset area, determining multiple touch areas based on touch data corresponding to the first touch operation and coordinates of the touch data;
Performing curve fitting on each touch area to obtain an elliptical area and a non-elliptical area;
and determining the elliptical area as the finger touch area, and determining the non-elliptical area as the palm touch area.
According to a third aspect of embodiments of the present disclosure, there is provided an electronic device, comprising:
a processor;
a memory configured to store processor-executable instructions;
wherein the processor is configured to execute the false touch prevention method according to the first aspect when invoking the executable instructions in the memory.
According to a fourth aspect of embodiments of the present disclosure, there is provided a non-transitory computer readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform the false touch prevention method described in the first aspect above.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
The false touch prevention method includes the steps of responding to touch input of an input area displayed in a touch screen, adjusting a preset area of the touch screen, wherein the input area is used for conducting text response on received touch input and is at least partially overlapped with the preset area, conducting false touch detection on a first touch operation by adopting a false touch detection strategy corresponding to the touch input under the condition that the first touch operation is detected in the input area and acts on the adjusted preset area, and obtaining a false touch detection result, and when the false touch detection result meets preset false touch judgment conditions, not responding to the first touch operation. Because the preset area is determined based on the touch input and the false touch detection strategy is determined based on the touch input, the normal typing operation and the false touch operation in the preset area can be effectively and accurately identified in the face of various touch input conditions, the typing touch performance of the touch screen is improved, and the typing experience of a user is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flow chart illustrating a false touch prevention method according to an exemplary embodiment.
Fig. 2 is a schematic diagram of a preset area in a touch screen in a one-hand input state according to an exemplary embodiment.
Fig. 3 is a second schematic diagram of a preset area in a touch screen in a one-hand input state according to an exemplary embodiment.
Fig. 4 is a schematic diagram three of a preset area in a touch screen in a one-hand input state according to an exemplary embodiment.
Fig. 5 is a schematic diagram one of a preset area in a touch screen in a two-hand input state according to an exemplary embodiment.
FIG. 6 is a second schematic diagram of a preset area in a touch screen in a two-hand input state, according to an example embodiment.
FIG. 7 is a schematic diagram showing distribution of touch data related to a pressing force distribution parameter in a touch screen in a false touch prevention method according to an exemplary embodiment;
Fig. 8 is a schematic diagram ii showing distribution of touch data related to a pressing force distribution parameter in a touch screen in an anti-false touch method according to an exemplary embodiment.
Fig. 9 is a schematic structural view of an anti-false touch device according to an exemplary embodiment.
Fig. 10 is a schematic diagram showing a structure of an electronic device according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
In the description, unless explicitly stated otherwise, the terms "first" and "second" are used for descriptive purposes only to distinguish between constituent elements and should not be construed as indicating a sequence. Unless specifically stated otherwise, the terms "connected," "affixed," and the like are to be construed in a broad sense and include, but are not limited to, directly, indirectly, removably "connected," "affixed," and the like.
FIG. 1 is a flowchart of a method for preventing false touches according to an exemplary embodiment, as shown in FIG. 1, the method mainly includes the following steps:
In step 101, in response to a touch input of an input area displayed in a touch screen, a preset area of the touch screen is adjusted, wherein the input area is used for performing text response on a received touch input, and the input area at least partially overlaps with the preset area.
In this embodiment, the electronic device is a device that has a touch screen and is prone to false touch during use, such as a mobile phone, a tablet, a smart watch, a smart wearable device, and so on. The input area in the touch screen may be a virtual keyboard area or a handwriting input area, which is capable of performing text response on input information of a user. The preset area in the touch screen is an area defined in the touch screen in advance, and the electronic device detects the touch operation in the area to determine whether the touch operation is a false touch operation. For the false touch operation in the preset area, the processor in the electronic device does not respond to the false touch operation (i.e. does not report the touch data of the false touch operation or does not execute the touch event corresponding to the touch operation). For a non-false touch operation in the preset area, a processor in the electronic device responds to the non-false touch operation.
And corresponding to the preset area, performing direct response processing instead of detection by the electronic equipment through all touch operations in the non-preset area in the touch screen.
Therefore, the preset area is generally disposed at a position in the touch screen where false touch operations are easy to occur, such as a position of edges at two sides of the touch screen, a position of a bottom corner of the touch screen, and the like, and specifically, the shape, size, and position of the preset area can be automatically adjusted according to the size of the electronic device, the crowd used, the application scene, and the like.
Since the input area may be a virtual keyboard area or a handwriting input area and the like capable of performing text response on input information of a user, and the preset area is generally disposed at a position in the touch screen where false touch operation is easy to occur, therefore, when the typing function of the electronic device is started (for example, virtual keyboard typing is performed on a game interface, handwriting input is performed on a chat interface, typing is performed while watching a video bullet screen), the preset area may be adjusted based on the virtual keyboard input or the handwriting input in the preset area.
Specifically, the embodiment may determine an area that is easy to generate a false touch in a typing process based on an input state of a touch input, a position of a touch area of the touch input, a touch duration of the touch input, an area of the touch input, and the like, and adjust a size, a shape, a position, and the like of a preset area based on the typing state that is easy to generate the false touch.
In step 102, under the condition that the input area detects the first touch operation and the first touch operation acts on the adjusted preset area, a false touch detection strategy corresponding to the touch input is adopted to perform false touch detection on the first touch operation, so as to obtain a false touch detection result.
In this embodiment, the false touch detection is performed on the first touch operation, which is actually performed on the typing input operation applied to the preset area in the typing input process, so as to prevent the false touch input in the edge area in the typing process. In the false touch detection, different touch inputs may correspond to different false touch detection strategies, and specifically, the corresponding false touch detection may be determined based on a touch input mode (virtual keyboard input, handwriting input), an input state of the touch input (one-hand input, two-hand input), a size of a display area for receiving the touch input, a touch duration of the touch input, an area of the touch input, and the like. For example, the false touch detection strategy corresponding to the virtual keyboard (9-key keyboard, 26-key keyboard) input is different from the false touch detection strategy corresponding to the handwriting input, the false touch detection strategy corresponding to the single-hand input is different from the false touch detection strategy corresponding to the double-hand input, the false touch detection strategy of the touch area in the middle position of the preset area is different from the false touch detection strategy in the edge and corner positions, and the like.
In step 103, when the false touch detection result meets the preset false touch judgment condition, the first touch operation is not responded.
In this embodiment, when the preset area is adjusted and the first touch operation is detected to act on the adjusted preset area, false touch detection is performed on the first touch operation, and whether the first touch operation is an active operation (normal touch operation) or an inactive operation (false touch operation) is determined based on a false touch detection result obtained by the false touch detection. And not responding to the invalid operation, and responding to the valid operation. For example, in this embodiment, the non-response operation to the first touch operation may be not reporting the touch data of the first touch operation, or not responding to or executing the touch event corresponding to the first touch operation.
When the first touch operation acts on the touch screen, there are three cases because the touch screen is divided into a preset area and a non-preset area. The first touch operation acts on the preset area and the non-preset area simultaneously, the second touch operation acts on the preset area only, and the third touch operation acts on the non-preset area only.
The error touch prevention method can perform error touch detection on touch operation in a preset area and determine whether to respond, and any touch operation in a non-preset area is considered as normal touch and performs touch response. Therefore, the embodiment can perform false touch detection on the touch operation in the preset area in the first case and the second case by adopting a false touch detection strategy corresponding to the touch input. Therefore, the calculation amount of touch operation can be reduced, false touch operation can be effectively and accurately identified in a typing state, the typing touch performance of the touch screen is improved, and the typing experience of a user is improved.
In some embodiments, the false touch prevention method further comprises the steps of obtaining touch data corresponding to the touch input, determining an input state of the touch input based on the touch data, and/or obtaining an acceleration sensor parameter and a gravity sensor parameter of the electronic device, inputting the acceleration sensor parameter and the gravity sensor parameter into a state recognition model obtained through training, and obtaining an input state of the touch input.
In this embodiment, the detection methods of the input states of the touch input are divided into two types, and one or both of them can be determined according to the application scenario of the anti-false touch method, the electronic device to be applied, the crowd facing the electronic device, the requirements (such as accuracy, reliability, speed) on the detection result, and other factors.
When the input state is detected according to the touch data input by touch, the input state can be determined according to the position of the touch area corresponding to the touch data, the number of the touch areas, the shape of the touch area, the inclination direction of the touch area and other parameters.
It can be understood that, in the case of a one-hand input state (left hand or right hand), the touch area is mostly located at the left side or right side of the touch screen, the number of touch areas corresponding to one touch operation is mostly one, the shape of the touch area is mostly similar to that of a thumb, and the tilting direction of the electronic device is mostly tilted to one side during left-hand typing or right-hand typing. When the touch control area is in a two-hand input state, most touch control areas exist at the left side and the right side of the touch screen at the same time, the number of the touch control areas corresponding to one touch control operation can be multiple, the form of the touch control area generally comprises the form of other fingers besides the thumb form, and the inclination direction of the electronic equipment generally simultaneously inclines leftwards and rightwards or keeps balance.
When the input state of touch input is detected according to the acceleration sensor and the gravity sensor, parameters of the two sensors are acquired, and the parameters of the two sensors are input into a trained state recognition model to obtain the input state. When the electronic equipment is used for one-hand typing and two-hand typing, the inclination angles of the electronic equipment are different, the acceleration sensor can detect the inclination angles of the electronic equipment up, down, left and right, and the gravity sensor can detect the motion state of the electronic equipment and the inclination angle of the electronic equipment relative to the horizontal plane. Thus, the input state is immediately and accurately measured based on the parameters of the two sensors. The state recognition model can be any one or a combination of a plurality of convolutional neural networks, support vector machines, long-term memory networks, recurrent neural networks and the like.
Further, the input state is determined based on touch data, the input state comprises the steps of determining a touch area corresponding to the touch input based on the touch data corresponding to the touch input, performing ellipse fitting on the touch area, determining an ellipse area and ellipse parameters corresponding to the ellipse area, and determining the input state based on the ellipse parameters, wherein the ellipse parameters comprise the number of the ellipse areas.
In this embodiment, whether the touch screen is a capacitive touch screen, a resistive touch screen or other types of touch screens, a plurality of sensors arranged in an array are all arranged in a display module of the electronic device, and the plurality of sensors arranged in an array can be regarded as dividing the touch screen into a plurality of touch units so as to realize detection of touch operation at each position of the touch screen and output touch data.
One touch operation of the user hand can involve a plurality of touch units, a plurality of sensors corresponding to the touch units can detect and output touch data, and a touch area of the touch operation can be determined based on coordinates of the touch data corresponding to the touch screen. Since the finger morphology is similar to an ellipse, an ellipse fitting is performed on the touch area to determine an ellipse area and ellipse parameters. The elliptical parameters may include the number of elliptical regions, the direction of inclination of the elliptical regions, the area of the elliptical regions, and the like. The input state (one-hand input state and two-hand input state) of the touch input can be determined based on the ellipse parameters, further, the left-hand typing or the right-hand typing can be determined based on the ellipse parameters, and even the fingers corresponding to the touch operation can be determined based on the ellipse parameters. When the thumb touches, the area of the touch area is larger, and when other fingers touch, the area of the touch area is smaller, and the size of the preset area can be adjusted based on the fingers corresponding to the touch operation, so that accurate detection is realized, and the false touch detection accuracy is further improved.
Further, based on the ellipse parameters, the input state of the touch input is determined, wherein the input state of the touch input is determined to be a two-hand input state when the number of the ellipse areas is larger than one, and the input state of the touch input is determined to be a one-hand input state when the number of the ellipse areas is equal to one.
Specifically, to reduce the amount of computation and improve the detection efficiency, it is possible to determine whether one-hand typing or two-hand typing is performed directly based on the number of elliptical areas.
In an embodiment, step 101 includes adjusting the preset area to an edge area on one side where the touch input is applied when the input state of the touch input is a one-hand input state, and adjusting the preset area to edge areas on both sides where the touch input is applied when the input state of the touch input is a two-hand input state, wherein the size of the preset area in the one-hand input state is larger than the size of each preset area in the two-hand input state.
In this embodiment, the input states of different touch inputs have different possibilities and regions of false touch, and the preset region is adjusted to the left-side edge region or the right-side edge region in the touch screen under the single-hand input state (left-hand input or right-hand input). In the two-hand input state, the preset area is adjusted to the left side edge area and the right side edge area. For example, when a user performs two-hand typing on the game interface, the input state is a two-hand input state, and error touch is not easy to occur at this time, so that the preset area can be based on a sector with a smaller area and is only arranged at the bottom corner positions of two sides of the electronic equipment. For example, when the user performs one-hand typing on the chat interface, the user is in a one-hand input state, and false touch is easy to generate at the moment, so that the preset area can be set at the bottom corner position and the middle position of the edge of one side of the electronic equipment based on a rectangle with a larger area.
In addition, the size and shape of the electronic device may also be considered when setting the preset area. For example, when the electronic device is a small device, the touch screen is small, and therefore the preset areas can be arranged on the edges of the touch screen. When the electronic device is a large-sized device, a preset area can be set at a part of the edge of the touch screen according to the use experience and the use habit of the user.
The adjustment of the preset area of the touch screen may be understood as adjusting and changing the position, shape, and size of the preset area based on the input state of the touch screen, or may be understood as setting a preset area of a certain shape and a certain size at a certain position of the touch screen based on the input state of the electronic device not provided with the preset area.
Specifically, in the case of a one-hand input state, taking left-hand typing as an example, the preset area is adjusted to the left-side edge area. Specifically, as shown in fig. 2,3, and 4, the preset area may be a left bottom corner area, or the preset area includes a left bottom corner area and a left side middle area, or the preset area includes the entire left area of the touch screen. Of course, the adjustment of the preset area is similar to the right-hand typing.
As shown in fig. 5 and 6, in the case of the two-hand input state, the possibility of false touch during use is relatively small, so that the preset area may be set to include a left-hand corner area and a right-hand corner area, and the area of the left-hand corner area is smaller than that of the left-hand corner area during the two-hand typing, and the area of the right-hand corner area is smaller than that of the right-hand corner area during the right-hand typing. In order to further improve the accuracy of false touch detection, the shape of the preset area may also be set to a fan shape or other shapes.
The above positions and shapes of the preset areas are only for illustration, and the application scenario of the false touch detection method, the size of the electronic device, the user group of the electronic device, and the like can also be considered in specific settings.
In some embodiments, step 102 includes determining a current pressing force distribution parameter based on touch data corresponding to a first touch operation when an input state of a touch input is a one-hand input state or a two-hand input state, where the pressing force parameter is used to characterize a pressing force distribution trend of the first touch operation. Step 103 includes not responding to the first touch operation under the condition that the current pressing force distribution parameter is larger than a preset force distribution threshold value.
In the embodiment, the false touch detection comprises the step of calculating a pressing force distribution parameter when the single-hand input state or the double-hand input state is adopted. It can be understood that when a finger performs a touch operation on the touch screen, the pressing force of the whole touch area is not uniform, if the touch operation is performed by mistake, the pressing gravity center is biased to the edge area of the touch screen, that is, the pressing force of the edge area of the touch screen is large, and the pressing force of the non-edge area is small. If normal touch operation is performed, the pressing gravity center is generally not in the edge area of the touch screen, namely the pressing force of the non-edge area of the touch screen is large, and the pressing force of the edge area is small. Therefore, whether the first touch operation is a false touch operation or not can be determined according to whether the pressing force distribution parameter is larger than a preset force distribution threshold value, and whether the first touch operation is responded or not is determined based on the fact.
Further, determining the current pressing force distribution parameter based on the touch data corresponding to the first touch operation includes determining the current pressing force distribution parameter based on the touch data corresponding to the first touch operation when the input state of the touch input is a one-hand input state, the touch area is one when the first touch operation acts on the preset area, and no touch operation exists in the non-preset area of the touch screen.
Specifically, when the state is a one-hand input state, the first touch operation only acts on the preset area, and the number of touch areas in the preset area is one, the pressing force distribution parameter is calculated.
In an embodiment, step 102 includes determining an area of a finger touch area and an area of a palm touch area based on touch data corresponding to a first touch operation when an input state of a touch input is a single-hand input state, and step 103 includes not responding to the first touch operation when the area of the finger touch area is smaller than the area of the palm touch area.
In this embodiment, false touch detection includes calculating an area of a finger touch area and an area of a palm touch area during one-hand typing. It can be understood that, during one-hand typing, the area of the finger touch area is smaller than that of the palm touch area if the one-hand typing is performed by false touch operation, and the area of the finger touch area is necessarily larger than that of the palm touch area if the one-hand typing is performed by normal touch operation. In the case of two-hand typing, the palm is generally not prone to false touch operation, so that the calculation of the finger touch area and the area of the finger touch area is not performed in the case of two-hand typing.
Further, determining the area of the finger touch area and the area of the palm touch area based on the touch data corresponding to the first touch operation comprises determining the area of the finger touch area and the area of the palm touch area based on the sensor touch data corresponding to the first touch operation when the first touch operation is simultaneously applied to the preset area and the non-preset area of the touch screen, or the number of the touch areas is a plurality of when the first touch operation is applied to the preset area and no touch operation is performed in the non-preset area of the touch screen.
Based on the above embodiments, it can be summarized that, when the input state is a single-hand input state, the content of the false touch detection under different touch conditions is different, and whether the false touch is determined may be only by calculating the pressing force distribution parameter, or whether the false touch is determined may be determined by calculating the pressing force distribution parameter, the finger touch area and the palm touch area. When the state is input by both hands, whether the touch is mistakenly touched can be determined by only calculating the pressing force distribution parameter.
Specifically, when the touch control device is in a single-hand input state, (1) when the first touch control operation is simultaneously applied to a preset area and a non-preset area, pressing force distribution parameters are calculated on touch control data in the preset area, and the area of a finger touch control area and the area of a palm touch control area are calculated on the touch control data in the preset area and the non-preset area, respectively, (2) when the number of the touch control areas in the preset area acted by the first touch control operation is one and the non-preset area is not touched, pressing force distribution calculation is performed on the touch control data in the preset area, and (3) when the number of the touch control areas in the preset area acted by the first touch control operation is multiple and the non-preset area is not touched, pressing force distribution parameters, the area of the finger touch control area and the area of the palm touch control area are calculated on the touch control data in the preset area.
That is, the calculation of the pressing force distribution parameter is only based on the sensor touch data in the preset area, while the calculation of the finger touch area and the palm touch area may be only based on the touch data in the preset area, or the touch data of the preset area and the non-preset area may need to be utilized simultaneously.
The pressing force distribution parameters comprise corner pressing force distribution parameters and/or edge pressing force distribution parameters;
If the coordinate corresponding to the maximum value in the touch data is the vertex angle position of the touch screen, determining a first sum value between the touch data in a first L-shaped area containing the maximum value and a second sum value between the touch data in a second L-shaped area adjacent to the first L-shaped area, and determining a corner pressing force distribution parameter based on the ratio between the first sum value and the second sum value;
And determining a third sum value between at least one piece of touch data in the direction of the straight line where the maximum value is located and a fourth sum value between at least one piece of touch data in the direction of the straight line adjacent to the straight line where the maximum value is located, and determining an edge pressing force distribution parameter based on the ratio between the third sum value and the fourth sum value.
In this embodiment, the specific calculation method of the pressing force distribution parameter is determined according to the position of the coordinate corresponding to the maximum value in the touch data on the touch screen. It can be understood that the display module of the electronic device may have a plurality of sensors arranged in an array, where the plurality of sensors arranged in an array may be regarded as dividing the touch screen into a plurality of touch units, and each sensor detects a touch operation of a corresponding touch unit to obtain touch data, so that each touch data has coordinates corresponding to the touch screen. The maximum value in the touch data is the position with the maximum pressing force, namely the center of gravity of the touch operation is located.
Taking fig. 7 as an example, when the coordinates of the maximum value are the top angle position of the touch screen, it is illustrated that the center of gravity of the touch operation is at the top angle position, at this time, the sum (142+514+962+1148+905+148) of the touch data in the first L-shaped area (e.g., the dot matrix pattern area in fig. 7) including the maximum value (1148) is calculated to obtain a first sum value, then the sum (64+247+50) of the touch data in the second L-shaped area (e.g., the square pattern area in fig. 7) adjacent to the first L-shaped area is calculated to obtain a second sum value, and the ratio of the first sum value to the second sum value is calculated to determine the corner pressing force distribution parameter.
Taking fig. 8 as an example, when the coordinates of the maximum value are the non-vertex angle positions of the touch screen, if the touch data are distributed along the column direction, the sum of the touch data along the column linear direction where the maximum value is located (e.g., the dot matrix pattern area in fig. 8) is calculated to obtain a third sum value (422+1139+1111+292), and then the sum of the touch data along the linear direction adjacent to the column linear direction where the maximum value is located (e.g., the square lattice pattern area in fig. 8) is calculated to obtain a fourth sum value (335+255). Of course, if the touch data is distributed in the row direction, the calculation is performed based on the row-line direction.
Further, the method for determining the finger touch area and the palm touch area is different for different typing touch operations. The method comprises the steps of taking an area where touch data corresponding to a first touch operation in a preset area as a palm touch area and taking an area where touch data corresponding to the first touch operation in a non-preset area as a finger touch area under the condition that the first touch operation is simultaneously applied to the preset area and the non-preset area of the touch screen.
Under the condition that the number of the touch areas is multiple when the first touch operation acts on the preset area and no touch operation exists in the non-preset area of the touch screen, determining a plurality of touch areas based on touch data corresponding to the first touch operation and coordinates of the touch data, performing curve fitting on each touch area to obtain an elliptical area and a non-elliptical area, determining the elliptical area as a finger touch area, and determining the non-elliptical area as a palm touch area.
In this embodiment, when the first touch operation is in a single-hand input state and the first touch operation is simultaneously applied to the preset area and the non-preset area, the hand operation is similar to that shown in fig. 2, i.e., the finger is considered to be applied to the non-preset area and the palm is considered to be applied to the preset area, so that the area where the sensor touch data in the preset area is located is taken as the palm touch area, and the area where the sensor touch data in the non-preset area is located is taken as the finger touch area.
When the first touch operation is only applied to the preset area and the number of touch areas in the preset area is plural, the hand operation is similar to that shown in fig. 3, and the plural touch areas need to be identified to determine the finger touch area and the palm touch area. Specifically, the shapes of the plurality of touch areas are identified through curve fitting, and when the touch areas can be fitted into elliptical areas, the touch areas are determined to be finger touch areas. And when the touch area is fitted to the non-elliptical area, determining that the touch area is a palm touch area.
Based on the above embodiments, the method for preventing false touch according to the present disclosure determines a setting adjustment policy of a preset area based on an input state of a touch input, determines specific operations of false touch detection according to different situations according to an input state of the touch input, whether the first touch operation acts on a non-preset area, and the number of touch areas in the preset area, when the first touch operation acts on the preset area, and can achieve high accuracy for false touch detection of various typing touch situations in the input state of various touch inputs while reducing the calculation amount of touch data.
Fig. 9 is a schematic diagram illustrating an anti-false touch apparatus according to an exemplary embodiment, as shown in fig. 9, the apparatus includes:
The adjusting module 901 is configured to respond to touch input of an input area displayed in a touch screen, and adjust a preset area of the touch screen, wherein the input area is used for performing text response on the received touch input, and the input area at least partially overlaps with the preset area;
The detection module 902 is configured to perform false touch detection on the first touch operation by adopting a false touch detection policy corresponding to the touch input under the condition that the input area detects the first touch operation and the first touch operation acts on the adjusted preset area, so as to obtain a false touch detection result;
The determining module 903 is configured to not respond to the first touch operation when the false touch detection result meets a preset false touch judgment condition.
In some embodiments, the adjustment module 901 is further configured to:
Acquiring touch data corresponding to the touch input, determining the input state of the touch input based on the touch data, and/or,
And acquiring the acceleration sensor parameters and the gravity sensor parameters of the electronic equipment, inputting the acceleration sensor parameters and the gravity sensor parameters into a state recognition model obtained through training, and obtaining the input state of the touch input.
In some embodiments, the adjustment module 901 is further configured to:
determining a touch area corresponding to the touch input based on the touch data corresponding to the touch input;
Performing ellipse fitting on the touch area to determine an ellipse area and ellipse parameters corresponding to the ellipse area;
Determining an input state of the touch input based on the ellipse parameters;
wherein the ellipse parameters include the number of the ellipse regions.
In some embodiments, the adjustment module 901 is further configured to:
under the condition that the number of the elliptical areas is larger than one, determining that the input state of the touch input is a two-hand input state;
and under the condition that the number of the elliptical areas is equal to one, determining the input state of the touch input to be a one-hand input state.
In some embodiments, the adjustment module 901 is further configured to:
when the input state of the touch input is a one-hand input state, adjusting the preset area to an edge area of one side acted by the touch input;
When the input state of the touch input is a two-hand input state, adjusting the preset area to the edge areas of the two sides acted by the touch input;
The size of the preset area in the one-hand input state is larger than that of each preset area in the two-hand input state.
In some embodiments, the detection module 902 is further configured to:
And under the condition that the input state of the touch input is a one-hand input state, determining a current pressing force distribution parameter based on touch data corresponding to the first touch operation, wherein the pressing force parameter is used for representing the pressing force distribution trend of the first touch operation.
In some embodiments, the determination module 903 is further configured to:
And under the condition that the current pressing force distribution parameter is larger than a preset force distribution threshold value, not responding to the first touch operation.
In some embodiments, the detection module 902 is further configured to:
And under the condition that the touch area is one when the first touch operation acts on the preset area and no touch operation exists in a non-preset area of the touch screen, determining the current pressing force distribution parameter based on touch data corresponding to the first touch operation.
In some embodiments, the detection module 902 is further configured to:
If the coordinate corresponding to the maximum value in the touch data is at the vertex angle position of the touch screen, determining a first sum value between the touch data in a first L-shaped area containing the maximum value and a second sum value between the touch data in a second L-shaped area adjacent to the first L-shaped area, and determining the corner pressing force distribution parameter based on the ratio between the first sum value and the second sum value, and/or
And determining a third sum value between at least one piece of touch data in the direction of the straight line where the maximum value is located and a fourth sum value between at least one piece of touch data in the direction of the straight line adjacent to the straight line where the maximum value is located, and determining the edge pressing force distribution parameter based on the ratio between the third sum value and the fourth sum value.
In some embodiments, the detection module 902 is further configured to:
And under the condition that the input state of the touch input is a one-hand input state, determining the area of the finger touch area and the area of the palm touch area based on the touch data corresponding to the first touch operation.
In some embodiments, the determination module 903 is further configured to:
and under the condition that the area of the finger touch area is smaller than that of the palm touch area, the first touch operation is not responded.
In some embodiments, the detection module 902 is further configured to:
The first touch operation is simultaneously applied to the preset area and the non-preset area of the touch screen, or
And under the condition that the number of the touch areas is multiple when the first touch operation acts on the preset area and no touch operation exists in the non-preset area of the touch screen, determining the area of the finger touch area and the area of the palm touch area based on the touch data corresponding to the first touch operation.
In some embodiments, the detection module 902 is further configured to:
under the condition that the first touch operation is simultaneously applied to the preset area and the non-preset area of the touch screen, taking the area where the touch data corresponding to the first touch operation in the preset area is located as a palm touch area;
And taking the region where the touch data corresponding to the first touch operation in the non-preset region is located as a finger touch region.
In some embodiments, the detection module 902 is further configured to:
when the number of the touch areas is multiple and no touch operation exists in a non-preset area of the touch screen when the first touch operation acts on the preset area, determining multiple touch areas based on touch data corresponding to the first touch operation and coordinates of the touch data;
Performing curve fitting on each touch area to obtain an elliptical area and a non-elliptical area;
and determining the elliptical area as the finger touch area, and determining the non-elliptical area as the palm touch area.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
As shown in fig. 10, the embodiment of the present disclosure further provides an electronic device 100, including:
A memory 1004 for storing processor-executable instructions;
A processor 1020 coupled to the memory 1004;
wherein the processor 1020 is configured to execute the false touch preventing method provided by any of the foregoing technical solutions.
A block diagram of an electronic device 100 is shown according to an exemplary embodiment. For example, the electronic device 100 may be a smart phone, a tablet computer, a notebook computer, a portable learning machine, and the like.
Referring to FIG. 10, the electronic device 100 can include one or more of a processing component 1002, a memory 1004, a power component 1006, a multimedia component 1008, an audio component 1010, an input/output (I/O) interface 1012, a sensor component 1014, and a communication component 1018.
The processing component 1002 generally controls overall operation of the electronic device 100, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1002 can include one or more processors 1020 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 1002 can include one or more modules that facilitate interaction between the processing component 1002 and other components. For example, the processing component 1002 can include a multimedia module to facilitate interaction between the multimedia component 1008 and the processing component 1002.
The memory 1004 is configured to store various types of data to support operations at the electronic device 100. Examples of such data include instructions for any application or method operating on the electronic device 100, contact data, phonebook data, messages, pictures, videos, and the like. The memory 1004 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 1006 provides power to the various components of the electronic device 100. The power components 1006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 100.
The multimedia component 1008 includes a screen between the electronic device 100 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia assembly 1008 includes a front-facing camera and/or a rear-facing camera. When the electronic device 100 is in an operational mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 1010 is configured to output and/or input audio signals. For example, the audio component 1010 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 100 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 1004 or transmitted via the communication component 1018. In some embodiments, the audio component 1010 further comprises a speaker for outputting audio signals.
The I/O interface 1012 provides an interface between the processing assembly 1002 and peripheral interface modules, which may be a keyboard, click wheel, buttons, and the like. These buttons may include, but are not limited to, a home button, a volume button, an activate button, and a lock button.
The sensor assembly 1014 includes one or more sensors for providing status assessment of various aspects of the electronic device 100. For example, the sensor assembly 1014 may detect an on/off state of the electronic device 100, a relative positioning of components such as a display and keypad of the electronic device 700, the sensor assembly 1014 may also detect a change in position of the electronic device 100 or a component of the electronic device 100, the presence or absence of a user's contact with the electronic device 100, an orientation or acceleration/deceleration of the electronic device 100, and a change in temperature of the electronic device 100. The sensor assembly 1014 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 1014 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1014 can also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1018 is configured to facilitate communication between the electronic device 700 and other devices, either wired or wireless. The electronic device 100 may access a wireless network based on a communication standard, such as WiFi,2G, or 3G, or a combination thereof. In one exemplary embodiment, the communication component 1018 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 1018 further comprises a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 100 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 1004, including instructions executable by processor 1020 of electronic device 100 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
Embodiments of the present application provide a non-transitory computer readable storage medium, which when executed by a processor of a computer, enables the computer to perform the touch screen error touch prevention method according to one or more of the foregoing technical solutions.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (15)

1.一种防误触方法,其特征在于,包括:1. A method for preventing accidental touch, comprising: 响应于在触摸屏中显示的输入区域的触控输入,对所述触摸屏的预设区域进行调整;其中,所述输入区域用于对接收的所述触控输入进行文本响应,所述输入区域与所述预设区域至少部分重叠;In response to a touch input in an input area displayed on the touch screen, adjusting a preset area of the touch screen; wherein the input area is used to provide a text response to the received touch input, and the input area at least partially overlaps with the preset area; 在所述输入区域检测到第一触控操作、且所述第一触控操作作用于调整后的预设区域情况下,采用与所述触控输入对应的误触检测策略,对所述第一触控操作进行误触检测,得到误触检测结果;When a first touch operation is detected in the input area and the first touch operation acts on the adjusted preset area, a false touch detection strategy corresponding to the touch input is adopted to perform false touch detection on the first touch operation to obtain a false touch detection result; 当所述误触检测结果满足预设的误触判断条件时,不响应所述第一触控操作。When the false touch detection result meets the preset false touch judgment condition, the first touch operation is not responded. 2.根据权利要求1所述的方法,其特征在于,所述方法还包括:2. The method according to claim 1, characterized in that the method further comprises: 获取所述触控输入对应的触控数据,并基于所述触控数据确定所述触控输入的输入状态;和/或,Acquiring touch data corresponding to the touch input, and determining an input state of the touch input based on the touch data; and/or, 获取所述电子设备的加速度传感器参数和重力传感器参数,并将所述加速度传感器参数和所述重力传感器参数输入训练得到的状态识别模型,得到所述触控输入的输入状态。Acquire acceleration sensor parameters and gravity sensor parameters of the electronic device, and input the acceleration sensor parameters and gravity sensor parameters into a trained state recognition model to obtain an input state of the touch input. 3.根据权利要求2所述的方法,其特征在于,所述基于所述触控数据确定所述触控输入的输入状态,包括:3. The method according to claim 2, wherein determining the input state of the touch input based on the touch data comprises: 基于所述触控输入对应的触控数据,确定所述触控输入对应的触控区域;Determining a touch area corresponding to the touch input based on touch data corresponding to the touch input; 对所述触控区域进行椭圆拟合,确定椭圆区域和所述椭圆区域对应的椭圆参数;Performing ellipse fitting on the touch area to determine an ellipse area and ellipse parameters corresponding to the ellipse area; 基于所述椭圆参数,确定所述触控输入的输入状态;Based on the ellipse parameter, determining an input state of the touch input; 其中,所述椭圆参数包括:所述椭圆区域的数量。The ellipse parameters include: the number of the ellipse areas. 4.根据权利要求3所述的方法,其特征在于,所述基于所述椭圆参数,确定所述触控输入的输入状态,包括:4. The method according to claim 3, wherein determining the input state of the touch input based on the ellipse parameter comprises: 在所述椭圆区域的数量大于一的情况下,确定所述触控输入的输入状态为双手输入状态;When the number of the elliptical areas is greater than one, determining that the input state of the touch input is a two-hand input state; 在所述椭圆区域的数量等于一的情况下,确定所述触控输入的输入状态为单手输入状态。When the number of the elliptical areas is equal to one, it is determined that the input state of the touch input is a single-hand input state. 5.根据权利要求1所述的方法,其特征在于,所述对所述触摸屏的预设区域进行调整,包括:5. The method according to claim 1, wherein adjusting the preset area of the touch screen comprises: 在所述触控输入的输入状态为单手输入状态的情况下,将所述预设区域调整至所述触控输入所作用的一侧的边缘区域;在所述触控输入的输入状态处为双手输入状态的情况下,将所述预设区域调整至所述触控输入所作用的两侧的边缘区域;When the input state of the touch input is a one-hand input state, the preset area is adjusted to the edge area on the side where the touch input acts; when the input state of the touch input is a two-hand input state, the preset area is adjusted to the edge areas on both sides where the touch input acts; 其中,处于所述单手输入状态下的所述预设区域的面积,大于处于双手输入状态下的各个所述预设区域的面积。Wherein, the area of the preset region in the one-hand input state is larger than the area of each preset region in the two-hand input state. 6.根据权利要求1所述的方法,其特征在于,所述采用与所述触控输入对应的误触检测策略,对所述第一触控操作进行误触检测,得到误触检测结果,包括:6. The method according to claim 1, wherein the step of performing false touch detection on the first touch operation by adopting a false touch detection strategy corresponding to the touch input to obtain a false touch detection result comprises: 在所述触控输入的输入状态为单手输入状态或双手输入状态的情况下,基于所述第一触控操作对应的触控数据,确定当前的按压力度分布参数;其中,所述按压力度参数用于表征所述第一触控操作的按压力度分布趋势;When the input state of the touch input is a one-hand input state or a two-hand input state, determining a current pressing force distribution parameter based on the touch data corresponding to the first touch operation; wherein the pressing force parameter is used to characterize a pressing force distribution trend of the first touch operation; 所述当所述误触检测结果满足预设的误触判断条件时,不响应所述第一触控操作,包括:When the false touch detection result meets the preset false touch judgment condition, not responding to the first touch operation includes: 在所述当前按压力度分布参数大于预设力度分布阈值的情况下,不响应所述第一触控操作。When the current pressing force distribution parameter is greater than a preset force distribution threshold, the first touch operation is not responded to. 7.根据权利要求6所述的方法,其特征在于,所述基于所述第一触控操作对应的触控数据,确定当前的按压力度分布参数,包括:7. The method according to claim 6, wherein determining the current pressure intensity distribution parameter based on the touch data corresponding to the first touch operation comprises: 在所述触控输入的输入状态为单手输入状态、所述第一触控操作作用于所述预设区域时的触控区域的数量为一个、且所述触摸屏的非预设区域内无触控操作的情况下,基于所述第一触控操作对应的触控数据,确定所述当前的按压力度分布参数。When the input state of the touch input is a one-hand input state, the number of touch areas when the first touch operation acts on the preset area is one, and there is no touch operation in the non-preset area of the touch screen, the current pressure intensity distribution parameter is determined based on the touch data corresponding to the first touch operation. 8.根据权利要求6或7所述的方法,其特征在于,所述按压力度分布参数,包括:角落按压力度分布参数和/或边缘按压力度分布参数;8. The method according to claim 6 or 7, characterized in that the pressing force distribution parameter comprises: a corner pressing force distribution parameter and/or an edge pressing force distribution parameter; 所述基于所述第一触控操作对应的触控数据,确定当前的按压力度分布参数,包括:The determining of the current pressure intensity distribution parameter based on the touch data corresponding to the first touch operation includes: 如果所述触控数据中最大值对应的坐标为所述触摸屏的顶角位置,确定包含所述最大值的第一L型区域内的所述触控数据之间的第一和值,以及与所述第一L型区域相邻的第二L型区域内的所述触控数据之间的第二和值,并基于所述第一和值和所述第二和值之间的比值,确定所述角落按压力度分布参数;和/或If the coordinates corresponding to the maximum value in the touch data are the top corner position of the touch screen, determine a first sum value between the touch data in a first L-shaped area containing the maximum value, and a second sum value between the touch data in a second L-shaped area adjacent to the first L-shaped area, and determine the corner pressure intensity distribution parameter based on a ratio between the first sum value and the second sum value; and/or 如果所述最大值对应的坐标为所述触摸屏的非顶角位置,确定所述最大值所在直线方向上的至少一个所述触控数据之间的第三和值;以及与所述最大值所在直线相邻直线方向上的至少一个触控数据之间的第四和值,并基于所述第三和值和所述第四和值之间的比值,确定所述边缘按压力度分布参数。If the coordinates corresponding to the maximum value are non-vertex positions of the touch screen, determine a third sum value between at least one touch data in the direction of the straight line where the maximum value is located; and a fourth sum value between at least one touch data in the direction of a straight line adjacent to the straight line where the maximum value is located, and determine the edge pressure intensity distribution parameter based on the ratio between the third sum value and the fourth sum value. 9.根据权利要求1所述的方法,其特征在于,所述采用与所述触控输入对应的误触检测策略,对所述第一触控操作进行误触检测,得到误触检测结果,包括:9. The method according to claim 1, wherein the step of performing false touch detection on the first touch operation by adopting a false touch detection strategy corresponding to the touch input to obtain a false touch detection result comprises: 在所述触控输入的输入状态为单手输入状态的情况下,基于所述第一触控操作对应的触控数据,确定手指触控区域的面积和手掌触控区域的面积;When the input state of the touch input is a single-hand input state, determining the area of the finger touch area and the area of the palm touch area based on the touch data corresponding to the first touch operation; 所述当所述误触检测结果满足预设的误触判断条件时,不响应所述第一触控操作,包括:When the false touch detection result meets the preset false touch judgment condition, not responding to the first touch operation includes: 在所述手指触控区域的面积小于所述手掌触控区域的面积的情况下,不响应所述第一触控操作。When the area of the finger touch region is smaller than the area of the palm touch region, the first touch operation is not responded to. 10.根据权利要求9所述的方法,其特征在于,所述基于所述第一触控操作对应的触控数据,确定手指触控区域的面积和手掌触控区域的面积,包括:10. The method according to claim 9, wherein determining the area of the finger touch area and the area of the palm touch area based on the touch data corresponding to the first touch operation comprises: 在所述第一触控操作同时作用于所述预设区域和所述触摸屏的非预设区域;或者,The first touch operation acts on the preset area and the non-preset area of the touch screen at the same time; or, 所述第一触控操作作用于所述预设区域时的触控区域的数量为多个、且所述触摸屏的非预设区域内无触控操作的情况下,基于所述第一触控操作对应的触控数据,确定手指触控区域的面积和手掌触控区域的面积。When the number of touch areas when the first touch operation acts on the preset area is multiple and there is no touch operation in the non-preset area of the touch screen, the area of the finger touch area and the area of the palm touch area are determined based on the touch data corresponding to the first touch operation. 11.根据权利要求10所述的方法,其特征在于,所述方法还包括:11. The method according to claim 10, characterized in that the method further comprises: 在所述第一触控操作同时作用于所述预设区域和所述触摸屏的非预设区域的情况下,将所述第一触控操作在所述预设区域内对应的触控数据所在区域作为手掌触控区域;In the case where the first touch operation acts on the preset area and the non-preset area of the touch screen at the same time, the area where the touch data corresponding to the first touch operation in the preset area is located is used as the palm touch area; 将所述第一触控操作在所述非预设区域内对应的触控数据所在区域作为手指触控区域。The area where the touch data corresponding to the first touch operation in the non-preset area is located is used as the finger touch area. 12.根据权利要求10所述的方法,其特征在于,所述方法还包括:12. The method according to claim 10, characterized in that the method further comprises: 在所述第一触控操作作用于所述预设区域时的触控区域的数量为多个、且所述触摸屏的非预设区域内无触控操作的情况下,基于所述第一触控操作对应的触控数据和所述触控数据的坐标,确定多个触控区域;When the number of touch areas when the first touch operation acts on the preset area is multiple and there is no touch operation in the non-preset area of the touch screen, determining multiple touch areas based on touch data corresponding to the first touch operation and coordinates of the touch data; 分别对各个所述触控区域进行曲线拟合,得到椭圆区域和非椭圆区域;Performing curve fitting on each of the touch control areas to obtain an elliptical area and a non-elliptical area; 将所述椭圆区域确定为所述手指触控区域,并将所述非椭圆区域确定为所述手掌触控区域。The elliptical area is determined as the finger touch area, and the non-elliptical area is determined as the palm touch area. 13.一种防误触装置,其特征在于,包括:13. A device for preventing accidental touch, comprising: 调整模块,配置为响应于在触摸屏中显示的输入区域的触控输入,对所述触摸屏的预设区域进行调整;其中,所述输入区域用于对接收的所述触控输入进行文本响应,所述输入区域与所述预设区域至少部分重叠;an adjustment module, configured to adjust a preset area of the touch screen in response to a touch input of an input area displayed on the touch screen, wherein the input area is used to make a text response to the received touch input, and the input area at least partially overlaps with the preset area; 检测模块,配置为在所述输入区域检测到第一触控操作、且所述第一触控操作作用于调整后的预设区域的情况下,采用与所述触控输入对应的误触检测策略,对所述第一触控操作进行误触检测,得到误触检测结果;a detection module configured to, when a first touch operation is detected in the input area and the first touch operation acts on the adjusted preset area, adopt an error touch detection strategy corresponding to the touch input to perform error touch detection on the first touch operation and obtain an error touch detection result; 确定模块,配置为当所述误触检测结果满足预设的误触判断条件时,不响应所述第一触控操作。The determination module is configured to not respond to the first touch operation when the false touch detection result meets a preset false touch judgment condition. 14.一种电子设备,其特征在于,包括:14. An electronic device, comprising: 处理器;processor; 配置为存储处理器可执行指令的存储器;a memory configured to store processor-executable instructions; 其中,所述处理器被配置为在调用存储器中的可执行指令时,能够执行如权利要求1至12中任一项所述的防误触方法。The processor is configured to execute the false touch prevention method as claimed in any one of claims 1 to 12 when calling the executable instructions in the memory. 15.一种非临时性计算机可读存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得所述电子设备能够执行上述权利要求1至12中任一项所述的防误触方法。15 . A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method for preventing accidental touches according to any one of claims 1 to 12.
CN202311406145.7A 2023-10-26 2023-10-26 Anti-accidental touch method, device, electronic device and storage medium Pending CN119902641A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311406145.7A CN119902641A (en) 2023-10-26 2023-10-26 Anti-accidental touch method, device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311406145.7A CN119902641A (en) 2023-10-26 2023-10-26 Anti-accidental touch method, device, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN119902641A true CN119902641A (en) 2025-04-29

Family

ID=95465415

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311406145.7A Pending CN119902641A (en) 2023-10-26 2023-10-26 Anti-accidental touch method, device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN119902641A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106980409A (en) * 2017-03-28 2017-07-25 北京小米移动软件有限公司 Input control method and device
WO2018107849A1 (en) * 2016-12-16 2018-06-21 广东欧珀移动通信有限公司 Method for controlling touch operation on mobile terminal, and related product
CN112987958A (en) * 2019-12-16 2021-06-18 北京小米移动软件有限公司 Touch signal processing method and device
CN115033121A (en) * 2021-02-20 2022-09-09 北京小米移动软件有限公司 Anti-mistouch method, device, equipment and storage medium
CN116520973A (en) * 2022-01-20 2023-08-01 北京小米移动软件有限公司 Anti-mistouch method and device, electronic equipment, readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018107849A1 (en) * 2016-12-16 2018-06-21 广东欧珀移动通信有限公司 Method for controlling touch operation on mobile terminal, and related product
CN106980409A (en) * 2017-03-28 2017-07-25 北京小米移动软件有限公司 Input control method and device
CN112987958A (en) * 2019-12-16 2021-06-18 北京小米移动软件有限公司 Touch signal processing method and device
CN115033121A (en) * 2021-02-20 2022-09-09 北京小米移动软件有限公司 Anti-mistouch method, device, equipment and storage medium
CN116520973A (en) * 2022-01-20 2023-08-01 北京小米移动软件有限公司 Anti-mistouch method and device, electronic equipment, readable storage medium

Similar Documents

Publication Publication Date Title
WO2016206201A1 (en) Mobile terminal, and display control method and apparatus
CN107124508B (en) Position adjusting method and device of suspension control, terminal and readable storage medium
JP2020530631A (en) Interaction locating methods, systems, storage media, and smart devices
CN111695382B (en) Fingerprint collection area determination method and fingerprint collection area determination device
JP6325754B2 (en) Touch screen control method, apparatus, program, and recording medium
CN111488761B (en) Fingerprint identification method, device, electronic device and computer-readable storage medium
EP3232301B1 (en) Mobile terminal and virtual key processing method
CN111309179A (en) Touch screen control method and device, terminal and storage medium
CN112905103B (en) Accidental touch processing method, device and storage medium
CN111314552B (en) User interface control method and device and storage medium
CN112987958B (en) Touch signal processing method and device
CN113654459B (en) Method, device and storage medium for determining position of under-screen photosensitive sensor
CN114185444B (en) Touch screen accidental touch prevention method, device and storage medium
CN113069756B (en) Touch signal control method, touch signal control device and storage medium
CN112363647A (en) Touch operation method and device and storage medium
CN112445363A (en) Electronic device, control method and device for electronic device, and storage medium
CN119902641A (en) Anti-accidental touch method, device, electronic device and storage medium
CN113672109B (en) Unlocking control method, device and storage medium
US20160195992A1 (en) Mobile terminal and method for processing signals generated from touching virtual keys
CN115145420A (en) Accidental touch prevention method, device, electronic device and storage medium
CN115700459B (en) Split-screen control method, device, and storage medium
CN105373333B (en) Touch-control response method and device
CN111462276A (en) Statistical data display method and device
CN119902637A (en) Anti-accidental touch method, device, electronic device and storage medium
CN113093933A (en) Point output control method, point output control device, and storage medium

Legal Events

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