Search

CN-121996092-A - Water entry detection method, device, apparatus, storage medium, and program product

CN121996092ACN 121996092 ACN121996092 ACN 121996092ACN-121996092-A

Abstract

The present application relates to a water entry detection method, apparatus, device, storage medium, and program product. The method comprises the steps of determining whether a terminal meets a target condition according to a detection signal output by a touch screen of the terminal, wherein the target condition is used for representing the possibility that the terminal enters water, and determining whether the terminal enters water according to a detection result of a first touch event of a fingerprint identification area on the screen, which is output by an ultrasonic fingerprint detection device of the terminal, and a detection result of a second touch event of the screen, which is output by the touch screen, if the target condition is met. By adopting the method, the water inlet detection of the terminal can be realized.

Inventors

  • WU YUQING

Assignees

  • 深圳市锐尔觅移动通信有限公司

Dates

Publication Date
20260508
Application Date
20241105

Claims (13)

  1. 1. A method of water entry detection, the method comprising: determining whether the terminal meets a target condition according to a detection signal output by a touch screen of the terminal, wherein the target condition is used for representing the possibility that the terminal enters underwater; And if the target condition is met, determining whether the terminal enters water according to a detection result of a first touch event of a fingerprint identification area on a screen, which is output by an ultrasonic fingerprint detection device of the terminal, and a detection result of a second touch event of the screen, which is output by a touch screen.
  2. 2. The method according to claim 1, wherein the determining whether the terminal satisfies a target condition according to a detection signal output from a touch screen of the terminal comprises: Determining a short circuit area of the touch screen according to a detection signal output by the touch screen, wherein the current of the short circuit area is larger than a preset current threshold; and determining whether the terminal meets the target condition according to the area ratio of the short circuit area.
  3. 3. The method according to claim 1, wherein determining whether the terminal is in water according to the detection result of the first touch event of the on-screen fingerprint recognition area output by the ultrasonic fingerprint detection device and the detection result of the second touch event of the screen output by the touch screen comprises: If the detection result output by the ultrasonic fingerprint detection device indicates that the first touch event which lasts for a first preset duration exists, and the detection result output by the touch screen indicates that the second touch event does not exist in the first preset duration, determining that the terminal enters water; if the detection result output by the ultrasonic fingerprint detection device indicates that the first touch event which lasts for the first preset duration exists, and the detection result output by the touch screen indicates that the second touch event exists in the first preset duration, determining that the terminal does not enter water.
  4. 4. The method according to claim 1, wherein the method further comprises: And if the target condition is met, controlling the ultrasonic fingerprint detection device to enter an underwater working mode, wherein the underwater working mode is a mode in which the ultrasonic fingerprint detection device works under the water surface.
  5. 5. The method according to any one of claims 1 to 4, further comprising: if the terminal is determined to enter water, controlling a target application installed in the terminal to start; And if the terminal is determined to not enter water, controlling the ultrasonic fingerprint detection device to enter a water working mode, wherein the water working mode is a mode that the ultrasonic fingerprint detection device works on the water surface.
  6. 6. The method according to any one of claims 1 to 4, wherein the determining whether the terminal is in water or not is performed before determining, based on the detection result of the first touch event of the on-screen fingerprint recognition area output by the ultrasonic fingerprint detection device and the detection result of the second touch event of the screen output by the touch screen, the method further comprising: if the terminal is in a state that the screen is not unlocked, controlling the ultrasonic fingerprint detection device to detect fingerprints in the fingerprint identification area; And executing a screen unlocking process according to the fingerprint detected by the ultrasonic fingerprint detection device.
  7. 7. A method according to claim 3, characterized in that the method further comprises: If the detection result output by the ultrasonic fingerprint detection device indicates that the first touch event exists, and the duration of the first touch event is smaller than the first preset duration, returning to the re-execution of the water inlet detection step; The water inlet detection step comprises the step of determining whether the terminal is in water or not according to a detection result of a first touch event of a fingerprint identification area on a screen, which is output by the ultrasonic fingerprint detection device, and a detection result of a second touch event of the screen, which is output by the touch screen.
  8. 8. The method according to claim 7, wherein if the detection result output by the ultrasonic fingerprint detection device indicates that the first touch event exists, and the duration of the first touch event is less than the first preset duration, returning to re-perform the water-in detection step, including: if the detection result output by the ultrasonic fingerprint detection device indicates that the first touch event exists, and the duration of the first touch event is smaller than the first preset duration, acquiring accumulated execution duration of executing the water-in detection step after determining that the terminal meets the target condition; and if the accumulated execution duration is smaller than the second preset duration, returning to execute the water inlet detection step again.
  9. 9. The method of claim 8, wherein the method further comprises: And if the accumulated execution time length is greater than or equal to the second preset time length, stopping executing the water inlet detection step, and controlling the ultrasonic fingerprint detection device to enter a water working mode, wherein the water working mode is a mode that the ultrasonic fingerprint detection device works on the water surface.
  10. 10. A water entry detection device, the device comprising: The first determining module is used for determining whether the terminal meets a target condition according to a detection signal output by a touch screen of the terminal, wherein the target condition is used for representing the possibility that the terminal enters the water; And the second determining module is used for determining whether the terminal enters water according to a detection result of the first touch event of the fingerprint identification area on the screen, which is output by the ultrasonic fingerprint detection device of the terminal, and a detection result of the second touch event of the screen, which is output by the touch screen, if the target condition is met.
  11. 11. A terminal comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 9 when the computer program is executed.
  12. 12. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 9.
  13. 13. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any one of claims 1 to 9.

