Search

CN-121996093-A - Terminal water-in detection method, device, terminal and computer readable storage medium

CN121996093ACN 121996093 ACN121996093 ACN 121996093ACN-121996093-A

Abstract

The application relates to a terminal water-in detection method, a device, a terminal and a computer readable storage medium. The method comprises the steps of obtaining fingerprint detection information based on ultrasonic signals emitted by an ultrasonic sensor of a terminal when the terminal is detected to be in a screen locking state, obtaining a fingerprint pressing result of a fingerprint pressing area of the terminal detected by the ultrasonic sensor, obtaining pressing duration of the fingerprint pressing when the fingerprint detection information is used for representing the fingerprint pressing result of the fingerprint pressing area of the terminal detected by the ultrasonic sensor, obtaining point information of a touch screen of the terminal, wherein the point information is used for representing the result of whether the touch screen detects a pressing event, obtaining a water entering detection result according to the point information and the pressing duration, and obtaining a water entering detection result which is used for representing whether the terminal enters water. By adopting the method, the terminal can realize water inlet detection.

Inventors

  • WU YUQING

Assignees

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

Dates

Publication Date
20260508
Application Date
20241105

Claims (12)

  1. 1. The method for detecting the water entering of the terminal is characterized by comprising the following steps of: Acquiring fingerprint detection information based on an ultrasonic signal emitted by an ultrasonic sensor of the terminal under the condition that the terminal is detected to be in a screen locking state, wherein the fingerprint detection information is used for representing whether a fingerprint pressing area of the terminal detected by the ultrasonic sensor has a fingerprint pressing result or not; Acquiring the pressing duration of the fingerprint pressing and acquiring the point information of a touch screen of the terminal under the condition that the fingerprint detection information characterizes the fingerprint pressing area of the terminal detected by the ultrasonic sensor, wherein the point information is used for characterizing whether the touch screen detects the result of a pressing event or not; And acquiring a water entering detection result according to the point information and the pressing time, wherein the water entering detection result is used for representing whether the terminal enters water or not.
  2. 2. The method of claim 1, wherein the obtaining the water-in detection result according to the point information and the pressing duration comprises: Under the condition that the report point information characterizes that the touch screen detects a pressing event, determining that the water entering detection result is that the terminal does not enter water; and under the condition that the report point information characterizes that the touch screen does not detect a pressing event, determining the water inlet detection result according to the pressing duration.
  3. 3. The method of claim 2, wherein the determining the water-in detection result according to the pressing time period comprises: if the pressing time is longer than a preset time threshold, determining that the water inlet detection result is that the terminal is water inlet.
  4. 4. A method according to any one of claims 1 to 3, wherein the acquiring fingerprint detection information based on the ultrasonic signal emitted by the ultrasonic sensor of the terminal comprises: Controlling the ultrasonic sensor to emit a first ultrasonic signal to the fingerprint pressing area at a first emission frequency; and acquiring the fingerprint detection information according to the first echo signal of the first ultrasonic signal.
  5. 5. The method of claim 4, wherein the obtaining the duration of the fingerprint press comprises: controlling the ultrasonic sensor to emit a second ultrasonic signal to the fingerprint pressing area at a second emission frequency under the condition that the fingerprint detection information characterizes that the fingerprint pressing area of the terminal detected by the ultrasonic sensor has fingerprint pressing, wherein the second emission frequency is faster than the first emission frequency; acquiring the receiving times of a second echo signal of the second ultrasonic signal; And acquiring the pressing duration according to the receiving times and the second transmitting frequency.
  6. 6. A method according to any one of claims 1 to 3, further comprising: And under the condition that the terminal is not filled with water, controlling the ultrasonic sensor to check and compare the scanned fingerprint image with a preset reference fingerprint image so as to judge whether the terminal is unlocked or not.
  7. 7. A method according to any one of claims 1 to 3, further comprising: And under the condition that the terminal is determined to enter water, switching the working mode of the terminal into an underwater working mode.
  8. 8. A method according to any one of claims 1 to 3, further comprising: and under the condition that the terminal is determined to enter water, starting a camera application in the terminal.
  9. 9. A terminal water-in detection device, characterized by comprising: The terminal comprises a first acquisition module, a first fingerprint detection module and a second acquisition module, wherein the first acquisition module is used for acquiring fingerprint detection information based on an ultrasonic signal emitted by an ultrasonic sensor of the terminal under the condition that the terminal is detected to be in a screen locking state; the second acquisition module is used for acquiring the pressing duration of the fingerprint pressing and acquiring the point information of the touch screen of the terminal when the fingerprint detection information characterizes that the fingerprint pressing area of the terminal detected by the ultrasonic sensor has the fingerprint pressing, wherein the point information is used for characterizing whether the touch screen detects the result of a pressing event or not; the detection module is used for acquiring a water entering detection result according to the point information and the pressing time, and the water entering detection result is used for representing whether the terminal enters water or not.
  10. 10. A terminal comprising an ultrasonic sensor, a memory and a processor, the memory storing a computer program, characterized in that the computer program, when executed by the processor, causes the processor to perform the steps of the terminal water ingress detection method according to any one of claims 1 to 8.
  11. 11. 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 according to any one of claims 1 to 8.
  12. 12. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the steps of the method of any one of claims 1 to 8.

