Water state judgment method and terminal equipment

The water state is judged through the mutual capacitance and self-capacitance data of the terminal equipment, which solves the problem of reduced operational sensitivity of the terminal equipment when operating with water, and improves the user experience.

CN119148872APending Publication Date: 2024-12-17GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310706039.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-14
Publication Date
2024-12-17

AI Technical Summary

Technical Problem

When the terminal equipment is operated with water, the operating sensitivity of the touch screen is reduced, resulting in poor user experience. It is difficult for the existing technology to accurately judge the water status and cannot initiate corresponding measures in a timely manner.

Method used

Through the mutual capacitance data and self-capacitance data of the display screen of the terminal device, the confidence in the water state is determined and compared with the water threshold to determine whether the device is in the water state, thereby identifying the water-carrying operation.

Benefits of technology

It realizes accurate judgment of water status, identifying water-carrying operations, and improving the operation sensitivity and user experience of the touch screen.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119148872A_ABST
    Figure CN119148872A_ABST
Patent Text Reader

Abstract

The invention provides a water state judgment method and terminal equipment, and realizes accurate judgment of the water state so as to identify water-carrying operation. The method comprises the following steps: determining a water state confidence coefficient of the terminal equipment based on mutual capacitance data and self-capacitance data of a display screen of the terminal equipment; and judging whether the terminal equipment is in a water state or not according to the water state confidence coefficient and the water threshold value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a method for determining water status and a terminal device. Background Art

[0002] With the increasing demand for touch control in the terminal industry, the screens of terminal devices can be divided into capacitive screens and resistive screens. At present, the screen failure after being splashed with water mostly occurs in terminal devices using capacitive screens, which work by using the current induction of the human body. Among them, the touch screen of the terminal device is plated with narrow electrodes on all four sides. When the user touches the screen, due to the electric field of the human body, the user and the surface of the touch screen will form a coupling capacitor. For high-frequency current, the capacitor is a direct conductor, so the finger will absorb a very small current from the contact point. The current can flow out from the electrodes on the four corners of the touch screen, and the current flowing through the above four electrodes can be proportional to the distance from the finger to the four corners, so that the terminal device can accurately calculate the ratio of the four currents and obtain the position of the touch point. That is, the area touched by the user will "leak electricity" so that the screen can respond to the touch operation. Due to the conductive properties of water, when operating with water, the conductive contact between the user's finger and the capacitive detection element on the surface of the touch screen is affected, resulting in reduced sensitivity of touch screen operation and poor user experience.

[0003] At present, there is an urgent need for a method to accurately judge the water status so that when water-related operations are identified, corresponding measures can be initiated in a timely manner to avoid the problem of reduced sensitivity of touch screen operations and improve user experience. Summary of the invention

[0004] The present application provides a method and terminal device for determining water status, which achieve accurate determination of water status to identify water-related operations.

[0005] In a first aspect, a method for determining water status is provided, which is applied to a terminal device. The method includes: determining a water status confidence of the terminal device based on mutual capacitance data and self-capacitance data of a display screen of the terminal device; and determining whether the terminal device is in a water status through the water status confidence and a water threshold.

[0006] In the present application, the water state confidence and water threshold of the terminal device can be used to determine whether the terminal device is in a water state. The water state confidence of the terminal device is determined based on the mutual capacitance data and self-capacitance data of the display screen of the terminal device, so as to accurately determine the water state and identify water-related operations.

[0007] In a second aspect, a terminal device is provided, which comprises: a determination module and a judgment module, wherein the determination module is used to determine the water state confidence of the terminal device based on the mutual capacitance data and self-capacitance data of the display screen of the terminal device; and the above-mentioned judgment module is used to judge whether the terminal device is in a water state through the above-mentioned water state confidence and the water threshold.

[0008] In a third aspect, another terminal device is provided, including a processor, the processor is coupled to a memory, and can be used to execute instructions in the memory to implement the method in any possible implementation of the first aspect. Optionally, the terminal device also includes a memory. Optionally, the terminal device also includes a communication interface, and the processor is coupled to the communication interface.

[0009] In a fourth aspect, a processor is provided, comprising: an input circuit, an output circuit and a processing circuit. The processing circuit is used to receive a signal through the input circuit and transmit a signal through the output circuit, so that the processor executes the method in any possible implementation of the first aspect.

[0010] In the specific implementation process, the processor can be a chip, the input circuit can be an input pin, the output circuit can be an output pin, and the processing circuit can be a transistor, a gate circuit, a trigger, and various logic circuits. The input signal received by the input circuit can be, for example, but not limited to, received and input by a receiver, and the signal output by the output circuit can be, for example, but not limited to, output to a transmitter and transmitted by the transmitter, and the input circuit and the output circuit can be the same circuit, which is used as an input circuit and an output circuit at different times. The embodiments of the present application do not limit the specific implementation methods of the processor and various circuits.

[0011] In a fifth aspect, a processing device is provided, comprising a processor and a memory. The processor is used to read instructions stored in the memory, and can receive signals through a receiver and transmit signals through a transmitter to execute the method in any possible implementation of the first aspect.

[0012] Optionally, there are one or more processors and one or more memories.

[0013] Optionally, the memory may be integrated with the processor, or the memory may be provided separately from the processor.

[0014] In the specific implementation process, the memory can be a non-transitory memory, such as a read-only memory (ROM), which can be integrated with the processor on the same chip or can be set on different chips respectively. The embodiments of the present application do not limit the type of memory and the setting method of the memory and the processor.

[0015] It should be understood that the relevant data interaction process, such as sending indication information, can be a process of outputting indication information from a processor, and receiving capability information can be a process of receiving input capability information from a processor. Specifically, the processed output data can be output to a transmitter, and the input data received by the processor can come from a receiver. Among them, the transmitter and the receiver can be collectively referred to as a transceiver.

