CN-121996090-A - Anti-false touch method and electronic equipment
Abstract
The application provides an error touch prevention method and electronic equipment, which are applied to the technical field of electronics. The electronic equipment comprises an acceleration sensor and a processor, wherein the acceleration sensor is used for detecting acceleration data of the electronic equipment, and the processor is used for determining whether the electronic equipment is placed in a pocket according to the acceleration data and whether the electronic equipment is shielded or not, and starting an anti-false touch mode. Comprehensive judgment of a plurality of sensor data is achieved, and accuracy of false touch judgment is improved. Moreover, the problem of false touch of the electronic equipment is effectively solved, and the user experience is improved.
Inventors
- JI HENGSHAN
- CHEN QIFAN
- CHEN JUNFU
- CONG YING
- CHEN LEILEI
- YANG GUANG
- LU HENGHUI
Assignees
- 华为终端有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20241104
Claims (15)
- 1. An electronic device is characterized by comprising an acceleration sensor and a processor, The acceleration sensor is used for detecting acceleration data of the electronic equipment; and the processor is used for determining that the electronic equipment is put into a pocket according to the acceleration data and whether the electronic equipment is shielded or not, and starting an anti-false touch mode.
- 2. The electronic device of claim 1, wherein the processor to determine that the electronic device is in a pocket based on the acceleration data and whether the electronic device is occluded comprises: The processor is used for determining that the electronic equipment is put into a pocket according to the fact that the acceleration data meets a first condition and the electronic equipment is shielded, wherein the first condition comprises that the acceleration data is matched with a target action or the acceleration data is larger than or equal to an acceleration threshold value.
- 3. The electronic device of claim 1 or 2, further comprising a touch sensor, The touch sensor is used for detecting capacitance data on a display screen of the electronic equipment; the processor is further configured to determine whether the electronic device is blocked according to the capacitance data.
- 4. The electronic device of claim 3, wherein the processor further configured to determine from the capacitance data whether the electronic device is occluded comprises: the processor is used for determining that the electronic equipment is shielded under the condition that the shielding judgment model outputs a shielded processing result based on the capacitance data, and the shielding judgment model has the function of identifying whether the electronic equipment is shielded or not.
- 5. The electronic device of claim 1 or 2, further comprising a proximity light sensor, The proximity light sensor is used for detecting proximity light data of the electronic equipment; The processor is further configured to determine whether the electronic device is blocked according to the proximity light data.
- 6. The electronic device of any one of claims 1-5, wherein, The processor is further configured to determine that the electronic device is taken out of the pocket according to at least one of the acceleration data, whether the electronic device is blocked, and whether a finger touches a display screen of the electronic device, and close an anti-false touch mode.
- 7. An anti-false touch method applied to electronic equipment is characterized by comprising the following steps: Detecting acceleration data of the electronic device; and determining that the electronic equipment is put into a pocket according to the acceleration data and whether the electronic equipment is shielded, and starting an anti-false touch mode.
- 8. The method of claim 7, wherein the determining that the electronic device is in a pocket based on the acceleration data and whether the electronic device is occluded, and turning on a false touch prevention mode comprises: And determining that the electronic equipment is put into a pocket according to the condition that the acceleration data meets a first condition and the electronic equipment is blocked, wherein the first condition comprises that the acceleration data matches a target action or the acceleration data is larger than or equal to an acceleration threshold value.
- 9. The method according to claim 7 or 8, characterized in that the method further comprises: Detecting capacitance data on a display screen of the electronic device; And determining whether the electronic equipment is shielded or not according to the capacitance data.
- 10. The method of claim 9, wherein said determining whether the electronic device is occluded from the capacitance data comprises: And determining that the electronic equipment is shielded under the condition that the shielding judgment model outputs a shielded processing result based on the capacitance data, wherein the shielding judgment model has the function of identifying whether the electronic equipment is shielded or not.
- 11. The method according to claim 7 or 8, characterized in that the method further comprises: detecting proximity light data of the electronic device; and determining whether the electronic equipment is shielded or not according to the proximity light data.
- 12. The method according to any one of claims 7-11, further comprising: And determining that the electronic equipment is taken out of the pocket according to at least one of the acceleration data, whether the electronic equipment is shielded or not and whether a finger touches a display screen of the electronic equipment, and closing an anti-false touch mode.
- 13. A system on a chip comprising at least one processor and at least one interface circuit, the at least one interface circuit configured to perform a transceiving function and to send instructions to the at least one processor, the at least one processor executing the instructions, the at least one processor performing the method of any of claims 7-12.
- 14. A computer readable storage medium, characterized in that the computer readable storage medium comprises a computer program which, when run on an electronic device, causes the electronic device to perform the method according to any of claims 7-12.
- 15. A computer program product, characterized in that the computer program product comprises a computer program or instructions which, when run on a computer, cause the computer to carry out the method according to any one of claims 7-12.
Description
Anti-false touch method and electronic equipment Technical Field The present application relates to the field of electronic technologies, and in particular, to a method for preventing false touch and an electronic device. Background For convenience of use, touch screens (TP) are used for the screens of more and more electronic devices. The user can control the electronic device to execute corresponding instructions by clicking or sliding the finger on the screen. In daily life, when a user uses an electronic device, the electronic device in a bright screen state is sometimes put into a pocket or a backpack. Or when the user puts the electronic equipment in the off-screen state into the pocket, the electronic equipment can be unlocked by mistake, so that the electronic equipment is put into the pocket in the on-screen state. In the case that the electronic device is in a bright screen state, if the screen of the electronic device contacts skin, clothing, a backpack or the like, friction between the screen and a contact object can generate a capacitance signal similar to that generated by touching the screen with a finger, and false touch is generated. The electronic device executes unexpected operation of the user based on the capacitive signal of the false touch, and influences the use experience of the user. For example, a user uses the electronic device to talk, and after the talk is finished, the electronic device is directly put into a pocket without extinguishing the screen. In the process of walking by a user, the clothes rub the screen to cause the electronic equipment to dial the call by mistake. Currently, an electronic device may not respond to a false touch by preventing a false touch. For example, in a locked screen state, the electronic device may initiate a false touch prevention mode based on the proximity optics being blocked. However, the method is only suitable for a screen locking state, and is not effective in an unlocking state. Or in the unlocking state, when the electronic equipment determines that the area of the screen report point is larger than the first interception condition, determining that the screen report point is in false touch, and intercepting the screen report point. For example, the first interception condition is 4cm 2. However, the method has higher interception triggering conditions, and can only intercept large-area false touches and cannot intercept small-area false touches. Or after the electronic equipment is put into the pocket, the anti-false touch mode can be started according to the ultrasonic wave when the electronic equipment is determined to be shielded. However, the method cannot effectively intercept the problem of false touch in the process of bagging the electronic equipment. In the method, although the electronic device can intercept the false touch through the false touch prevention mode, the method has limitation, is effective only in a specific state, and cannot effectively solve the false touch problem of the electronic device. Therefore, how to effectively solve the problem of false touch of the electronic device and improve the user experience becomes a technical problem to be solved. Disclosure of Invention The application provides the false touch prevention method and the electronic device, which can optimize the false touch prevention strategy, effectively solve the false touch problem of the electronic device and improve the user experience. In order to achieve the above purpose, the application adopts the following technical scheme: In a first aspect, the application provides an electronic device, which comprises an acceleration sensor and a processor, wherein the acceleration sensor is used for detecting acceleration data of the electronic device, and the processor is used for determining whether the electronic device is blocked or not according to the acceleration data and the electronic device, and starting an anti-false touch mode. According to the method and the device for judging the touch control of the electronic equipment, whether the electronic equipment meets the condition of triggering the touch control mode or not is comprehensively judged by integrating the acceleration data and whether the electronic equipment is shielded, the accuracy of touch control judgment is improved, the risk of misjudgment is effectively reduced, and the problem of touch control of the electronic equipment is effectively solved. Moreover, the false touch prevention strategy is optimized, so that the false touch prevention mode is more intelligent and accurate, and the user experience is improved. According to the first aspect or any implementation manner of the first aspect, the processor is configured to determine whether the electronic device is placed in the pocket according to the acceleration data and whether the electronic device is blocked, and the method includes that the processor is configured to determine that the electronic device is plac