Search

CN-121995513-A - Water inlet detection method and device, equipment and storage medium

CN121995513ACN 121995513 ACN121995513 ACN 121995513ACN-121995513-A

Abstract

The embodiment of the application discloses a water inlet detection method, a device, equipment and a storage medium, which are applied to electronic equipment, and comprise the steps of acquiring a first detection result and a second detection result of the electronic equipment, wherein the first detection result and the second detection result are used for indicating that the electronic equipment is water inlet or the electronic equipment is not water inlet, the first detection result is a detection result of a touch screen of the electronic equipment, the second detection result is a detection result determined according to acquired target data, and the target data are data for reflecting the surrounding environment of the electronic equipment; and under the condition that the first detection result and the second detection result are both that the electronic equipment is in water, determining that the electronic equipment is in water. Like this, can accurately detect whether electronic equipment goes into water, promote electronic equipment's reliability in use.

Inventors

  • WU YUQING

Assignees

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

Dates

Publication Date
20260508
Application Date
20241105

Claims (10)

  1. 1. A water-in detection method, characterized by being applied to an electronic device, the method comprising: Acquiring a first detection result and a second detection result of the electronic equipment, wherein the first detection result and the second detection result are used for indicating that the electronic equipment is in water or the electronic equipment is not in water, the first detection result is a detection result of a touch screen of the electronic equipment, the second detection result is a detection result determined according to acquired target data, and the target data is data for reflecting the surrounding environment of the electronic equipment; And determining that the electronic equipment is in water under the condition that the first detection result and the second detection result are both in water of the electronic equipment.
  2. 2. The method of claim 1, wherein the obtaining the first detection result and the second detection result for the electronic device comprises: acquiring a size parameter of a target area in a touch screen of the electronic equipment, wherein the target area is an area in a short circuit state; determining that the first detection result is used for indicating the electronic equipment to enter water under the condition that the size parameter is larger than or equal to a parameter threshold value; And under the condition that the first detection result is that the electronic equipment enters water, acquiring the target data, carrying out water entering identification processing on the electronic equipment according to the target data and a pre-trained identification model, and obtaining the second detection result, wherein the identification model is obtained by training according to the acquired environmental data acquired by the electronic equipment on water and the acquired environmental data acquired by the electronic equipment under water.
  3. 3. The method of claim 2, wherein the size parameter comprises an area, and the obtaining the size parameter of the target area in the touch screen of the electronic device comprises: acquiring a circuit state of each touch area in the touch screen, wherein the circuit state comprises a short circuit state or a normal state; and determining the total area of the touch area with the circuit state of short circuit state in the touch screen according to the circuit state of each touch area.
  4. 4. The method of claim 2, wherein the target data comprises ultrasonic data, and the pre-trained recognition model is trained from ultrasonic reflected signals acquired by the electronic device on water and ultrasonic reflected signals acquired under water; and performing water inlet identification processing on the electronic equipment according to the target data and the pre-trained identification model to obtain the second detection result, wherein the method comprises the following steps of: Transmitting an ultrasonic signal through an ultrasonic transmitting module of the electronic equipment, and receiving a reflected signal corresponding to the ultrasonic signal through an ultrasonic receiving module of the electronic equipment; And extracting the feature vector corresponding to the reflected signal from the reflected signal through the pre-trained recognition model, and recognizing the feature vector corresponding to the reflected signal to obtain the second detection result.
  5. 5. The method of claim 2, wherein the target data comprises image data, and the pre-trained recognition model is trained from the image data acquired by the electronic device on water and the image data acquired under water; and performing water inlet identification processing on the electronic equipment according to the target data and the pre-trained identification model to obtain the second detection result, wherein the method comprises the following steps of: Acquiring a plurality of photographed images to be identified; extracting the characteristics of the image to be identified through the pre-trained identification model to obtain a characteristic vector corresponding to the image to be identified; And carrying out recognition processing on the feature vector corresponding to the image to be recognized to obtain the second detection result.
  6. 6. The method according to any one of claims 1 to 5, further comprising: and under the condition that the electronic equipment is determined to enter water and the electronic equipment detects an unlocking operation, starting a camera application.
  7. 7. A water entry detection device, comprising: The electronic equipment comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a first detection result and a second detection result of the electronic equipment, the first detection result and the second detection result are used for indicating that the electronic equipment is in water or the electronic equipment is not in water, the first detection result is a detection result of a touch screen of the electronic equipment, and the second detection result is a detection result determined according to acquired target data used for reflecting the surrounding environment of the electronic equipment; and the processing module is used for determining that the electronic equipment is in water under the condition that the first detection result and the second detection result are both in water.
  8. 8. A computer device comprising a memory and a processor, the memory storing a computer program executable on the processor, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the program is executed.
  9. 9. A computer readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the method according to any one of claims 1 to 6.
  10. 10. A computer program product comprising a computer program which, when executed by a processor, implements the method of any one of claims 1 to 6.

