Search

CN-122001976-A - False touch prevention detection method and electronic equipment

CN122001976ACN 122001976 ACN122001976 ACN 122001976ACN-122001976-A

Abstract

The application discloses an anti-false touch detection method which can be applied to the technical field of terminals and comprises the steps of determining the illumination intensity of ambient light in the environment where electronic equipment is located when the electronic equipment meets preset detection conditions, determining the ambient light entry threshold under a pocket anti-false touch scene according to the illumination intensity, wherein the ambient light entry threshold under the pocket anti-false touch scene is larger than calculated illumination intensity, and carrying out pocket anti-false touch detection by utilizing the determined ambient light entry threshold under the pocket anti-false touch scene.

Inventors

  • GUO XIAOYA
  • LI CHENLONG
  • ZHANG JING
  • JIA XINGWANG

Assignees

  • 荣耀终端股份有限公司

Dates

Publication Date
20260508
Application Date
20241104

Claims (11)

  1. 1. An anti-false touch detection method is characterized by comprising the following steps: when the electronic equipment meets a preset detection condition, determining the illumination intensity of ambient light in the environment where the electronic equipment is located; Determining an ambient light entry threshold under a pocket anti-false touch scene according to the illumination intensity, wherein the ambient light entry threshold is larger than the illumination intensity; And carrying out pocket false touch prevention detection by utilizing the determined ambient light entering threshold.
  2. 2. The method of claim 1, wherein determining an ambient light entry threshold for a pocket anti-false touch scene based on the illumination intensity comprises: The ambient light entry threshold is determined according to the sum of the illumination intensity and a first constant increment, or the ambient light entry threshold is determined according to the product of the illumination intensity and a first increment coefficient, or the ambient light entry threshold is determined according to the difference between the illumination intensity and a second constant increment, or the ambient light entry threshold is determined according to the ratio of the illumination intensity to a second increment coefficient, wherein the first constant increment is greater than 0, the first increment coefficient is greater than 1, the second constant increment is less than 0, and the second increment coefficient is less than 1.
  3. 3. The method of claim 1, wherein determining the illumination intensity of the ambient light in the environment in which the electronic device is located comprises: Acquiring a channel value of an ambient light sensor; And determining the illumination intensity of the ambient light in the environment where the electronic equipment is located according to the channel value and a fitting formula, wherein the fitting formula is obtained by fitting the channel value of the ambient light sensor obtained by each test and the illumination intensity measured by the ambient light sensor under the condition that the test electronic equipment is in a test scene for multiple tests, the test scene is a scene reflecting the screen brightness of the test electronic equipment, and the test electronic equipment is in a bright screen state.
  4. 4. The method of claim 3, wherein the test scene is a white pocket, a side of the white pocket in contact with the test electronic device is a smooth surface material, and wherein the obtaining the channel value of the ambient light sensor comprises obtaining a C channel value of the ambient light sensor; The determining the illumination intensity of the ambient light in the environment where the electronic device is located according to the channel value and the fitting formula comprises: And determining the illumination intensity of the ambient light in the environment where the electronic equipment is located according to the C-channel value and a first fitting formula, wherein the first fitting formula is obtained by fitting the C-channel value of the ambient light sensor obtained by each test and the illumination intensity measured by the ambient light sensor in a scene where the test electronic equipment is in a white pocket for multiple tests, and the pixel points of the screen area of the test electronic equipment are white pixel points.
  5. 5. The method of claim 3, wherein the test scene is a white pocket, a side of the white pocket in contact with the test electronic device is a light surface material, and the obtaining the channel values of the ambient light sensor comprises obtaining the R channel value, the G channel value, the B channel value and the C channel value of the ambient light sensor; The determining the illumination intensity of the ambient light in the environment where the electronic device is located according to the channel value and the fitting formula comprises: And determining the illumination intensity of the ambient light in the environment where the electronic equipment is located according to the R channel value, the G channel value, the B channel value, the C channel value and a second fitting formula, wherein the second fitting formula is obtained by performing multiple tests on the electronic equipment under the condition that the electronic equipment is in a white pocket, and performing fitting according to the R channel value, the G channel value, the B channel value, the C channel value and the illumination intensity measured by the ambient light sensor of the ambient light sensor obtained by each test, wherein the pixel points of the screen area of the electronic equipment are white pixel points.
  6. 6. The method of claim 3, wherein the test scene is a white pocket, a side of the white pocket in contact with the test electronic device is a smooth surface material, and the obtaining channel values of the ambient light sensor comprises obtaining an R channel value, a G channel value and a B channel value of the ambient light sensor; The determining the illumination intensity of the ambient light in the environment where the electronic device is located according to the channel value and the fitting formula comprises: and determining the illumination intensity of the ambient light in the environment where the electronic equipment is located according to the R channel value, the G channel value, the B channel value and a third fitting formula, wherein the second fitting formula is obtained by fitting the R channel value, the G channel value, the B channel value and the illumination intensity measured by the ambient light sensor of the ambient light sensor obtained by each test under the scene that the test electronic equipment is in a white pocket for multiple tests, and the pixel points of the screen area of the test electronic equipment are white pixel points.
  7. 7. The method of claim 1, wherein determining the illumination intensity of the ambient light in the environment in which the electronic device is located comprises: acquiring a C channel value of an ambient light sensor; And determining the illumination intensity of the ambient light in the environment where the electronic equipment is located according to the C channel value and a fourth fitting formula, wherein the fourth fitting formula is obtained by fitting the C channel value of the ambient light sensor obtained by each test and the illumination intensity measured by the ambient light sensor under the scene that the display screen of the electronic equipment is attached with white reflective materials for multiple tests, and the pixel points of the screen area of the electronic equipment are white pixel points.
  8. 8. The method according to any one of claims 1-7, wherein determining the illumination intensity of the ambient light in the environment in which the electronic device is located when the electronic device satisfies a preset detection condition comprises: when the electronic equipment is in a screen locking state, a touch panel detection value of the electronic equipment meets a touch screen big object detection threshold and the electronic equipment is in a head-down state, determining illumination intensity of ambient light in an environment where the electronic equipment is located; And when the electronic equipment is in a non-screen locking state, the touch panel detection value of the electronic equipment meets the touch screen big object detection threshold, the electronic equipment is in a head-down state and the electronic equipment is in a motion state, determining the illumination intensity of ambient light in the environment where the electronic equipment is located.
  9. 9. The method according to any one of claims 1-8, wherein said using the ambient light entry threshold for pocket anti-false touch detection comprises: When the electronic equipment is in a screen locking state, a touch panel detection value of the electronic equipment meets a touch screen big object detection threshold, the electronic equipment is in a head-down state and the illumination intensity is smaller than the ambient light entrance threshold, an anti-false touch interface is presented; And when the electronic equipment is in a non-screen locking state, the touch panel detection value of the electronic equipment meets a touch screen big object detection threshold, the electronic equipment is in a head-down state, the electronic equipment is in a motion state and the illumination intensity is smaller than the ambient light entrance threshold, an anti-false touch interface is presented.
  10. 10. An electronic device is characterized by comprising a processor and a memory; wherein one or more computer programs are stored in the memory, the one or more computer programs comprising instructions, which when executed by the processor, cause the electronic device to perform the method of any of claims 1-9.
  11. 11. A computer storage medium storing computer instructions which, when run on an electronic device, performs the method of any one of claims 1-9.