[0016] The processing device in the fifth aspect mentioned above can be a chip. The processor can be implemented by hardware or by software. When implemented by hardware, the processor can be a logic circuit, an integrated circuit, etc.; when implemented by software, the processor can be a general-purpose processor, which is implemented by reading the software code stored in the memory. The memory can be integrated in the processor or can be located outside the processor and exist independently.

[0017] In a sixth aspect, a computer program product is provided, the computer program product comprising: a computer program (also referred to as code, or instruction), which, when executed, enables a computer to execute a method in any possible implementation of the first aspect.

[0018] In a seventh aspect, a computer-readable storage medium is provided, which stores a computer program (also referred to as code, or instructions) which, when executed on a computer, enables the computer to execute a method in any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 is a schematic diagram of the system architecture of a terminal device provided in an embodiment of the present application;

[0020] Figure 2 is a flow chart of a method for determining water status provided in an embodiment of the present application;

[0021] Figure 3 is a flowchart of a specific example of a method for determining water status provided in an embodiment of the present application;

[0022] Figure 4 is a structural block diagram of an example of a terminal device provided in an embodiment of the present application;

[0023] Figure 5 It is a structural diagram of another example of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0024] The technical solution in this application will be described below in conjunction with the accompanying drawings.

[0025] With the increasing demand for touch control in the terminal industry, the screens of terminal devices can be divided into capacitive screens and resistive screens. At present, most of the terminal devices that fail to function after being exposed to water are equipped with capacitive screens, which can work by using the current induction of the human body. The touch screen of the terminal device can be plated with narrow electrodes on all four sides. When the user touches the screen, due to the electric field of the human body, a coupling capacitor will be formed between the user and the surface of the touch screen. For high-frequency current, the capacitor is a direct conductor, so the finger will absorb a very small current from the contact point. The current can flow out from the electrodes on the four corners of the touch screen, and the current flowing through the above four electrodes can be proportional to the distance from the finger to the four corners, so that the terminal device can accurately calculate the position of the touch point by calculating the ratio of the four currents. That is, the area touched by the user will "leak electricity" so that the screen can respond to the touch operation. Due to the conductive properties of water, the above current is affected when there is water on the screen, resulting in inaccurate calculations. In other words, water-carrying operation affects the conductive contact between the user's finger and the capacitive detection element on the surface of the touch screen, resulting in reduced sensitivity of touch screen operation and poor user experience.

[0026] In view of this, the embodiment of the present application provides a water status determination method and terminal device, which can determine whether the terminal device is in a water state through the water status confidence and water threshold of the terminal device. The water status confidence of the terminal device is determined based on the mutual capacitance data and self-capacitance data of the display screen of the terminal device, so as to achieve accurate determination of the water status and further identify water-related operations.

[0027] It should be understood that the terminal device in the embodiments of the present application may also be referred to as: user equipment (UE), mobile station (MS), mobile terminal (MT), access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent or user device, etc. The terminal device involved in the embodiments of the present application may be a device that provides voice / data connectivity to a user, for example, a handheld device with a wireless connection function, a vehicle-mounted device, etc. At present, some examples of terminals are: mobile phones, tablet computers, laptop computers, PDAs, mobile internet devices (MID), wearable devices, virtual reality (VR) devices, augmented reality (AR) devices, wireless terminals in industrial control, wireless terminals in self driving, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, cellular phones, cordless phones, session initiation protocol (SIP) phones, wireless local loop (WLL) stations, personal digital assistants (PDAs), handheld devices with wireless communication functions, computing devices or other processing devices connected to wireless modems, vehicle-mounted devices, wearable devices, terminal devices in 5G networks or future evolved public land mobile communication networks (public land mobile communication networks) Mobile network, PLMN) and the like, the embodiments of the present application are not limited to this.

[0028] As an example but not limitation, in the embodiments of the present application, the terminal device may also be a wearable device. Wearable devices may also be referred to as wearable smart devices, which are a general term for wearable devices that are intelligently designed and developed using wearable technology for daily wear, such as glasses, gloves, watches, clothing, and shoes. A wearable device is a portable device that is worn directly on the body or integrated into the user's clothes or accessories. Wearable devices are not only hardware devices, but also powerful functions achieved through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include full-featured, large-sized, and fully or partially independent of smartphones, such as smart watches or smart glasses, as well as devices that only focus on a certain type of application function and need to be used in conjunction with other devices such as smartphones, such as various types of smart bracelets and smart jewelry for vital sign monitoring.

[0029] In addition, in the embodiments of the present application, the terminal device can also be a terminal device in the Internet of Things (IoT) system. IoT is an important part of the future development of information technology. Its main technical feature is to connect objects to the network through communication technology, thereby realizing human-machine interconnection and intelligent network of things-to-things interconnection. The terminal device of the present application can also be a vehicle-mounted unit, a vehicle-mounted module, a vehicle-mounted component, a vehicle-mounted chip or a vehicle-mounted unit built into the vehicle as one or more components or units. The vehicle can implement the method of the present application through the built-in vehicle-mounted unit, vehicle-mounted module, vehicle-mounted component, vehicle-mounted chip or vehicle-mounted unit. Therefore, the embodiments of the present application can be applied to vehicle networking, such as vehicle to everything (V2X), long-term evolution-vehicle (LTE-V), vehicle-to-vehicle (V2V), etc.

[0030] For example, Figure 1 A schematic diagram of the system architecture of a terminal device provided in an embodiment of the present application.

[0031] like Figure 1 As shown, the terminal device includes a processor 110, a transceiver 120 and a display unit 170. The display unit 170 may include a display screen.

