Control methods for electronic devices and electronic devices
By using an ultrasonic fingerprint sensor and touchscreen capacitance detection, smartphones can recognize user actions and trigger emergency distress signals underwater, solving the problem of underwater usability and improving the device's availability and security.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HONOR DEVICE CO LTD
- Filing Date
- 2021-12-21
- Publication Date
- 2026-08-04
AI Technical Summary
Smartphones cannot recognize user input underwater, rendering them unusable underwater.
It uses an ultrasonic fingerprint recognition sensor to collect fingerprint information, combines the changes in the touch screen capacitance value to detect the water immersion status, and triggers emergency rescue measures when matching preset fingerprint information.
It enables underwater recognition of user operations, allowing for timely distress calls and enhancing the usability and security of electronic devices.
Smart Images

Figure CN116311394B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal technology, and in particular to a control method for an electronic device and an electronic device. Background Technology
[0002] With the advent of the information age, smartphones have become an integral part of daily life. For example, when dining out, smartphones can recommend restaurants and offer ordering services based on user needs; when traveling, smartphones can be used as public transport cards, subway cards, and also provide ride-hailing and navigation services. To prevent smartphones from being damaged by falling into water, they are designed to be waterproof. However, even waterproof smartphones cannot function underwater because the touchscreen cannot recognize user input. Summary of the Invention
[0003] This application provides a control method and an electronic device that can recognize user gestures underwater, allowing users to use the functions of the electronic device underwater.
[0004] To achieve the above objectives, the embodiments of this application adopt the following technical solutions:
[0005] In a first aspect, this embodiment provides a control method for an electronic device. The method includes: the electronic device receiving a first operation and responding to the first operation by acquiring fingerprint information through an ultrasonic fingerprint recognition sensor; the electronic device being able to acquire the user's first fingerprint information through the ultrasonic fingerprint recognition sensor; when the electronic device determines that the touchscreen is in a first preset state (e.g., an underwater state) and the first fingerprint information matches the preset fingerprint information, the electronic device can generate a notification indicating that the user is in a second preset state (e.g., a submerged state).
[0006] Using the technical solution of this embodiment, taking the first preset state as the water immersion state as an example, when the electronic device is in the water immersion state, the electronic device can determine whether the user needs to call for help in an emergency based on the user's fingerprint information, thus improving the usability of the electronic device in water. If the user's fingerprint information matches the preset fingerprint information, the electronic device can trigger an emergency call, thereby seeking help for the user as soon as possible, avoiding the problem that the user cannot call for help in time when encountering danger underwater, and meeting the user's need to use the electronic device for rescue in water.
[0007] In one possible implementation of the first aspect of this application, before the electronic device generates a notification, the method further includes: the electronic device determining that the user is in a second preset state based on the touch screen being in a first preset state and determining that the first fingerprint information matches the preset fingerprint information.
[0008] In one possible implementation of the first aspect of this application, multiple fingerprint information can be pre-recorded in the electronic device; the preset fingerprint information is the fingerprint information associated with a preset distress call method among the multiple fingerprint information, used for emergency distress calls. In this implementation, the fingerprint information used for emergency distress calls can be distinguished from other fingerprint information, which can prevent users from accidentally issuing erroneous emergency distress calls.
[0009] In one possible implementation of the first aspect of this application, the first preset state is the water entry state, and the second preset state is the water falling state.
[0010] In one possible implementation of the first aspect of this application, when the first preset state is a water immersion state, the electronic device determines that the touchscreen is in the first preset state by: the electronic device determining that the capacitance values of a preset proportion of the sensing points on the touchscreen are within a preset range; wherein, the preset range is the range of capacitance values of the sensing points on the touchscreen after they come into contact with water. In this implementation, the electronic device determines whether the touchscreen is in a water immersion state by using the capacitance values of the touchscreen, eliminating the need for an additional water immersion detection device, thus saving resources and improving efficiency.
[0011] In one possible implementation of the first aspect of this application, the electronic device generating a notification includes at least one of the following methods: the electronic device emitting a voice distress message through a speaker; the electronic device sending a voice call request to a preset emergency number; or the electronic device sending a distress message to a preset emergency number. The preset emergency number includes a public emergency telephone number and / or a preset emergency contact person in the electronic device. The electronic device can deliver notifications in multiple ways, ensuring the effectiveness of the notification.
[0012] In one possible implementation of the first aspect of this application, before the electronic device generates a notification, the method may further include: the electronic device emitting a continuous vibration alert to remind the user to continuously input fingerprint information. The electronic device determines that, starting from the acquisition of the first fingerprint information, the ultrasonic fingerprint sensor continuously acquires the first fingerprint information for a preset duration. Thus, the electronic device continuously acquiring the first fingerprint information for the preset duration indicates that the user's finger remains within the sensing area of the ultrasonic fingerprint sensor for the preset duration. When this condition is met, the electronic device generates a notification indicating that the user is in a second preset state, which can avoid sending incorrect distress signals due to accidental touches by the user and improve the accuracy of emergency distress calls. Furthermore, the continuous vibration alerts the user to the electronic device's impending emergency distress call. If the user does not need to call for help, they can remove their finger from the sensing area of the ultrasonic fingerprint sensor, enabling accurate and flexible identification of the user's needs.
[0013] In one possible implementation of the first aspect of this application, the electronic device can activate a preset distress procedure, which triggers the electronic device to generate a notification to inform the user that it is in a second preset state. That is, the electronic device can have a pre-set distress procedure that is activated when an emergency distress call is needed by generating a notification. This preset distress procedure can automatically execute the emergency distress call without manual user intervention, thus improving the speed of the distress call.
[0014] Secondly, another method for controlling an electronic device is provided, which includes: when the electronic device receives a first operation from a user, responding to the first operation by illuminating the touchscreen and launching a camera application. Then, the electronic device determines whether the touchscreen is in a first preset state (such as an underwater state). If the touchscreen is in the first preset state, the electronic device collects a first fingerprint gesture input by the user at the corresponding position of the ultrasonic fingerprint recognition sensor on the touchscreen and executes the shooting operation corresponding to the first fingerprint gesture.
[0015] By employing this technical solution, electronic devices can receive user fingerprint gestures via an ultrasonic fingerprint recognition sensor while submerged in water. This avoids the problem of touchscreens becoming unusable due to water damage, enhancing the phone's usability. Furthermore, the electronic device can respond to user fingerprint gestures underwater, executing corresponding shooting operations to meet users' underwater photography needs.
[0016] In one possible implementation of the second aspect of this application, the user's first fingerprint gesture may include any one of a single-click gesture, a double-click gesture, a left swipe gesture, a right swipe gesture, an up swipe gesture, and a down swipe gesture; different fingerprint gestures correspond to different shooting operations. The shooting operation may include any one of the following: recording video, displaying a target image in the album, displaying the previous image of the target image, displaying the next image of the target image, or exiting the album.
[0017] Thirdly, this application provides an electronic device including a touchscreen, an ultrasonic fingerprint sensor, one or more processors, and a memory. The touchscreen includes a touch sensor and a display screen. The ultrasonic fingerprint sensor can be used to acquire images and identify fingerprint information contained in the images. The memory stores one or more computer programs, which include instructions that, when executed by the processor, cause the electronic device to perform the methods described in the first aspect and any possible implementation thereof; or cause the electronic device to perform the methods described in the second aspect and any possible implementation thereof.
[0018] Fourthly, an electronic device is provided, comprising a touchscreen, an ultrasonic fingerprint sensor, a memory, and one or more processors. The memory stores one or more computer programs, each including instructions that, when executed by the processor, cause the electronic device to perform the following steps: the electronic device receives a first operation from a user; in response to the first operation, the electronic device triggers the ultrasonic fingerprint sensor to acquire information; the electronic device acquires first fingerprint information input by the user via the ultrasonic fingerprint sensor; the electronic device determines that the touchscreen is in a first preset state and that the first fingerprint information matches preset fingerprint information, and then generates a notification indicating that the user is in a second preset state.
[0019] In one possible implementation of the fourth aspect of this application, when the above instructions are executed by the processor, the electronic device performs the following steps: the electronic device has a plurality of pre-recorded fingerprint information; the preset fingerprint information is the fingerprint information associated with a preset distress call method among the plurality of fingerprint information and used for emergency distress call.
[0020] In one possible implementation of the fourth aspect of this application, when the above instructions are executed by the processor, the electronic device performs the following steps: the electronic device determines that the capacitance value of a preset proportion of the sensing points in the touch screen is within a preset range; wherein, the preset range is the range of capacitance values of the sensing points of the touch screen after they come into contact with water.
[0021] In one possible implementation of the fourth aspect of this application, when the above instructions are executed by the processor, the electronic device performs the following steps: the electronic device emits a voice distress message through a speaker; the electronic device sends a voice call request to a preset emergency number; the electronic device sends a distress message to the preset emergency number; wherein the preset emergency number includes a public emergency rescue telephone number and / or a preset emergency contact in the electronic device.
[0022] In one possible implementation of the fourth aspect of this application, when the above instructions are executed by the processor, the electronic device performs the following steps: the electronic device emits a continuous vibration reminder, the continuous vibration reminder being used to remind the user to continuously input fingerprint information; the electronic device determines that from the start of acquiring the first fingerprint information, the ultrasonic fingerprint recognition sensor continuously acquires the first fingerprint information within a preset time period.
[0023] In one possible implementation of the fourth aspect of this application, when the above instructions are executed by the processor, the electronic device performs the following steps: the electronic device initiates a preset distress procedure; wherein the preset distress procedure is used to trigger the electronic device to generate a notification indicating that the user is in a second preset state.
[0024] Fifthly, an electronic device is provided, comprising: a touchscreen, an ultrasonic fingerprint sensor, a memory, and one or more processors. The memory stores one or more computer programs, each including instructions that, when executed by the processor, cause the electronic device to perform the following steps: the electronic device receives a first operation from a user; in response to the first operation, the electronic device illuminates the touchscreen and launches a camera application; the electronic device determines whether the touchscreen is in a first preset state (e.g., an underwater state); if the touchscreen is in the first preset state, the electronic device acquires a first fingerprint gesture input by the user at the corresponding location on the ultrasonic fingerprint sensor on the touchscreen; and the electronic device performs a shooting operation corresponding to the first fingerprint gesture.
[0025] In one possible implementation of the fifth aspect of this application, when the above instructions are executed by the processor, the electronic device performs the following steps: different fingerprint gestures correspond to different shooting operations; the shooting operation includes recording video, displaying the target image in the album, displaying the previous image of the target image, displaying the next image of the target image, or exiting the album.
[0026] In a sixth aspect, a computer-readable storage medium is provided, which stores instructions that, when executed on a computer, enable the computer to perform the control method of the electronic device described in any one of the first aspects.
[0027] In a seventh aspect, a computer program product containing instructions is provided, which, when run on a computer, enables the computer to execute the control method of the electronic device described in any one of the first aspects.
[0028] It is understood that the beneficial effects achieved by the electronic devices described in the second aspect, the third aspect, and any possible embodiments thereof, the computer-readable storage medium described in the fourth aspect, and the computer program product described in the fifth aspect can be referred to the beneficial effects in the first aspect and any possible design, which will not be repeated here. Attached Figure Description
[0029] Figure 1 This application provides an embodiment of a control method for an electronic device, illustrating the capacitance value of a touchscreen. Figure 1 ;
[0030] Figure 2 This application provides an embodiment of a control method for an electronic device, illustrating the capacitance value of a touchscreen. Figure 2 ;
[0031] Figure 3 This application provides an embodiment of a control method for an electronic device, illustrating the capacitance value of a touchscreen. Figure 3 ;
[0032] Figure 4 This application provides an embodiment of a control method for an electronic device, illustrating the capacitance value of a touchscreen. Figure 4 ;
[0033] Figure 5 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application;
[0034] Figure 6 A flowchart illustrating a control method for an electronic device provided in an embodiment of this application;
[0035] Figure 7 This is a schematic diagram illustrating an application scenario of a control method for an electronic device provided in an embodiment of this application.
[0036] Figure 8 A schematic flowchart of a control method for an electronic device provided in an embodiment of this application;
[0037] Figure 9 This is another schematic flowchart illustrating a control method for an electronic device provided in an embodiment of this application. Detailed Implementation
[0038] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this embodiment, unless otherwise stated, "a plurality of" means two or more.
[0039] This application provides a control method for an electronic device, which can be applied to an electronic device with ultrasonic fingerprint recognition functionality. The electronic device includes a touchscreen and an ultrasonic fingerprint recognition sensor (also referred to as an ultrasonic fingerprint recognition module) disposed under the touchscreen.
[0040] For example, the electronic device may be a mobile phone, tablet computer, laptop computer, personal computer (PC), wearable electronic device (such as smartwatch), augmented reality (AR) / virtual reality (VR) device, in-vehicle computer, smart home device, or other electronic device with ultrasonic fingerprint recognition function. This application embodiment does not impose any restrictions on this.
[0041] Generally, once an electronic device is submerged in water, the user cannot operate it underwater. However, the method provided in this application allows the electronic device to detect water immersion by utilizing the change in capacitance of its touchscreen after submersion; furthermore, it allows the user to control the electronic device underwater using its ultrasonic fingerprint unlocking function. In summary, by adopting this solution, the electronic device can respond to user operations and perform corresponding functions (such as underwater photography or calling for help after falling into the water) after submersion.
[0042] To facilitate understanding of this solution, this embodiment of the application uses test data to illustrate the change in capacitance value of the touch screen of an electronic device before and after immersion in water.
[0043] Please refer to Figure 1 This shows the capacitance values of each sensing point on the touchscreen under normal conditions (no water contact with the touchscreen) and without being touched (e.g., no user finger touching it). For example... Figure 1 As shown, in a normal environment, when the touchscreen is not touched, the absolute value of the capacitance of each sensing point is relatively small (generally around 0).
[0044] Please refer to Figure 2 It shows the capacitance values of various sensing points in the touchscreen when it is touched (such as by a user's finger) in a normal environment (without water contact with the touchscreen). Figure 2 As shown, in a normal environment, the location where the touchscreen is touched by the user (e.g.) Figure 2 The capacitance value of the sensing point (corresponding to the touch position within the dashed box 201 shown) changes significantly, for example, from approximately 0 to approximately 2000. The electronic device can determine the touch position based on this change in capacitance value.
[0045] Please refer to Figure 3 This shows the capacitance values of various sensing points on the touchscreen when there is a small amount of water in certain areas. For example... Figure 3 As shown, when there is a small amount of water on the touchscreen, the area with water (such as...) Figure 3 The capacitance value of the touch point (corresponding to the dashed box shown) exhibits a reverse increase phenomenon, for example, the capacitance value changes from around 0 to around -2000.
[0046] Please refer to Figure 4 This shows the capacitance values of various sensing points on the touchscreen when it is heavily covered with water. For example... Figure 4 As shown, when a large amount of water covers the touchscreen, the capacitance value of the touchscreen increases to around -2000 at the sensing points.
[0047] Combination Figures 1-4It can be concluded that when there is water on the touchscreen, the capacitance value of the sensing point at the water-covered location increases in the opposite direction. The more water there is, the more sensing points change, and the more significant the change in capacitance value. Therefore, in this embodiment, the electronic device can detect water immersion by utilizing the capacitance value change characteristic of the touchscreen after it is submerged in water.
[0048] The implementation of this embodiment will now be described in detail with reference to the accompanying drawings.
[0049] Please refer to Figure 5 Taking a mobile phone as an example, the document illustrates a schematic diagram of the hardware structure of an electronic device. Figure 5 As shown, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and an ultrasonic fingerprint recognition sensor 195.
[0050] The sensor module 180 may include a pressure sensor, a fingerprint sensor, a temperature sensor, a touch sensor, or other sensors such as a gyroscope sensor, a barometric pressure sensor, a magnetic sensor, an accelerometer, a distance sensor, etc. This embodiment does not impose any special limitations on these.
[0051] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. For example, the electronic device 100 may also include a subscriber identification module (SIM) card interface for connecting a SIM card. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0052] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, neural network processing unit (NPU), and / or microcontroller unit (MCU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0053] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, a serial peripheral interface (SPI), 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.
[0054] It is understood that the interface connection relationships between the modules illustrated in the embodiments of the present invention are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.
[0055] The charging management module 140 receives charging input from the charger. The power management module 141 connects to the battery 142, and the charging management module 140 connects to the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, internal memory 121, external memory, display 194, camera 193, and wireless communication module 160, etc.
[0056] The wireless communication function of electronic device 100 can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, and baseband processor. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.
[0057] The mobile communication module 150 can provide wireless communication solutions, including 2G / 3G / 4G / 5G, for use on electronic devices 100.
[0058] The wireless communication module 160 can provide solutions for wireless communication applications on electronic devices 100, including wireless local area networks (WLAN) (such as Wi-Fi networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), NFC, infrared (IR) technology, etc.
[0059] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connecting the display screen 194 and the application processor.
[0060] The display screen 194 is used to display images, videos, etc. This display screen may be a touchscreen. In some embodiments, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than 1.
[0061] Electronic device 100 can implement shooting functions through an ISP, camera 193, video codec, GPU, display 194, and application processor. The ISP is used to process data fed back by camera 193. Camera 193 is used to capture still images or videos. In some embodiments, electronic device 101 may include one or N cameras 193, where N is a positive integer greater than 1.
[0062] The external storage interface 120 can be used to connect an external storage card, such as a Micro SD card, to expand the storage capacity of the electronic device 101.
[0063] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 101 by running the instructions stored in internal memory 121.
[0064] Electronic device 101 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.
[0065] Buttons 190 include a power button, volume buttons, etc. Motor 191 can generate vibration feedback. Indicator 192 can be an indicator light, used to indicate charging status, battery level changes, and also to indicate messages, missed calls, notifications, etc.
[0066] The ultrasonic fingerprint sensor 195 uses the principle of ultrasonic imaging to acquire fingerprint images. Ultrasonic waves can travel through water and can penetrate materials such as glass, plastic, and skin to obtain the internal structure of objects.
[0067] Taking a mobile phone as an example, this application provides a control method for an electronic device. For instance... Figure 6 As shown, the method may include the following steps:
[0068] S10: The phone records the fingerprint information of the finger.
[0069] Users can register fingerprints from multiple fingers onto their phones. The phone then generates a unique fingerprint ID for each fingerprint. The phone uses these fingerprints to verify the user's identity for unlocking or to grant application permissions. For example, a user can register the fingerprints of their thumb, index finger, and middle finger. When the phone determines that the fingerprint collected by the ultrasonic fingerprint sensor matches one of these three fingers, it can unlock the phone.
[0070] S20: The phone responds to the user's configured emergency water ingress distress call operation and confirms the preset fingerprint information used for emergency distress call from the entered fingerprint information.
[0071] Preset fingerprint information refers to the fingerprint information used for emergency distress calls from pre-registered fingerprint data. The mobile phone can associate the preset fingerprint information with an emergency distress call program. In an exemplary embodiment, when a user registers their fingerprint information on the mobile phone, the phone can configure a water immersion emergency distress call for that fingerprint information, that is, associate the fingerprint information with the emergency distress call program. For example, as shown... Figure 7As shown, the mobile phone can display page 700, which displays the fingerprint IDs corresponding to each fingerprint information, such as "Fingerprint 1, Fingerprint 2, Fingerprint 3". Each fingerprint ID can correspond to a control 701, which can be a switch control. When the control 701 is turned on, the mobile phone configures a water immersion emergency distress signal for the fingerprint ID; when the control 701 is turned off, the corresponding fingerprint ID does not have a water immersion emergency distress signal. Configuring a water immersion emergency distress signal can include the user clicking or swiping the control 701. When the mobile phone receives the user's click or swipe operation on the control 701, it can determine whether the control 701 is on or off, thereby determining whether the fingerprint ID has a water immersion emergency distress signal. For example, when the control 701 corresponding to "Fingerprint 1" is "on", the fingerprint ID for the emergency distress signal is "Fingerprint 1". The fingerprint information corresponding to the fingerprint ID configured with a water immersion emergency distress signal is the preset fingerprint information.
[0072] In some implementations, the preset fingerprint information can be any fingerprint information pre-registered on the mobile phone. That is, any fingerprint information pre-registered on the mobile phone can be used as the preset fingerprint information and associated with the emergency rescue procedure.
[0073] Optionally, in this embodiment, the above-mentioned S20 may not be performed. That is, after the mobile phone enrolls the fingerprint information of the finger, it can default to using all the enrolled fingerprint information for emergency rescue (i.e., all the enrolled fingerprint information is used as the preset fingerprint information for emergency rescue).
[0074] S30: The mobile phone receives the user's first operation and responds by turning on the touchscreen.
[0075] This first operation is used to trigger the phone screen to turn on. For example, this first operation could be a user clicking the phone's lock screen button (also known as the power button).
[0076] A mobile phone's touchscreen has two states: on and off. These two states can be switched by a first operation (i.e., a user tapping the lock screen button). For example, when the phone screen is off, if the phone receives a tap on the lock screen button, the touchscreen will turn on again. Alternatively, the phone will automatically turn off the screen if there is no activity for a period of time. Screen off refers to the state where the phone screen is turned off; it can also be called a locked screen or screen-off. When the phone screen is off, various components such as the touchscreen and ultrasonic fingerprint sensor are in a sleep or off state, saving resources and extending the phone's lifespan.
[0077] When the phone receives the first touch operation, it activates the touchscreen, turning it on. Simultaneously, the ultrasonic fingerprint sensor beneath the touchscreen also activates and begins collecting information. When the touchscreen is on, it can display either the unlock screen or the phone's home screen. Furthermore, the touchscreen can sense user touch operations, allowing for control of the phone through these actions. For example, a user can tap an application on the touchscreen, and the phone will then display that application's page.
[0078] Optionally, in this embodiment, the above-described S30 may not be performed. That is, after receiving the user's first operation, the phone may not turn on the screen but only activate the ultrasonic fingerprint sensor to collect the fingerprint information entered by the user.
[0079] S40: The phone uses an ultrasonic fingerprint sensor to collect the user's first fingerprint information.
[0080] When a user places their finger on the sensing area of the ultrasonic fingerprint sensor on the touchscreen, the sensor can collect the user's fingerprint information, i.e., the first fingerprint information. The ultrasonic fingerprint sensor uses ultrasonic imaging technology to convert ultrasonic wave signals into an image; the image collected by the sensor is an ultrasonic fingerprint image. The mobile phone can recognize the fingerprint information in the ultrasonic fingerprint image, i.e., the first fingerprint information. For example, when a user operates within the sensing area of the ultrasonic fingerprint sensor, such as by clicking or swiping, the image collected by the sensor will contain the user's fingerprint information, i.e., the first fingerprint information. For instance, when a user's index finger operates within the sensing area of the ultrasonic fingerprint sensor on the touchscreen, the fingerprint information of that index finger is the first fingerprint information.
[0081] S50: If the mobile phone determines that the touchscreen is in the first preset state and that the first fingerprint information matches the preset fingerprint information, it will initiate an emergency distress call (SOS) according to the preset distress method.
[0082] Optionally, the first preset state can be a water immersion state. When the phone determines that the touchscreen is in the first preset state (e.g., water immersion state) and the first fingerprint information matches the preset fingerprint information, it can further determine that the user is in a second preset state (e.g., falling into water, or water immersion state). Therefore, when the phone determines that the user is in the second preset state, it can initiate an emergency SOS according to a preset distress signal.
[0083] "Submerged" refers to the state where the phone and its touchscreen are submerged in water, such as 1 meter or 3 meters underwater. When a phone is submerged, the touchscreen cannot locate the user's finger touchpoint, causing the phone to be unable to recognize the user's gestures. However, ultrasound can propagate in water, and ultrasonic fingerprint sensors that utilize this principle can be used underwater.
[0084] A mobile phone can determine whether it is in water in several ways. For example, it can determine whether it is in water by checking for short circuits in the electrical signal. Alternatively, it can use sensors to detect humidity to determine whether it is in water.
[0085] For example, a mobile phone can determine whether it is submerged in water by measuring the capacitance value of its touchscreen. When a finger is on the touchscreen, the capacitance value increases. When water is on the touchscreen, the capacitance value increases in the opposite direction. The more water covering the touchscreen, the more sensing points show an increase in capacitance. Based on this principle, the mobile phone can determine whether the touchscreen is submerged in water. For example, when the capacitance values of a preset proportion of sensing points on the touchscreen are within a preset range, the mobile phone can determine that it is currently submerged in water. The preset range can be a capacitance value less than -100, or a capacitance value less than -300 or -400, etc.; the preset proportion can include 2 / 3 of the sensing points on the touchscreen, or 70%, 80%, 90% of the sensing points, etc.; this embodiment does not impose any special limitations on the above.
[0086] When a phone determines it is submerged in water, it matches the first fingerprint with a preset fingerprint. If the match is found, the phone can send an emergency distress signal using a preset method. In other words, the conditions for a phone to send an emergency distress signal are: the phone is submerged in water, and the first fingerprint collected by the phone matches the preset fingerprint.
[0087] For example, suppose a phone stores three pre-registered fingerprints: the thumb, index finger, and middle finger. When the phone obtains the first fingerprint, it matches it against each of the three stored fingerprints. If the first fingerprint matches the thumb's fingerprint, the phone can then determine if the thumb's fingerprint is configured for a water immersion emergency distress signal, i.e., whether the thumb's fingerprint is a preset fingerprint. If the thumb's fingerprint is a preset fingerprint, the phone will send an emergency distress signal according to the preset distress method.
[0088] Optionally, the preset distress call method can be a notification generated by the mobile phone to indicate that the user is in a second preset state. For example, the preset distress call method may specifically include the mobile phone issuing a voice distress message through its speaker, sending a voice call request to a preset emergency number, or sending a distress message to a preset emergency number, etc., to indicate that the user is in a state of drowning. The preset emergency number is a public emergency rescue telephone number and / or a preset emergency contact in the mobile phone.
[0089] For example, the mobile phone can control the speaker to turn on and play a voice distress message. This voice distress message can be any type of voice message. When people nearby hear this message, they can promptly rescue the user underwater. Alternatively, the mobile phone can also dial preset emergency numbers, such as public emergency numbers like 120 and 119, or emergency contacts set by the user, allowing the user to seek help from others. Using this implementation, users can immediately seek help when in danger underwater, enhancing the mobile phone's functionality and helping to protect the user's personal safety.
[0090] In the above embodiments, when the mobile phone is submerged in water, if the fingerprint information collected by the ultrasonic fingerprint sensor matches the preset fingerprint information, the mobile phone will issue an emergency SOS. To prevent user misoperation, in some embodiments, the mobile phone can recognize the user's fingerprint gesture by using the ultrasonic fingerprint image collected by the ultrasonic fingerprint recognition sensor when submerged in water. A fingerprint gesture refers to the user's operation gesture received by the ultrasonic fingerprint recognition sensor. When the mobile phone determines that the fingerprint gesture is a preset SOS gesture, it will issue an emergency SOS. That is, when the mobile phone determines that the first fingerprint information is the preset fingerprint information, it also needs to determine whether the user's fingerprint gesture is a SOS gesture; if the user's fingerprint gesture is a SOS gesture, the mobile phone will issue an emergency SOS.
[0091] For example, when a phone is determined to be submerged in water and the first fingerprint information matches a preset fingerprint, the phone can be unlocked. Unlocking means removing the phone from its lock; the phone uses the first fingerprint information to verify the user's identity, thus unlocking it for use. Then, the phone can continuously acquire ultrasonic fingerprint images to identify whether the user's fingerprint gesture is a distress signal.
[0092] The distress gesture can be a single gesture or multiple consecutive gestures. For example, the distress gesture can be a long press gesture of a certain duration, such as a long press gesture of more than 3 seconds. The distress gesture can also be other gestures, such as a three-times long press gesture, a two-times long press followed by a tap gesture, etc. This implementation does not impose any special limitations on these gestures.
[0093] The mobile phone can continuously acquire consecutive frames of ultrasonic fingerprint images, for example, acquiring one frame of ultrasonic fingerprint image every 0.01 seconds. In this embodiment, consecutive frame ultrasonic fingerprint images refer to multiple frames of ultrasonic fingerprint images with a time sequence, such as 0 seconds, 0.1 seconds, 0.2 seconds, etc. The mobile phone can continuously acquire ultrasonic fingerprint images from the moment it is submerged in water, obtaining consecutive multiple frames of ultrasonic fingerprint images. For example, the mobile phone acquires ultrasonic fingerprint images according to a certain time period, and the resulting consecutive multiple frames of ultrasonic fingerprint images are continuous according to the acquisition time period. For example, the mobile phone can acquire ultrasonic fingerprint images at a time period of one frame every 0.2 seconds, obtaining multiple frames of ultrasonic fingerprint images with a period of 0.2 seconds.
[0094] The ultrasonic fingerprint images captured by the mobile phone can be stored in a specified file path. These images can be continuously updated over time, increasing the number of stored images. The mobile phone can recognize the user's fingerprint gestures based on consecutive frames of ultrasonic fingerprint images in this file path. Understandably, if the consecutive frames of ultrasonic fingerprint images are constantly updated, the recognized fingerprint gestures can also be dynamically updated. The mobile phone can recognize the user's fingerprint gestures corresponding to consecutive frames of ultrasonic fingerprint images within a preset time period. For example, consecutive frames of ultrasonic fingerprint images in the first minute correspond to gesture 1, consecutive frames in the second minute correspond to gesture 2, and so on. Alternatively, the mobile phone can also recognize the corresponding fingerprint gesture based on the currently captured consecutive frames of ultrasonic fingerprint images, then delete the ultrasonic fingerprint image corresponding to that gesture, and continue recognizing the remaining ultrasonic fingerprint images. For example, if the mobile phone recognizes the first 6 frames of consecutive frames of ultrasonic fingerprint images as a fingerprint gesture, it will continue recognizing the next fingerprint gesture starting from the 7th frame.
[0095] For example, the SOS gesture can be a long press gesture lasting 3 seconds. In step S50 above, after the phone matches the first fingerprint information in the ultrasonic fingerprint image with preset fingerprint information, the phone can continue to determine whether all ultrasonic fingerprint images collected within 3 seconds contain the first fingerprint information. If the user's finger remains in the sensing area of the ultrasonic fingerprint recognition sensor for the entire 3 seconds, then all ultrasonic fingerprint images collected by the phone within 3 seconds contain the first fingerprint information, that is, the phone receives a 3-second long press gesture. When the phone determines that the fingerprint gesture is a 3-second long press gesture, the phone sends an emergency SOS signal.
[0096] In some implementations, once the phone determines it is submerged in water and the first fingerprint information matches preset fingerprint information, the phone can send a notification to the user to prompt them to make a distress gesture. For example, the notification could be a continuous vibration alert. When the user feels the continuous vibration, they can hold the corresponding finger in the sensing area of the ultrasonic fingerprint sensor. If the phone determines that all ultrasonic fingerprint images continuously acquired within 3 seconds contain the preset fingerprint information, the phone can issue an emergency distress signal.
[0097] This application also provides a control method for an electronic device. Continuing with the example of a mobile phone, for instance... Figure 8 As shown, the method may include the following steps:
[0098] S80: The phone receives the user's first operation, responds by turning on the touchscreen and launching the camera application.
[0099] The first operation includes a double-click operation by the user on the phone's lock screen button. If the phone receives this double-click, the screen lights up and launches an application, such as the camera app. Understandably, the phone can also launch other applications, such as call or video applications, upon receiving the first operation; this implementation is not limited to this.
[0100] S81: The mobile phone determines whether the touch screen is in a first preset state, such as a water immersion state. If the touch screen is in a water immersion state, the mobile phone collects the first fingerprint gesture entered by the user at the corresponding position of the ultrasonic fingerprint recognition sensor on the touch screen.
[0101] The method for determining whether the mobile phone's touchscreen is submerged in water has been described in detail in step S50 above and will not be repeated here. When the mobile phone is submerged in water, the user can operate on the sensing area of the ultrasonic fingerprint recognition sensor on the touchscreen, such as swiping or tapping. The ultrasonic fingerprint recognition sensor can continuously acquire ultrasonic fingerprint images. Through consecutive frames of ultrasonic fingerprint images, the mobile phone can determine the user's first fingerprint gesture.
[0102] Understandably, after confirming the first fingerprint gesture, the phone can continue to confirm the user's fingerprint gestures, such as the second fingerprint gesture, the third fingerprint gesture, etc.
[0103] For example, fingerprint gestures can be divided into tap gestures and swipe gestures. Tap gestures can include single tap, double tap, triple tap, etc. Swipe gestures can include swipe up, swipe down, swipe left, swipe right, etc.
[0104] For tap gestures, to prevent accidental user operations, the phone can set double-tap gestures as the trigger gesture. When recognizing a double-tap gesture, the phone can first identify images containing fingerprint information in consecutive frames of ultrasonic fingerprint images. If there are two frames containing fingerprint information in consecutive ultrasonic fingerprint images, and the time sequence of these two frames containing fingerprint information is not continuous, then the phone can determine that the fingerprint gesture is a double-tap gesture.
[0105] Specifically, the mobile phone sequentially identifies whether each frame of the continuous ultrasonic fingerprint images contains fingerprint information, based on the time sequence of the frames. If a first image containing fingerprint information is identified in the continuous frame ultrasonic fingerprint images, the mobile phone continues to identify other ultrasonic fingerprint images within a preset time period corresponding to the first image, determining whether a second image exists among these other ultrasonic fingerprint images. This second image is an ultrasonic fingerprint image containing fingerprint information that is not continuous with the first image. If both the first and second images exist in the continuous frame ultrasonic fingerprint images, and the time difference between the second image and the first image is within the preset time period, the mobile phone can determine that the user's current fingerprint gesture is a double-tap gesture.
[0106] The mobile phone can sequentially compare each frame of the ultrasonic fingerprint image with the preset fingerprint information to determine whether the content contained in the ultrasonic fingerprint image is consistent with the preset fingerprint information. The mobile phone can match the ultrasonic fingerprint image with the preset fingerprint information through a feature matching algorithm. If a certain ultrasonic fingerprint image matches the preset fingerprint information, then the ultrasonic fingerprint image can be determined as the first image containing the preset fingerprint information.
[0107] For example, the fingerprint information mentioned above could also be any fingerprint not pre-registered on the phone. The phone can use a machine learning model to determine whether an ultrasonic fingerprint image contains a fingerprint. The machine learning model can learn from fingerprint features to identify whether an image contains a fingerprint. If an ultrasonic fingerprint image contains a fingerprint, that ultrasonic fingerprint image can be the first image.
[0108] For example, a continuous frame ultrasonic fingerprint image may include four frames with time sequences of 0 seconds, 0.01 seconds, 0.02 seconds, and 0.03 seconds. The phone sequentially determines whether these four frames contain fingerprint information. If the first ultrasonic fingerprint image, i.e., the one with a time sequence of 0 seconds, contains fingerprint information, then the first ultrasonic fingerprint image is the first image. Next, the phone continues to identify the second ultrasonic fingerprint image corresponding to 0.01 seconds, the third ultrasonic fingerprint image corresponding to 0.02 seconds, and the fourth ultrasonic fingerprint image corresponding to 0.03 seconds. If the second ultrasonic fingerprint image does not contain fingerprint information, but the third and fourth ultrasonic fingerprint images do, then the phone determines the time interval between the first and third ultrasonic fingerprint images. If this time interval (i.e., 0.02 seconds) is within a preset time period, then the third ultrasonic fingerprint image can be the second image. Similarly, if the time interval between the first and fourth ultrasonic fingerprint images (i.e., 0.03 seconds) is also within the preset time period, then the fourth image is also the second image.
[0109] In summary, the second image must fall within a preset time range corresponding to the first image and must not be sequentially continuous with the first image in time. It is understood that the second frame of the ultrasonic fingerprint image and the first frame of the ultrasonic fingerprint image are sequentially continuous; therefore, if the second frame of the ultrasonic fingerprint image contains fingerprint information, it is not considered the second image. For example, the preset time period is the duration of the fingerprint gesture, which can be set according to actual conditions. For instance, the preset time period can be 0.15 seconds, 0.2 seconds, etc., and this embodiment does not impose any special limitations on this.
[0110] Based on the principle of recognizing double-tap gestures described above, in other embodiments, the mobile phone can also recognize triple-tap gestures, multi-tap gestures, etc., corresponding to continuous frame ultrasonic fingerprint images. For example, for triple-tap gestures, if there are three non-contiguous frames in the continuous frame ultrasonic fingerprint images, all of which contain fingerprint information, and the time difference between the minimum and maximum time sequences of these three frames is within a preset time period, then the mobile phone can determine that the fingerprint gesture is a triple-tap gesture.
[0111] For swipe gestures, the phone can recognize target images containing fingerprint information within a continuous frame of ultrasonic fingerprint images. If there are more than a preset number of consecutive target images in the continuous frame ultrasonic fingerprint images, the phone can determine that the user's fingerprint gesture is a swipe gesture. Alternatively, if there are consecutive target images within the continuous frame ultrasonic fingerprint images, and these target images are consecutive within a preset time range, the phone can determine that the fingerprint gesture is a swipe gesture. For example, a continuous frame ultrasonic fingerprint image may include multiple frames with time sequences of 0 seconds, 0.01 seconds, 0.02 seconds, 0.03 seconds, etc. If the first four frames contain fingerprint information, and the fifth frame does not, the phone can determine that the first four frames are target images. If the time sequence of the first four target images is consecutive, and this time sequence is within a preset time range, such as within 1 second, the phone can determine that the fingerprint gesture corresponding to these four target images is a swipe gesture. It is understood that the above-mentioned preset time range can be greater than 0.5 seconds and less than 1 second, or greater than 0.7 seconds, etc.; the preset number can be any number, such as 3 frames, 4 frames, 5 frames, etc., and this embodiment does not make any special limitation on this.
[0112] Furthermore, if the user's fingerprint gesture is a swipe gesture, the phone can also specifically determine the swipe direction. In an exemplary embodiment, the phone can calculate the displacement of fingerprint information in consecutive frames of the target image and determine the swipe direction based on the displacement.
[0113] Specifically, the mobile phone can determine the position of the fingerprint information in each frame of the target image. Then, following the time sequence, it subtracts the position of the fingerprint information in the previous frame from the position of the fingerprint information in the next frame to obtain the displacement of the fingerprint information. For example, if the target images are four frames of ultrasonic fingerprint images with a time sequence from 0.1 seconds to 0.4 seconds, the mobile phone can first determine the positions of the fingerprint information in these four frames: X1, X2, X3, X4. Then, the mobile phone calculates the displacement between the target images. This displacement can be calculated by subtracting the position of the first frame from the position of the last frame, such as displacement = X4 - X1. Alternatively, the mobile phone can calculate the displacement between every two target images separately and then sum them to obtain the overall displacement of the continuous multi-frame target images, such as displacement = (X2 - X1) + X3 - X2 + (X4 - X3).
[0114] The phone can determine the swipe direction of the corresponding swipe gesture based on the calculated displacement. For example, using two-dimensional coordinates (x, y) to represent the position of fingerprint information in the target image, if the displacement is y = 0 in the vertical direction and x < 0 in the horizontal direction, such as (-2, 0), the phone can determine the swipe direction as left. If the displacement is y = 0 in the vertical direction and x > 0, the swipe direction is right. As another example, if the displacement is x = 0 in the horizontal direction and y < 0 in the vertical direction, the swipe direction is down; if y > 0, the swipe direction is up. If neither the horizontal x nor the vertical y of the calculated displacement is 0, the direction with the larger absolute value can be used as the swipe direction. For example, if the displacement is (-1, 3), the phone can determine the swipe direction as up; if the displacement is (2, -3), the phone can determine the swipe direction as down.
[0115] In summary, when users need to use their phones underwater, they can trigger fingerprint gestures by touching the sensing area of the ultrasonic fingerprint sensor. The phone can recognize the user's fingerprint gesture using the ultrasonic fingerprint image captured by the sensor, determining whether the gesture is a tap or a swipe, and thus responding to the user's gesture to control the camera application, fulfilling the user's need to use the camera underwater.
[0116] Step S82: The phone performs the shooting operation corresponding to the first fingerprint gesture.
[0117] The phone can pre-determine the corresponding operation for each fingerprint gesture and associate the fingerprint gesture with the corresponding operation. For example, a double-tap gesture is associated with taking a photo, and a single-tap gesture is associated with closing the camera app. When the phone receives the first fingerprint gesture, it executes the corresponding shooting operation. For instance, if the first fingerprint gesture is a double-tap, the phone can control the camera to take a photo. If the first fingerprint gesture is a single-tap, the phone can control the camera to record a video.
[0118] According to this embodiment, when the mobile phone receives a user's first operation, it can perform an emergency distress call or take a photo underwater depending on the specific first operation. In an exemplary implementation, the mobile phone can recognize other fingerprint gestures of the user, each fingerprint gesture corresponding to a specific operation, and the mobile phone can control the camera application to perform the corresponding operation.
[0119] Specifically, Figure 9 This demonstrates how a mobile phone controls its camera application while submerged in water.
[0120] like Figure 9 As shown in the figure, in S91, the mobile phone continuously acquires ultrasonic fingerprint images.
[0121] When the phone is submerged in water, its ultrasonic fingerprint sensor can continuously acquire ultrasonic fingerprint images. For example, the phone can acquire one frame of ultrasonic fingerprint image every 0.01 seconds. The acquired ultrasonic fingerprint images are multiple frames in a continuous time series.
[0122] In S92, the phone determines whether the user's gesture is a swipe gesture based on the collected continuous frame ultrasonic fingerprint images.
[0123] The mobile phone can continuously recognize a user's fingerprint gestures based on the acquired ultrasonic fingerprint images. There can be multiple fingerprint gestures, and the phone can determine a command for each gesture to execute multiple functions of the camera application. For example, if the phone determines that the target images containing fingerprint information in a series of ultrasonic fingerprint images are multiple consecutive frames, and the acquisition time of these multiple frames is within a preset time range, the corresponding fingerprint gesture is a swipe gesture. If the user's fingerprint gesture does not meet the criteria for a swipe gesture, the phone can determine that the fingerprint gesture is a tap gesture.
[0124] In S93, when the fingerprint gesture is a swipe gesture, the phone determines the swipe direction of the gesture.
[0125] Swipe directions can include left swipe, right swipe, up swipe, down swipe, etc. The phone can determine the swipe direction based on the displacement of fingerprint information in multiple consecutive target images. Different swipe directions can correspond to different commands.
[0126] In S931, when the swipe gesture is downward, the phone enters the photo album and displays a picture in the album, such as the last picture A taken.
[0127] In the S932, when the swipe gesture is in the direction of an upward swipe, the phone exits the photo album.
[0128] If the phone has already entered the photo album, and if the phone recognizes a swipe gesture again, and determines that the swipe gesture is in the direction of an upward swipe, the phone can exit the photo album.
[0129] In S933, when the swipe gesture is to the right, the phone displays the previous image, i.e., the image before image A in the album. If the phone is currently displaying the first image in the album, the phone may not respond to the right swipe gesture.
[0130] In S934, when the swipe gesture is in the direction of left, the phone displays the next picture, that is, the next picture after picture A in the album.
[0131] The aforementioned swipe direction or the corresponding command can be other than what is described above. For example, an upward swipe can enter the photo album, and a left swipe can exit the photo album. Designers or users can set these parameters according to their actual needs, and this implementation method does not impose any restrictions on this.
[0132] In S94, the phone determines whether the tap gesture is a single tap or a double tap.
[0133] When consecutive frames of ultrasonic fingerprint images contain a first image and a second image that contain fingerprint information, and the time interval between the first image and the second image is within a preset time period, such as 1 second, the mobile phone can determine that the current user's fingerprint gesture is a double-tap gesture. If the time interval between two non-consecutive frames of ultrasonic fingerprint images containing fingerprint information is not within 1 second, the mobile phone can determine that the fingerprint gesture is a single-tap gesture.
[0134] In S941, when the fingerprint gesture is a single tap, the phone starts the recording function of the camera app.
[0135] When a user's fingerprint gesture is a single tap, the phone's recording function will be activated, allowing the user to record video underwater.
[0136] S942: When the fingerprint gesture is a double-tap gesture, the phone launches the camera app's photo-taking function.
[0137] Once the camera app's photo-taking function is activated, the phone can take photos underwater. Understandably, when the phone recognizes the double-tap gesture again, it can again activate the camera app's photo-taking function, thus capturing multiple photos underwater.
[0138] Using this embodiment, the mobile phone can recognize the user's fingerprint gestures underwater, thereby controlling the camera application based on the recognized fingerprint gestures, enabling the camera application to perform functions such as taking photos, recording videos, and viewing photos. Therefore, this embodiment can meet the user's need to use the mobile phone underwater.
[0139] In summary, the electronic device control method provided in this embodiment can recognize user operations underwater and determine whether the user needs to make an emergency distress call based on the user's operations, thereby enabling emergency distress calls when the user encounters danger underwater. Furthermore, it can perform underwater photography based on user operations, increasing the usability of the mobile phone.
[0140] It should be understood that the above embodiment takes the control method of the electronic device executed in a mobile phone as an example. The control method of the electronic device provided in this embodiment can also be applied to other electronic devices with ultrasonic fingerprint recognition sensors, such as tablet computers, wearable electronic devices such as smartwatches and smart headphones. This application does not impose any restrictions on this.
[0141] This application also provides an electronic device, which can be any of the electronic devices used to execute the control method of an electronic device in the above embodiments (such as the mobile phone described above). The electronic device may include: a touchscreen, the touchscreen including a touch sensor and a display screen, an ultrasonic fingerprint recognition sensor, a memory, and one or more processors. The touchscreen, ultrasonic fingerprint recognition sensor, memory, and processors are coupled. The memory stores a computer program, which includes computer instructions. When the processor executes the computer instructions, the electronic device can perform various functions or steps performed by the mobile phone in the above method embodiments.
[0142] This application also provides a computer storage medium that includes computer instructions. When the computer instructions are executed on an electronic device, the electronic device causes the electronic device to perform various functions or steps performed by the mobile phone in the above method embodiments.
[0143] This application also provides a computer program product that, when run on a computer, causes the computer to perform the various functions or steps performed by the mobile phone in the above method embodiments.
[0144] Through the above description of the embodiments, those skilled in the art will clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device, and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0145] In the embodiments of this application, the functional units can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0146] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, essentially, or the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as flash memory, portable hard disk, read-only memory, random access memory, magnetic disk, or optical disk.
[0147] The above description is merely a specific implementation of the embodiments of this application, but the protection scope of the embodiments of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the embodiments of this application should be covered within the protection scope of the embodiments of this application. Therefore, the protection scope of the embodiments of this application should be determined by the protection scope of the claims.
Claims
1. A control method for an electronic device, characterized in that, The method is applied to an electronic device including a touchscreen, the electronic device further including an ultrasonic fingerprint recognition sensor, the method comprising: The electronic device receives a first operation; the first operation includes a user clicking the lock screen key of the electronic device; In response to the first operation, the ultrasonic fingerprint sensor acquires a fingerprint; The electronic device collects the first fingerprint information; The electronic device determines that the capacitance value of a preset proportion of the sensing points in the touchscreen is within a preset range, and determines that the touchscreen is in a first preset state; the preset range is the range of capacitance values of the sensing points of the touchscreen after they come into contact with water; the preset range is a range of negative capacitance values; the first preset state includes the water immersion state; The touchscreen is in a first preset state, and the electronic device determines that the first fingerprint information matches the preset fingerprint information, and the electronic device emits a continuous vibration reminder; the electronic device has multiple pre-recorded fingerprint information, and the preset fingerprint information is the fingerprint information associated with a preset distress call method among the multiple fingerprint information, used for emergency distress call; the continuous vibration reminder is used to remind the user to continuously input fingerprint information; The electronic device continuously collects fingerprints via the ultrasonic fingerprint recognition sensor starting from the acquisition of the first fingerprint information. If the first fingerprint information is continuously collected within a preset time period, and the fingerprint gesture corresponding to the first fingerprint information is a distress gesture within the preset time period, the electronic device generates a notification, which is used to indicate that the user is in a second preset state; wherein, the distress gesture is a preset gesture generated by the user in the corresponding sensing area of the ultrasonic fingerprint recognition sensor.
2. The control method for an electronic device according to claim 1, characterized in that, The second preset state is the state of falling into water.
3. The control method for an electronic device according to claim 1, characterized in that, The notification generated by the electronic device includes at least one of the following: The electronic device emits a voice distress signal via a speaker; The electronic device sends a voice call request to a preset emergency number; The electronic device sends a distress message to the preset emergency number; The preset emergency number includes public emergency assistance numbers and / or preset emergency contacts in the electronic device.
4. A control method for an electronic device, characterized in that, The method is applied to an electronic device including a touchscreen, the electronic device further including an ultrasonic fingerprint recognition sensor, the method comprising: The electronic device receives a first operation; the first operation includes a double-click operation on the lock screen key of the electronic device; In response to the first operation, the electronic device illuminates the touchscreen and launches the camera application; The electronic device determines that the capacitance value of a preset proportion of the sensing points in the touchscreen is within a preset range, and determines that the touchscreen is in a first preset state; the preset range is the range of capacitance values of the sensing points of the touchscreen after they come into contact with water; the preset range is a range of negative capacitance values; the first preset state includes the water immersion state; The electronic device collects the fingerprint gesture and first fingerprint information input by the user at the corresponding position of the ultrasonic fingerprint recognition sensor on the touch screen; If the fingerprint gesture is a first fingerprint gesture, the electronic device performs the shooting operation corresponding to the first fingerprint gesture; the first fingerprint gesture includes any one of a single tap gesture, a double tap gesture, a left swipe gesture, a right swipe gesture, an up swipe gesture, and a down swipe gesture; If the fingerprint gesture is a distress gesture and the first fingerprint information matches the preset fingerprint information, the electronic device will emit a continuous vibration reminder to remind the user to continue inputting fingerprint information. The electronic device determines that from the start of acquiring the first fingerprint information, the ultrasonic fingerprint recognition sensor continuously acquires the first fingerprint information within a preset time period, and the fingerprint gesture is still the distress gesture. The electronic device generates a notification, which is used to indicate that the user is in a second preset state. The electronic device has multiple pre-recorded fingerprint information, and the preset fingerprint information is the fingerprint information associated with the preset distress method among the multiple fingerprint information, used for emergency distress. The distress gesture is a preset gesture generated by the user in the corresponding sensing area of the ultrasonic fingerprint recognition sensor.
5. The control method for an electronic device according to claim 4, characterized in that, Different fingerprint gestures correspond to different shooting operations; The shooting operation includes any of the following operations: recording video, displaying the target image in the album, displaying the previous image of the target image, displaying the next image of the target image, or exiting the album.
6. An electronic device, characterized in that, include: A touchscreen, comprising a touch sensor and a display screen; Ultrasonic fingerprint recognition sensor; One or more processors; Memory; The memory stores one or more computer programs, the one or more computer programs including instructions that, when executed by the electronic device, cause the electronic device to perform a control method for an electronic device as described in any one of claims 1-5.
7. A computer-readable storage medium storing instructions, characterized in that, When the instructions are executed on the electronic device, the electronic device causes the electronic device to perform a control method for an electronic device as described in any one of claims 1-5.
8. A computer program product, characterized in that, When the computer program product is run on an electronic device, it causes the electronic device to perform a control method for an electronic device according to any one of claims 1-5.