Description

Water entry detection method, device, apparatus, storage medium, and program product Technical Field The present application relates to the technical field of terminal devices, and in particular, to a method, an apparatus, a device, a storage medium, and a program product for detecting water entry. Background With diversification of life scenes of people, there is an increasing demand for using terminals under water, for example, shooting diving pictures of users through terminals, and the like. However, in the related art, the terminal cannot realize water-in detection. Disclosure of Invention The application provides a water inlet detection method, a device, equipment, a storage medium and a program product, wherein the water inlet detection method, the device, the storage medium and the program product can detect whether a terminal is in water. In a first aspect, the present application provides a method for detecting water entry, the method comprising: determining whether a terminal meets a target condition according to a detection signal output by a touch screen of the terminal, wherein the target condition is used for representing the possibility that the terminal enters water, and if the terminal meets the target condition, determining whether the terminal enters water according to a detection result of a first touch event of a fingerprint identification area on a screen, which is output by an ultrasonic fingerprint detection device of the terminal, and a detection result of a second touch event of the screen, which is output by the touch screen. In a second aspect, the present application provides a water entry detection device, the device comprising: The first determining module is used for determining whether the terminal meets a target condition according to a detection signal output by a touch screen of the terminal, wherein the target condition is used for representing the possibility that the terminal enters the water; And the second determining module is used for determining whether the terminal enters water according to a detection result of the first touch event of the fingerprint identification area on the screen, which is output by the ultrasonic fingerprint detection device of the terminal, and a detection result of the second touch event of the screen, which is output by the touch screen, if the target condition is met. In a third aspect, the present application provides a terminal comprising a memory storing a computer program and a processor implementing the steps of the first aspect when executing the computer program. In a fourth aspect, the present application also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the first aspect described above. In a fifth aspect, the application also provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of the first aspect described above. According to the water inlet detection method, the device, the equipment, the storage medium and the program product, whether the terminal meets the target condition is determined according to the detection signal output by the touch screen of the terminal, wherein the target condition is used for representing the possibility that the terminal enters water, and under the condition that the terminal meets the target condition, whether the terminal is water inlet or not is determined according to the detection result of the first touch event of the fingerprint identification area on the screen output by the ultrasonic fingerprint detection device of the terminal and the detection result of the second touch event of the screen output by the touch screen. Drawings In order to more clearly illustrate the embodiments of the present application or the technical solutions in the related art, the drawings that are needed in the description of the embodiments of the present application or the related technologies will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other related drawings may be obtained according to these drawings without inventive effort to those of ordinary skill in the art. FIG. 1 is a schematic flow chart of a method for detecting water in an embodiment; FIG. 2 is a flow chart of a technical process of determining whether a terminal meets a target condition according to a detection signal output by a touch screen in one embodiment; FIG. 3 is a schematic flow chart of a water-in detection method in another embodiment; FIG. 4 is a block diagram of a water-in detection device according to an embodiment; FIG. 5 is a block diagram of a water-in detection device according to another embodiment; Fig. 6 is an internal structural diagram of a terminal in one embodiment. Detailed Description The present application will be described in further detai