[0032] Optionally, the terminal device may further include a memory 130. The processor 110, the transceiver 120 and the memory 130 may communicate with each other through an internal connection path to transfer search data. The memory 130 is used to store computer programs, and the processor 110 is used to call and run the computer program from the memory 130.

[0033] The processor 110 and the memory 130 may be combined into a processing device, or more commonly, they are independent components, and the processor 110 is used to execute the program code stored in the memory 130 to implement the above functions. In specific implementation, the memory 130 may also be integrated into the processor 110, or may be independent of the processor 110.

[0034] In addition, in order to make the functions of the terminal device more complete, the terminal device may further include one or more of an input unit 160 , an audio circuit 180 , and a sensor 101 .

[0035] Optionally, the terminal device may further include a power supply 150 for providing power to various devices or circuits in the terminal device.

[0036] Understandably, Figure 1 The operations and / or functions of each module in the terminal device shown are respectively for implementing the corresponding processes in the following method embodiments. For details, please refer to the description in the following method embodiments. To avoid repetition, detailed description is appropriately omitted here.

[0037] Understandably, Figure 1 The processor 110 in the terminal device shown may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and / or a neural-network processing unit (neural-network processing unit, NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors.

[0038] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0039] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0040] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the terminal device. In other embodiments of the present application, the terminal device may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0041] Understandably, Figure 1 The power supply 150 shown is used to supply power to the processor 110 , the memory 130 , the display unit 170 , the input unit 160 , the transceiver 120 , and the like.

[0042] The transceiver 130 can provide wireless communication solutions for terminal devices, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. The transceiver 120 can be one or more devices integrating at least one communication processing module.

[0043] The terminal device implements the display function through a GPU, a display unit 170, and an application processor. The GPU is a microprocessor for image processing, which connects the display unit 170 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0044] The display unit 170 is used to display images, videos, etc. (such as the search interface of the present application). The display unit 170 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light emitting diode (QLED), etc.

[0045] The memory 130 can be used to store computer executable program codes, which include instructions. The memory 130 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the terminal device (such as search data), etc. In addition, the memory 130 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the terminal device by running instructions stored in the memory 130 and / or instructions stored in a memory provided in the processor.

[0046] The terminal device can implement audio functions such as music playing and recording through the audio circuit 180 and the application processor.

[0047] The technical solution in this application will be described below in conjunction with the accompanying drawings.

[0048] In order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with substantially the same functions and effects. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference.

[0049] It should be noted that, in this application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplarily" or "for example" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a specific way.

[0050] In addition, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can mean: a, or b, or c, or a and b, or a and c, or b and c, or a, b and c, where a, b, c can be single or multiple.

[0051] In order to make the purpose and technical solution of this application clearer and more intuitive, the following will be combined with the accompanying drawings and embodiments to describe in detail a method for determining the water state and a terminal device provided by the embodiment of this application. It should be understood that the specific embodiments described herein are only used to explain this application and are not used to limit this application.

[0052] Figure 2 2 is a schematic flow chart of a method 200 for determining water status provided in an embodiment of the present application. Figure 2 As shown, the method 200 may include the following steps:

[0053] S201, the terminal device determines the water state confidence level based on the mutual capacitance data and self-capacitance data of the display screen.

[0054] In a possible implementation, the terminal device may determine the water state confidence through the mutual capacitance water state confidence and the self-capacitance water state confidence. The mutual capacitance water state confidence may be determined by the terminal device based on the mutual capacitance data, and the self-capacitance water state confidence may be determined by the terminal device based on the self-capacitance data.

[0055] It should be understood that the mutual capacitance data and the self-capacitance data may be acquired by the terminal device in real time, or may be acquired by the terminal device periodically, and this application does not limit this.

[0056] S202: The terminal device determines whether it is in a water state based on the water state confidence level and the water threshold.

[0057] In a possible implementation, the terminal device may determine whether the terminal device is in the water state by comparing the water state confidence level with the water threshold.

[0058] Exemplarily, the terminal device may determine that the terminal device is in the above-mentioned water state when it is determined that the water state confidence is greater than the above-mentioned water threshold; alternatively, the terminal device may determine that the terminal device is not in the above-mentioned water state when it is determined that the water state confidence is less than or equal to the water threshold.

[0059] It should be understood that the water state may include a pure water state (such as the presence of falling water drops on the screen or water stains on the screen) and a finger with water state (such as touching the screen with a finger with water), and this application does not limit this.

[0060] In the present application, the water state confidence and water threshold of the terminal device can be used to determine whether the terminal device is in a water state. The water state confidence of the terminal device is determined based on the mutual capacitance data and self-capacitance data of the display screen of the terminal device, so as to accurately determine the water state and identify water-related operations.

[0061] It should be understood that before the above S201, the terminal device can also determine the mutual capacitance water state reference confidence data and the self-capacitance water state reference confidence data, so as to determine the mutual capacitance water state confidence based on the above mutual capacitance water state data characteristics and the mutual capacitance water state reference confidence data, and determine the self-capacitance water state confidence based on the above self-capacitance water state data characteristics and the self-capacitance water state reference confidence data.

[0062] Exemplarily, the mutual capacitance water state reference confidence data may include different mutual capacitance water state reference confidences and mutual capacitance water state reference data features corresponding to the different mutual capacitance water state reference confidences. The self-capacitance water state reference confidence data may include different self-capacitance water state reference confidences and self-capacitance water state reference data features corresponding to the different self-capacitance water state reference confidences. In other words, the terminal device may obtain the above-mentioned mutual capacitance water state reference confidence data based on multiple mutual capacitance water state reference data features and the mutual capacitance water state reference confidences corresponding to the multiple mutual capacitance water state reference data features, and obtain the above-mentioned self-capacitance water state reference confidence data based on multiple self-capacitance water state reference data features and the self-capacitance water state reference confidences corresponding to the multiple self-capacitance water state reference data features.