Description

False touch prevention detection method and electronic equipment Technical Field The present application relates to the field of terminal technologies, and in particular, to a method for preventing false touch detection and an electronic device. Background In daily life, the screen of the electronic device may be touched by the user unintentionally or may be squeezed by other objects or rubbed with clothes, so that the screen of the electronic device may be touched by mistake, and thus unnecessary functions may be triggered by mistake. Taking the case of a pocket anti-false touch scene (i.e. the electronic device is in a pocket), if the electronic device wants to enter the anti-false touch state, the anti-false touch interface pops up, wherein one condition is that the illumination intensity of the environment where the electronic device is located needs to be smaller than the ambient light entrance threshold, the ambient light entrance threshold in the prior art is generally set to a fixed value, and because the ambient light entrance threshold is a fixed value, under certain high-reflection scenes, the light of the screen of the electronic device may be reflected, so that the illumination intensity of the environment where the ambient light sensor of the electronic device detects may be greater than the ambient light entrance threshold, and therefore the electronic device cannot enter the anti-false touch state, cannot pop up the anti-false touch interface, and may become false touch, and the user experience feel worse. Disclosure of Invention The application provides an anti-false touch detection method and electronic equipment, which are used for improving the accuracy of a false touch prevention function of a triggering pocket, reducing false touch of a user and improving user experience. In order to achieve the above purpose, the application adopts the following technical scheme: In a first aspect, the present application provides a method for detecting false touch, which may include: when the electronic equipment meets the preset detection conditions, calculating the illumination intensity of ambient light in the environment where the electronic equipment is located, and determining an ambient light entrance threshold in the pocket anti-false touch scene according to the calculated illumination intensity, wherein the ambient light entrance threshold is larger than the calculated illumination intensity, and carrying out pocket anti-false touch detection by utilizing the determined ambient light entrance threshold. Therefore, under specific conditions, the illumination intensity of the ambient light in the environment where the electronic equipment is located can be calculated, and then the ambient light entry threshold is determined according to the calculated illumination intensity, so that the ambient light entry threshold is larger than the calculated illumination intensity, the accuracy of triggering the pocket false touch prevention function is improved, the false touch of a user is reduced, and the user experience is improved. In some possible implementation manners, determining an ambient light entry threshold in the pocket anti-false touch scene according to the calculated illumination intensity may specifically be: The ambient light entering threshold under the pocket anti-false touch scene can be determined according to the sum of the calculated illumination intensity and the first definite value increment, namely, a first definite value increment is added on the basis of the calculated illumination intensity, and the value is used as the ambient light entering threshold under the pocket anti-false touch scene, wherein the first definite value increment needs to be larger than 0, for example, the range of the first definite value increment can be set to be larger than 0 and smaller than 30lux. Or determining the ambient light entering threshold under the pocket anti-false touch scene according to the product of the calculated illumination intensity and the first increment coefficient, namely multiplying the calculated illumination intensity by the first increment coefficient, and taking the value as the ambient light entering threshold under the pocket anti-false touch scene, wherein the first increment coefficient needs to be greater than 1, for example, the range of the first increment coefficient can be set to be greater than 1 and less than 1.05. Or determining the ambient light entering threshold under the pocket anti-false touch scene according to the calculated illumination intensity and the difference between the calculated illumination intensity and the second fixed value increment, namely subtracting a second fixed value increment on the basis of the calculated illumination intensity, and taking the value as the ambient light entering threshold under the pocket anti-false touch scene, wherein the second fixed value increment needs to be smaller than 0, for example, the range of the