CN-114610176-B - Screen control method, device and computer readable storage medium
Abstract
The present disclosure relates to a screen control method, apparatus, and computer readable storage medium, and relates to the field of device control, the method comprising: and acquiring a humidity value of a user hand when the user touches the screen of the electronic equipment, determining a first capacitance value corresponding to the humidity value, updating a reference capacitance value of the screen according to the first capacitance value, and performing touch identification according to the updated reference capacitance value. The problem of misoperation or operation failure caused by hand wetting can be solved by carrying out touch identification through the updated reference capacitance value, and the scheme can be suitable for scenes with different humidities, so that the applicability is improved.
Inventors
- LI CHENGGANG
Assignees
- 北京小米移动软件有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20220311
Claims (11)
- 1. A screen control method, applied to an electronic device, comprising: The method comprises the steps of acquiring a humidity value of a user hand when the user touches a screen of the electronic equipment, wherein the acquisition of the humidity value of the user hand comprises the steps of detecting current absorbed by the hand on the screen when a second touch operation is performed, determining that the user hand is moist when a difference value between the current and the current absorbed by the hand on the screen when the touch operation is performed is greater than a preset current threshold under the condition that the current is dry, and starting a humidity sensor to acquire the humidity value of the user hand, wherein the current absorbed by the hand on the screen can be acquired from the currents on four corners of the screen through a controller in the electronic equipment; Determining a first capacitance value corresponding to different humidity values according to the corresponding relation between the humidity values and the capacitance values, wherein the corresponding relation is preset in the electronic equipment; Updating the reference capacitance value of the screen according to the first capacitance value, and performing touch identification according to the updated reference capacitance value, wherein updating the reference capacitance value of the screen according to the first capacitance value comprises updating the first capacitance value into the reference capacitance value of the screen.
- 2. The method of claim 1, wherein determining the first capacitance value corresponding to the humidity value comprises: determining a humidity level corresponding to the humidity value; And acquiring a first capacitance value corresponding to the humidity level.
- 3. The screen control method according to claim 2, wherein the determining the humidity level corresponding to the humidity value includes: Determining a target humidity value range corresponding to the humidity value; And determining the humidity level corresponding to the target humidity value range according to the corresponding relation between the humidity value range and the humidity level, and taking the humidity level as the humidity level corresponding to the humidity value.
- 4. The screen control method according to claim 2, wherein the acquiring the first capacitance value corresponding to the humidity level includes: And acquiring a first capacitance value corresponding to the humidity level from a memory of the touch component, wherein the memory stores capacitance values corresponding to a plurality of humidity levels.
- 5. The screen control method according to claim 1, characterized in that the method further comprises: Under the condition that a first touch operation is received, acquiring a second capacitance value of the first touch operation; Acquiring a difference value between the second capacitance value and the updated reference capacitance value; When the difference value is smaller than or equal to a first set threshold value, keeping the updated reference capacitance value unchanged; And under the condition that the difference value is larger than the first set threshold value, updating the updated reference capacitance value of the screen according to the second capacitance value, and performing touch identification according to the updated reference capacitance value.
- 6. The screen control method according to claim 1, wherein updating the reference capacitance value of the screen according to the first capacitance value and performing touch recognition according to the updated reference capacitance value comprises: writing the first capacitance value into a register of a touch component so as to update the current reference capacitance value in the register into the first capacitance value; And performing touch identification according to the updated reference capacitance value.
- 7. A screen control apparatus, characterized by being applied to an electronic device, comprising: The electronic equipment comprises an acquisition module, a humidity sensor and a controller, wherein the acquisition module is configured to acquire a humidity value of a user hand when the user touches the screen of the electronic equipment, and the acquisition module is configured to acquire the humidity value of the user hand when the user touches the screen of the electronic equipment, wherein the acquisition of the humidity value of the user hand comprises the steps of detecting current absorbed by the hand on the screen when the second touch operation is performed, determining that the user hand is wet when the difference value between the current and the current absorbed by the hand on the screen when the touch operation is performed is greater than a preset current threshold under the condition that the current is dry, and starting the humidity sensor to acquire the humidity value of the user hand; The electronic equipment comprises a determining module, a control module and a control module, wherein the determining module is configured to determine a first capacitance value corresponding to a humidity value according to the corresponding relation between different humidity values and capacitance values, and the corresponding relation is preset in the electronic equipment; The control module is configured to update the reference capacitance value of the screen according to the first capacitance value and perform touch identification according to the updated reference capacitance value, wherein the updating of the reference capacitance value of the screen according to the first capacitance value comprises updating the first capacitance value to the reference capacitance value of the screen.
- 8. The screen control device of claim 7, wherein the determining module comprises: A grade determination sub-module configured to determine a humidity grade corresponding to the humidity value; and the capacitance acquisition sub-module is configured to acquire a first capacitance value corresponding to the humidity level.
- 9. The screen control device of claim 7, wherein the device further comprises: The acquisition module is configured to acquire a second capacitance value of the first touch operation under the condition that the first touch operation is received; a calculation module configured to obtain a difference between the second capacitance value and the updated reference capacitance value; The control module is further configured to keep the updated reference capacitance value unchanged when the difference value is smaller than or equal to a first set threshold value; and the control module is further configured to update the updated reference capacitance value of the screen according to the second capacitance value and perform touch identification according to the updated reference capacitance value when the difference value is greater than the first set threshold value.
- 10. A screen control apparatus, characterized by being applied to an electronic device, comprising: A processor; A memory for storing processor-executable instructions; wherein the processor is configured to execute the executable instructions to implement the steps of the method of any one of claims 1 to 6.
- 11. A computer readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the steps of the method of any of claims 1 to 6.
Description
Screen control method, device and computer readable storage medium Technical Field The present disclosure relates to the field of device control, and in particular, to a screen control method, apparatus, and computer readable storage medium. Background In the related art, when a user moves, washes clothes, or other similar scenes, and hands are wet (water or sweat exists), the user operates a screen of the device, and the screen has abnormal touch, so that misoperation or operation failure are easily caused. For example, when a finger is wet, a nine-grid cell unlocking mobile phone is performed, and at the moment, the screen is influenced by the humidity of the finger, so that the report of a touch point is easy to be abnormal, and thus, when the screen is operated, touch disconnection exists, and unlocking failure is caused with a relatively high probability. Disclosure of Invention To overcome the problems in the related art, the present disclosure provides a screen control method, apparatus, and computer-readable storage medium. According to a first aspect of embodiments of the present disclosure, there is provided a screen control method, applied to an electronic device, the method including: collecting a humidity value of a hand of a user when the user touches a screen of the electronic equipment; determining a first capacitance value corresponding to the humidity value; And updating the reference capacitance value of the screen according to the first capacitance value, and performing touch identification according to the updated reference capacitance value. Optionally, the determining the first capacitance value corresponding to the humidity value includes: determining a humidity level corresponding to the humidity value; And acquiring a first capacitance value corresponding to the humidity level. Optionally, the method further comprises: Under the condition that a first touch operation is received, acquiring a second capacitance value of the first touch operation; Acquiring a difference value between the second capacitance value and the updated reference capacitance value; When the difference value is smaller than or equal to the first set threshold value, keeping the updated reference capacitance value unchanged; and under the condition that the difference value is larger than a first set threshold value, updating the updated reference capacitance value of the screen according to the second capacitance value, and performing touch identification according to the updated reference capacitance value. Optionally, the method further comprises: Under the condition that a second touch operation is received, acquiring a third capacitance value of the second touch operation; and executing the step of collecting the humidity value of the hand of the user when the user touches the screen of the electronic equipment under the condition that the difference value between the third capacitance value and the reference capacitance value is larger than a second set threshold value, wherein the reference capacitance value is the capacitance value of the hand of the user for touch operation under the dry condition. Optionally, the determining the humidity level corresponding to the humidity value includes: after the humidity value of the hand of the user is obtained, determining a target humidity value range corresponding to the humidity value; And determining the humidity level corresponding to the target humidity value range according to the corresponding relation between the humidity value range and the humidity level, and taking the humidity level as the humidity level corresponding to the humidity value. Optionally, the acquiring a first capacitance value corresponding to the humidity level includes: And acquiring a first capacitance value corresponding to the humidity level from a memory of the touch component, wherein the memory stores capacitance values corresponding to a plurality of humidity levels. Optionally, the updating the reference capacitance value of the screen according to the first capacitance value, and performing touch recognition according to the updated reference capacitance value includes: writing the first capacitance value into a register of the touch component so as to update the current reference capacitance value in the register into the first capacitance value; And performing touch identification according to the updated reference capacitance value. According to a second aspect of embodiments of the present disclosure, there is provided a screen control apparatus applied to an electronic device, the apparatus including: The acquisition module is configured to acquire a humidity value of the hand of a user when the user touches the screen of the electronic equipment; a determining module configured to determine a first capacitance value corresponding to the humidity value; and the control module is configured to update the reference capacitance value of the screen according to the first ca