[0063] Combine the following Figure 3 , taking the terminal device as a mobile phone as an example, the method for determining the water status provided in this application is described.

[0064] Figure 3 3 is a schematic flow chart of a method 300 for determining water status provided in an embodiment of the present application. Figure 3 As shown, the method 300 may include the following steps:

[0065] S301: The mobile phone obtains the mutual capacitance water state reference confidence data based on multiple mutual capacitance water state reference data features and mutual capacitance water state reference confidences corresponding to the multiple mutual capacitance water state reference data features.

[0066] Exemplarily, the above-mentioned multiple mutual capacitance water state reference data features may include the number of pixels with positive mutual capacitance values, the number of pixels with negative mutual capacitance values, the number of mutual capacitance positive nodes within a preset range of the sensing area, whether the mutual capacitance positive nodes form a connected domain, and the variation range of the mutual capacitance strength.

[0067] It should be understood that the more obvious the mutual capacitance water state reference data feature is, the greater the corresponding mutual capacitance water state reference confidence is.

[0068] Exemplarily, the greater the difference between the number of pixels with negative mutual capacitance values ​​and the number of pixels with positive mutual capacitance values, the more obvious the mutual capacitance water state reference data feature is, and the greater the corresponding mutual capacitance water state reference confidence is.

[0069] Exemplarily, a greater number of mutual capacitance positive nodes that can form a connected domain within a preset range of the sensing area indicates that the characteristics of the mutual capacitance water state reference data are more obvious, and the corresponding mutual capacitance water state reference confidence is greater.

[0070] Exemplarily, the smaller the variation amplitude of the mutual capacitance strength is, the more obvious the mutual capacitance water state reference data feature is, and the greater the corresponding mutual capacitance water state reference confidence is.

[0071] It should also be understood that the more mutual capacitance water state reference data features are satisfied, the greater the corresponding mutual capacitance water state reference confidence.

[0072] Exemplarily, the difference between the number of pixels with negative mutual capacitance values ​​and the number of pixels with positive mutual capacitance values ​​is greater than the difference threshold, and the corresponding mutual capacitance water state reference confidence is less than the difference between the number of pixels with negative mutual capacitance values ​​and the number of pixels with positive mutual capacitance values ​​is greater than the difference threshold, and the number of mutual capacitance positive nodes that can form a connected domain within the preset range of the sensing area is greater than the number threshold, and the corresponding mutual capacitance water state reference confidence is.

[0073] It should be understood that the multiple mutual capacitance water state reference data features shown above are merely exemplary. In addition, other mutual capacitance water state reference data features and mutual capacitance water state reference confidences corresponding to the other mutual capacitance water state reference data features may also be included. This application does not limit this.

[0074] S302: The mobile phone obtains the self-capacitor water state reference confidence data based on a plurality of self-capacitor water state reference data features and the self-capacitor water state reference confidences corresponding to the plurality of self-capacitor water state reference data features.

[0075] Exemplarily, the above-mentioned multiple self-capacitance water state reference data features may include the number of pixels with positive self-capacitance values ​​within a preset range of the sensing area, and the size of the self-capacitance position corresponding to the sensing area.

[0076] It should be understood that the more obvious the above self-capacitor water state reference data feature is, the greater the corresponding self-capacitor water state reference confidence is.

[0077] Exemplarily, a greater number of pixels with positive self-capacitance values ​​within a preset range of the sensing area indicates that the characteristics of the self-capacitance water state reference data are more obvious, and the corresponding self-capacitance water state reference confidence is greater.

[0078] Exemplarily, a larger self-capacitance position corresponding to the sensing area indicates a more obvious feature of the self-capacitance water state reference data, and a greater corresponding self-capacitance water state reference confidence.

[0079] It should also be understood that the more self-capacitor water state reference data features are satisfied, the greater the corresponding self-capacitor water state reference confidence.

[0080] Exemplarily, the number of pixels with positive self-capacitance values ​​within the preset range of the sensing area is greater than the number threshold, and the corresponding self-capacitance water state reference confidence is less than the number of pixels with positive self-capacitance values ​​within the preset range of the sensing area is greater than the threshold, and the self-capacitance position corresponding to the sensing area is greater than the position threshold, and the corresponding self-capacitance water state reference confidence.

[0081] It should be understood that the multiple self-capacitor water state reference data features shown above are merely exemplary. In addition, other self-capacitor water state reference data features and the self-capacitor water state reference execution degrees corresponding to the other self-capacitor water state reference data features may also be included. This application does not limit this.

[0082] S303: The mobile phone determines the mutual capacitance water status confidence based on the mutual capacitance water status data characteristics and the mutual capacitance water status reference confidence data.

[0083] Table 1 shows a mutual capacitance water state reference confidence data provided by the present application.

[0084] Table 1

[0085] Mutual capacitance water status reference data characteristics Mutual capacitance water status reference confidence The first mutual capacitance water state reference data characteristics First mutual capacitance water state reference confidence Second mutual capacitance water state reference data characteristics Second mutual capacitance water state reference confidence

[0086] As shown in Table 1, the mutual capacitance water state reference confidence data includes a first mutual capacitance water state reference data feature and a second mutual capacitance water state reference data feature, as well as a first mutual capacitance water state reference confidence and a second mutual capacitance water state reference confidence. Among them, the mutual capacitance water state reference confidence corresponding to the first mutual capacitance water state reference data feature is the first mutual capacitance water state reference confidence in Table 1, and the mutual capacitance water state reference confidence corresponding to the second mutual capacitance water state reference data feature is the second mutual capacitance water state reference confidence in Table 1.