Description

Terminal water-in detection method, device, terminal and computer readable storage medium Technical Field The present application relates to the field of terminal detection technologies, and in particular, to a method and apparatus for detecting water entering a terminal, and a computer readable storage medium. 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 conventional technology, the terminal cannot realize water-in detection. Disclosure of Invention The embodiment of the application provides a method and a device for detecting water entering of a terminal, the terminal and a computer readable storage medium, which can enable the terminal to realize water entering detection. In a first aspect, an embodiment of the present application provides a method for detecting water entering a terminal, including: Acquiring fingerprint detection information based on an ultrasonic signal emitted by an ultrasonic sensor of the terminal under the condition that the terminal is detected to be in a screen locking state, wherein the fingerprint detection information is used for representing whether a fingerprint pressing area of the terminal detected by the ultrasonic sensor has a fingerprint pressing result or not; Acquiring the pressing duration of the fingerprint pressing and acquiring the point information of a touch screen of the terminal under the condition that the fingerprint detection information characterizes the fingerprint pressing area of the terminal detected by the ultrasonic sensor, wherein the point information is used for characterizing whether the touch screen detects the result of a pressing event or not; And acquiring a water entering detection result according to the point information and the pressing time, wherein the water entering detection result is used for representing whether the terminal enters water or not. In a second aspect, an embodiment of the present application provides a device for detecting water entering a terminal, including: The terminal comprises a first acquisition module, a first fingerprint detection module and a second acquisition module, wherein the first acquisition module is used for acquiring fingerprint detection information based on an ultrasonic signal emitted by an ultrasonic sensor of the terminal under the condition that the terminal is detected to be in a screen locking state; the second acquisition module is used for acquiring the pressing duration of the fingerprint pressing and acquiring the point information of the touch screen of the terminal when the fingerprint detection information characterizes that the fingerprint pressing area of the terminal detected by the ultrasonic sensor has the fingerprint pressing, wherein the point information is used for characterizing whether the touch screen detects the result of a pressing event or not; the detection module is used for acquiring a water entering detection result according to the point information and the pressing time, and the water entering detection result is used for representing whether the terminal enters water or not. In a third aspect, an embodiment of the present application provides a terminal, including an ultrasonic sensor, a memory, and a processor, where the memory stores a computer program, and when the computer program is executed by the processor, the processor is caused to execute the steps of the method for detecting entry of water into the terminal according to the first aspect. In a fourth aspect, embodiments of the present application provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method according to the first aspect. In a fifth aspect, an embodiment of the present application provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of the terminal water entry detection method according to the first aspect. According to the terminal water-entering detection method, device, terminal and computer readable storage medium, under the condition that the terminal is detected to be in the screen locking state, based on the ultrasonic signals emitted by the ultrasonic sensor of the terminal, fingerprint detection information representing whether a fingerprint pressing area of the terminal detected by the ultrasonic sensor has a fingerprint pressing result or not can be obtained, under the condition that the obtained fingerprint detection information represents that the fingerprint pressing area of the terminal detected by the ultrasonic sensor has the fingerprint pressing result, the terminal can be detected according to the obtained point information and the pressing time of the fingerprint pressing by obtaining the pressing time length of the fingerprint pressing,