Description

Water inlet detection method and device, equipment and storage medium Technical Field The embodiment of the application relates to an information processing technology, in particular to a water inlet detection method, a device, equipment and a storage medium. Background Electronic devices have been widely used in the daily life of users, greatly changing the life style of users, and improving the quality of life and work efficiency. In the use process of the electronic equipment, a water entering scene may be involved, and how to automatically identify the water entering of the electronic equipment has become a requirement. Through carrying out accurate income water to electronic equipment automatically and detecting, can avoid potential incident, improve electronic equipment's reliability and durability. Therefore, how to accurately detect whether the electronic device is in water is a problem to be solved. Disclosure of Invention In view of the above, the method, the device, the equipment and the storage medium for detecting water entry provided by the embodiment of the application can accurately detect whether the electronic equipment is water-in, and improve the use reliability of the electronic equipment. The method, the device, the equipment and the storage medium for detecting the water inlet are realized as follows: in a first aspect, an embodiment of the present application provides a method for detecting water inflow, including: Acquiring a first detection result and a second detection result of the electronic equipment, wherein the first detection result and the second detection result are used for indicating that the electronic equipment is in water or the electronic equipment is not in water, the first detection result is a detection result of a touch screen of the electronic equipment, the second detection result is a detection result determined according to acquired target data, and the target data is data for reflecting the surrounding environment of the electronic equipment; And determining that the electronic equipment is in water under the condition that the first detection result and the second detection result are both in water of the electronic equipment. In a second aspect, an embodiment of the present application provides a water inlet detection device, including: the electronic equipment comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a first detection result and a second detection result of the electronic equipment, the first detection result and the second detection result are used for indicating that the electronic equipment is in water or the electronic equipment is not in water, the first detection result is a detection result of a touch screen of the electronic equipment, and the second detection result is a detection result determined according to acquired target data used for reflecting the surrounding environment of the electronic equipment; and the processing module is used for determining that the electronic equipment is in water under the condition that the first detection result and the second detection result are both in water. In a third aspect, an embodiment of the present application provides a computer device, including a memory and a processor, where the memory stores a computer program that can be run on the processor, and the processor implements the method according to the embodiment of the present application when executing the program. 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 method provided by the embodiments of the present application. According to the water inlet detection method, the device, the computer equipment and the computer readable storage medium, the first detection result of the touch screen of the electronic equipment and the second detection result determined based on the target data of the surrounding environment of the electronic equipment are obtained, and the water inlet of the electronic equipment is determined under the condition that the first detection result and the second detection result indicate the water inlet of the electronic equipment, so that false detection can be avoided, the identification accuracy of the water inlet of the electronic equipment is improved, and the use reliability of the electronic equipment is improved. Drawings The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application. Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application; fig. 2 is a schematic diagram of an implementation flow of a water inlet detection method according to an embodiment