[0087] In one possible implementation, the mobile phone can extract the mutual capacitance water status data features corresponding to the above mutual capacitance data, which can also be called the target mutual capacitance water status data features, and then determine the mutual capacitance water status reference confidence corresponding to the mutual capacitance water status reference data features that are the same as the target mutual capacitance water status data features in the mutual capacitance water status reference confidence data shown in Table 1 as the above mutual capacitance water status confidence.

[0088] It should be understood that the mutual capacitance water state reference confidence data shown in the above Table 1 is merely exemplary. In addition to the first mutual capacitance water state reference data feature, the second mutual capacitance water state reference data feature, the first mutual capacitance water state reference confidence, and the second mutual capacitance water state reference confidence shown above, the mutual capacitance water state reference confidence data may also include other mutual capacitance water state reference data features and mutual capacitance water state reference confidences, and the present application does not limit this.

[0089] S304: The mobile phone determines the self-capacitor water status confidence based on the self-capacitor water status data characteristics and the self-capacitor water status reference confidence data.

[0090] Table 2 shows a self-capacitor water state reference confidence data provided by this application.

[0091] Table 2

[0092]

[0093]

[0094] As shown in Table 2, the self-capacitor water state reference confidence data includes a first self-capacitor water state reference data feature and a second self-capacitor water state reference data feature, as well as a first self-capacitor water state reference confidence and a second self-capacitor water state reference confidence. Among them, the self-capacitor water state reference confidence corresponding to the first self-capacitor water state reference data feature is the first self-capacitor water state reference confidence in Table 2, and the self-capacitor water state reference confidence corresponding to the second self-capacitor water state reference data feature is the second self-capacitor water state reference confidence in Table 2.

[0095] In one possible implementation, the mobile phone can extract the self-capacitor water state data features corresponding to the above-mentioned self-capacitor data, which can also be called the target self-capacitor water state data features, and then determine the self-capacitor water state reference confidence corresponding to the self-capacitor water state reference data features that are the same as the target self-capacitor water state data features in the self-capacitor water state reference confidence data shown in Table 2 as the above-mentioned self-capacitor water state confidence.

[0096] It should be understood that the self-capacitor water state reference confidence data shown in Table 2 above is merely exemplary. In addition to the first self-capacitor water state reference data feature, the second self-capacitor water state reference data feature, the first self-capacitor water state reference confidence and the second self-capacitor water state reference confidence shown above, the self-capacitor water state reference confidence data may also include other self-capacitor water state reference data features and self-capacitor water state reference confidences, and this application does not limit this.

[0097] It should also be understood that the first self-capacitance water state reference data feature and the second self-capacitance water state reference data feature shown in the above Table 2 and the first mutual capacitance water state reference data feature and the second mutual capacitance water state reference data feature shown in the above Table 1 are merely exemplary. In actual operation, the first self-capacitance water state reference data feature and the second self-capacitance water state reference data feature can be specifically one self-capacitance water state reference data feature or multiple self-capacitance water state reference data features, and the first mutual capacitance water state reference data feature and the second mutual capacitance water state reference data feature can be specifically one mutual capacitance water state reference data feature or multiple mutual capacitance water state reference data features. This application does not limit this.

[0098] Exemplarily, the mutual capacitance water state reference data feature that is the same as the target mutual capacitance water state data feature in the mutual capacitance water state reference confidence data shown in the above Table 1 is the above-mentioned first mutual capacitance water state reference data, and the self-capacitance water state reference data feature that is the same as the target self-capacitance water state data feature in the self-capacitance water state reference confidence data shown in the above Table 2 is the above-mentioned first sub-capacitance water state reference data feature, and the first mutual capacitance water state reference data feature is specifically that the number of pixels with negative mutual capacitance values ​​is similar to the number of pixels with positive mutual capacitance values, and a connection can be formed within the preset range of the sensing area. There are a large number of mutual capacitance positive nodes in the general domain, and the variation range of mutual capacitance strength is small. The first self-capacitance water state reference data feature is specifically that there are a large number of pixels with positive self-capacitance values ​​within a preset range of the sensing area, and the self-capacitance position corresponding to the sensing area is large. In this case, the mobile phone can determine the first mutual capacitance water state reference confidence corresponding to the first mutual capacitance water state reference data feature as the above-mentioned mutual capacitance water state confidence, and determine the first self-capacitance water state reference confidence corresponding to the first self-capacitance water state reference data feature as the above-mentioned self-capacitance water state confidence, and can determine that the current scene is a water scene.

[0099] It should also be understood that the above-mentioned “similar”, “more”, “smaller”, and “larger” all have corresponding thresholds, and this application does not limit this.

[0100] Similarly, the mobile phone can also determine the mutual capacitance water state confidence and the self-capacitance water state confidence in the above manner, and determine other current scenes, such as a pure water scene or a water-free scene.

[0101] S305: The mobile phone determines the water state confidence based on the mutual capacitance water state confidence and the self capacitance water state confidence.

[0102] In a possible implementation, the terminal device may determine the sum of the mutual capacitance water state confidence and the self-capacitance water state confidence as the water state confidence.

[0103] Exemplarily, the mobile phone can calculate the water state confidence by the following formula:

[0104] C=AX+BY

[0105] Among them, C is the above-mentioned water state confidence, A is the above-mentioned mutual capacitance water state confidence, X is the mutual capacitance water state detection weight coefficient, B is the above-mentioned self-capacitance water state confidence, and Y is the self-capacitance water state detection weight coefficient.

[0106] It should be understood that the formula shown above is only exemplary and the present application does not limit it.

[0107] Optionally, before calculating the water state confidence by the above formula, the mobile phone may also update the mutual capacitance water state detection weight coefficient and the self-capacitance water state detection weight coefficient to further accurately determine the water state.

[0108] In one possible implementation, the mobile phone can update the mutual capacitance water state detection weight coefficient and the self-capacitance water state detection weight coefficient based on the current scene, wherein the current scene may include a pure water scene (such as water sticking to the screen), a water-free scene (such as a finger touching the screen without water), and a water scene (such as a wet finger touching the screen).

[0109] Exemplarily, in a pure water scenario, the mobile phone may update the above coefficients so that the value of the mutual capacitance water state detection weight coefficient X may be smaller than the self capacitance water state detection weight coefficient Y.

[0110] Exemplarily, in a waterless scenario, the mobile phone may update the above coefficients so that the value of the mutual capacitance water state detection weight coefficient X may be greater than the self capacitance water state detection weight coefficient Y.

[0111] Exemplarily, in a water-containing scenario, the mobile phone can update the above coefficients so that the value of the mutual capacitance water state detection weight coefficient X can be equal to or greater than the self-capacitance water state detection weight coefficient Y.

[0112] S306, the mobile phone determines whether the water status confidence is greater than a water threshold.

[0113] In a possible implementation, the mobile phone may directly compare the water state confidence and the water threshold to determine whether the water state confidence is greater than the water threshold.

[0114] Exemplarily, the mobile phone can determine whether the water state confidence is greater than the water threshold by the following formula CD=E. Wherein, C is the water state confidence, D is the water threshold, and E is the difference between the water state confidence C and the water threshold D. The mobile phone can determine whether the water state confidence is greater than the water threshold based on the size of E.

[0115] In another possible implementation, the mobile phone may also determine whether the water state confidence is greater than the water threshold by comparing the water threshold with the product of the water state confidence and the water state weight coefficient.

[0116] Exemplarily, the mobile phone can also determine whether the water state confidence is greater than the water threshold value by the formula CM-D=F. Wherein, C is the water state confidence, M is the water state weight coefficient, D is the water threshold value, and F is the difference between the product of the water state confidence C and the water state weight coefficient M and the water threshold value D. The mobile phone can determine whether the water state confidence is greater than the water threshold value based on the size of F.

[0117] It should be understood that the formula shown above is only exemplary and the present application does not limit it.

[0118] S307: When the mobile phone determines that the water state confidence is greater than the water threshold, it determines that the mobile phone is in the water state.

[0119] It should be understood that, corresponding to the first possible implementation of S306, the determination that the water state confidence is greater than the water threshold value here can be understood as the difference E between the water state confidence C and the water threshold value D is greater than 0. Corresponding to the second possible implementation of S306, the determination that the water state confidence is greater than the water threshold value here can be understood as the difference F between the product of the water state confidence C and the water state weight coefficient M and the water threshold value D is greater than 0.

[0120] Optionally, following the above S306, the mobile phone may also determine that it is not in the above water state when it is determined that the above water state confidence is less than or equal to the water threshold, that is, the process ends.

[0121] It should be understood that, corresponding to the first possible implementation of S306, the determination that the water state confidence is less than or equal to the water threshold value here can be understood as the difference E between the water state confidence C and the water threshold value D is less than or equal to 0. Corresponding to the second possible implementation of S306, the determination that the water state confidence is less than or equal to the water threshold value here can be understood as the difference F between the product of the water state confidence C and the water state weight coefficient M and the water threshold value D is less than or equal to 0.

[0122] Optionally, following the above S202 or S307, the terminal device may also update any one of the above water status weight coefficients to further accurately determine the water status.

[0123] In a possible implementation, the terminal device may update the water state weight coefficient M based on a historical state, where the historical state may include a water state and a non-water state (also referred to as a normal state).

[0124] It should be understood that the initial value of the water state weight coefficient M may be preset and updated as the above historical states include switching between the water state and the non-water state.

[0125] Exemplarily, when the historical state is a state with more water, the terminal device can update the water state weight coefficient M to increase the water state weight coefficient M. Alternatively, when the historical state is a state with more non-water, the terminal device can update the water state weight coefficient M to decrease the water state weight coefficient M.

[0126] It should be understood that the above embodiments may be coupled to each other, and this application does not limit this. Moreover, the size of the sequence number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0127] Combined with the above Figures 1 to 3 , describes in detail the method for determining the water state of the embodiment of the present application, and will now be combined with Figures 4 to 5 , describe in detail the terminal device of an embodiment of the present application.

[0128] Figure 4 A terminal device 400 provided in an embodiment of the present application is shown. The terminal device 400 includes: a determination module 401 and a judgment module 402.

[0129] Among them, the determination module 401 is used to: determine the water state confidence of the terminal device based on the mutual capacitance data and self-capacitance data of the display screen of the terminal device; the judgment module 402 is used to: judge whether the terminal device is in a water state through the above-mentioned water state confidence and water threshold.

[0130] Optionally, the determination module 401 is used to: determine the mutual capacitance water state confidence based on the mutual capacitance data; determine the self-capacitance water state confidence based on the self-capacitance data; determine the water state confidence through the mutual capacitance water state confidence and the self-capacitance water state confidence.

[0131] Optionally, the determination module 401 is used to: extract mutual capacitance water state data features corresponding to the above-mentioned mutual capacitance data; determine mutual capacitance water state reference confidence data; determine the above-mentioned mutual capacitance water state confidence based on the above-mentioned mutual capacitance water state data features and the above-mentioned mutual capacitance water state reference confidence data; wherein the above-mentioned mutual capacitance water state reference confidence data includes different mutual capacitance water state reference confidences and mutual capacitance water state reference data features corresponding to the above-mentioned different mutual capacitance water state reference confidences.

[0132] Optionally, the determination module 401 is used to: determine mutual capacitance water state reference confidences corresponding to multiple mutual capacitance water state reference data features; and obtain the mutual capacitance water state reference confidence data based on the multiple mutual capacitance water state reference data features and the mutual capacitance water state reference confidences.

[0133] Optionally, the above-mentioned multiple mutual capacitance water state reference data features include the number of pixels with positive mutual capacitance values, the number of pixels with negative mutual capacitance values, the number of mutual capacitance positive nodes within a preset range of the sensing area, whether the above-mentioned mutual capacitance positive nodes form a connected domain, and the variation range of the mutual capacitance strength.

[0134] Optionally, the determination module 401 is used to: extract the self-capacitor water state data characteristics corresponding to the above-mentioned self-capacitor data; determine the self-capacitor water state reference confidence data; determine the above-mentioned self-capacitor water state confidence based on the above-mentioned self-capacitor water state data characteristics and the above-mentioned self-capacitor water state reference confidence data; wherein the above-mentioned self-capacitor water state reference confidence data includes different self-capacitor water state reference confidences and self-capacitor water state reference data characteristics corresponding to the above-mentioned different self-capacitor water state reference confidences.

[0135] Optionally, the determination module 401 is used to: determine the self-capacitor water state reference confidence corresponding to multiple self-capacitor water state reference data features; and obtain the self-capacitor water state reference confidence data based on the above multiple self-capacitor water state reference data features and the above self-capacitor water state reference confidence.

[0136] Optionally, the above-mentioned multiple self-capacitance water state data features include the number of pixels with positive self-capacitance values ​​within a preset range of the sensing area, and the size of the self-capacitance position corresponding to the above-mentioned sensing area.

[0137] Optionally, the water state confidence is calculated by the following formula: C=AX+BY, wherein C is the water state confidence, A is the mutual capacitance water state confidence, X is the mutual capacitance water state detection weight coefficient, B is the self-capacitance water state confidence, and Y is the self-capacitance water state detection weight coefficient.

[0138] Optionally, the judgment module 402 is used to: compare the water state confidence and the water threshold to determine whether the terminal device is in the water state; wherein, when it is determined that the water state confidence is greater than the water threshold, it is determined that the terminal device is in the water state; or, when it is determined that the water state confidence is less than or equal to the water threshold, it is determined that the terminal device is not in the water state.

[0139] Optionally, the judgment module 402 is used to: compare the water threshold with the product of the water state confidence and the water state weight coefficient to determine whether the terminal device is in the water state; wherein, when it is determined that the water threshold is less than or equal to the product of the water state confidence and the water state weight coefficient, it is determined that the terminal device is in the water state; or, when it is determined that the water threshold is greater than the product of the water state confidence and the water state weight coefficient, it is determined that the terminal device is not in the water state.

[0140] Optionally, the terminal device 400 also includes an update module, which is used to: update the mutual capacitance water state detection weight coefficient, the self-capacitance water state detection weight coefficient or any one of the water state weight coefficients; wherein the water state weight coefficient is updated based on the historical state, and the historical state includes the water state or the non-water state, and the mutual capacitance water state detection weight coefficient and the self-capacitance water state detection weight coefficient are updated based on the current scene, and the current scene includes the pure water scene, the water-free scene, and the water-containing scene.

[0141] It should be understood that the terminal device 400 here is embodied in the form of a functional module. The term "module" here may refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor (such as a shared processor, a proprietary processor or a group processor, etc.) and a memory for executing one or more software or firmware programs, a merged logic circuit and / or other suitable components that support the described functions. In an optional example, those skilled in the art can understand that the terminal device 400 can be specifically the terminal device in the above-mentioned embodiment, or the functions of the terminal device in the above-mentioned embodiment can be integrated in the terminal device 400, and the terminal device 400 can be used to execute the various processes and / or steps corresponding to the terminal device in the above-mentioned method embodiment, and to avoid repetition, it will not be repeated here.

[0142] The terminal device 400 has the function of implementing the corresponding steps performed by the terminal device in the above method; the above functions can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions. In the embodiment of the present application, Figure 4 The terminal device 400 may also be a chip or a chip system, for example, a system on chip (SoC).

[0143] Figure 5 Another terminal device 500 provided in an embodiment of the present application is shown. The terminal device 500 includes: a processor 501 and a memory 502, a communication interface 503 and a bus 504. The memory 502 is used to store instructions, and the processor 501 is used to execute the instructions stored in the memory 502. The processor 501, the memory 502 and the communication interface 503 are connected to each other through the bus 504.

[0144] Among them, the processor 501 is used to: determine the water state confidence of the terminal device based on the mutual capacitance data and self-capacitance data of the display screen of the terminal device; and, through the above-mentioned water state confidence and water threshold, determine whether the terminal device is in a water state.

[0145] It should be understood that the terminal device 500 can specifically be the terminal device in the above-mentioned embodiment, the functions of the terminal device in the above-mentioned embodiment can be integrated in the terminal device 500, and the terminal device 500 can be used to execute the various steps and / or processes corresponding to the terminal device in the above-mentioned method embodiment.

[0146] Optionally, the memory 502 may include a read-only memory and a random access memory, and provide instructions and data to the processor 501. A portion of the memory 502 may also include a non-volatile random access memory. For example, the memory 502 may also store information about the device type. The processor 501 may be used to execute the instructions stored in the memory, and when the processor executes the instructions, the processor 501 may execute the various steps and / or processes corresponding to the terminal device in the above method embodiment.

[0147] It should be understood that in the embodiments of the present application, the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.

[0148] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in a processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor executes the instructions in the memory, and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.

[0149] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0150] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0151] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0152] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0153] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0154] If the above functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or terminal device, etc.) to perform all or part of the steps of the above methods in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.

[0155] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the above claims.

Claims

1. A method for determining water status, It is characterized in that Applied to a terminal device, the method comprises: Determining a water state confidence level of the terminal device based on mutual capacitance data and self capacitance data of a display screen of the terminal device; Whether the terminal device is in a water state is determined by the water state confidence and the water threshold.

2. The method according to claim 1, It is characterized in that Before determining the water state confidence of the terminal device based on the mutual capacitance data and the self-capacitance data of the display screen of the terminal device, the method further includes: determining a mutual capacitance water state confidence level based on the mutual capacitance data; Determining a self-capacitance water state confidence level based on the self-capacitance data; The determining the water state confidence of the terminal device based on the mutual capacitance data and the self-capacitance data of the display screen of the terminal device includes: The water state confidence is determined by the mutual capacitance water state confidence and the self capacitance water state confidence.

3. The method according to claim 2, It is characterized in that Before determining the mutual capacitance water state confidence based on the mutual capacitance data, the method further includes: Extracting mutual capacitance water state data features corresponding to the mutual capacitance data; Determine mutual capacitance water state reference confidence data; The determining the mutual capacitance water state confidence based on the mutual capacitance data includes: Determining the mutual capacitance water state confidence based on the mutual capacitance water state data feature and the mutual capacitance water state reference confidence data; The mutual capacitance water state reference confidence data includes different mutual capacitance water state reference confidences and mutual capacitance water state reference data features corresponding to the different mutual capacitance water state reference confidences.

4. The method according to claim 3, It is characterized in that The determining of the mutual capacitance water state reference confidence data includes: Determine mutual capacitance water state reference confidences corresponding to a plurality of mutual capacitance water state reference data features; The mutual capacitance water state reference confidence data is obtained based on the multiple mutual capacitance water state reference data features and the mutual capacitance water state reference confidence data.

5. The method according to claim 4, It is characterized in that The multiple mutual capacitance water state reference data features include the number of pixels with positive mutual capacitance values, the number of pixels with negative mutual capacitance values, the number of mutual capacitance positive nodes within a preset range of the sensing area, whether the mutual capacitance positive nodes form a connected domain, and the variation range of the mutual capacitance strength.

6. The method according to claim 2, It is characterized in that Before determining the self-capacitance water state confidence based on the self-capacitance data, the method further includes: Extracting self-capacitance water state data features corresponding to the self-capacitance data; Determine self-capacitor water state reference confidence data; The determining the self-capacitance water state confidence based on the self-capacitance data comprises: Determining the self-capacitor water state confidence based on the self-capacitor water state data characteristics and the self-capacitor water state reference confidence data; The self-capacitor water state reference confidence data includes different self-capacitor water state reference confidences and self-capacitor water state reference data features corresponding to the different self-capacitor water state reference confidences.

7. The method according to claim 6, It is characterized in that The determining of the self-capacitor water state reference confidence data includes: Determine self-capacitance water state reference confidences corresponding to a plurality of self-capacitance water state reference data features; Based on the multiple self-capacitor water state reference data features and the self-capacitor water state reference confidence, the self-capacitor water state reference confidence data is obtained.

8. The method according to claim 7, It is characterized in that The multiple self-capacitance water status data features include the number of pixels with positive self-capacitance values ​​within a preset range of the sensing area, and the size of the self-capacitance position corresponding to the sensing area.

9. The method according to claim 1 or 2, It is characterized in that The water state confidence is calculated by the following formula: C=AX+BY Among them, C is the water state confidence, A is the mutual capacitance water state confidence, X is the mutual capacitance water state detection weight coefficient, B is the self-capacitance water state confidence, and Y is the self-capacitance water state detection weight coefficient.

10. The method according to claim 1, It is characterized in that The determining whether the terminal device is in a water state by using the water state confidence and the water threshold includes: Compare the water state confidence level with the water threshold to determine whether the terminal device is in the water state; Wherein, when it is determined that the water state confidence is greater than the water threshold, it is determined that the terminal device is in the water state; or, When it is determined that the water state confidence is less than or equal to the water threshold, it is determined that the terminal device is not in the water state.

11. The method according to claim 1, It is characterized in that The determining whether the terminal device is in a water state by using the water state confidence and the water threshold includes: Compare the water threshold with the product of the water state confidence and the water state weight coefficient to determine whether the terminal device is in the water state; Wherein, when it is determined that the water threshold is less than or equal to the product of the water state confidence and the water state weight coefficient, the water state of the terminal device is determined; or, When it is determined that the water threshold is greater than the product of the water state confidence and the water state weight coefficient, it is determined that the terminal device is not in the water state.

12. The method according to claim 1, It is characterized in that The method further comprises: Update any one of the mutual capacitance water state detection weight coefficient, the self capacitance water state detection weight coefficient or the water state weight coefficient; Among them, the water state weight coefficient is updated based on the historical state, the historical state includes water state or non-water state, the mutual capacitance water state detection weight coefficient and the self-capacitance water state detection weight coefficient are updated based on the current scene, and the current scene includes pure water scene, no water scene and water scene.

13. A terminal device, It is characterized in that include: A determination module, configured to determine a water state confidence level of the terminal device based on mutual capacitance data and self capacitance data of a display screen of the terminal device; The judgment module is used to judge whether the terminal device is in a water state according to the water state confidence and the water threshold.

14. A terminal device, It is characterized in that The system comprises a processor and a memory, wherein the memory is used to store code instructions, and the processor is used to run the code instructions to execute the method according to any one of claims 1 to 12.

15. A computer-readable storage medium, It is characterized in that Used to store a computer program, the computer program comprising instructions for implementing the method according to any one of claims 1 to 12.

16. A computer program product, comprising computer program code, It is characterized in that When the computer program code is executed on a computer, the computer is caused to implement the method according to any one of claims 1 to 12.