Privacy protection method of electronic equipment and electronic equipment
Detecting face changes through low-power cameras solves the problem of reduced response speed caused by face recognition unlocking in the existing technology, achieving the effect of improving the response speed of privacy applications while ensuring security.
Patent Information
- Application Number
- CN202410124993.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2019-07-30
- Filing Date
- 2019-09-19
- Publication Date
- 2024-09-06
Smart Images

Figure CN118612337A
Abstract
Description
Technical Field
[0001] The present application relates to the field of information security, and in particular to a privacy protection method for an electronic device, an electronic device, a computer-readable storage medium, a computer program product, and a chip. Background Art
[0002] With the popularization of electronic devices, especially smart mobile terminals such as mobile phones, more and more applications are integrated into mobile phones, involving all aspects of people's daily lives, such as instant messaging, mobile payment, etc. In order to ensure the privacy and property security of users, some applications can be locked, and users can use them only after decryption (for example, face verification is passed).
[0003] In the prior art, when unlocking an application lock by face recognition, the electronic device first detects the user's operation of opening a private application, then starts the front camera to acquire a face image in front of the display screen, and performs face recognition on the face image. If the face recognition passes, the private application is opened. The user needs to authenticate his identity every time he opens a private application. Although privacy is protected, the large number of verifications will reduce the speed at which the private application responds to user operations. Summary of the invention
[0004] The present application provides a privacy protection method for an electronic device, an electronic device, a computer-readable storage medium, a computer program product, and a chip, which can improve the efficiency of the privacy application in responding to user operations while ensuring the security of the privacy application.
[0005] In a first aspect, an embodiment of the present invention provides an electronic device, including:
[0006] one or more processors;
[0007] Memory;
[0008] Multiple applications;
[0009] and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, which, when executed by the electronic device, cause the electronic device to perform the following steps:
[0010] Initiate face change detection, wherein the face change detection is to continuously detect whether the face in front of the display screen of the electronic device has changed during the current unlocking cycle, wherein the face change in front of the display screen of the electronic device specifically refers to that the current face in front of the display screen of the electronic device does not match the reference face;
[0011] After the face change detection is started, an operation of opening the first privacy application is detected;
[0012] In response to the operation and determining that the result of the face change detection is that the current face has not changed, displaying the first privacy content corresponding to the first privacy application;
[0013] In response to the operation and determining that the result of the face change detection is that the current face has changed, the first non-privacy content is displayed, and the first non-privacy content does not include the first privacy content.
[0014] In a second aspect, an embodiment of the present invention provides an electronic device, including:
[0015] one or more processors;
[0016] Memory;
[0017] Multiple applications;
[0018] and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, which, when executed by the electronic device, cause the electronic device to perform the following steps:
[0019] Initiate face change detection, wherein the face change detection is to continuously detect whether the face in front of the display screen of the electronic device has changed during the current unlocking cycle, wherein the face change in front of the display screen of the electronic device specifically refers to that the current face in front of the display screen of the electronic device does not match the reference face;
[0020] Display the first icon corresponding to the first private picture in the gallery application;
[0021] In response to determining that the result of the face change detection is that the current face has changed, hiding the first icon corresponding to the first privacy picture.
[0022] In a third aspect, an embodiment of the present invention provides an electronic device, including:
[0023] one or more processors;
[0024] Memory;
[0025] Multiple applications;
[0026] and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, and when the instructions are executed by the electronic device, the electronic device performs the following steps: start face change detection, wherein the face change detection is to continuously detect whether the face in front of the display screen of the electronic device changes during the current unlocking cycle, wherein the face change in front of the display screen of the electronic device is specifically that the current face in front of the display screen of the electronic device does not match the reference face;
[0027] After starting face change detection, when the first display interface is displayed:
[0028] In response to receiving a new message from the first privacy application, and the result of the face change detection is that the current face has changed; not displaying the new message on the first display interface or displaying only a portion of the new message on the first display interface;
[0029] In response to receiving a new message from the first privacy application, and the result of the face change detection is that the current face has not changed, the new message is displayed on the first display interface.
[0030] In a fourth aspect, an embodiment of the present invention provides a privacy protection method for an electronic device, comprising:
[0031] Initiate face change detection, wherein the face change detection is to continuously detect whether the face in front of the display screen of the electronic device has changed during the current unlocking cycle, wherein the face change in front of the display screen of the electronic device specifically refers to that the current face in front of the display screen of the electronic device does not match the reference face;
[0032] After the face change detection is started, an operation of opening the first privacy application is detected;
[0033] In response to the operation and determining that the result of the face change detection is that the current face has not changed, displaying the first privacy content corresponding to the first privacy application;
[0034] In response to the operation and determining that the result of the face change detection is that the current face has changed, the first non-privacy content is displayed, and the first non-privacy content does not include the first privacy content.
[0035] In a fifth aspect, an embodiment of the present invention provides a privacy protection method for an electronic device, including:
[0036] Initiate face change detection, wherein the face change detection is to continuously detect whether the face in front of the display screen of the electronic device has changed during the current unlocking cycle, wherein the face change in front of the display screen of the electronic device specifically refers to that the current face in front of the display screen of the electronic device does not match the reference face;
[0037] Display the first icon corresponding to the first private picture in the gallery application;
[0038] In response to determining that the result of the face change detection is that the current face has changed, hiding the first icon corresponding to the first privacy picture.
[0039] In a sixth aspect, an embodiment of the present invention provides a privacy protection method for an electronic device, including:
[0040] Initiate face change detection, wherein the face change detection is to continuously detect whether the face in front of the display screen of the electronic device has changed during the current unlocking cycle, wherein the face change in front of the display screen of the electronic device specifically refers to that the current face in front of the display screen of the electronic device does not match the reference face;
[0041] After starting face change detection, when the first display interface is displayed:
[0042] In response to receiving a new message from the first privacy application, and the result of the face change detection is that the current face has changed; not displaying the new message on the first display interface or displaying only a portion of the new message on the first display interface;
[0043] In response to receiving a new message from the first privacy application, and the result of the face change detection is that the current face has not changed, the new message is displayed on the first display interface.
[0044] In a seventh aspect, an embodiment of the present invention provides a computer-readable storage medium, comprising instructions, which, when executed on an electronic device, enable the electronic device to execute the method described in any embodiment of the present invention.
[0045] In an eighth aspect, an embodiment of the present invention provides a computer program product comprising instructions, and when the computer program product runs on an electronic device, the electronic device executes the method described in any embodiment of the present invention.
[0046] In a sixth aspect, an embodiment of the present invention provides a chip comprising instructions, and when the instructions are executed on the chip, the chip executes the method described in any embodiment of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0048] Figure 2 is a schematic diagram of the structure of the hardware module 400 and the software module 500 of the camera 193 provided in an embodiment of the present application;
[0049] Figure 3 is a structural diagram of another electronic device in an embodiment of the present invention;
[0050] Figure 4 is a schematic diagram of a human face captured by the low-power camera 193A in an embodiment of the present invention;
[0051] Figure 5 A software structure block diagram of an electronic device provided in an embodiment of the present application;
[0052] Figure 6A-6D A schematic diagram of private content and non-private content of a photo album application in an embodiment of the present application;
[0053] Figure 7A-7B A schematic diagram of private content and non-private content of an instant messaging software in an embodiment of the present application;
[0054] Figure 8 Another schematic diagram of the non-private content of the photo album application in the embodiment of the present application;
[0055] Figure 9A-9B Two other schematic diagrams of non-private content of instant messaging software in the embodiments of the present application;
[0056] Figure 10A-10B A schematic diagram of private content and non-private content in a photo album in an embodiment of the present application;
[0057] Figure 11A-11B A schematic diagram of private content and non-private content in a chat interface in an embodiment of the present application;
[0058] Figure 12A-12B A schematic diagram of the non-private content and the private content of an incoming call in an embodiment of the present application;
[0059] Figure 13A-13B A schematic diagram of private content and non-private content on the home screen of an electronic device in an embodiment of the present application;
[0060] Figure 14-17 A schematic diagram of setting up a privacy application in an embodiment of the present application;
[0061] Fig.18 A schematic diagram of another method for setting a privacy application in an embodiment of the present application;
[0062] Figure 19A-19BA schematic diagram of another method for setting a privacy application in an embodiment of the present application;
[0063] Figures 20A-20D A schematic diagram of setting up a private photo album in an embodiment of the present application;
[0064] Figure 21A-Figure 21D A schematic diagram of setting a privacy picture in an embodiment of the present application;
[0065] Figure 22A-22B Another schematic diagram of setting a privacy picture in an embodiment of the present application;
[0066] Fig.23 This is a flow chart of performing face change detection in an embodiment of the present application;
[0067] Figure 24A-Figure 24D A schematic diagram of the result of face change detection in an embodiment of the present application;
[0068] Fig.25 This is a flowchart of a privacy protection method for an electronic device in an embodiment of the present application;
[0069] Figure 26A-Figure 26E Based on Fig.25 Privacy protection method of electronic device; interface change diagram of electronic device;
[0070] Fig. 27 A diagram showing changes in the interface of an electronic device when a person's face changes in an embodiment of the present application is shown;
[0071] Fig.28 The figure shows the interface change diagram of the electronic device in the embodiment of the present application when the face of the person does not change;
[0072] Fig.29 The interface diagram of the electronic device after the first privacy application is reopened in the embodiment of the present application is shown;
[0073] Fig.30 A flowchart of a privacy protection method for an electronic device in another embodiment of the present application;
[0074] Figure 31A-Figure 31F Shown based on Fig.30 Privacy protection method of electronic device; interface change diagram of electronic device;
[0075] Fig.32 A flowchart of a privacy protection method for an electronic device in another embodiment of the present application;
[0076] Figure 33A-Figure 33F Shown based on Fig.32 The privacy protection method of the electronic device shown is a diagram of the interface change of the electronic device;
[0077] Fig.34 Shown based on Fig.32 The privacy protection method of the electronic device shown shows the interface change diagram of the electronic device when the authorized user switches pictures;
[0078] Fig.35 Shown based on Fig.32 The privacy protection method of the electronic device shown shows the interface change of the electronic device when an unauthorized user switches pictures;
[0079] Fig.36 A flowchart of a privacy protection method for an electronic device in another embodiment of the present application;
[0080] Figure 37A-Figure 37D A schematic diagram of an application scenario for setting a hidden photo album provided in an embodiment of the present application;
[0081] Fig.38 A schematic diagram of a user interface provided in an embodiment of the present application;
[0082] Fig.39 A schematic diagram of another user interface provided in an embodiment of the present application;
[0083] Fig.40 A schematic diagram of another user interface provided in an embodiment of the present application;
[0084] Fig.41 A schematic diagram of a device privacy protection method for an electronic device provided in an embodiment of the present application;
[0085] Fig.42 A flowchart of another method for protecting privacy of an electronic device provided in an embodiment of the present application;
[0086] Fig.43 A flowchart of another method for protecting privacy of an electronic device provided in an embodiment of the present application;
[0087] Fig.44 In the application embodiment, based on Fig.43 The privacy protection method of the electronic device shown is a diagram of the interface change of the electronic device;
[0088] Fig.45 A flowchart of another privacy protection method for an electronic device provided in an embodiment of the application;
[0089] Figure 46A-46G Shown based on Fig.45 The privacy protection method of the electronic device shown is a diagram of the interface changes of the electronic device.
[0090] Fig.47 A schematic diagram of another user interface provided in an embodiment of the present application;
[0091] Fig.48 A schematic diagram of turning on a low-power camera provided in an embodiment of the present application. DETAILED DESCRIPTION
[0092] The technical solution in the embodiment of the present application will be described below in conjunction with the drawings in the embodiment of the present application. In the description of the embodiment of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0093] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
[0094] The following describes the application scenarios involved in the embodiments of the present application. The electronic device is equipped with a camera, a microphone, a global positioning system (GPS) chip, various sensors (such as magnetic field sensors, gravity sensors, gyroscope sensors, etc.) and other devices for sensing the external environment, user actions, etc. Based on the perceived external environment and user actions, the electronic device provides the user with a personalized, situational service experience. Among them, the camera can obtain rich and accurate information so that the electronic device can sense the external environment and user actions. The embodiment of the present application provides an electronic device, which can be implemented as any of the following devices containing a camera: a mobile phone, a tablet computer (pad), a portable game console, a personal digital assistant (PDA), a laptop computer, an ultra mobile personal computer (UMPC), a handheld computer, a netbook, a car-mounted media player, a wearable electronic device, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device and other digital display products.
[0095] Figure 1 It is a structural diagram of an electronic device 100 provided in an embodiment of the present application.
[0096] 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, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0097] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0098] The processor 110 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 memory, 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.
[0099] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0100] The processor 110 may also be provided with a memory for storing instructions and data.
[0101] 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.
[0102] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0103] The charging management module 140 is used to receive charging input from a charger, where the charger can be a wireless charger or a wired charger.
[0104] The power management module 141 is used to connect the battery 142, the charging management module 140 and 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, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.
[0105] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0106] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.
[0107] The mobile communication module 150 may provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc.
[0108] The modulation and demodulation processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is transmitted to the application processor.
[0109] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that electronic device 100 can communicate with the network and other devices through wireless communication technology.
[0110] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 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.
[0111] The display screen 194 is used to display images, videos, etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
[0112] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0113] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.
[0114] The camera 193 is used to capture static images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element is Figure 2The image sensitive unit array in the sensor 420 described. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1. The N cameras 193 may include Figure 3 The low power camera 193A and the front camera 193B are shown. Among them, the low power camera 193A can be Figure 3 The camera shown as visible on the front panel of the electronic device 100 can also be a camera under the screen. Similarly, the front camera 193B can be a camera visible on the front panel of the electronic device 100 or a camera under the screen.
[0115] The low-power camera 193A can be an infrared camera that outputs black and white images. The time interval for collecting images by the low-power camera 193A is higher than that of the ordinary front camera 193B, the color depth of the collected images is lower than that of the ordinary front camera 193B, and the resolution of the collected images is also lower than that of the ordinary front camera 193B. Therefore, the power consumption of the low-power camera 193A is lower than that of the ordinary front camera 193B. The low-power camera 193A is used to perceive the external environment and the user's actions. The front camera 193B can be used to collect faces for face recognition, thereby realizing unlocking, identity verification, application unlocking, etc. of the electronic device 100.
[0116] Exemplarily, the resolution of the low-power camera 193A is 100,000 pixels, usually not exceeding 1 million pixels. For example, the resolution of the image captured by the low-power camera 193A is 200×200 (i.e., the pixel value of each side of the captured image is 200), 640×480 (i.e., one side is 640 pixels and the other side is 480 pixels). The existing cameras often have a resolution of 10 million pixels for capturing images, so that the processing power consumption of the low-power camera 193A is much lower than that of the cameras in the prior art. The acquisition frequency of the low-power camera 193A is also much lower than that of the cameras in the prior art. For example, the acquisition frequency of the low-power camera is 5 to 15 frames per second, while the acquisition frequency of the ordinary camera is more than 30 frames per second, so that the acquisition energy consumption of the low-power camera is also greatly reduced. The acquisition energy consumption of the low-power camera 193A is only about 1 / 10 of that of the ordinary camera or the front camera 193B in the prior art.
[0117] The resolution of the image captured by the front camera 193B is 2560×1920, that is, the pixel value in the width direction of the captured image is 2560, and the pixel value in the height direction is 1920. The color depth of the image data output by the camera 100 sensor is 4 bits, and each pixel can output 16 levels (2 to the fourth power) of image data of white or one of the three primary colors (red, green, and blue). Of course, the relevant parameters of the front camera 193B (for example: resolution, color depth), etc. can also be configured to other values, which are not limited in the embodiment of the present invention.
[0118] The low-power camera 193A can capture images at a first frequency to determine whether the face contained in the image has changed. The first frequency can be, for example, but not limited to, 10 frames per second. The front camera 193B can capture images at a second frequency. The second frequency is higher than the first frequency, and the second frequency can be, for example, but not limited to, 30 frames per second. In other words, the time interval for the low-power camera 193A to capture images is greater than the time interval for the front camera 193B to capture images.
[0119] See also Figure 4 , Figure 4 1 is a schematic diagram of an image captured by the low-power camera 193A provided in an embodiment of the present application. Figure 4 As shown, since the low-power camera 193A has a low color depth and the captured image has a low resolution, the face captured by the low-power camera can only recognize the face 1200 after image recognition, and distinguish between a round face, an oval face or a square face. Optionally, facial features with large differences can also be distinguished, such as thick eyebrows and light eyebrows, big eyes and small eyes. However, the electronic device 100 cannot distinguish detailed features, such as whether there are double eyelids, after image recognition.
[0120] Optionally, the electronic device 100 cannot identify the environment 1300 after image recognition, or can only determine whether the environment 1300 is indoors or outdoors.
[0121] Compared with the front camera 193B, the low-power camera 193A has a low color depth and the image-sensitive unit array on the low-power camera 193A makes the captured image have a low resolution and carry less information. Compared with the image captured by the front camera 193B, which has rich information, using the low-power camera 193A to capture images for face change detection can reduce the damage caused by the leakage of user information, improve the security of user information, and ensure real-time tracking, thereby improving the security of privacy protection.
[0122] In order to perceive the external environment and the user's actions, the low-power camera 193A can be always on when the electronic device 100 is turned on. Among them, the low-power camera 193A is always on means that when the electronic device 100 is turned on and working, the camera 193A is always in a working state without being called, and can collect image data. The electronic device 100 can perform image recognition based on the collected image data. The display screen of the electronic device 100 can be in a screen-off state or a screen-on state when it is turned on. Specifically, after the electronic device 100 is turned on and in the screen-off state, the electronic device 100 can still receive messages (such as instant application messages), and can also perform functions such as positioning and step counting. At this time, the camera 193A that is always on in the electronic device 100 is also in a working state to collect image data. The electronic device 100 can perform image recognition based on the collected image data, so that the electronic device 100 perceives the external environment, the user's actions, etc. After the electronic device 100 is turned on and in the screen-on state, the low-power camera 193A is similarly in a working state to collect image data. When the electronic device 100 is turned on and the screen is on, the low-power camera 193A can be turned on when the electronic device 100 opens a privacy application, and then it is in working state to collect image data. A privacy application refers to an application that has no restrictions on the permissions of authorized users (the owner or a person authorized by the owner), but cannot be used by unauthorized users or has limited permissions.
[0123] Generally, private applications may be, for example, photo albums, contacts, text messages, instant messaging software, payment software, etc. Users may set up private picture folders (which may store pictures or videos) in photo albums, set up private contacts in contacts, and set up payment software as private applications, etc. The electronic device 100 may display private content after detecting that the current user is an authorized user, and may not display private content after detecting that the current user is not an authorized user.
[0124] The concepts involved in the embodiments of the present application are introduced below.
[0125] (1) Resolution
[0126] For cameras with the same focal length, the more pixels a camera has, the more details it outputs, and the clearer the image. Image resolution can be expressed as the number of pixels in each direction. For example, a resolution of 640×480 means that the number of pixels in the width direction of the image captured by the camera is 640, and the number of pixels in the height direction is 480, which can be captured by a camera with 307,200 pixels (about 300,000 pixels). For another example, an image with a resolution of 1600×1200 can be captured by a camera with 1,920,000 pixels.
[0127] In the embodiment of the present application, the resolution of the image captured by the camera is determined by the number of image-sensitive units in the image-sensitive unit array in the camera. For a description of the image-sensitive unit array, please refer to Figure 2 The described example is introduced. For example, if the image sensitive unit array of the camera is a 128×96 array, the resolution of the image captured by the camera is 128×96.
[0128] (2) Color depth
[0129] Color depth is also called the number of color bits. It is measured in binary bits and represents the number of recorded tones. An image with a greater color depth has a larger color range, and the image can more finely restore the details of the bright and dark parts of each color in the real scene. For example, an image with a color depth of 24 bits can theoretically represent 16777216 (2 to the 24th power) colors.
[0130] Image data with a certain color depth is calculated by using a de-mosaicing algorithm using image data of another color depth output by the camera sensor. The color depth of the image data output by the camera sensor determines the color depth of the image. Generally, the image data output by the camera sensor has a color depth of at least 8 bits, that is, white or one of the three primary colors (red, green, and blue) is divided into (2 to the 8th power) 256 different levels. Therefore, the greater the color depth of the image data output by the camera sensor, the greater the color depth of the captured image, the more realistically the image can restore the color, and the more information about the object being photographed is carried by the image.
[0131] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0132] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0133] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as: image recognition, face recognition, speech recognition, text understanding, etc. For example, the face detection example, face recognition example, gesture detection example and environment detection example in the embodiment of this application are realized.
[0134] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.
[0135] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. In addition, the internal memory 121 may include a high-speed random access memory and may also include a non-volatile memory.
[0136] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0137] The audio module 170 is used to convert digital audio information into analog audio signal output, and also used to convert analog audio input into digital audio signal. The audio module 170 can also be used to encode and decode audio signals.
[0138] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.
[0139] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.
[0140] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals.
[0141] The earphone jack 170D is used to connect a wired earphone.
[0142] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be disposed on the display screen 194 .
[0143] The gyro sensor 180B may be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (ie, x, y, and z axes) may be determined by the gyro sensor 180B.
[0144] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
[0145] The magnetic sensor 180D includes a Hall sensor, and the electronic device 100 can detect the opening and closing of the flip leather case by using the magnetic sensor 180D.
[0146] The acceleration sensor 180E can detect the magnitude of acceleration in various directions (generally three axes) of the electronic device 100. When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected.
[0147] The distance sensor 180F is used to measure the distance.
[0148] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector such as a photodiode.
[0149] The ambient light sensor 180L is used to sense the brightness of ambient light.
[0150] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
[0151] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy.
[0152] The touch sensor 180K is also called a “touch panel.” The touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen.”
[0153] The bone conduction sensor 180M can obtain a vibration signal. In some embodiments, the bone conduction sensor 180M can obtain a vibration signal of a vibrating bone block of a human vocal part.
[0154] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
[0155] Motor 191 can generate vibration prompts.
[0156] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power changes, messages, missed calls, notifications, etc.
[0157] The SIM card interface 195 is used to connect a SIM card.
[0158] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present invention, the Android system of the layered architecture is taken as an example to exemplify the software structure of the electronic device 100.
[0159] Figure 5 1 is a software structure block diagram of the electronic device 100 according to an embodiment of the present invention.
[0160] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
[0161] The application layer can include a series of application packages and an AI (Artificial intelligence) integrated management engine. Figure 5 As shown, the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.
[0162] The AI comprehensive management engine is not suitable for directly exposing functions with high security performance to upper-layer applications and third-party applications. In this case, the AI comprehensive management engine directly provides the capabilities of these functions to upper-layer references and third-party applications. The AI comprehensive management engine will make comprehensive judgments on the results of other AIs, such as sensing and user portraits, to achieve the purpose of identifying more intelligent scenarios.
[0163] In some embodiments, the above-mentioned AI integrated management engine may not be required, and the corresponding functions can be directly provided to upper-level applications and third-party applications, which is not limited by the embodiments of the present invention.
[0164] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0165] like Figure 5 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, an AI client, and the like.
[0166] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0167] Content providers are used to store and retrieve data and make it accessible to applications. The above data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0168] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0169] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).
[0170] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0171] The notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in the status bar, a prompt sound is emitted, the electronic device 100 vibrates, an indicator light flashes, etc.
[0172] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
[0173] AI client, through which the AI comprehensive management engine and the AI server of the system library are connected.
[0174] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
[0175] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0176] The system library can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), AI server, etc.
[0177] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0178] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0179] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0180] A 2D graphics engine is a drawing engine for 2D drawings.
[0181] The AI server is used to comprehensively manage AI functions, including algorithm registration, result callback, signature encryption verification of algorithm models, etc. The algorithm model can be signed and encrypted through the AI server. Only trusted algorithm models can be sent to the corresponding execution module for execution.
[0182] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, sensor driver, and AI interface channel.
[0183] The AI interface channel is used to transmit the control commands and algorithm results of face change detection. The specific implementation can be to implement the HIDL interface at the kernel layer. The AI server transmits the control commands and data of face change detection through the HIDL (HAL interface definition language: hardware abstraction layer interface definition language) interface.
[0184] The image signal processor is used to control the camera to collect image data and process it.
[0185] The processing subsystem is used to run a face change detection algorithm based on the image data obtained by the image signal processor, and send the face change detection result to the AI integrated management engine.
[0186] The following is an illustrative description of the workflow of the software and hardware of the electronic device 100 in conjunction with the face change detection scenario.
[0187] When the upper-layer application needs to call the face change detection algorithm, the AI integrated management engine is informed that the face change detection algorithm is needed. The AI integrated management engine sends the demand to the AI server through the AI client; after the AI server learns of the demand, it determines that the electronic device 100 has the face change detection function; the demand is sent to the processing subsystem through the AI interface channel, the processing subsystem starts the face change detection algorithm, notifies the image signal processor to control the camera to collect images, and after obtaining the image collected by the camera, the processing subsystem performs face change detection and sends the face change detection result to the AI server through the AI interface channel, wherein the face recognition result sent by the processing subsystem to the AI server is a non-plaintext data byte, which is converted by the AI server into a string and sent to the AI integrated management engine through the AI client, and the AI integrated management engine sends the face change detection result to the corresponding upper-layer application. After the face change detection algorithm is turned on, it is always in the on state within an unlock cycle, and the upper-layer application can call the tracking result of the face change detection algorithm at any time.
[0188] Among them, the camera used for the above-mentioned face change detection can be a front camera 193B or a low-power camera 193A.
[0189] Optionally, the processing subsystem, image signal processor, and camera can be independent of the operating system of the electronic device 100, so that when the electronic device 100 is in a dormant state, the processing subsystem, image signal processor, and camera are still in a working state to detect face changes, so as to save energy consumption of the electronic device 100 while performing face change detection in real time. In this case, the camera is, for example, a low-power camera 193A, the image signal processor is used to control the low-power camera 193A to collect images, and the processing subsystem is used to detect face changes based on the image data collected by the low-power camera 193A. Before introducing the privacy protection method introduced in the embodiment of the present invention, the privacy content and non-privacy content of the embodiment of the present invention are first introduced.
[0190] (1) Private content and non-private content of privacy applications.
[0191] ① For a privacy application, its private content may be, for example, the homepage of the privacy application, and its non-private content may be, for example, other content that has nothing to do with the homepage. For example, the non-private content may be a login interface of the privacy application, and login is required to access the privacy application; the non-private content may also be an identity authentication interface, which requires the user to pass identity authentication before access. The identity authentication interface may provide a variety of authentication methods for the user to choose from, such as fingerprint, password, face recognition, iris recognition and other identity authentication methods. After the user selects one of the identity authentication methods, the entrance to the identity authentication is displayed; the non-private content may also be a prompt interface that prompts the user that he does not have permission to use the privacy application; the non-private content may also be the content after the homepage of the privacy application is mosaicked; the non-private content may also be other content that is completely unrelated to the homepage of the privacy application, which is not listed in detail in the embodiments of the present invention and is not limited.
[0192] Take the privacy application as an example, the privacy content is as follows: Fig. 6A The album homepage shown in the figure contains four album icons, namely: an icon of the film album 60, an icon of the people album 61, an icon of the food album 62, and an icon of the landscape album 63. These albums can store both pictures and videos. Its non-privacy content is, for example: Figure 6B The prompt information shown is used to prompt the user that he does not have permission to access the album; or, its non-private content is, for example: Figure 6C The identity verification interface shown is used to prompt the user that face verification is being performed on the user, and if face verification fails, prompt the user to choose other methods, such as fingerprint verification, password verification, etc.; or, its non-privacy content is, for example: Fig.6D The authentication interface shown provides a variety of authentication methods for users to choose from. After the user selects an authentication method, the user is verified through this authentication method. The content of the homepage of the album application can also be replaced by completely different other files (albums or pictures). The files used for replacement can be one or more files that are system default or user-set and are specifically provided to unauthorized users for viewing, rather than the albums or pictures actually contained in the album application.
[0193] Taking the privacy application as an instant messaging software as an example, its privacy content is as follows Fig. 7AThe home page of the instant messaging software shown in the figure includes: a message browsing page 70 and a menu 71. Among them, the menu 71 includes a message control, a mailbox control, an address book control, a business control and a knowledge control. Among them, the message control is used to trigger the electronic device 100 to display the message browsing page 70, the mailbox control can be used to trigger the electronic device 100 to display the mailbox interface, the address book control can be used to trigger the electronic device 100 to display one or more contacts, the business control can be used to trigger the electronic device 100 to display some other functions of the instant messaging software, such as: network space, customer service, voting, etc., and the knowledge control is used to trigger the electronic device 100 to display some related articles. The message browsing page 70 includes one or more message options, for example: chat record 700 with contact Andy (Andy No. 1), chat record 701 with contact tomorrow, chat record 702 with Andy (Andy No. 2), chat record 703 with Kate, and chat record 704 with MAC, including two private chat records, namely chat record 702 with contact Andy (Andy No. 2) and chat record 704 with contact MAC. A privacy icon 706 is also provided on these two private chat records to remind the user that these two chat records are private chat records. Of course, the privacy icon 706 can be of any shape and displayed at any position of the corresponding private chat record, or the privacy icon 706 can be hidden, which is not limited in the embodiment of the present invention. When an unauthorized user uses the electronic device 100, the user can log out of the login account of the instant messaging software and display the following information: Figure 7B The login interface 1306 shown; or, other content may be overlaid on the homepage of the instant messaging software; an identity authentication interface may be displayed to prompt the user to pass the identity authentication before accessing the instant messaging software, etc. The embodiments of the present invention will not be listed in detail and are not limited thereto.
[0194] ② For privacy applications, the privacy content includes, for example, the preset content of the homepage of the privacy application program, and the non-privacy content includes, for example, other content other than the preset content hidden on the homepage of the privacy application.
[0195] For example, the preset content can be content with preset attributes or specific content set by the user. Preset attributes include, for example, password, account number, amount, ID photo (for example, bank number, ID card, etc.), etc.; specific content set by the user includes, for example, specific pictures, specific articles, specific chat records, specific recordings, specific contacts, etc. set by the user. Among them, the private content on the homepage of the private content can be blurred to obtain non-private content, or the private content on the homepage can be directly hidden to obtain non-private content, which is not limited in the embodiments of the present invention. Among them, the account number, password, and number can be masked, blurred, and filled; photos or pictures can be skipped and the next non-private picture can be directly displayed; for other content or specific types of content or content containing specific keywords / symbols, a specific preset interface (such as: identity authentication interface, prompt interface for no access rights, etc.) can be displayed, etc.
[0196] Take the privacy application as an album application as an example, please continue to refer to Fig. 6A , the four albums displayed in the album interface include two private albums, namely: camera roll album 60 and person album 61. A privacy icon 65 is set on the icon of camera roll album 60 and the icon of person album 61 respectively to prompt that the album is a private album. The privacy icon 65 can be set at any position of the album icon and can be any shape. The privacy icon can be displayed or hidden. The private content of the album application includes: camera roll album 60 and person album 61 (which can be the icon of the album, or the specific picture or video contained in the album); and the non-private content is the other content of the camera roll album 60 and the person album 61 hidden on the homepage of the album application, such as Figure 8 As shown; the privacy album 60 and the privacy album 61 may also be blurred, and the privacy album 60 and the privacy album 61 may also be replaced by other albums, which are not listed in detail in the embodiments of the present invention and are not limited thereto.
[0197] Taking the privacy application as instant messaging software as an example, please continue to refer to Fig. 7A , privacy content includes, for example, Fig. 7A The chat record 702 with the contact Andy and the chat record 704 with the contact MAC are shown. Among them, the non-private content can be the remaining content after hiding these two private chat records, such as Fig. 9A As shown, the blank area after hiding the original private chat record is replaced by two non-private information 707 and 708; or, the private chat record can be blurred (for example, mosaic), such as Fig. 9B As shown, etc.
[0198] Privacy applications can also include: browsers, payment software, various chat software, social software, etc.
[0199] (2) The private content is a file or folder contained in the application, or is a preset content contained in the application. The private content may be an index of a file, folder or preset content (e.g., an icon, an entry, etc.), or may be specific content contained in a specific file or folder, or the preset content itself, which is not limited in the embodiments of the present invention.
[0200] That is, users can access the application, but cannot view the preset content, files or folders in the application. This solution can protect part of the content of the application.
[0201] Taking the photo album application as an example, its private content may include: the icon of the private picture folder and the private picture icon, and the non-private content may include: the icon of the non-private picture folder and the icon of the non-private picture. The private content may also include: the specific pictures contained in the private picture folder, the private picture itself, etc.
[0202] Or Fig. 6A Take the main interface of the album application as an example, its private content is, for example, the icon of the camera roll album 60 (private picture folder) and the icon of the people album 61, and the non-private content is, for example, the icon of the food album 62 and the icon of the landscape album 63. When an authorized user accesses the album application, the icons of all the albums contained in the album application homepage can be seen, and when an unauthorized user accesses the album application, only the icons of the non-private albums can be seen. Or, if the non-private content is a specific picture or specific content contained in a folder, when an unauthorized user accesses the album application, the electronic device 100 can display the icon of the private album, but the user cannot access the specific album corresponding to the icon. When the user's operation of accessing the private album is detected, the thumbnails of the pictures contained in the private album are not displayed, but other contents are displayed, such as: verification interface, authorization interface, default icons of other pictures used to hide private pictures, etc.
[0203] For another example, the electronic device 100 detects that the user turns on Fig. 6A If an operation is performed on the friend album 62 in the album list shown (for example, clicking on the friend album icon, generating a specific gesture, voice command, etc.), the friend album is displayed, such as Fig. 10AAs shown in the figure, the friend's album contains 5 pictures, of which there are 3 private pictures (private content), namely: picture 100, picture 101, picture 102. A privacy icon 103 is set in the upper right corner of these three pictures to remind the user that these three pictures are private pictures. Of course, the privacy icon 103 can be set at any position of the corresponding picture, can be any shape, or can not be displayed. Then the corresponding non-private content is the remaining icons after removing the icons of the three private pictures from the icons of the five pictures, such as Fig. 10B Alternatively, the icons of the three privacy pictures may be blurred, or the icons of the three privacy pictures may be replaced with icons of other non-privacy pictures (such as system default settings, user settings, etc.), or, although the icons of the three privacy pictures are displayed, the user cannot view the corresponding privacy pictures through the corresponding icons, and when the user opens the privacy picture, the identity authentication interface, the next non-privacy picture, other pictures used to hide the privacy pictures by default, etc. may be displayed.
[0204] The pictures and albums can be pictures and albums stored locally, for example: pictures and albums contained in the album application, albums used to store pictures in other applications, and pictures stored in the album; albums and pictures stored in the local folder directory, etc.; the pictures and albums can also be pictures and albums stored in a network disk, such as: Baidu Netdisk, WeCloud Netdisk, etc.
[0205] Taking the privacy application as instant messaging software as an example, the privacy content includes: relevant data of privacy contacts (communication records with privacy contacts, all records related to privacy contacts, etc.), specific data (for example: chat records or other content involving account numbers, passwords, ID photos, etc.), specific interfaces (for example: payment interface), contact lists, other content manually set by the user (for example: a certain chat content, a certain picture, a certain voice, etc.), etc.
[0206] When an authorized user accesses the instant messaging software, all contents of the homepage of the instant messaging software are displayed, such as Fig. 9A As shown, if an unauthorized user accesses, only non-private content is displayed. For example: the chat history with the private contact may not be displayed at all in the message browsing interface 70, and the private contact may not be displayed in the address book, etc., so that the unauthorized user cannot be aware that the instant messaging software contains the private contact; or when the electronic device 100 detects the operation of opening the dialogue interface with the private contact, the dialogue interface is not displayed (a fake dialogue interface may be displayed, an identity verification prompt, an authorization prompt, a prompt of no access rights, etc.), or the dialogue interface is displayed but there is no chat content (such as Fig.11AAs shown, when an authorized user accesses, the electronic device 100 displays Fig. 11B As shown), or although there is a dialogue interface, the dialogue content containing specific keywords is hidden, or the dialogue interface replaces the chat interface with the private contact with other default dialogues (system settings or user settings), etc. The embodiments of the present invention are not listed in detail and are not limited.
[0207] Taking the application for incoming calls as an example, its privacy content can include the contact information of the incoming call. When the authorized user uses it, the contact information will be displayed when receiving an incoming call, such as Fig. 12A When used by unauthorized users, when receiving an incoming call, the contact information will be hidden, for example: the contact name will be replaced with the words "Incoming call", and the contact avatar will be replaced with the default avatar, such as Fig. 12B Of course, private content can also be hidden in other ways, which will not be listed in detail in the embodiment of the present invention.
[0208] Privacy content may also include: pictures, videos, contacts, short messages, photos, call logs, browser privacy access records, etc.
[0209] (3) Private and non-private content on the display interface of electronic devices.
[0210] The privacy content includes, for example: the icon of the privacy application displayed on the screen interface of the electronic device 100 (for example: the first screen, the negative first screen), the privacy message displayed on the screen interface, etc.
[0211] For example, the electronic device 100 includes three privacy applications, namely: Music 130, Huawei Video 131, and Wilink 132. Fig.13A , the icons of these three applications are displayed on the home screen (privacy content) of the electronic device 100, and a privacy label 133 may also be displayed in the upper right corner of the icons of these three applications. In other embodiments, the privacy label may not be displayed, and some non-privacy application icons are also displayed on the home screen, such as: the icon of the mobile phone manager, the icon of the Huawei Mall, the icon of the application market, etc., then when an unauthorized user accesses, the home screen of the electronic device 100 may hide the icons of these three privacy applications, so as to display the following: Fig. 13B The non-privacy content shown. Of course, the three icons may also be blurred, which is not limited in the embodiment of the present invention.
[0212] For example, when an authorized user accesses the device, the negative first screen displays various privacy notifications (such as text message notifications, instant messaging software notifications, game notifications, etc.); when a non-owner accesses the device, the negative first screen does not display various privacy notifications. Privacy notifications are private content. Privacy notifications can be notifications received by private applications, or they can contain notifications with preset content (such as account numbers, passwords, bank card numbers, special chat content, etc.).
[0213] In addition, private content may also include: relevant information corresponding to a private contact, such as: entries in the address book corresponding to the private contact, short messages, photos, call records, incoming calls, videos, files, etc. The private contact can be associated with multiple applications, for example: a contact is simultaneously associated with the address book, incoming calls, short messages, other instant messaging information, etc. In this case, the relevant information corresponding to the private contact in these applications is all private information.
[0214] In the specific implementation process, when an unauthorized user uses the electronic device 100, in addition to hiding the privacy content from him, he can also be restricted from using some other functions of the electronic device 100. Two of them are listed below for introduction. Of course, in the specific implementation process, it is not limited to the following two situations.
[0215] (1) Limit the use of preset system functions to unauthorized users.
[0216] The preset system functions include, for example, setting and modifying the activation password, adjusting the volume, installing applications, various notifications, etc. The setting interface of the preset system function may be private content, and when used by an authorized user, it may be displayed on the display screen of the electronic device 100; when used by an unauthorized user, the setting interface is not displayed; or, when used by an authorized user, the system function setting interface may display the setting entrances of all functions, and when used by an unauthorized user, the system function setting interface hides the setting entrance of the preset system function, or changes the color of the setting entrance to indicate that it is in a non-settable operation (for example, adjusted to gray), etc.
[0217] (2) Limit the use of some functions of privacy applications to unauthorized users.
[0218] The preset functions include, for example: forwarding function, editing function, deleting function, taking photo function, etc., thereby granting unauthorized users the authority to browse the privacy application program, while restricting other functions thereof.
[0219] Take the privacy application as an album application as an example. When used by unauthorized users, users can browse the gallery and pictures, but cannot delete pictures, beautify pictures, forward pictures to other users through instant messaging software, etc.; take the privacy application as instant messaging software as an example. When used by authorized users, users can browse chat records, send messages to contacts, edit the content of Moments, use payment functions, etc.; when used by non-unauthorized users, users can only browse chat records, but cannot send messages, use payment functions, etc. Therefore, in the authorized user system, these functions are in a displayed state, while in the non-owner state, these functions are in a hidden state or displayed but cannot be edited, etc.
[0220] In another embodiment, the layout of the same interface is different when used by an authorized user and an unauthorized user. For example, when used by an authorized user, the negative first screen uses the first layout, and when used by an unauthorized user, the negative first screen uses the second layout. The first layout and the second layout differ in at least one of the icon arrangement, color, and displayed content. The layout used by the authorized user can be a special layout adapted to the characteristics of the authorized user, while the layout used by the unauthorized user is a general layout.
[0221] In the specific implementation process, the aforementioned privacy content, privacy applications, preset system functions, and application functions restricted from use by unauthorized users may be set by the user or by system default settings, and the embodiments of the present invention do not impose any restrictions thereon.
[0222] For example, the system can set some functions with higher security requirements, such as payment, instant messaging, password setting and modification, etc., as privacy functions by default, thereby providing different display content for authorized users and unauthorized users, or providing users with different permissions.
[0223] Taking the privacy application as an album application (or the privacy content is: pictures contained in the album application) as an example, the electronic device 100 can automatically identify (or send the picture to the server for identification by the server) the sensitive content contained in the picture, and set a privacy label for the picture containing sensitive content. Sensitive content includes, for example: pictures of documents (for example: identity card, driver's license, bank card, etc.), screenshots of chat records containing private content (such as: account number, password, etc.), etc., thereby setting these contents as private content.
[0224] Taking the privacy application as instant messaging software (or the privacy content is the preset content contained in the instant messaging software) as an example, the electronic device 100 (or the server) can set a privacy label for a specific contact in the instant messaging software. The electronic device 100 (or the server) detects that the owner always deletes the chat history after chatting with a contact, and sets a privacy label for the contact; the user (or the server) can also set specific data of the instant messaging software as private content, and the specific data includes, for example: chat content involving account numbers and passwords, transfer information, payment information, etc.
[0225] The following specifically introduces several ways for users to set privacy functions. Of course, in the specific real-time process, it is not limited to the following situations, and the following situations can be used in combination without conflict.
[0226] (1) Set up privacy applications.
[0227] For example, please refer to Fig.14 A privacy screen interface 1401 may be provided on the desktop of the electronic device 100. After the electronic device 100 is unlocked, the electronic device 100 displays the home screen. The owner slides the screen to the left until all desktop icons are displayed, and then slides to the privacy screen interface 140. There is an add icon 141 on the privacy screen interface 140. When the user wants to add a privacy protection program, the user clicks the add icon 141. After the electronic device detects the click of the add icon 141, as shown in FIG. Fig.15 As shown, a selection interface 142 is displayed, which displays icons of multiple applications. If the user wants to add music, Huawei video, and Welink as privacy applications, the user selects the music icon 130, Huawei video icon 131, and Welink icon 132 and performs a confirmation operation (clicking the "√" in the upper right corner). After the electronic device detects the confirmation operation, the icons of these three applications are added to the privacy screen interface 140, as shown in FIG. Fig.16 As shown, the three applications are added as private applications. In this case, the desktop of the electronic device 100 may still display the icons of the three applications, or may not display the icons of the three applications, which is not limited in the present embodiment. Optionally, when the user selects the application icon, the display screen may also indicate the number of the currently selected applications, for example, Fig.15 ③ is selected as shown.
[0228] Optionally, after detecting that the user clicks the add icon 141, the electronic device may also determine whether the user is adding a privacy application for the first time. If so, the electronic device may further determine whether the user is adding a privacy application for the first time. Fig.15 Before the selection interface shown, a face entry interface may be popped up first (such as Fig.17As shown), the user is prompted to enter the preset face as the basis for face recognition through the face entry interface. After the preset face is successfully entered, the following is displayed: Fig.15 The selection interface shown is for the user to select. Of course, in the specific implementation process, the preset face can also be entered in other ways, which is not limited by the embodiment of the present invention. Alternatively, the privacy screen directly uses the face entered by face unlocking as the preset face, and verifies the user's identity through face recognition every time the user visits.
[0229] Or, if Fig.18 As shown, a privacy folder (disabled folder 150, read-only folder 151) for placing icons of privacy applications can be provided on the application list interface. The user drags the icon of the application to the privacy folder through a drag operation. The electronic device 100 responds to the drag operation and sets the application corresponding to the drag operation as a privacy application. Optionally, multiple privacy folders can be set, such as Fig.18 The disabled folder 150 and read-only folder 151 shown in the figure have different usage permissions for unauthorized users of privacy applications in privacy folders; for example, the privacy application in the disabled folder 150 cannot be operated without authorization. When it is detected that the privacy application contained in the disabled folder 150 is opened, the electronic device 100 directly prompts the user that the application cannot be used, or displays an authorization interface, or displays a verification interface, etc., or when an unauthorized user uses the electronic device 100, the disabled folder 150 can be directly hidden; the privacy application in the read-only folder 151 can be browsed by unauthorized users. Part of the content of the privacy application, so that when the operation of opening the privacy application in the read-only folder 151 is detected, the electronic device 100 will display part or all of the content of the application, so that the user can view it, but cannot edit it. Taking the application as instant messaging software as an example, the user can view information, contacts, etc., but cannot send information, make payments, post to Moments, etc.
[0230] Alternatively, an application lock button is added to the setting interface of the electronic device 100, and after detecting the operation of clicking the application lock button, such as Fig.19A As shown, jump to the selection interface 190 of all applications, add application locks to the applications corresponding to the user's selection operation, etc. These applications with added application locks are privacy applications, etc., and this embodiment of the application does not limit this.
[0231] Optionally, the application lock interface 190 also has a setting button 191. When a user triggers the setting button 191 (eg, clicks the button), the following information is displayed: Fig.19B The settings interface shown in the figure can set the authentication method for accessing the privacy application ( Fig.19B The password type shown in the figure) includes, for example, face recognition, fingerprint recognition, password recognition, etc. The setting interface also allows the user to set whether the convenience mode is turned on. When the convenience mode is turned off, the user needs to authenticate his identity (for example, face recognition) when he first starts a privacy application within an unlocking cycle. When the convenience mode is turned on, the user can directly determine whether the current user is an authorized user based on whether the face changes, without the need for identity authentication.
[0232] (2) Setting a private folder or private file in an application. For example, when setting a photo album or picture in a photo album application, user A starts the photo album application, and the electronic device 100 displays the following information: Fig. 20A The album homepage 20 shown includes an album display area 200 and a function menu area 201. The album display area 200 displays all the albums included in the album application, including the camera roll album 60, the character album 61, the friend album 62, and the landscape album 63; the function menu area 162 includes four function controls, namely: "Photo" menu control, "Album" menu control, "Moment" menu control, and "Discover" menu control.
[0233] The user clicks the selection button 202 in the upper right corner. After the electronic device 100 detects the user's operation of clicking the selection button 202, the following is displayed: Fig. 20B The selection interface shown in FIG. 1 has a privacy protection button 163 at the bottom of the selection interface. If the user wants to set the camera roll album and the person album as private content, the user selects the camera roll album and the person album, and then clicks the privacy protection button 203 at the bottom. After the electronic device 100 detects the operation, the two albums can be directly set as private content. Furthermore, a privacy icon 204 can be set for the two albums, such as Fig. 20C Optionally, when setting a privacy album, you can further set a protection method. For example, when the electronic device 100 detects that the user clicks the privacy protection icon 203, it jumps to the following Fig.20DThe privacy protection mode setting interface 205 shown in the figure has three buttons, namely: a hide button 2051, a browse only button 2052, and a no forwarding button 2053. The user selects the privacy protection mode of the album by triggering the corresponding button (for example, clicking the corresponding button). For example, if the user clicks the hide button, the electronic device 100 detects the user's operation and sets the privacy protection mode for the corresponding album as follows: unauthorized users cannot view this part of the content. If the user clicks the browse only button, the electronic device 100 detects the user's operation and sets the privacy protection mode for the corresponding album as follows: unauthorized users cannot view this part of the content. Authorized users can browse this part of the content, but cannot operate it. Therefore, in the unauthorized user state, the album application displays these albums and the pictures contained therein, but does not display the corresponding edit button (that is, the edit button can be identified as private content), or the edit button is disabled (for example, displayed in gray); if the user clicks the forbidden forwarding button, the electronic device 100 sets the privacy protection function for the corresponding album after detecting the user's operation: prohibit forwarding to other devices, so that when the unauthorized user opens the corresponding album or the pictures contained in the album, the album application hides the forwarding button, or the forwarding button is disabled, etc. Optionally, a prompt message can also be displayed next to each button to prompt the user that after setting this function for the album, the unauthorized user has specific permissions to view the corresponding album.
[0234] Similar settings may be used for pictures, other folders, and other files in the electronic device 100 , which will not be listed in detail in the embodiment of the present invention, and are not limited thereto.
[0235] Optionally, the user can also set a privacy label for the picture and extend the label to all pictures containing the person in the picture, and the electronic device 100 displays the privacy label as shown in the figure. Fig. 20A After the album list is shown, the user opens the friend album (for example, clicks the friend album icon 60), and the following is displayed: Fig.21A The picture list shown in FIG. 21 includes 5 pictures. The user wants to hide all pictures of the person in picture 210 and clicks on the selection button 211. The electronic device 100 detects the user's operation of clicking on the selection button 211 and displays the following Fig. 21B In the selection interface shown in FIG. 1 , the user selects the picture 210 and then clicks the privacy setting button 212 at the bottom. After the electronic device 100 detects the operation, it jumps to the following Fig. 21CThe privacy setting interface 213 shown in the figure includes two buttons, namely: a set privacy tag button 2131 and an apply the privacy tag to all pictures containing the person in the picture button 2132. The privacy tag button 2131 is used to set a privacy tag for the picture selected by the user. For example, when the electronic device 100 detects that the user clicks the set privacy tag button 2131, a privacy tag is set for the picture 2131, thereby setting the picture 210 as private content. If the electronic device 100 detects that the user selects the apply the privacy tag to all pictures containing the person in the picture button 2132, in addition to setting a privacy tag for the picture 210, the electronic device 100 also identifies the pictures contained in the album application (optionally, pictures in other applications), thereby determining all pictures containing the person in the picture 210, and setting privacy tags for these pictures. Among them, the privacy tag can be set only for the pictures in the current album that contain the same person as the selected picture (210), or the privacy tag can be extended to the entire album application, or it can be further extended to the pictures contained in other applications. Assume that the electronic device 100 detects that the user clicks the button 2132 for applying the privacy label to all pictures containing the person in the picture, and matches all the pictures in the album with the picture 210. Assume that the people in the pictures 214 and 215 are the same as the people in the picture 210 in the friend's album. In addition to setting a privacy label for the picture 210, privacy labels are also set for the pictures 214 and 215, so that these pictures are all set as private pictures. Optionally, privacy icons 216 can also be set for these private pictures. After setting the privacy icons 216, the friend's album is as follows: Fig.21D As shown, of course, in other albums (such as camera roll albums, landscape albums), there may also be pictures containing the same person as picture 210. In this case, privacy labels are also set for the relevant pictures in the camera roll albums and landscape albums. The above scheme can improve the efficiency of setting private pictures and prevent omissions of manual settings by users. The scheme can also be applied to other folders, other files, system functions, etc., and the embodiments of the present invention are not limited. In addition, after setting the privacy label, a privacy icon 216 can also be set for the corresponding private picture to prompt the user that the picture is a private picture.
[0236] In another embodiment, after the electronic device 100 detects that the user is viewing a certain picture, the following Fig.22AThe picture display interface shown in the figure includes: a picture display area 221, a top function menu area 220 and a bottom function menu area 222. The picture display area 221 is used to display the picture currently browsed by the user; the top function menu area 220 includes a return to the previous menu control 2201 and a display all picture control 2202; the bottom function menu area 222 includes an operation button 2221, a favorite button 2222, an edit button 2223 and a delete button 2224. When the user clicks the operation button 2221, the electronic device 100 detects the operation and displays the following Fig. 22B In the operation interface shown, when the electronic device detects that the user clicks the hide button 230, the image is set as a private image.
[0237] The preset system functions of the electronic device 100 and some functions of the privacy application program can also be set in the above manner, which will not be listed in detail in the embodiment of the present invention and will not be limited thereto.
[0238] In an embodiment of the present invention, based on face change detection (continuously detecting whether the face in front of the display screen of the electronic device 100 has changed), it is determined whether the user in front of the electronic device is an authorized user or an unauthorized user, so that when the face in front of the display screen is an authorized user, the electronic device 100 displays private content, and when the face in front of the display screen is an unauthorized user, the electronic device 100 displays non-private content.
[0239] Please refer to Fig.23 ,Face change detection includes the following steps:
[0240] S2300: Continuously acquire the image in front of the display screen.
[0241] During the specific implementation process, the image in front of the display screen can be acquired through the front camera 193B, which can obtain images with higher precision, thereby improving the accuracy of face change detection; the image in front of the display screen can also be acquired through the low-power camera 193B. Since the energy consumption of the low-power camera 193B is lower than that of the front camera 193B, the requirements for the battery life of the electronic device 100 are reduced, and more real-time face change detection can be guaranteed; and the resolution of the image acquired by the low-power camera 193A is relatively low, which can also ensure the privacy security of the user of the electronic device 100.
[0242] In the specific real-time process, face change detection can be started at various times. Three of them are listed below for introduction. Of course, in the specific implementation process, it is not limited to the following three situations.
[0243] (1) In response to detecting that the electronic device 100 is powered on, the camera of the electronic device 100 is activated to continuously detect whether the face of the person in front of the display screen of the electronic device changes.
[0244] For example, the camera can be a front camera 193B or a low-power camera 193A. Usually, in order to ensure the battery life of the electronic device 100, a low-power camera 193A can be used. After the electronic device 100 is turned on, the low-power camera 193A is started, so as to track whether the face changes during the entire startup process. Since startup usually requires startup verification (such as password verification, fingerprint verification, etc.), it can be ensured that the reference face for face change detection in the initial state is an authorized user (for example, the owner or a person authorized by the owner).
[0245] After the electronic device 100 is in the power-on state, it sends a face change detection instruction to the processing subsystem. After receiving the face change detection instruction, the processing subsystem instructs the image signal processor to control the low-power camera 193A to capture images. After obtaining the image captured by the low-power camera 193A, the processing subsystem runs the face change detection algorithm to obtain the calculation result of whether the face has changed.
[0246] (2) In response to detecting that the electronic device is successfully unlocked, the camera of the electronic device 100 is activated to continuously detect whether the face of the person in front of the display screen of the electronic device changes.
[0247] For example, the user of the electronic device 100 can unlock the device by fingerprint, password, face, etc. After the electronic device 100 detects the unlocking operation, it controls the electronic device 10 to enter the unlocking state and sends a face change detection instruction to the processing subsystem to continuously determine whether the face has changed. This solution can save energy consumption of the electronic device 100.
[0248] (3) In response to detecting that the electronic device screen is turned on, the camera of the electronic device 100 is activated to continuously detect whether the face of the person in front of the display screen of the electronic device changes.
[0249] For example, after the electronic device 100 is in the unlocked state, it may be in the screen-on state, but it may also be in the screen-off state for a short time. In order to further save the energy consumption of the electronic device 100, face change detection can be started only when the electronic device 100 is in the screen-on state.
[0250] (4) In response to detecting that the user of the electronic device has started a privacy application, the camera of the electronic device 100 is started to continuously detect whether the face of the person in front of the display screen has changed.
[0251] For example, the operation of opening the privacy function includes: opening a privacy application, accessing a privacy album, a privacy picture, etc. After detecting the operation of opening the privacy function, the user can be authenticated first, and the face change detection is started after the identity authentication is passed, which can further reduce the energy consumption of the electronic device 100. The identity authentication can be face recognition, fingerprint authentication, password authentication, nine-square authentication, iris authentication, etc.
[0252] S2301: Determine whether the image in front of the display screen contains a face.
[0253] For example, feature points of an image on a display screen may be extracted, and then the feature points may be input into a face detection model, and whether the image contains a face may be determined based on the output of the face detection model. Optionally, in addition to determining whether an image contains a face through a face detection model, the face detection model may be used to locate the face in the image, and return high-precision face frame coordinates and face feature point coordinates, thereby facilitating subsequent face feature matching. The face detection model may be, for example, a gradient vector flow model, an active contour model, etc., which is not limited in the embodiments of the present invention.
[0254] S2302: Determine whether the acquired image matches the face of the previous frame;
[0255] For example, when face change detection starts, after the camera (for example, the low-power camera 193A) captures a face, it stores it in the first template library. When it is determined based on S1801 that the currently captured image contains a face, the image is matched with the face in the first template library. If the match is successful, it is considered that the face has not changed. Otherwise, jump to S2303.
[0256] If the current face matches the face of the previous frame, the current face will replace the face in the first template library, so that the first template library stores the face of the latest frame of the tracking object (the tracking object can be the owner of the machine or a non-owner, which is not limited in the embodiment of the present invention). If it is confirmed that the current face matches the face of the previous frame, the current face will not be used to replace the face in the first template library.
[0257] S2303: Determine whether the current face matches the saved reference face. For example, the reference face is the face collected during the current unlocking cycle. Each time the electronic device 100 turns on face change detection, it will first collect the reference face, and then compare the subsequently collected face with the reference face. In the initial stage of face change detection, the face of the tracking object is collected and then stored in the second template library. During a face change detection cycle, the face in the second template library will not change, and the subsequently collected face will be compared with the face in the second template library. In the process of using the electronic device 100, the user may take off glasses, add headwear, etc., which may lead to misjudgment in S2302. In order to prevent misjudgment, after determining that the face has changed in S2302, the current face and the reference face can be further compared to determine whether it is an authorized user. If it is an authorized user, jump to S2304. If it is determined that it is not an authorized user, jump to S2305.
[0258] S2304: Determine that the face has not changed and the current user is still an authorized user.
[0259] When a privacy application (or other privacy functions) needs to call the face change detection results, the privacy application sends a request to the processing subsystem, the processing subsystem sends the face change detection results to the application, and the application performs corresponding processing based on the face change detection results; or when the application lock function detects that the currently opened reference is a privacy application, the application lock function makes a request to the processing subsystem, and the processing subsystem sends the face change detection results to the application lock function.
[0260] S2305: Determine that the face has changed and the current user is not an authorized user.
[0261] In a specific real-time process, the above step S2301 can be omitted, that is, it is not determined whether the image captured by the camera contains a face, and the similarity value of the captured image containing the face is directly calculated with the face image in the first template library (or the second template library). If the similarity value with the face in the first template library is greater than a first preset threshold (for example: 70%, 80%, etc.), it is considered to match the face in the previous frame; if the similarity with the face in the second template library is greater than a second preset threshold (for example: 75%, 85%, etc.), it is considered that there is no change relative to the reference face, etc. The above first preset threshold and second preset threshold can be set according to actual needs. The first preset threshold and the second preset threshold can be the same or different, and the embodiment of the present invention is not limited thereto.
[0262] Any of the above steps S2302 and S2303 can also be omitted, that is: whether the face has changed can be determined only by matching with the faces in the first template library, or whether the face has changed can be determined only by matching with the faces in the second template library. In the case of using only one template library to determine whether the face has changed, if the second template library is used, it can ensure that the tracked object will not change during the entire tracking process, thereby improving the tracking accuracy.
[0263] The order of the above steps S2302 and S2303 can be changed, that is, the current image can be compared with the second template library first. If the comparison result is considered to match the benchmark face, it is considered that the current face has not changed. If the comparison result is considered to not match the benchmark face, the current image is matched with the first template library. If the match is successful, it is considered that the face has not changed. If the match is unsuccessful, it is considered that the face has changed.
[0264] Among them, the above steps S2302 and S2303 can also be executed in any order, and it can be determined whether the current face matches the reference face to obtain a first matching result; determine whether the current face matches the previous frame face to obtain a second matching result; if the first matching result and the second matching result both indicate that the match is unsuccessful, it is considered that the face has changed; if the first matching result indicates that the match is successful, or the second matching result indicates that the match is successful, or both the first matching result and the second matching result indicate that the match is successful, it is considered that the face has not changed.
[0265] In addition, if the current face is compared with the face in the first template library, and the comparison results of multiple consecutive frames (for example, 3 frames, 5 frames, etc.) show that the current face does not match the face in the first template library, then the current face is no longer matched with the face in the first template library, and the face template in the first template library is no longer updated. Instead, the current face detected subsequently is compared with the face in the second template library. If the comparison is not successful, the subsequent detected face is always compared with the face in the second template library. If the comparison is successful, the first template library is updated, and the subsequent detected face is compared with the faces in the first template library and the second template library. Based on this, after the face is switched from an authorized user to an unauthorized user and then switched back to an authorized user, it can be determined that the face has not changed. In the above steps S2302 and 2303, it can be determined whether the current image matches the comparison image (the face of the previous frame or the reference face) in a variety of ways. Three of them are listed below for introduction. Of course, in the specific real-time process, it is not limited to the following three situations.
[0266] Method 1: Determine whether the number of faces in the current image has changed relative to the comparison image; if the number of faces has changed, it is considered that the current image does not match the comparison image; if the number of faces has not changed, for example, whether the facial features in the current image match the faces in the comparison image.
[0267] For example, based on S2301, the facial features in the current image can be extracted to determine the number of faces, and then compared with the number of faces in the first template library. If the number is different, it is considered that the face relative to the comparison image has changed; if the number is the same, it is further compared with the facial features of the faces in the first template library for similarity. The comparison with the reference face is similar and will not be repeated here. Assuming that user A uses the electronic device 100 in the initial stage, the electronic device 100 collects user A's face 190A, such as Fig.24A As shown; the number of faces changes, for example, Fig. 24B , 24C As shown, the number of faces has not changed but the facial features have changed, for example Fig.24D shown.
[0268] Method 2: Extract the largest facial feature in the current image and match it with the largest facial feature in the comparison image. If the match is successful, it is considered that the face has not changed relative to the comparison image, otherwise it is considered that the face has changed relative to the comparison image.
[0269] Method 3: Calculate the similarity value between the current image and the comparison image. If the similarity value is greater than a preset threshold, it is considered that the face has not changed relative to the comparison image; otherwise, it is considered that the face has changed relative to the comparison image.
[0270] Optionally, if the detection result of step S2301 determines that the image in front of the display screen does not contain a face, please continue to refer to Fig.23 , the method may further include the following steps:
[0271] S2306: Continue to obtain the image in front of the display screen. The acquisition process is similar to S2301 and will not be repeated here.
[0272] S2307: Determine whether the image before display contains a face. The determination process is similar to S2301 and will not be repeated here. If not, return to S2306; if yes, jump to S2308.
[0273] S2308: Determine whether the duration of not detecting a face is greater than a preset duration;
[0274] For example, when it is determined that the image in front of the display screen does not contain a face, the processing subsystem can trigger a timing function to record the duration of the image in front of the display screen not containing a face, until a face is detected again, and then stop timing. In the face change detection process, sometimes a face may not be detected. The possible reason is that the user temporarily stops using the electronic device 100, or the electronic device 100 has a large posture change (for example, the user flips the electronic device 100, the electronic device 100 shakes, etc.). By determining whether the duration is greater than a preset duration, these two situations can be distinguished, and different processing can be performed. The preset duration is, for example, 4 seconds, 5 seconds, etc., which is not limited in the embodiment of the present invention.
[0275] S2309: If the duration is not greater than the preset duration, it may be caused by a large posture change of the electronic device 100. In this case, after the face is collected again, the last frame of face saved previously can be used as the previous frame of face, so as to jump to S2302 to continue to determine whether the face has changed; when the image in front of the display screen does not contain a face, the first template library may not be updated, and when no face is collected, the current image may be replaced by the previous frame of face, so that when there is an interruption in the collection of faces, face change detection can be effectively performed.
[0276] S2310: If the duration is longer than the preset duration, it often means that the user has temporarily stopped using the electronic device 100. Therefore, the faces in the first template library and the second template library can be released. When the face is detected again, the identity authentication of the corresponding user is first performed. If the authentication is passed, the face change detection is started. The identity authentication may include: fingerprint authentication, password authentication, face authentication, etc.
[0277] Based on the above scheme, when no face is detected in a short period of time, there is no need to restart the face change detection function, which can improve the processing efficiency of the electronic device 100; in scenarios where identity authentication is required before starting face change detection, it can also reduce user operations and improve operational convenience while ensuring the accuracy of face change detection (the tracking object is the owner or a person authorized by the owner).
[0278] The identity authentication may be performed after a change in the face is detected, or may be performed when the user is detected to have turned on a privacy function again (e.g., turning on a privacy application), which is not limited in the present embodiment. The identity authentication may be face authentication, password authentication, fingerprint authentication, iris authentication, nine-square authentication, etc.
[0279] The identity authentication can be used to verify whether the user is an authorized user (for example, the owner of the device, or a person authorized by the owner), thereby preventing unauthorized users from using the privacy function of the electronic device 100; the identity authentication can also be used to verify whether the electronic device 100 is currently operated by a person, thereby preventing false triggering.
[0280] Among them, if the identity authentication is not face authentication, face change detection can be performed during identity authentication, that is, the face during identity authentication is collected as the face in the second template library; if the identity authentication is face authentication, the face after a preset time period (for example: 5 seconds to 10 seconds) after the identity authentication can be collected as the face in the second template library; or, when the face authentication passes and switches to another face, the switched face can be collected as the face in the second template library; or, no matter what identity authentication method is used, the image after a preset time period (for example: 5 seconds to 10 seconds) after the identity authentication can be collected as the face in the second template library. Through this solution, it can be ensured that after the non-owner obtains authorization, face change detection can be performed on the non-owner. Through the above solution, face change detection can be performed on the non-owner.
[0281] Optionally, the electronic device 100 can track different users at different stages. For example, in the initial stage, the electronic device 100 is used by the first user (machine owner), and the first user performs identity authentication through face authentication. After the electronic device 100 detects that the first user's identity authentication is successful, it collects and obtains the first user's face as the reference face for face change detection and stores it; later, the first user hands the electronic device 100 to the second user (non-machine owner), and the second user performs identity authentication through non-face authentication (for example: the first user's fingerprint, preset password, etc.). After the authentication is successful, the electronic device 100 collects and obtains the second user's face for face change detection. It can be seen that the electronic device 100 can track the machine owner and non-machine owner, and both the machine owner and non-machine owner may become authorized users.
[0282] Optionally, before performing face change detection, in order to ensure that the tracking object is an authorized user (for example, the owner of the device, a person authorized by the owner), identity authentication may be performed first. After the identity authentication is passed, the current user is identified as an authorized user, and face change detection is subsequently performed on the authorized user. The authorized user can be the owner of the device or a person authorized by the owner, for example, the owner tells the other party the identity authentication password, authorizes through his or her own fingerprint, authorizes through his or her own facial features, etc.
[0283] If the identity authentication method is the user's biometric characteristics (such as fingerprint, face, iris, etc.), the electronic device 100 can further determine whether the user is the owner based on the biometric characteristics, thereby recording whether the current status is the owner. Therefore, when detecting face changes, the face change detection result can be whether the face has changed, or the current status. For example, if the initial stage is the owner status and the face has not changed, the face change detection result is: the current status is the owner; if the initial stage is the owner status and the face has changed, the face change detection result is: the current status is the non-owner; in the non-owner status, if the face has changed, the face change detection result is: unknown status; in the non-owner status, if the face has not changed, the face change detection result is: non-owner status.
[0284] For another example, the face change detection results include: the face has changed + the state was the owner before the change (the current state is the non-owner), the face has changed + the state was the non-owner before the change (the current state is unknown); the face has not changed + the current state is the owner; the face has not changed, the current state is the non-owner, etc.
[0285] Based on the above scheme, when an authorized user uses the electronic device 100, different usage permissions can be provided to the authorized user based on whether the authorized user is the owner or non-owner. For example, the owner can use all functions of the electronic device, and the non-owner can only use the currently authorized functions (for example, privacy applications, privacy files or privacy folders, privacy system functions); or, the non-owner can only obtain authorization within a preset time period (for example, 5 minutes, 10 minutes, etc.); or, the privacy functions can be divided into multiple privacy levels, and non-owners can only obtain privacy functions at a level equivalent to the currently used privacy functions, etc.
[0286] If the identity authentication method is not the user's biometric feature, such as a password, a preset path, etc., the electronic device 100 cannot determine whether the current state is the owner, and the face change detection result is: whether the face has changed relative to the authorized user.
[0287] During the specific implementation process, the identity authentication can be an independent identity authentication process, for example: when it is detected that the user opens a privacy application for the first time, the identity authentication is started; the identity authentication can also be other identity authentication processes before opening the privacy application, for example: if the face change detection is started when the electronic device 100 is unlocked, the unlocking process of the electronic device 100 can be used as the identity authentication process.
[0288] Optionally, in the identity authentication method, face recognition is used, wherein the face can be acquired by the electronic device 100 and then compared with a reference face (for example, by Fig.17The current user is compared with the benchmark face entered in the face entry interface shown in the figure) to determine whether the similarity value is greater than a third preset threshold (for example, 70%, 75%, etc.). If it is greater, it is considered that the current user is the preset user. If not, it is considered that he is not the preset user. In this case, face change detection is enabled.
[0289] The face can be captured by the low-power camera 193A for face recognition. Since the energy consumption of the low-power camera 193A is lower than that of the front camera 193B, the energy consumption of the electronic device 100 can be further reduced. The face can also be captured by the front camera 193B for face recognition. Since the acquisition accuracy of the front camera 193B is higher than that of the low-power camera 193A, it can improve the accuracy of face matching, thereby improving the accuracy of privacy protection.
[0290] In another possible situation, the electronic device 100 enters the screen-off state from the screen-on state. At this time, in order to save energy, the face change detection can be suspended, and the electronic device 100 saves the last frame image captured by the camera and stores it in the first template library. When the electronic device 100 is in the screen-off state, the first template library is stopped from being updated. When it is subsequently detected that the electronic device 100 switches from the screen-off state to the screen-on state, if the duration of the electronic device in the screen-off state is greater than the preset duration, if not, the face change detection is continued based on the face previously saved in the first template library.
[0291] Based on the above scheme, when no face is detected in a short period of time, there is no need to restart the face change detection function, which can improve the processing efficiency of the electronic device 100; in scenarios where identity authentication is required before starting face change detection, it can also reduce user operations and improve operational convenience while ensuring the accuracy of face change detection (the tracking object is the owner or a person authorized by the owner).
[0292] In the specific implementation process, when it is determined that the face has changed based on face change detection, it can be further determined whether the face satisfies a second preset condition. By determining whether the face satisfies the second preset condition, it can be determined whether the user has the behavior of sharing the screen. The second preset condition includes multiple situations, and several of them are listed below for introduction. Of course, in the specific implementation process, it is not limited to the following situations.
[0293] Case 1: Determine whether the current face contains the tracking object (it can be matched with the reference face, or with the facial features of the tracking object in the previous frame of face, or both). If the tracking object is not included, it is considered that the second preset condition is not met; if the tracking object is included, determine whether the difference in the total number of pixels between the facial features of the included tracking object and another facial feature is less than a preset threshold. If it is less than, it is considered that the user has shared the screen and the face meets the second preset condition; if it is not less than, it is considered that the user has not shared the screen and the face does not meet the second preset condition. The preset threshold can be set according to actual conditions such as sampling resolution, for example: 40 pixels, 50 pixels, etc.
[0294] Please refer to Fig.24A , assuming that in the initial stage, the owner uses the electronic device 100, the face captured by the camera only contains the facial features of the owner. At a certain moment, user B leans over to look at the display screen of the electronic device 100, such as Fig. 24B As shown, in this case, the owner does not actively share the screen with user B, so user B's viewing angle is biased, so the total pixel points of user A's facial features in the face captured by the camera will be significantly greater than the total pixel points of user B's facial features (that is, the difference in total pixel points is greater than the preset threshold).
[0295] If at a certain moment, user A sees a wonderful picture and wants to share it with user B, user A will often push the electronic device 100 toward user B so that the electronic device 100 is located between user A and user B. Fig.24C As shown; in this case, the total number of pixels of the facial features of user A in the face captured by the camera will not be much different from the total number of pixels of the facial features of user B (that is, the difference in the total number of pixels is greater than the preset threshold). In this case, it is considered that the second preset condition is met.
[0296] Case 2: Determine whether the current face contains the face of the authorized user (reference face). If the face of the authorized user is not included, it is considered that the second preset condition is not met. If the face of the authorized user is included, determine whether the offset of the facial features of the authorized user in the current face relative to the facial features in the previous frame of face is greater than the preset offset. If it is greater than the preset offset, the face meets the second preset condition. If not, the face does not meet the second preset condition.
[0297] Similar to the first case, if the owner shares the screen, the owner will move the electronic device 100 toward user B. In this case, the facial features of the authorized user in the current face will also be significantly offset; if the owner does not share the screen, the owner will not move the electronic device 100. In this case, the facial features of the authorized user in the current face will not be significantly offset. The preset offset is, for example, 20 pixels, 30 pixels, etc., which is not limited in the embodiment of the present invention.
[0298] Case three: Determine whether the movement of the electronic device is greater than the preset movement within a preset time period (for example, 1 second, 2 seconds, etc.) when the face changes. If it is greater than the preset movement, the face is considered to meet the second preset condition; otherwise, the face is considered not to meet the second preset condition.
[0299] Similar to the first case, if user A shares the screen, the electronic device 100 will be moved toward user B, so the movement of the electronic device will be large; if user A does not share the screen, the electronic device 100 will not be moved, so the movement of the electronic device 100 will be small. The preset movement amount is, for example, 20 cm, 30 cm, etc., which is not limited in the embodiment of the present invention.
[0300] In the specific implementation process, if the identity authentication process is face recognition, after face recognition, it can also be determined based on the above scheme whether the face meets the first preset condition. The first preset condition is similar to the second preset condition. It can be determined whether the face meets the first preset condition by judging the difference in the total number of pixels between the face features of the tracked object and other face features based on multiple face features including the face features of the authorized user in the face; it can also be determined whether the first preset condition is met by whether the offset of the face features of the authorized user in the current face relative to the face features in the previous frame of the face is greater than the preset offset; it can also be determined by whether the movement of the electronic device is greater than the preset movement, which will not be repeated in the embodiments of the present invention.
[0301] Please refer to Fig.25 An embodiment of the present invention provides a privacy protection method for an electronic device, comprising the following steps:
[0302] S2503: Start face change detection. Face change detection is to continuously detect whether the face in front of the display screen of the electronic device has changed during the current unlocking cycle. The change in the face in front of the display screen of the electronic device specifically means that the current face in front of the display screen of the electronic device does not match the face of the benchmark user. As it has been introduced before, it will not be repeated here.
[0303] S2504: After detecting the start of face change detection, an operation of starting a first privacy application is detected. The first privacy application is, for example, instant messaging software, payment software, financial institution software, etc. It can also be other applications introduced above, and the embodiment of the present invention does not limit it.
[0304] S2505: In response to the operation and confirming that the result of the face change detection is that the current face has not changed, displaying the first privacy content corresponding to the first privacy application;
[0305] S2506: In response to the operation and confirming that the result of the face change detection is that the current face has changed, the first non-privacy content is displayed, and the first non-privacy content does not include the first privacy content.
[0306] In the above scheme, since it is continuously detected whether the face in front of the display screen of the electronic device changes (face change detection), when it is detected that the first privacy application is turned on, the result of the face change detection can be directly called, without turning on the front camera for face recognition when it is detected that the first privacy application is turned on as in the prior art, thereby improving the response speed of turning on the first privacy application.
[0307] Before performing face change detection based on S2503, in order to ensure that the authorized user is tracked, the user of the electronic device may be further authenticated. The authentication method may include: face recognition, fingerprint verification, password verification, iris verification, nine-square grid verification, etc.
[0308] The identity authentication process may be an unlocking process of the electronic device 100, whereby when the identity authentication is passed, the electronic device 100 enters an unlocking state, and at the same time, the electronic device 100 collects the face obtained within a preset time period (e.g., when the identity authentication is passed, within 1 second, within 3 seconds) as a reference face, and starts a face change detection process, thereby continuously collecting the face in front of the display screen during the current unlocking cycle, and determining whether the current face matches the reference face, thereby performing face change detection during the entire unlocking cycle. In this case, in response to detecting that the face has not changed and detecting the operation of opening the first privacy application for the first time during the current unlocking cycle, the first privacy content corresponding to the first privacy application may be displayed; in response to detecting that the face has changed and detecting the operation of opening the first privacy application for the first time during the current unlocking cycle, the first non-privacy content may be displayed. The first privacy content is the same as the privacy content described above, and the first non-privacy content is the same as the non-privacy content described above.
[0309] In an optional embodiment, the identity authentication method is, for example, face recognition. Please continue to refer to Fig.25, the privacy protection method of the electronic device may further include the following steps:
[0310] S2500: When the electronic device 100 is in the screen lock state, the low power camera 193A acquires an image in front of the display screen;
[0311] As for what kind of camera the low-power camera 193A is, it has been introduced above, so it will not be repeated here. In the specific real-time process, when the electronic device 100 is in the turned-on state, the low-power camera 193A can be controlled to be in the acquisition state all the time, so that the electronic device 100 can be awakened at any time to start face unlocking. Since the low-power camera 193A has low energy consumption and the pixels of the collected images are low (such as Figure 4 As shown), on the one hand, it can extend the battery life of the electronic device when the low-power camera 193A continues to collect data, and on the other hand, it can also ensure the privacy of the user of the electronic device 100.
[0312] S2501: When the image detected by the low-power camera contains a face, the electronic device 100 starts face recognition;
[0313] For example, after the low-power camera 193A collects an image, it can determine whether the image contains a face through a face detection algorithm. If a face is contained, the face in front of the display screen can be recognized. The face recognition process includes, for example: determining whether the collected face matches the pre-stored face of the machine owner; the pre-stored face of the machine owner is the face input by the machine owner when the face recognition function is first enabled and used as the face recognition reference; in response to detecting that the collected face matches the pre-stored face of the machine owner successfully, it is determined that the face recognition is successful; in response to detecting that the collected face does not match the pre-stored face of the machine owner successfully, it is determined that the face recognition is unsuccessful. Among them, when the user initially uses the electronic device 100, the user is often prompted to enter a face, and the face is the pre-stored face of the machine owner. If the face recognition is successful, it means that the current user is the machine owner, otherwise, it is confirmed that the current user is not the machine owner. Optionally, the owner may also pre-record the faces of some other users. During face recognition, the face in front of the display screen may be matched with the pre-recorded faces of other users, thereby granting other users permission to use the privacy function of the electronic device 100.
[0314] In addition, the above-mentioned face recognition can be performed by acquiring the face in front of the display screen through the low-power camera 193A, and matching the face with the pre-stored face of the machine owner; in order to improve the accuracy of face recognition, the face in front of the display screen can also be acquired through the front camera 193B, and matching the face with the pre-stored face of the machine owner; optionally, in order to prevent the front camera 193B from being woken up by mistake, face recognition can be performed first through the image acquired by the low-power camera 193A, and when the recognition is passed, face recognition can be performed through the image acquired by the front camera 193B, so as to improve the accuracy of face recognition and reduce the false awakening rate of the front camera 193B. The feature points of the reference face are less than the feature points of the machine owner's face.
[0315] Through the above solution, there is no need for the user to manually trigger the face recognition process (for example, clicking a button of the electronic device 100 ) as in the prior art, thereby improving the convenience of the user in using the electronic device 100 .
[0316] Of course, in the specific implementation process, the above step S2500 can also be omitted, and face recognition can be triggered directly through manual operation by the user, which is not limited by the embodiment of the present invention.
[0317] For example, see Fig.26A When user A (owner) uses electronic device 100 and detects through low-power camera 193A that the image in front of the display screen contains a face, electronic device 100 activates front camera 193B for face recognition, and a prompt message "Face unlocking in use" is also generated on the display screen of electronic device 100 to prompt the current status of electronic device 100.
[0318] S2502: When face recognition is successful, control the electronic device 100 to enter an unlocked state; and save the face within a preset time period during which face unlocking is successful as a reference face for face change detection.
[0319] For example, the preset time period is, for example, when the electronic device 100 is successfully unlocked, within 1 second, within 3 seconds, etc. after the electronic device 100 is successfully unlocked. Fig.26B As shown, after the electronic device 100 is successfully unlocked, the display screen of the electronic device 100 displays the home screen of the electronic device 100, on which icons of multiple applications are displayed. The electronic device 100 captures the current face as a reference face (ie, the face of user A) through a camera (for example, a low-power camera 193A).
[0320] In S2505, assuming that user A has been using the electronic device 100, the result of the face change detection algorithm shows that the face has not changed, and the user's operation of opening the first privacy application (such as Fig.26C), then the first privacy content of the first privacy application is displayed, for example, Fig.26D The instant messaging software homepage is shown. Of course, the first private content of the instant messaging software can also be other content, which has been introduced before and will not be repeated here.
[0321] Among them, after detecting the operation of opening the instant messaging software (the instant messaging software is provided with an application lock), the application lock function of the electronic device 100 obtains the result of the face change detection algorithm. When the result of the face change detection algorithm shows that the face has not changed, the identity authentication interface is skipped and the homepage of the instant messaging software is directly displayed; alternatively, the application lock function obtains the result of the face change detection algorithm at all times. If the result of the face change detection algorithm shows that the face has not changed, the application lock function is turned off. When the result of the face change detection algorithm shows that the face has changed, the application lock function is turned on.
[0322] In S2505, the electronic device 100 can obtain the face change detection result in real time after the face change detection, so as to change the privacy protection state of the first privacy application (for example, when the face has not changed, the application lock is closed, and when the face has changed, the application lock is opened). Therefore, when the operation of opening the first privacy application is detected, different content is provided to the user directly based on the different privacy protection states; the electronic device 100 may also obtain the face change detection result when the operation of opening the first privacy application is detected, and provide different content to the user based on the face change detection result at this time.
[0323] In S2506, assuming that user A hands the electronic device 100 to user B for use, the result of the face change detection algorithm shows that the face has changed, and when the user opens the instant messaging software, the first non-privacy content is displayed, for example, Fig.26E The identity authentication interface shown, of course, the first non-private content can also be other content, as it has been introduced before, it will not be repeated here.
[0324] Optionally, after displaying the first private content based on S2506, please continue to refer to Fig.25 , the method may further comprise the following steps:
[0325] S2507: When displaying the first private content, a face change is detected, and the first private content is kept displayed.
[0326] For example, when user A uses electronic device 100, if it is detected that user A opens the instant messaging software and keeps it in the foreground display, it means that user A wants to share the use rights of the instant messaging software with user B, so the first private content of the instant messaging software is kept displayed, such as Fig. 27As shown in state (a), the electronic device 100 is then handed to user B. User B takes the electronic device 100, and the electronic device 100 detects that the face has changed, and keeps the first private content displayed on the electronic device 100, as shown in state (b). Fig. 27 The status (ii) is shown.
[0327] For further information, please continue to refer to Fig.25 , the scheme may further include the following steps:
[0328] S2509: An operation of opening the second privacy application is detected, and the fifth non-privacy content is displayed.
[0329] For example, when user B is using the electronic device 100, he returns to the main screen of the electronic device 100 and clicks the icon of the text message (the second privacy application). The electronic device 100 determines that the text message is a privacy application and the face has changed (from user A to user B), and then no longer displays the privacy content corresponding to the text message (for example: the homepage of the text message), but displays non-privacy content, such as the identity authentication interface ( Fig. 27 The status (IV) shown in the figure), the homepage after hiding the private information, the prompt message indicating that there is no access permission, etc. The specific private content that is non-private content is already introduced in the paint page, so it will not be repeated here.
[0330] Optionally, after displaying the first private content based on S2506, please continue to refer to Fig.25 , the method may further comprise the following steps:
[0331] S2508: When displaying the first private content, it is detected that the face of the person has not changed;
[0332] S2510: When an operation of opening a second application is detected, display the second private content.
[0333] For example, user A opens an instant messaging software (such as Fig.28 After that, the electronic device 100 is used, and then user A returns to the home page of the electronic device 100 and clicks the SMS icon (as shown in FIG. Fig.28 After the electronic device 100 detects the operation of user A and confirms that the face has not changed and the current user is an authorized user, the home page of the short message is displayed, such as Fig.28 The status (iii) is shown.
[0334] In the above embodiment, when the face changes, the user cannot directly view the private content of the second privacy application. When the face does not change, the user can view the private content of the second privacy application, which improves the security of using the privacy application and can also reduce the response speed of the authorized user using the privacy application.
[0335] In the above embodiment, the second privacy application may be different from the first privacy application, and in the case of a face change, if it is detected that the user opens the first privacy application again, the first privacy content can continue to be viewed; the second privacy application may include both the first privacy application and other privacy content besides the first privacy content. As long as a face change is detected and the user opens the privacy application again, the user cannot directly access the private content of the privacy application.
[0336] In another optional embodiment, the privacy protection method of the electronic device 100 also includes: in response to detecting that the face of the person has not changed and detecting the operation of re-opening the first privacy application, displaying second privacy content corresponding to the first privacy application; in response to detecting that the face of the person has changed and detecting the operation of re-opening the first privacy application, displaying second non-privacy content, and the second non-privacy content does not include the second privacy content.
[0337] As time goes by or because users zoom in, zoom out, edit, etc. the content in privacy applications, the private content of each privacy application may remain unchanged or change, so that the second private content may be the same, partially the same, or completely different from the first private content, and the second non-private content may also be the same, partially the same, or completely different from the first non-private content.
[0338] For example, when a user is using an instant messaging software, he may exit the instant messaging software midway, and then access the instant messaging software again. When the electronic device 100 detects that the user has accessed the instant messaging software again, if it is determined based on the face change detection result that the face has not changed, the second privacy content of the instant messaging software (for example, Fig.29 As shown in Figure 2, the second private content of the instant messaging software and the first private content are both the homepage of the instant messaging software, but as time changes, the displayed content is slightly different, for example: Fig.26D The first private content displayed includes a chat record 1302F with the private contact Candice. Fig.29 The second private content shown has updated the latest chat record 1302G, chat record 1302F is no longer displayed, and the display positions of other chat records have been adjusted.
[0339] Please refer to Fig.30Another embodiment of the present invention provides a privacy protection method for an electronic device, the method comprising the following steps:
[0340] S3000: In response to detecting the first opening of a first privacy application in a current unlocking cycle;
[0341] For example, the first privacy application may be a privacy application set by the user or a system default application. Fig.31A The first privacy application is an instant messaging software, and the electronic device 100 detects the user's first operation of opening the instant messaging software (clicking the instant messaging software icon).
[0342] S3001: Identify the user of the electronic device;
[0343] For example, the identity recognition method is, for example, face recognition, password recognition, fingerprint recognition, iris recognition, etc. Among them, the user of the electronic device 100 can use Fig.19B The interface shown selects the password type to set the default identification method, for example: if the password type is face recognition, the identification method is face recognition, if the password type is character password, the identification method is traditional password recognition, etc. When the user of the electronic device 100 is identified, a default identification interface can be provided, but the bottom of the default identification interface provides a selection button for other identification methods (such as Figure 6C As shown), the identity recognition method is face recognition, and buttons such as Use Fingerprint and Use Password are provided at the bottom of the face recognition interface.
[0344] Assuming that the current user of the electronic device 100 is user B, and the default identity recognition method is: password verification, when the electronic device 100 detects that the user starts the first privacy application (instant messaging software), it displays the following Fig.31B The password input interface shown is used to receive the authentication password entered by the user.
[0345] S3002: When the identity recognition is successful, the first privacy content corresponding to the first privacy application is displayed. The first privacy content is similar to the privacy content described above and will not be described in detail here. For example, Fig.31C As shown, this is the homepage of the instant messaging software.
[0346] S3003: In the case of identity recognition failure, display the first non-private content. The first non-private content is similar to the non-private content described above and will not be described in detail here. For example, Fig.31D As shown, this is the login interface of the instant messaging software.
[0347] S3004: using the face within the preset time period in which the identity recognition is successful as the reference face for face change detection;
[0348] For example, after detecting that the face recognition is passed, it is determined that user B is an authorized user, then Fig.31E As shown, the face of user B is collected as the reference face for subsequent face change detection to ensure that the tracked object is an authorized user.
[0349] Optionally, in this embodiment, the authorized user and the authorized user in the previous embodiment may be a different user. The authorized user in the previous embodiment is the first user (machine owner), and the authorized user in this embodiment may be the second user (non-machine owner). Therefore, the solution of the embodiment of the present invention can track both machine owners and non-machine owners.
[0350] For example, because the reference face is collected within a preset time after successful identity authentication, if the user uses facial recognition for identity identification and the preset time is very short, such as 1 second, the reference face is generally the face of the machine owner; if the user uses non-facial recognition such as password method for identity identification, it can be operated by someone other than the machine owner, then the reference face is the person who performs the identity identification. If the non-machine owner enters the password, the reference face is the face of the non-machine owner who enters the password.
[0351] S3005: Start face change detection, and continuously detect whether the face in front of the display screen of the electronic device changes during the unlocking cycle, wherein the face change in front of the display screen of the electronic device specifically means that the current face in front of the display screen of the electronic device does not match the benchmark user face. As for how to continuously detect whether the face in front of the display screen of the electronic device 100 changes, it has been introduced above and will not be repeated here.
[0352] S3006: An operation of opening a first privacy application is detected, where the operation of opening the first privacy application is, for example, an operation of opening the first privacy application for the second time within an unlocking cycle.
[0353] That is, in this embodiment, when the operation of opening the first privacy application is detected for the first time, identity authentication is performed first, and when the identity authentication is successful, face change detection is performed, so that when the privacy application is opened for the second time, identity authentication does not need to be performed again. Through this solution, it can not only ensure that the privacy application has a privacy function, but also when the user uses the privacy application multiple times in one unlock cycle, there is no need to repeat identity authentication, so as to improve the convenience of using the privacy application.
[0354] S3007: In response to the human face not changing and an operation of opening the first private content being detected, the first private content is displayed.
[0355] S3008: In response to a change in the face of the person and detecting an operation of opening the first private content, displaying the first non-private content, for example Fig.31F shown.
[0356] In the specific implementation process, for each privacy application, identity recognition can be used when it is first opened, and face change detection can be performed when the current user is determined to be an authorized user, so that when the privacy application is opened for the second time, there is no need to start identity authentication again; the electronic device 100 can also perform identity authentication when the privacy application is first opened (the privacy application is any privacy application), and if the identity authentication is passed, when the privacy application is subsequently detected to be opened (regardless of whether the privacy application has been opened before), it is not necessary to perform identity authentication again, but directly determine the display content of the electronic device 100 based on the face change detection result, if the face change detection result is that the face has not changed, the privacy content corresponding to the privacy application is displayed, otherwise the non-privacy content is displayed. For example: when the user opens the instant messaging software (the first privacy application), the electronic device 100 detects that the instant messaging software is the first privacy application opened within the unlocking cycle, and then performs identity authentication; after the identity authentication is passed, the face change detection is started; during the process of starting the face change detection, the electronic device 100 detects that the user opens the payment software (the second privacy application), and the face change detection result is that the face has not changed, then the privacy content corresponding to the payment software (for example: the homepage of the payment software) is displayed.
[0357] Please continue to refer to Fig.30 , the method further comprises:
[0358] S3009: Detecting the third operation of opening the first privacy application;
[0359] S3010: If the face change detection result is that the face has not changed, display the second privacy content;
[0360] S3011: If the face change detection result is that the face has changed, display the second non-privacy content. As for the second privacy content, the second non-privacy content has been introduced above, so it will not be repeated here.
[0361] In the specific implementation process, the above step S3007 and Fig.25 Similar to step S2505, after executing the above step S3007, one or more steps of steps S2507, S2508, S2509, and S2510 may also be executed, which is not limited in the embodiment of the present invention.
[0362] Please refer to Fig.32 Another embodiment of the present invention provides a privacy protection method for an electronic device, the method comprising the following steps:
[0363] S3200: starting face change detection, where the face change detection is to continuously detect whether the face in front of the display screen of the electronic device has changed during the current unlocking cycle, wherein the face change in front of the display screen of the electronic device specifically means that the current face in front of the display screen of the electronic device does not match the reference face;
[0364] S3202: Displaying a first icon corresponding to a first private picture in the gallery application;
[0365] S3204: In response to determining that the result of the face change detection is that the current face has changed, hiding the first icon corresponding to the first privacy picture.
[0366] In the specific implementation process, S3200 can be executed directly after the electronic device is unlocked, and in order to ensure that the user tracked in the face change detection process is the preset user, the identity authentication operation of the user of the electronic device 100 can be detected first; if the identity authentication is passed, S3200 is executed. The identity authentication operation is, for example, fingerprint authentication, password authentication, face authentication, iris authentication, etc., which have been introduced above and will not be repeated here.
[0367] The identity authentication of the user of the electronic device 100 may be performed at various times, two of which are listed below for introduction. Of course, in the specific implementation process, it is not limited to the following two situations.
[0368] Case 1: When the electronic device 100 is in a locked state, an identity authentication operation is detected; after the identity authentication is passed, the electronic device 100 is unlocked; and after the identity authentication is passed, the electronic device 100 executes S3200.
[0369] Case 2: When the first privacy application is detected to be turned on, the electronic device 100 detects an identity authentication operation on the user of the electronic device; if the identity authentication is passed, the first privacy content corresponding to the first privacy application is displayed, and S3200 is executed. Assume that the initial user of the electronic device 100 is user A, and the currently collected reference face is the face of user A.
[0370] One possible scenario is that the first privacy application is an application with an application lock function, and the gallery application is an application without an application lock function. After the electronic device 100 detects the operation of opening the first privacy application, it opens the face change detection when the identity authentication is passed. When the user uses the gallery application, the display content provided to the user in the gallery is directly determined based on the face change detection result. Based on this solution, when the user uses the gallery, the identity authentication is not required, and the security of using the gallery application can be guaranteed, thereby improving the response speed and operation convenience of security protection for the gallery application.
[0371] Another possible scenario is that the first privacy application is a photo gallery application. When the electronic device 100 detects the operation of opening the photo gallery application, identity authentication is performed. If the identity authentication is passed, face change detection is turned on. Thus, if the user changes during the process of using the photo gallery application, the photo gallery application can also be protected. Based on this solution, the real-time security protection of the photo gallery application is improved, making the use of the photo gallery application safer.
[0372] In S3204, the privacy picture can be set based on the setting method of the privacy file and privacy picture introduced above, which will not be repeated here.
[0373] The private picture can be a private picture contained in a picture folder in the album application, or a private picture directly contained in the album reference program; the private picture can also be a private picture contained in other applications, such as chat pictures, friend circle pictures, favorite pictures, etc. in instant messaging software, pictures contained in web pages browsed in the browser, pictures searched, etc. The private picture can be one picture or multiple pictures.
[0374] Take the private pictures in the album as an example, please continue to refer to Fig.32 , you can display the icon of the privacy image in the following ways:
[0375] S3201: In response to detecting an operation of opening a first picture folder containing a first private picture, Fig.33A As shown, the first picture folder is a picture folder included in the album application, and the picture folder can store pictures or videos. The first picture folder can also be a picture folder included in other applications, for example: a system folder for storing pictures in each application, a folder for storing pictures in a network disk, etc.
[0376] In another embodiment, the first picture folder may also be a first folder, and the first folder may contain various files, such as audio, video, document, picture, etc.
[0377] In step S3202, if the face change detection result is that the face has not changed, the first icon of the first private picture contained in the first album folder is displayed. Of course, in addition to displaying the first icon of the first private picture, icons of other private pictures can also be displayed, such as: the second icon of the second private picture, the third icon of the third private picture, etc. If the first album folder is the first folder, this step can be to display the icons of the private files contained in the first folder.
[0378] For example, see Fig.33B , the first album folder is the people album 61. After the electronic device 100 detects the operation of opening the people album 61, the face change detection result shows that the face has not changed, and then the icons of the five pictures contained in the people album 61 are displayed, wherein the upper right corners of the icons 3301 and 3302 display a privacy icon 3305, which is used to indicate that these two pictures are private pictures, and the other pictures are non-private pictures. When the face has not changed, the icons of these five images are all in the display state.
[0379] Optionally, the method also includes: S3203: if the face change detection result is that the face has changed, displaying fourth non-privacy content, the fourth non-privacy content does not include the first icon corresponding to the first privacy picture; the fourth non-privacy content can be displayed in various forms, for example: the first icon can be directly hidden, the first icon can be replaced with icons of other non-privacy pictures, the parent directory can be returned, the icon of the privacy picture can be mosaic processed, etc., which are not listed in detail in the embodiments of the present invention and are not limited.
[0380] Please refer to Fig.33C , assuming that after the electronic device 100 detects the operation of opening the person album 61, the face change detection result is that the face has changed (from user A to user B), then the icons (3300, 3303, 3304) of the non-private pictures contained in the person album are displayed, such as Fig.33C The status (a) is shown.
[0381] Optionally, after displaying the fourth non-privacy content based on S3203, please continue to refer to Fig.32 The method further includes S3205, in response to detecting a preset authorization operation of the user, displaying a first icon corresponding to the first privacy picture. The preset operation is a specific operation set by the user of the electronic device 100, for example: sliding with two fingers, sliding with three fingers, etc. on the display screen of the electronic device 100, so that the icon of the privacy picture can be displayed based on the operation. Fig.33C As shown in state (ii), based on the user's preset operation, the icon of the private picture is displayed. The preset operation is a user-specific operation of the electronic device 100, so that only the owner (or other authorized users) can display the icons of these private pictures through the preset operation.
[0382] After the private picture icon (3301, 3302) is displayed on the display screen of the electronic device 100, assuming that user A hands the electronic device 100 to user B, Fig.33DAs shown, the speed of displaying content on the display screen of the electronic device 100 switches from state (1) to state (2), thereby ensuring that unauthorized users cannot view the first icon of the first private picture, nor can they see the icons of other private pictures. Based on this solution, it can be ensured in real time that unauthorized users cannot view private content. Please continue to refer to Fig.32 After displaying the first icon of the first privacy picture based on S3202, the method further includes:
[0383] S3206: Detecting an operation of opening the first private picture;
[0384] The operation is, for example, an operation of clicking an icon of the first privacy picture, an operation of generating a specific gesture, an operation of generating a voice command, etc. Fig.33E As shown, the electronic device 100 detects that the icon of the privacy picture 3301 (first privacy picture) is clicked, and this operation is an operation of opening the privacy picture 3301. The first privacy picture can be any privacy picture.
[0385] S3207: In response to detecting an operation of opening the first privacy picture and determining that the face change detection result is that the face has not changed, displaying the first privacy picture, such as Fig.33F As shown, optionally, when displaying the first privacy picture, a privacy icon can also be displayed in the upper right corner of the first privacy picture to prompt the user that the picture currently browsed is a private picture. Of course, the privacy icon can also be set in other positions and adopt other shapes, which is not limited by the embodiment of the present invention.
[0386] S3208: When displaying the first private picture, detecting an operation of opening the second private picture;
[0387] The operations for opening the second privacy picture include: next page operation, previous page operation, preset gestures, voice commands, etc. Please refer to Fig.34 and Fig.35 , the operation of opening the second privacy picture is, for example, a next page operation, and the second privacy picture is, for example, Fig.33E The privacy picture corresponding to the icon 3302 in the figure.
[0388] When displaying the first private picture, if a change in the face is detected, the first private picture is kept in the display state, such as Fig.35 The status (a) is shown.
[0389] S3209: If the face change detection result is that the face has not changed, display the second privacy picture;
[0390] For example, see Fig.34, the electronic device 100 has been used by user A, who slides his finger to the left on the display screen (eg, Fig.34 In the state (ii), the electronic device 100 responds to the sliding operation, determines that the next picture is the second privacy picture 3302, and the face change detection result is that the face has not changed, then displays the second privacy picture 3302, such as Fig.34 The status (iii) is shown.
[0391] S3210: If the face change detection result is that the face has changed, display the fifth non-privacy content.
[0392] For example, when the electronic device 100 displays the first private picture 3301, user A passes the electronic device 100 to user B. The electronic device 100 detects that the face has changed, but because the first private picture 3301 is currently displayed on the display screen, it is considered that user A wants to share it with user B, so the first private picture is kept in the display state. Fig.35 Then user B slides his finger to the left on the display screen (as shown in the state (a) of Fig.35 ), the electronic device 100 detects the sliding operation and determines that the next picture is the second privacy picture 3302. At this time, the face of the person has changed, so the electronic device 100 continues to search for the next picture of the second privacy picture 3302 until a non-privacy picture is found and then displayed, as shown in FIG. Fig.35 As shown in state (three), the non-privacy picture 3303 is displayed at this time. In addition to the non-privacy picture 3303, the fifth non-privacy content can also return to the upper menu, or mosaic the second privacy picture to obtain the fifth non-privacy content, etc. The fifth non-privacy content is similar to the previous non-privacy content and will not be repeated here.
[0393] Optionally, when displaying the fourth content, if the electronic device 100 detects an operation of returning to the previous level menu, it will still determine the result of the face change detection. If the result of the face change detection indicates that the face has changed, the icon of the non-privacy picture in the folder corresponding to the previous level menu will be displayed; if the result of the face change detection is that the face has not changed, the icons of all pictures in the folder corresponding to the previous level menu will be displayed, including icons of privacy pictures and icons of non-privacy pictures.
[0394] When the fifth non-privacy content is a non-privacy picture, if the operation of deleting the non-privacy picture is detected, the electronic device 100 will determine whether the next picture to be displayed is a privacy picture. If it is a privacy picture, the electronic device 100 will determine whether the face has changed based on the face change detection result. If there is no change, the next privacy picture will be displayed; if there is a change, the privacy picture will not be displayed, but other non-privacy pictures will be displayed. If the next picture is a non-privacy picture, the picture can be displayed directly. Alternatively, if the operation of deleting the fourth content is detected, the electronic device 100 will obtain the face change detection result to determine whether there is a change. If there is no change, the next picture will be displayed directly, otherwise, jump to the previous menu, etc. For the case where the electronic device 100 displays a privacy picture, if the operation of deleting the privacy picture is detected, the electronic device 100 can adopt the same processing method, that is, based on whether the next picture is a privacy picture and whether the face has changed, determine the next display content.
[0395] Please refer to Fig.36 Another embodiment of the present invention provides a privacy protection method for an electronic device, which specifically includes the following steps:
[0396] S3600: Start face change detection, where the face change detection is to continuously detect whether the face in front of the display screen of the electronic device has changed during the current unlocking cycle, where the face change in front of the display screen of the electronic device specifically means that the current face in front of the display screen of the electronic device does not match the reference face;
[0397] S3601: After starting face change detection, when the first display interface is displayed, a new message from the privacy application is received, and the result of the face change detection is that the current face has changed; the new message is not displayed on the first display interface or a part of the new message is displayed on the first display interface;
[0398] S3602: When a new message is received from a privacy application and the result of face change detection is that the current face has not changed, the new message is displayed on the first display interface.
[0399] In S3600, how to start face change detection has been introduced before, so I will not repeat it here.
[0400] In S3601, the first display interface can be a certain screen of the display screen of the electronic device 100 (for example: the first screen, the negative first screen, etc.), or it can be the interface of a certain application, such as: an instant messaging software interface, an image browsing interface of an album application, etc., or it can be a system setting interface, which is not limited in the embodiment of the present invention. As for what kind of application the privacy application is, it has been introduced above, so it will not be repeated here. Among them, after receiving the short message, the electronic device 100 first determines whether the short message is a short message of a privacy application. If the short message is a short message of a non-privacy application, it will be displayed; if the short message is a short message of a privacy application, the result of the face change detection is taken, and it is determined that the face has changed, and then the short message is hidden. Optionally, after receiving the short message, the electronic device 100 can further determine whether the short message contains private content, and the private content is, for example: password information, account information, verification code, information sent by a private contact, pictures containing preset content, etc., and then hide the short message.
[0401] The short message may be completely hidden or partially hidden, for example, the sender of the short message may be hidden, the private content contained in the short message may be hidden, and so on.
[0402] In S3602, after receiving the short message, the electronic device 100 determines that the short message is not a short message of a private application, and can directly display the short message. Due to the limitation of the length of the short message and the size of the display interface, only part of the content of the long short message may be displayed, but part of the private content will not be hidden.
[0403] Optionally, after hiding all or part of the content of the short message based on S3601, the electronic device 100 can continue to obtain the results of face change detection. After the result of face change detection is that the face has not changed (switching from an unauthorized user to an authorized user), the short message can be displayed.
[0404] Optionally, after hiding part of the content of the short message based on S3601, the user's preset operation (for example, generating a user's preset gesture) can be received on the first display interface to display the entire content of the short message; wherein, through a certain operation, all hidden short messages can be displayed, or only a short message corresponding to the user operation can be displayed, and this is not limited by the embodiment of the present invention.
[0405] Optionally, after starting face change detection, the electronic device 100 can determine whether the new message is a private message when receiving a new message. If the new message is a private message and the face change detection result is that the face has changed, the new message is not displayed on the first display interface or a part of the new message is displayed on the first display interface; if the new message is not a private message or the face change detection result is that the face has not changed, the new message is displayed on the first display interface. One possibility that the new message is a private message is that the new message is a message of a private application, and another possibility is that the new message is a new message containing preset content, such as: preset contacts, preset keywords, preset pictures, etc.
[0406] There is no order of execution for the process of the electronic device 100 determining whether a new message is a private message and the process of the electronic device 100 obtaining the face change detection result. After receiving a new message, the electronic device 100 can directly obtain the face change detection result. If the face change detection result shows that the face has changed, it determines whether the new message is a private message. If it is a private message, the new message is not displayed on the first display interface or part of the new message is displayed on the first display interface. If it is not a private message, the new message is directly displayed. After receiving a new message, the electronic device 100 can also first determine whether the new message is a private message. If the new message is a private message, it can obtain the face change detection result to determine whether to display the new message.
[0407] In addition, in the specific implementation process, the user of the electronic device 100 can also be authenticated before the face change detection is performed. If the identity authentication is successful, the face change detection is performed. As the method and timing of identity authentication have been introduced above, they will not be repeated here.
[0408] Generally, applications involving privacy may be, for example, photo albums, contacts, and text messages. Users can set hidden photo albums in photo albums, and can set private contacts in contacts. The electronic device 100 can display private content after detecting that the current user is the owner, and may not display private content after detecting that the current user is not the owner. Next, the hidden photo album in the photo album is used as an example for explanation. The technical solution provided in the embodiment of the present application is described in detail below in conjunction with the accompanying drawings.
[0409] In the following embodiments, a privacy application program as a photo album is taken as an example to introduce the privacy protection method of the electronic device 100 provided by the embodiment of the present invention.
[0410] First combine Figure 37A-Figure 37D Introduce the application scenario involved in the embodiment of the present application - the process of setting up a hidden album.
[0411] The electronic device 100 may detect a touch operation on the camera icon (such as a click operation on the album icon), and in response to the touch operation, the electronic device 100 may display Fig.37A A user interface 30 is shown for presenting a photo album.
[0412] like Fig.37A As shown, the user interface 30 may include: a menu indicator 301, a more control 302, a search control 303, a "photo" menu control 304, an "album" menu control 305, a "moment" menu control 306, a "discover" menu control 307 and an album list 308. Among them:
[0413] The menu indicator 301 may be used to indicate the menu category to which the content currently displayed by the user interface 30 belongs. The menu categories may specifically include photos, albums, moments, and discoveries. Fig.37A The menu category displayed by the user interface 30 shown in FIG. 1 is photo album.
[0414] The more control 302 can be used to display more function lists. The electronic device 100 can detect a touch operation on the more control 302 (such as a click operation on the more control 302), and in response to the touch operation, the electronic device 100 can display in the user interface 30 Fig.37B The function list 309 is shown. The function list 309 will not be described in detail here.
[0415] The search control 303 can be used to search for pictures. The electronic device 100 can detect a touch operation on the search control 303 (such as a click operation on the search control 303). In response to the touch operation, the electronic device 100 can display a search box in the user interface 30 to receive a keyword input by the user and search the album for pictures matching the keyword.
[0416] The "Photo" menu control 304 can be used to display a photo list. The electronic device 100 can detect a touch operation on the "Photo" menu control 304 (such as a click operation on the "Photo" menu control 304), and in response to the touch operation, the electronic device 100 can display a photo list in the user interface 30. The photo list may include all pictures saved in the internal memory 121 of the electronic device 100. These pictures can be arranged from top to bottom and from left to right in the order in which the pictures were saved, for example, the pictures with the latest saving time are displayed in the first column and the first row of the list, and the pictures with the longest saving time are displayed in the last column and the last row of the list.
[0417] The "Album" menu control 305 can be used to display an album list. The electronic device 100 can detect a touch operation on the "Album" menu control 305 (such as a click operation on the "Album" menu control 305), and in response to the touch operation, the electronic device 100 can display the album list in the user interface 30. Fig.37A A list of photo albums 308 is shown.
[0418] The “Moments” menu control 306 can be used to display a collection of photos at a specific moment stored in the internal memory 121. The electronic device 100 can detect a touch operation (such as a click operation on the “Photos” menu control 304) acting on the “Photos” menu control 304. In response to the touch operation, the electronic device 100 can display a collection of photos at a specific moment in the user interface 30, such as photos taken at a party, photos taken at a graduation, photos taken while traveling, etc.
[0419] The "Discover" menu control 307 can be used to display one or more folders according to other classification methods, and each folder can contain one or more pictures. For example, multiple folders can be displayed according to location and time classification. Under the location classification, pictures can be classified into different folders according to the shooting location (for example, Beijing, Shanghai, New York, Tokyo, etc.). Under the time classification, pictures can be classified into different folders according to the shooting time (for example, 2018, 2017, 2016, etc.).
[0420] The album list 308 can be used to display one or more folders (file collections), each of which can contain multiple pictures with common features. For example, pictures obtained by screenshots and screen recordings can be attributed to the screenshots and screen recording folder, pictures from instant messaging software can be attributed to the instant messaging software folder 308A, pictures from the first social software can be attributed to the first folder, pictures from the first instant messaging software can be attributed to the second folder, pictures from the second instant messaging software can be attributed to the third folder, pictures deleted within a period of time can be attributed to the recently deleted folder, and users can also customize folders and attribute multiple pictures to customized folders. Each folder can include a cover icon, a folder name, and the number of files contained in the folder.
[0421] Next, let’s introduce Fig.37B The function list 309 is shown in FIG. Fig.37B As shown, the function list 309 may include a hide album control and a setting control.
[0422] The hidden album control can be used to set a hidden album. The electronic device 100 can detect a touch operation on the hidden album control (such as a click operation on the hidden album control), and in response to the touch operation, the electronic device 100 can display Fig.37C A user interface 40 is shown.
[0423] The setting control can be used to set other functions of the album, such as whether to enable the album data synchronization setting, whether to set the image rotation according to the gravity sensor, whether to display the shooting time and location setting when viewing, etc. The electronic device 100 can detect a touch operation acting on the setting control (such as a click operation on the setting control), and in response to the touch operation, the electronic device 100 can display a user interface for setting other functions of the album.
[0424] Next, let’s introduce Fig.37C The user interface 40 is shown. Fig.37C As shown, the user interface 40 may include: a return control 401, and an album list 402. Among them:
[0425] The return control 401 can be used to return to the previous user interface of the current user interface. The electronic device 100 can detect a touch operation on the return control 401 (such as a click operation on the return control 401), and in response to the touch operation, the electronic device 100 can display Fig.37C A user interface 30 is shown.
[0426] The album list 402 can be used to display one or more album options. Each album option may include a cover icon such as 4021, the album name, the number of files contained in the album, and a selection control corresponding to the album such as 4022. The selection control 4022 may include two states: a selected state and an unselected state. The state of the selection control 4022 shown in 37C is the unselected state. The electronic device 100 can detect a sliding operation on the selection control 4022 (such as a sliding operation from left to right on the selection control 4022). In response to the sliding operation, the electronic device 100 can set the album corresponding to the selection control 4022 to a hidden album and display the selection control 4022 as Fig.37D Shows the selected state.
[0427] based on Figure 37A-Figure 37D The application scenario is shown, and then some user interface (UI) embodiments implemented on the electronic device 100 are introduced.
[0428] The non-owner state mentioned in the following embodiments means that the electronic device 100 detects that the face of the user currently using the electronic device 100 does not match the face of the owner, or the matching degree is lower than a preset threshold, such as 80%. The owner state mentioned in the following embodiments means that the electronic device 100 detects that the face of the user currently using the electronic device 100 matches the face of the owner, or the matching degree is not lower than a preset threshold, such as 80%. The multi-watching state mentioned in the following embodiments means that the electronic device 100 detects that the number of faces of the user currently using the electronic device 100 is greater than or equal to 2.
[0429] Fig.38 The display mode of the user interface 30 in the owner state and the non-owner state is exemplified.
[0430] from Fig.38 As can be seen from the left figure in , in the non-owner state, the electronic device 100 may not display the instant messaging software folder that is set as a hidden album in the user interface 30.
[0431] And from Fig.38 As can be seen from the right figure in the figure, in the owner state, the electronic device 100 can display the instant messaging software folder 308A set as a hidden album in the user interface 30.
[0432] Fig.39 Another display mode of the user interface 30 in the owner state and the non-owner state is exemplified.
[0433] from Fig.39 As can be seen from the left figure in FIG, the electronic device 100 can display a hidden album 308B in the user interface 30 in the non-owner state. The cover icon of the album can be, for example, but not limited to, an icon of a locked lock. The electronic device 100 can detect a touch operation (such as a click operation on the hidden album 308B) acting on the hidden album 308B, and in response to the touch operation, the electronic device 100 can display an identity verification prompt box. The identity verification prompt box can, for example, prompt the user to verify a fingerprint, enter a password, or verify a face.
[0434] And from Fig.39 As can be seen from the right figure in FIG, in the owner state, the electronic device 100 can display the hidden album 308C in the user interface 30. The cover icon of the album can be, for example, but not limited to, an icon of an open lock. The electronic device 100 can detect a touch operation (such as a click operation on the hidden album 308C) acting on the hidden album 308C, and in response to the touch operation, the electronic device 100 can display a list of pictures in the hidden album.
[0435] Not limited to Fig.38 and Fig.39 The display method shown is, in a specific implementation, the user interface 30 may also have other display methods in the owner state and the non-owner state, and the embodiment of the present application is not limited to this.
[0436] Not limited to Fig.38 and Fig.39 The corresponding relationship between the user interface 30 displayed in the owner state and the non-owner state is shown in FIG. 7 . In a specific implementation, there may be other corresponding relationships. The display mode of the user interface 30 in the owner state may be the mode shown in the right figure in FIG. 7 , and the display mode of the user interface 30 in the non-owner state may be Figure 8 The method shown on the left in the figure.
[0437] Fig.40 The display mode of the user interface 30 in a state where multiple people are watching is exemplified.
[0438] Fig.40 As can be seen in FIG. 1 , when the electronic device 100 detects that multiple users are currently watching, the electronic device 100 can display a prompt 310 at the top of the current user interface, such as the user interface 30. The prompt 310 can be used to remind the user that other users are currently watching the user interface 30 to prevent privacy leakage.
[0439] In addition, please refer to Fig.47 , the prompt 310 may also include a close control 3101. The close control 3101 may be used to close the prompt 310. If the user knows that other users are watching the user interface 30 and do not mind, the user may close the prompt 310 by clicking the close control 3101, so that the user can view the user interface 30. The prompt 310 may be closed by sliding the prompt 310 to the left or right without being limited to closing the prompt 310 by the close control 3101. The embodiment of the present application does not limit the method of closing the prompt 310.
[0440] Not limited to Fig.40 In the prompt method shown in the figure, in a specific implementation, the prompt symbol of the multi-person gaze status may also have other forms of expression, such as displaying a prompt box in a semi-transparent form in the middle of the user interface 30, or the electronic device 100 may vibrate at a preset frequency, or the electronic device 100 may flash the indicator 192 at a preset frequency to prompt the user, and the embodiments of the present application are not limited to this.
[0441] Next, a privacy protection method for an electronic device 100 provided in an embodiment of the present application is introduced in combination with the aforementioned application scenario.
[0442] Fig.41 A flowchart of a privacy protection method for an electronic device 100 is shown as an example. Fig.41 As shown, the method may include at least the following steps:
[0443] S101: The low-power camera 193A continuously detects whether the face of the person in front of the display screen 193 of the electronic device 100 changes. If so, execute S102; if not, execute S101.
[0444] Specifically, the low-power camera 193A can capture images at a first frequency to determine whether the face included in the image has changed. The first frequency can be, for example but not limited to, 10 frames per second.
[0445] Specifically, the change in the face included in the image may include: the face included in the image may appear from nothing, or may change from face A to face B.
[0446] Among them, the low-power camera 193A can be an infrared camera, and the collected image can be a black and white image.
[0447] In the embodiment of the present application, the low power camera 193A can continuously detect whether the face in front of the display screen 193 of the electronic device 100 changes when it is turned on. Specifically, the way to turn on the low power camera 193A can be, but is not limited to, turning it on through a control in the setting page of the electronic device 100.
[0448] The electronic device 100 may detect a touch operation on the setting icon 209 (such as a click operation on the setting icon 209), and in response to the touch operation, the electronic device 100 may display Fig.48 The settings interface 50 is shown.
[0449] like Fig.48 As shown, the setting interface 50 may include a control 501. The control 501 may be used to turn on or off the low-power camera 193A. Assume that the initial state of the low-power camera 193A is off. The electronic device 100 may detect a user operation acting on the control 501 (such as a sliding operation acting on the control 501), and in response to the operation, the electronic device 100 may turn on the low-power camera 193A.
[0450] In addition, the settings interface 50 may also include other function settings items, such as Huawei account login settings, wireless and network settings, device connection settings, application and notification settings, battery settings, display settings, sound settings, storage settings, and security and privacy settings. The settings interface 50 may also include a search box and a language input control, both of which can be used to receive a keyword input by the user to search for settings items that match the keyword.
[0451] The methods are not limited to those listed above. In a specific implementation, other methods of turning on the low-power camera 193A may also be used, and the embodiments of the present application do not limit this.
[0452] S102: Determine whether the electronic device 100 is unlocked, if so, execute S103, if not, execute S101.
[0453] Specifically, if it is detected that the current face has changed, it is further determined whether the electronic device 100 has been unlocked. If it has been unlocked, S103 can be executed to trigger the front camera 193B to capture the current face. If it has not been unlocked, S101 can be continued to detect whether the face has changed.
[0454] In some other embodiments, after the low-power camera 193A detects that the current face has changed, if the electronic device 100 is not unlocked, it can trigger the front camera 193B to perform face recognition, and if the recognition is successful, the electronic device 100 can be unlocked.
[0455] Alternatively, after the low-power camera 193A detects that the current face has changed, if the electronic device 100 is not unlocked, the unlocking process can be triggered, such as displaying a password input prompt box, or a fingerprint recognition prompt box, etc.
[0456] S103: The front camera 193B captures the current face.
[0457] Specifically, the front camera 193B can capture images at a second frequency. The second frequency is higher than the first frequency, and the second frequency can be, for example, but not limited to, 150 frames per second. In other words, the time interval for the low-power camera 193A to capture images is greater than the time interval for the front camera 193B to capture images. And the resolution of the image captured by the front camera 193B is higher than the resolution of the image captured by the low-power camera 193A.
[0458] In another embodiment, the current face may also be captured by the low-power camera 193A. Specifically, the low-power camera 193A may capture the current face at a second frequency, wherein the second frequency is higher than the first frequency, and the second frequency may be, for example but not limited to, 30 frames per second.
[0459] If the low-power camera 193A is used to collect faces, and the frequency of collecting faces is higher than the frequency of detecting whether the faces have changed, compared with collecting faces using the front camera 193B, the power consumption of the electronic device 100 can be further reduced while ensuring the accuracy of face recognition, and the battery life of the electronic device 100 can be further improved.
[0460] S104: The processor 110 determines whether the current face matches the preset face. If so, execute S105; otherwise, execute S107.
[0461] Specifically, the preset face image may be the face of the owner of the machine stored in the internal memory 121. The processor 110 may match the feature points of the image of the current face captured by the front camera 193B with the feature points of the face of the owner of the machine stored in the internal memory 121. If the two are matched successfully, it is determined that the current user is the owner of the machine, that is, the current state is the owner state. If the two are not matched successfully, it is determined that the current user is not the owner of the machine, that is, the current state is the non-owner state. Among them, the current state may include the owner state and the non-owner state.
[0462] The current face matches the preset face when the similarity between the current face and the preset face exceeds a preset threshold, which can be, but is not limited to, 80%. The current face does not match the preset face when the similarity between the current face and the preset face does not exceed the preset threshold.
[0463] S105: Determine and notify the first application that it is currently in the device owner state.
[0464] Specifically, the first application may be a privacy application such as an album, text messages, contacts, etc. The first application may be an application set by a user or an application set by a manufacturer. The number of first applications may be one or more. The electronic device 100 may promptly notify the first application after detecting a change in the current state so that the first application determines its display content.
[0465] Specifically, the first application can register the owner state callback with the low power camera 193A. That is, when the low power camera 193 detects that the current state has changed, it can notify the first application that the current state is the owner state or the non-owner state.
[0466] The first application is not limited to the privacy applications listed above. In a specific implementation, the first application may also be other applications, and the embodiments of the present application do not limit this.
[0467] In some embodiments, the above S105 is an optional step. If the first application is a system application (e.g., calendar, calculator, camera, etc.), the electronic device 100 can directly control the display content in the user interface of the first application. In this case, there is no need to notify the first application that it is currently in the owner state. If the first application is a non-system application (e.g., Baidu, instant messaging software, etc.), a notification can be sent to the first application to allow the first application to adjust the display content based on the owner state. The above S105 enables non-system applications to distinguish between the owner state and the non-owner state, thereby displaying different content.
[0468] S106: The electronic device 100 displays the private content in the user interface of the first application.
[0469] Specifically, the first application can determine its display content according to the current state. Fig.38 and Fig.39 The left picture in the figure shows the content displayed when the device is not the owner. Fig.38 and Fig.39 The right picture in the figure shows the content displayed in the owner state. Fig.38 308A in the right picture is the private content.
[0470] It can be seen that after the electronic device 100 displays the private content in the user interface of the first application, the low-power camera 193A can continue to detect whether the face of the person in front of the display screen of the electronic device 100 changes.
[0471] S107: Determine and notify the first application that it is currently in a non-owner state.
[0472] Specifically, after detecting that the electronic device 100 is in a non-owner state, it promptly notifies the first application so that the first application can determine its display content.
[0473] Similarly, the above S107 is also an optional step.
[0474] S108: The electronic device 100 does not display the private content in the user interface of the first application.
[0475] It can be seen that after the electronic device 100 does not display the private content in the user interface of the first application, the low-power camera 193A can continue to detect whether the face of the person in front of the display screen of the electronic device 100 changes.
[0476] Specifically, the first application can determine its display content according to the current state. Fig.38 As shown, Fig.38 Compare the left and right pictures in Fig.38 308A in the right figure is the private content. Fig.38 As can be seen from the left picture in , when not in the owner's state, the electronic device 100 does not display private content.
[0477] Possibly, when the electronic device 100 detects a change in the current state, the user interface displayed by the electronic device 100 may not be the user interface of the first application. After detecting a change in the current state, when a user operation is detected to cause the electronic device 100 to display the user interface of the first application, corresponding content can be displayed according to the current state without performing authentication again (such as face recognition).
[0478] For example, the user interface currently displayed by the electronic device 100 may be the desktop. At this time, after the electronic device 100 detects that the current state has changed from the owner state to the non-owner state, it may notify the album application that the current state is the non-owner state. When the electronic device 100 detects a click operation on the album icon 207, in response to the operation, the electronic device 100 may display Fig.38 or Fig.39 The user interface shown on the left.
[0479] For another example, the user interface currently displayed by the electronic device 100 may be the desktop. At this time, after the electronic device 100 detects that the current state has changed from the non-owner state to the owner state, it may notify the photo album application that the current state is the owner state. When the electronic device 100 detects a click operation on the photo album icon 207, in response to the operation, the electronic device 100 may display Fig.38 or Fig.39 The user interface shown on the right.
[0480] Possibly, when the electronic device 100 detects that the current state has changed, the user interface displayed by the electronic device 100 may be the user interface of the first application. After detecting that the current state has changed, the display content in the current user interface may be changed according to the current state.
[0481] For example, the user interface currently displayed by the electronic device 100 may be Fig.38 or Fig.39 The current state is the non-owner state. If the electronic device 100 detects that the current state changes from the non-owner state to the owner state, the electronic device 100 may display the same Fig.39 The user interface shown on the right.
[0482] For another example, the user interface currently displayed by the electronic device 100 may be Fig.38 or Fig.39 The current state is the owner state. If the electronic device 100 detects that the current state changes from the owner state to the non-owner state, the electronic device 100 may display the same Fig.39 The user interface shown on the left.
[0483] Possibly, when the electronic device 100 detects that the current state has changed, the user interface displayed by the electronic device 100 may be the user interface of the first application. After detecting that the current state has changed, the electronic device 100 does not change the content in the current user interface.
[0484] Possibly, when the electronic device 100 detects that the current state has occurred, the user interface displayed by the electronic device 100 may be the user interface of the first application. After detecting that the current state has changed from the non-owner state to the owner state, the electronic device 100 may change the content displayed by the current user interface, that is, display the private content. However, after detecting that the current state has changed from the owner state to the non-owner state, the electronic device 100 may not change the content displayed by the current user interface, that is, still display the private content. This can avoid the embarrassment caused by others witnessing that certain content is hidden when the owner hands the phone to others.
[0485] In a possible implementation, the electronic device 100 may set the default display content of the first application to be the content displayed in the non-host state, such as Fig.38 or Fig.39 When it is detected that the current state changes from the non-owner state to the owner state, the display content of the first application can be changed to the content displayed in the owner state, such as Fig.38 or Fig.39 The right figure shows the contents displayed in the user interface.
[0486] In another possible implementation, the electronic device 100 may set the default display content of the first application to be the display content in the master state, such as Fig.38 or Fig.39 When it is detected that the current state changes from the owner state to the non-owner state, the display content of the first application can be changed to the content displayed in the non-owner state, such as Fig.38 or Fig.39 The left image in the figure shows what is displayed in the user interface.
[0487] In the embodiment of the present application, a low-power camera can be used to detect in real time whether the current user has changed. In the case of a change, the front camera is triggered to collect the face and perform face verification. The electronic device 100 displays content according to the face verification result. The embodiment of the present application can protect user privacy in real time and comprehensively, and the use of a low-power camera to detect in real time whether the current user has changed can ensure that the electronic device 100 has low power consumption and strong endurance.
[0488] Fig.42 The flowchart of another privacy protection method of the electronic device 100 provided in the embodiment of the present application is exemplarily shown. Fig.42 As shown, the privacy protection method of the electronic device 100 may include at least the following steps:
[0489] S301: Continue to detect whether the face of the person in front of the display screen of the electronic device 100 changes.
[0490] Specifically, the electronic device 100 can capture an image at a first frequency through a first camera (low-power camera 193A) to determine whether the face contained in the image has changed. The first camera can be the low-power camera 193A mentioned in the above embodiment. The first frequency can be, for example, but not limited to, 10 frames per second.
[0491] Specifically, the change in the face included in the image may include: the face included in the image may appear from nothing, or may change from face A to face B.
[0492] Specifically, no matter whether the electronic device 100 is in a locked state or an unlocked state, no matter whether the electronic device 100 is in a bright screen state or an off screen state, the first camera can continue to detect whether the face of the person on the display screen 194 of the electronic device 100 changes.
[0493] S302: When it is detected that the face in front of the display screen 194 of the electronic device 100 changes to the first face, display the first content in the target interface.
[0494] Among them, the first face matches the preset face.
[0495] Specifically, if the similarity between the first face and the preset face exceeds a preset threshold, it can be considered that the first face and the preset face match, wherein the preset threshold may be, for example but not limited to, 80%.
[0496] Specifically, the above-mentioned preset face image may be the face of the owner of the device stored in the internal memory 121. The first face matches the preset face, which may indicate that the current user status is the owner status. The target interface may be, for example, Figure 5 Or the user interface shown in the right figure in FIG6. The first content can be, for example, Figure 5 Or the content displayed in the user interface shown in the right figure in Figure 6.
[0497] Specifically, after displaying the first content in the target interface, the electronic device 100 can continue to detect whether the face of the person in front of the display screen 194 changes through the first camera, that is, the electronic device 100 can continue to detect whether the face of the person in front of the display screen 194 changes through the first camera.
[0498] S303: When it is detected that the face in front of the display screen 194 of the electronic device 100 changes to a second face, display the second content in the target interface.
[0499] Among them, the second face does not match the preset face.
[0500] Specifically, if the similarity between the first face and the preset face does not exceed a preset threshold, it can be considered that the first face and the preset face do not match. The preset threshold may be, for example but not limited to, 80%.
[0501] Specifically, the first face matches the preset face, which indicates that the current user status is a non-user status. The target interface may be, for example, Fig.38 or Fig.39 The second content may be, for example, Fig.38 or Fig.39 The left image in the figure shows what is displayed in the user interface.
[0502] Specifically, after displaying the second content in the target interface, the electronic device 100 can continue to detect whether the face of the person in front of the display screen 194 changes through the first camera, that is, the electronic device 100 can continue to detect whether the face of the person in front of the display screen 194 changes through the first camera.
[0503] The embodiment of the present application does not limit the order in which the above S302 and S303 are implemented.
[0504] In some possible embodiments, the above S302 may specifically include: when detecting through the first camera that a face in front of the display screen of the above electronic device 100 has changed, capturing the changed face through the second camera, where the changed face is the first face; determining that the first face matches a preset face; and displaying the first content in the target interface.
[0505] The above S303 may specifically include: when the first camera detects that the face in front of the display screen of the electronic device 100 changes, the second camera captures the changed face, the changed face being the second face; and displaying the second content in the target interface.
[0506] The second camera may be the front camera 193B mentioned in the above embodiment. The frequency of the second camera collecting images may be a second frequency. The second frequency is greater than the first frequency, and the second frequency may be, for example, but not limited to, 150 frames per second. The resolution of the image collected by the second camera may be higher than the resolution of the image collected by the first camera.
[0507] In some possible embodiments, the face after the change collected in S302 or S303 may also be collected by the first camera at a third frequency. The third frequency is greater than the first frequency. The third frequency may be, for example, but not limited to, 30 frames per second.
[0508] In some possible embodiments, the above S302 may specifically include: when it is detected that the face in front of the display screen of the electronic device 100 changes to a first face, receiving a first user operation acting on a first control; and displaying first content in the target interface in response to the first user operation.
[0509] The above S303 may specifically include: when it is detected that the face in front of the display screen of the electronic device 100 changes to a second face, receiving a second user operation acting on the first control; and displaying second content in the target interface in response to the second user operation.
[0510] The first user operation is consistent with the second user operation and can both be used to enable the electronic device 100 to display the target interface.
[0511] Specifically, the first control may be, for example, Fig. 6A The first user operation or the second operation may be a click operation on the album icon 207. The target interface may be FIG. 7 or Figure 8 The first content may be a user interface 30 shown in the right figure of FIG. Fig.38 or Fig.39 The second content may be the content displayed in the user interface 30 shown in the right figure. Fig.38 or Fig.39 The left figure in FIG. 1 shows the contents displayed in the user interface 30 .
[0512] In addition, when the first camera detects that the number of faces in front of the display screen of the electronic device 100 is greater than or equal to 2, the electronic device 100 may display a prompt in the target interface. The target interface may be the user interface currently being displayed by the electronic device 100. The prompt may be, for example, Fig.40 The prompt 310 shown in the embodiment can be used to remind the user that other users are also looking at the currently displayed user interface, reminding the user to protect privacy to avoid being peeped. The shooting angle of the first camera is larger than that of the second camera, which can expand the privacy monitoring range and protect user privacy more comprehensively.
[0513] The embodiment of the present application can detect the changes of the face in front of the screen of the electronic device 100 in real time, and perform face recognition after detecting the changes of the face. The whole process does not need to be manually triggered by the user, which reduces the user operation and improves the user's efficiency. The electronic device 100 can display content according to the result of face recognition, display private content when it is detected that the current user is the owner, and not display private content when it is detected that the current user is not the owner, which can ensure that the privacy of the owner is not leaked, and ensure the privacy security of the owner. In addition, since the time interval for the low-power camera to collect images is greater than the time interval for the front camera to collect images, and the resolution of the image collected by the low-power camera is lower than the resolution of the image collected by the front camera, and the low-power camera can be connected to a chip alone for processing the image collected by the low-power camera, the electronic device 100 uses a low-power camera to detect face changes in real time, which can reduce the power consumption of the electronic device 100 and improve the battery life of the electronic device 100 while ensuring that the privacy of the owner is not leaked.
[0514] Please refer to Fig.43 The privacy protection method of an electronic device introduced in an embodiment of the present invention comprises the following steps:
[0515] S4300: continuously detecting whether a face in front of a display screen of an electronic device changes;
[0516] As for how to detect whether a face has changed, we have already introduced it before, so we will not repeat it here.
[0517] S4310: When the display screen displays the first private content, in response to detecting a change in the face of the person, hiding the first private content.
[0518] Specifically, the face change detection can be started first, and the face change detection is to continuously detect whether the face in front of the display screen of the electronic device has changed during the current unlocking cycle, wherein the face change in front of the display screen of the electronic device specifically means that the current face in front of the display screen of the electronic device does not match the reference face. After starting the face change detection, the electronic device 100 always obtains the face change detection result, and hides the first privacy content when the face change detection result is that the face has changed.
[0519] For example, in the initial stage, the electronic device 100 is used by an authorized user (e.g., the owner, or a person authorized by the owner). When using the electronic device 100, user A can first unlock the electronic device 100. For example, the electronic device 100 is equipped with a fingerprint identifier, and the electronic device 100 is currently in a locked screen state. User A wants to use the electronic device 100 to browse pictures in the photo album application, so he picks up the electronic device 100 and places his right thumb on the surface of the fingerprint identifier. After the electronic device 100 detects that the user has placed his right thumb on the surface of the fingerprint identifier, it collects the fingerprint of user A and matches the fingerprint with the pre-stored unlocking fingerprint. When the fingerprint of user A matches the unlocking fingerprint, the electronic device 100 enters an unlocking state, and the icon of the application is displayed on the screen of the electronic device 100, such as Fig.44 The status (a) is shown.
[0520] In some embodiments, the unlocking operation may also be password unlocking, face recognition unlocking, sliding unlocking, nine-square unlocking, etc., which are not limited in the embodiments of the present invention. In other embodiments, the unlocking process is optional. User A wants to view pictures in the album application, and then generates an operation to open the album application (for example, click the icon of the album application). After the electronic device 100 responds to the operation, it displays the homepage of the album application (the default is: the page where the album is located), such as Fig.44 As shown in the state (ii), the homepage includes multiple album icons, among which album A 1202 and album B 1203 have privacy labels and are the first private content; while album C 1204 and album D 1205 are not private content. In some embodiments, user A can also open the album application in other ways, such as: predetermined gestures, double-clicking, sliding, etc.
[0521] However, if user A is viewing the photo album, and user B grabs the electronic device 100 from user A, hoping to see what user A is currently viewing, the result of the face change detection is that the face has changed, and it is determined that the current display content of the display screen includes the first private content (the icons of album A1202 and album B1203), then the icons of album A1202 and album B1203 are hidden to ensure the safety of user A using the electronic device 100 in real time. At this time, the second content can be displayed on the display screen of the electronic device, or the screen can be turned off. The second content is the non-private content introduced above. When the electronic device 100 hides the icons of album A1202 and album B1203, it can directly hide album A1202 and album B1203 from all the content displayed on the display screen, while keeping the icons of album C1204 and album D1205 in a displayed state (albums C1204 and album D1205 are the second content), such as Fig.44or, a prompt message (the prompt message is the second content) may be set on album A 1202 and album B 1203 to prompt user B that it cannot be accessed, etc. Of course, other second contents may also be displayed, which have been introduced above and will not be described again here.
[0522] Optional, please continue to refer to Fig.43 , the privacy protection method of the electronic device may further include the following steps:
[0523] S4320: When a face change is detected again, perform face recognition.
[0524] For example, when the electronic device 100 is in a non-owner state, if the face change detection algorithm detects that the face has changed again, it cannot be determined whether the face has changed from a non-owner (user B) to an owner (user A) or to a non-owner (user C). In this case, face recognition is required to determine whether the current user is the owner, so as to determine whether the first private content needs to be provided to the user. The face recognition result can be the owner or the non-owner, and the specific recognition process has been introduced above, so it will not be repeated here.
[0525] S4330: If the current face matches the preset face, display the first private content.
[0526] For example, after user B takes away the electronic device 100 of user A, user B takes a look at the photo album and finds that there is nothing interesting to see. With the photo album interface still displayed on the display screen, the electronic device 100 is returned to user A. The electronic device 100 determines that the current user is an authorized user through face recognition, and thus displays the first private content, such as Fig.44 The status (iv) is shown.
[0527] In another possible scenario, after user B takes away the electronic device 100, he opens album C 1205 (album C contains other private content). After the electronic device 100 detects this operation, it opens album C 1205, but only displays icons of images that do not contain privacy tags, without displaying other private content. After user B opens album C, he returns the electronic device 100 to user A. The electronic device 100 determines that the current user is the owner through face recognition, and thus displays the private content contained in album C (icons of pictures containing privacy tags).
[0528] S4040: If the current face does not match the preset face, process according to the first preset strategy.
[0529] In the specific implementation process, the first preset strategy is, for example: do not change the display content of the electronic device 100, keep the first private content in a hidden state; display an authorization interface on the display interface for receiving identity authentication; display interfaces for other verification methods, etc.
[0530] Optionally, there may be multiple situations in which the current face does not match the preset face, which may cause the corresponding first preset strategy to be different. The current face does not match the preset face, including the following situations: Situation 1: User B takes away the electronic device 100, and the electronic device 100 is taken away by user C. The electronic device 100 recognizes through face that the current user is not the owner.
[0531] Case 2: After user B takes the electronic device 100, he uses the electronic device together with user A. The electronic device 100 determines through face recognition that the current users include the owner and other users, and the faces meet the first preset condition. As for how to judge whether the first preset condition is met, it has been introduced before and will not be repeated here.
[0532] Case three: After user B takes away the electronic device 100, he returns the electronic device 100 to user A. There is user C next to user A. The electronic device 100 determines through face recognition that the current users include the owner and other users, and the difference between the total pixel value of the owner's features and the total pixel value of the non-owner's features in the face photo is greater than the preset threshold, and the face does not meet the first preset condition.
[0533] Therefore, when the electronic device 100 detects that the face has changed, it can further determine whether the face meets the first preset condition. If the first preset condition is met (such as Fig.24C If the first preset condition (such as Fig. 24B Or as shown in 24D), the first private content is kept in a hidden state.
[0534] Please refer to Fig.45 The privacy protection method of an electronic device introduced in an embodiment of the present invention comprises the following steps:
[0535] S4500: Start face change detection. Face change detection is to continuously detect whether the face in front of the display screen of the electronic device has changed during the current unlocking cycle. The change in the face in front of the display screen of the electronic device specifically means that the current face in front of the display screen of the electronic device does not match the reference face. As the specific method of performing face change detection has been introduced above, it will not be repeated here.
[0536] S4501: The electronic device displays the first private content;
[0537] S4502: In response to detecting a change in the face, prompting the user to authorize the device owner.
[0538] S4503: If the face of the person has not changed, the electronic device continues to display the first private content.
[0539] In S4501, after the electronic device 100 starts the face change detection, if the operation of displaying the first private content is detected, and the face change detection result is that the face has not changed, the first private content is displayed. Alternatively, after the electronic device 100 detects the operation of opening the first private application for the first time, it performs identity authentication, and starts the face change detection if the identity authentication passes, so that when the operation of opening the first private application for the second time is performed, it is directly determined based on the face change detection result whether to display the first private content.
[0540] For example, the first privacy content displayed on the display screen may be the content displayed on a certain screen of the display screen, such as: the main screen, the negative one screen, etc.; the first privacy content may also be the content contained in a certain page of a certain privacy application, such as: the homepage of the album application, the photo control interface, the album control interface, the homepage of the instant messaging software, the contact page, the personal information page, etc.; the first privacy content may also be the content contained in a certain folder of a certain application, such as: the privacy folder of the album application, the folder containing private pictures in the album application, etc.; the first privacy content may also be a specific file contained in a certain application, such as: a picture displayed in the album application, etc.
[0541] like Fig.46A As shown, the electronic device 100 is currently used by the owner (user A), and user A is using an instant messaging software. The instant messaging software currently displays a chat interface 4601 between user A and contact ANDY.
[0542] Subsequently, the electronic device 100 is taken away by user B. In this case, the electronic device 100 can display an authorization interface to hide the first private content. And remind user B (the current user) to authorize the owner. The authorization interface can be a prompt interface floating on the surface of the chat window 4601, or a prompt interface floating on the homepage of the instant messaging software (the upper directory of the chat window 4601), or a new interface that completely covers the chat window 4601, which is not limited in the embodiment of the present invention.
[0543] The authorization interface can prompt that the current user does not have permission to access the page and needs to obtain authorization first, such as Fig.46BAs shown, in this case, the owner can authorize through fingerprint, facial recognition, iris recognition, etc. After the electronic device 100 displays the authorization interface, if it detects the owner's authorization operation within a preset time period (for example, 5 seconds, 10 seconds) (for example, the camera detects preset facial features, iris features, the fingerprint recognition area reads a preset fingerprint, etc.), it is considered that there is an owner's authorization operation, and the first private content is displayed when the person is not the owner.
[0544] Optionally, in order to distinguish between the owner's authorization behavior and the owner's personal use behavior, a preset button can be generated on the authorization interface (for example: Fig.46B The electronic device 100 receives the authorization operation by clicking the start authorization button 4602 as shown in the figure. When the electronic device 100 detects that the user clicks the start authorization button 4602, it acquires the user's facial image through the camera and determines whether it is a preset face. If it is a preset face, the authorization is passed. If it is detected that the user clicks the cancel button 4603, the electronic device 100 exits the interface of the instant messaging software (for example, closes the instant messaging software, displays the login interface of the instant messaging software) or displays the non-private content of the instant messaging software (for example, exits the current chat window, returns to the parent page, and only displays the non-private content of the parent page) or the electronic device 100 enters the lock screen state, etc.
[0545] Optional, when performing human authorization verification, such as Fig.46C As shown, you can also prompt the authorization result and authorization method. Fig.46C The authorization method is face recognition, and the authorization result is: after authorization, non-machine owners can access the instant messaging software. Fig.46B The start authorization button 4602 shown jumps to the face recognition interface, and may also display the authorization interface for authorization through face recognition when a change in the face is detected.
[0546] Optionally, other verification method buttons can be displayed on the face verification interface, such as Fig.46C4604 and the password button 4605 are displayed in the figure, so that the user can choose to use the fingerprint or password for authorization. If user B wants to verify by password, he clicks the password button 4605, and the password receiving interface is displayed on the screen. User B asks the owner (user A) for the password. User A tells him that the password is "123ABC". User B enters "123ABC" in the password receiving interface. After receiving the password, the electronic device 100 matches it with the pre-stored password. If the match is successful, it indicates that the owner has authorized it. If the match fails, it is considered that the owner has not authorized it. For another example, if user B wants to verify by fingerprint, he clicks the fingerprint button 4604, and the screen prompts "Please verify the fingerprint in the fingerprint input area". User B picks up the thumb of user A and puts it in the fingerprint identification area. After the electronic device 100 detects the fingerprint in the fingerprint identification area, it matches it with the preset fingerprint (user A's fingerprint). If the match is successful, the owner has authorized it. Otherwise, the owner has not authorized it.
[0547] Among them, after the owner's authorization is passed and the electronic device 100 displays the first private content, the electronic device 100 can also record that it is currently in the owner's authorization state, so as to distinguish the current user's authority to use the electronic device 100 from the real owner's use.
[0548] Optional, after prompting the user to authorize the device owner based on S4502, please continue to refer to Fig.45 , the privacy protection method of the electronic device also includes:
[0549] S4504: If the owner authorizes, the electronic device 100 displays the first private content.
[0550] S4505: If the owner's authorization is not passed, the electronic device 100 hides the first private content. The first private content may be hidden by displaying non-private content corresponding to the first private content. As the specific content of the non-private content has been introduced above, it will not be repeated here.
[0551] For example, when the face of a person changes, the user B who does not have the permission to view the first private content is granted the permission to view the first private content through the authorization method of the device owner. The electronic device 100 can hide the first private content by displaying the second content (non-private content), or the electronic device 100 can directly enter the locked state. As the second content has been introduced above, it will not be repeated here.
[0552] Based on the above solution, when the owner uses the electronic device 100 to view the first private content, based on face change detection, when it is detected that the user in front of the display screen switches from the owner to a non-owner, the first private content can be protected in real time. Based on the authorization operation of the owner, the first private content can be provided to the non-owner, so that sharing can be conveniently achieved under the condition of privacy protection.
[0553] In another embodiment, a preset button may be provided on top of the first private content. For example, the preset button may be Fig.46A When user A wants to share the first private content with other users, the sharing button 4606 is triggered (for example, by single-clicking, sliding, or by a preset gesture). After the electronic device 100 detects the operation, it is considered that user A wants to share the first private content. Therefore, if a change in the face is detected, the first private content is kept in the display state. Fig.46D After detecting that the user triggers the sharing button 4606, the icon of the sharing button 4606 may also change to prompt the user that the first private content is currently in a sharing state, for example: Fig.46A The share button 4606 is a small lock, and Fig.46D The sharing button 4606 is an open small lock, wherein, in order to let only user A know that there is privacy protection for the first private content while user B is unaware of this, when a change in the face is detected, the first private content is kept in a displayed state, but the icon controlling the sharing button 4606 is in a hidden state.
[0554] Through the above solution, the permission to view private content can be granted to another user without the user noticing.
[0555] In the specific implementation process, after the owner authorizes and the electronic device 100 displays the first private content, please continue to refer to Fig.45 The privacy protection method of the electronic device also includes:
[0556] S4506: Continue to detect whether the face of the person in front of the display screen of the electronic device has changed;
[0557] S4507: When the face of the person does not change, the user controlling the electronic device 100 uses the electronic device 100 within the authorized scope.
[0558] Authorization scope one: only authorize the application to which the first privacy content belongs. When the electronic device responds to detecting an operation to display the third privacy content, if the third privacy content and the first privacy content belong to the same application, the third privacy content is displayed; if the third privacy content and the first privacy content do not belong to the same application, the authorization interface is displayed.
[0559] For example, user B displays the following on the electronic device 100: Fig.46D When displaying the chat interface with the privacy contact "Andy", user B clicks the return button in the upper left corner. After the electronic device 100 detects the operation of user B, it returns to the homepage of the instant messaging software. Then user B clicks on the information with the privacy contact "William". After the electronic device 100 detects the operation, it determines whether the chat interface with the privacy contact "Andy" and the chat interface with the privacy contact "William" are located in the same application. When it is determined that both belong to the instant messaging software, the electronic device 100 displays the chat interface with the privacy contact "William".
[0560] After user B has viewed the chat interface with the privacy contact "William", he returns to the main screen of the electronic device 100 and clicks the album icon (the album is a privacy application). After the electronic device 100 detects the operation, it determines that the album application and the chat interface with the privacy contact "Andy" do not belong to the same application, so the electronic device 100 displays an authorization interface, prompting the user to authorize to access the album application. Alternatively, the electronic device 100 can open the album application, but the private folders or private pictures in the album application are hidden. In addition, the third private content can be all the contents of a certain application (for example: the album application), or all or part of the contents of a folder in a certain application (for example: a photo album in the album application, or part of the pictures in the album), or a file in a certain application (for example: a picture in the album application), etc., which is not limited in the embodiment of the present invention.
[0561] Authorization scope two: Authorization of the electronic device 100 as a whole within a preset time. For example, the system can set a shared time by default (that is, a preset time), or, when receiving the user's authorization operation, it can also provide an authorization interface to set a time button, and the user can set the authorization time, etc. The preset time is, for example, 5 minutes, 10 minutes, etc. Within the preset time period, user B can use most of the privacy functions of the electronic device 100 (for example, except for the privacy functions that user A absolutely reserves, other privacy functions can be used by user B), or user B has the same authority to use the electronic device 100 as user A.
[0562] After detecting the preset authorization operation of user A, the electronic device 100 displays the third privacy content in response to detecting the operation of displaying the third privacy content and determining that the operation occurs within the preset time after receiving the preset authorization operation. That is, after user A authorizes user B to use the electronic device 100, the electronic device 100 starts the timer. During the process of user B using the electronic device 100, if the operation of user B displaying the third privacy content is detected, it is determined whether the timing result of the timer is greater than the preset time. If it is greater, the electronic device 100 no longer displays the third privacy content. If it is not greater, the electronic device 100 displays the third privacy content. One possible situation is that the third privacy content may include the first privacy content (for example: user B first closes the first privacy content and then opens the first privacy content) and other privacy content other than the first privacy content; in another possible situation, the third privacy content only includes other privacy content other than the first privacy content, that is: within the preset time, the electronic device 100 authorizes all or most of the privacy functions to user B, and after the preset time, the electronic device 100 only authorizes the first privacy content to user B.
[0563] Authorization scope three: only authorize the first private content, and the electronic device 100 displays the authorization interface in response to detecting the operation of displaying the third private content. For example, assuming that the instant messaging software contains multiple private contacts, the first private content is the chat interface with the private contact "Andy", after viewing the chat interface with "Andy", user B returns to the homepage of the instant messaging software and clicks on the information with the private contact "William", intending to view the chat interface with the private contact "William" (the third private content). After the electronic device 100 detects this operation, it confirms that the user currently authorized by the owner (not the owner) is using the electronic device 100, so the chat interface with the private contact "William" is not displayed, but the authorization interface is displayed, prompting the user to obtain the authorization of the owner first. Of course, in other embodiments, when the electronic device 100 detects the operation of opening the third private content, it may also simply not display the third private content, and not provide the authorization interface, which is not limited by the embodiment of the present invention.
[0564] Authorization scope 4: Authorize only the contents in the folder that is in the open state. When the electronic device 100 detects the operation of displaying the third private content, if the folder to which the third private content belongs is in the open state when receiving the preset authorization operation, the third private content is displayed; if the folder to which the third private content belongs is in the unopened state when receiving the preset operation, the authorization interface is displayed.
[0565] For example, assume that the first private content is a picture in an album in an album application, for example: a picture in album A1202 in the album interface. After viewing the picture, user B clicks on Next to view the next picture (the third private content). After the electronic device 100 detects the operation, it determines that the folder where the next picture is located (album A) is in an open state; and for the contents in other folders, since these folders are not in an open state when receiving the preset authorization operation, the electronic device 100 detects that these private contents are opened and does not display the corresponding private contents, but prompts the user to receive authorization.
[0566] Please continue to refer to Fig.45 After continuing to detect whether the face of the person in front of the display screen of the electronic device has changed based on S4506, if the face of the person has changed, the method further includes:
[0567] S4508: Start face recognition to determine whether the current face on the display screen of the electronic device matches the preset face;
[0568] In the specific implementation process, face recognition can be performed through the low-power camera 193A or the front camera 193B. The preset face can be the face of the owner, or it can include both the face of the owner and the faces of one or more authorized users. Among them, the owner may want to authorize certain users (for example, the owner's children, parents, etc.) to use certain functions of the electronic device 100 for a long time, so the faces of these users are recorded in the electronic device 100, so as to set these users as authorized users, and the scope of authority can also be set for each authorized user, for example: for children, the payment function is restricted, the authority to browse certain pictures, the authority to open game applications, the authority to open entertainment applications, etc. is restricted; for parents, the payment limit is restricted, the authority to browse certain pictures, etc. is restricted. That is, the authority of the authorized user to use the electronic device 100 is lower than that of the owner (or equal to the owner) and higher than that of the unauthorized non-owner.
[0569] S4509: When the faces in front of the display screen of the electronic device only include the owner, keep displaying the first private content.
[0570] That is, when the electronic device 100 displays the first private content (or other private content), if it is detected that the face of the non-user (user B) switches to the user (user A), the electronic device 100 keeps the displayed content unchanged. In addition, if the electronic device 100 can also record that it is currently in the user state.
[0571] S4510: When the faces in front of the display screen of the electronic device only include authorized users, display authorization content; the authorization content may be the same as the first privacy content, or may be less than the first privacy content, or may be other authorization content different from the first privacy content, which is not limited in the embodiment of the present invention.
[0572] S4511: When the faces in front of the display screen of the electronic device 100 include multiple users including the owner, determine whether the faces meet a first preset condition; if the first preset condition is met, the electronic device 100 displays the first privacy content; if the first preset condition is not met, the electronic device 100 hides the first privacy content.
[0573] As for how to determine whether the first preset condition is met, it has been introduced above and will not be repeated here. Assuming that user B uses electronic device 100 for a period of time and then uses electronic device A with user A, after detecting that the face has changed, electronic device 100 determines that the user includes the owner and the non-owner and that the first preset condition is met, and therefore keeps displaying the private content before the face changes. Assuming that before the face changes, the display screen of electronic device 100 displays the following Fig.46A After the face changes, the electronic device still displays the first private content shown in FIG. Fig.46A The first privacy content shown, such as Fig.46E If user B uses the electronic device 100 for a period of time and then returns the electronic device 100 to user A, and user C is standing next to user A, the electronic device 100 detects a change in the face and determines that the user includes the owner and the non-owner, but the screen is not shared, and hides the first private content, as shown in FIG. Fig.46F As shown, the user returns to the parent interface of the first private content (the main interface of the instant messaging software). Of course, the first private content can also be hidden in other ways, which is not limited in the embodiment of the present invention.
[0574] S4512: If there is no machine owner and authorized user, process according to the first preset policy.
[0575] In the specific real-time process, in order to ensure that the privacy function (such as: privacy application) is used every time, face recognition can be started every time the operation of opening the privacy application (or the operation of transferring the privacy application from the background to the foreground) is detected. When the face recognition is a preset user, the privacy content corresponding to the privacy application is displayed; when the face recognition is not a preset user, it is processed according to the first preset strategy. The first preset strategy is, for example, returning to the previous menu, as shown in Figure 46. As for what the first preset strategy is, it has been introduced above, so it will not be repeated here. Alternatively, face recognition can be started only when the opening of the privacy application is detected for the first time, and when the opening of the privacy application is detected again, there is no need to start face recognition again, and so on.
[0576] In the specific real-time process, in order to improve the convenience of using the electronic device 100, when it is detected that the privacy application is turned on, it can also be judged whether to turn on the privacy application based only on the face change detection result. When the face does not change (and the current state is the owner state), the privacy application is turned on; when the face changes, it is processed according to the first preset strategy. Further, it can be judged whether the unlocking method used when the electronic device 100 is unlocked is face unlocking. If it is face unlocking, there is no need to perform face recognition when the privacy application is subsequently turned on; if the unlocking method used is not face unlocking, face recognition is required when the privacy application is subsequently turned on. Alternatively, it can be judged whether the unlocking method used when the electronic device 100 is unlocked is biometric unlocking (for example: face, fingerprint, iris, etc.). If the unlocking method used is not biometric unlocking, face recognition is required when the privacy application is subsequently turned on; if the unlocking method used is biometric unlocking, there is no need to perform face recognition when the privacy application is subsequently turned on.
[0577] For other contents, please refer to the description of the relevant contents above and will not be repeated here.
[0578] In the specific implementation process, the above S4508 can also be to start other identity authentication methods for identity authentication, such as fingerprint authentication, password authentication, nine-square authentication, iris authentication, etc. If the identity authentication is successful, S4509 can be executed, and if the identity authentication is successful, S4512 can be executed.
[0579] In addition, the above embodiments may be used in combination without conflict.
[0580] Another embodiment of the present invention provides an electronic device 100 for executing the privacy protection method of the electronic device 100. The electronic device 100 includes:
[0581] one or more processors;
[0582] Memory;
[0583] Multiple applications;
[0584] and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, which, when executed by the electronic device, cause the electronic device to perform the following steps:
[0585] Initiate face change detection, wherein the face change detection is to continuously detect whether the face in front of the display screen of the electronic device has changed during the current unlocking cycle, wherein the face change in front of the display screen of the electronic device specifically refers to that the current face in front of the display screen of the electronic device does not match the reference face;
[0586] After the face change detection is started, an operation of opening the first privacy application is detected;
[0587] In response to the operation and determining that the result of the face change detection is that the current face has not changed, displaying the first privacy content corresponding to the first privacy application;
[0588] In response to the operation and determining that the result of the face change detection is that the current face has changed, the first non-privacy content is displayed, and the first non-privacy content does not include the first privacy content.
[0589] The electronic device is, for example, Figure 1 The electronic device 100 shown in the figure has a processor such as Figure 1 The processor 110 shown, the memory is for example Figure 1 The internal memory 121 is shown. When the instruction is executed by the electronic device 100, how the electronic device 100 executes the above steps has been introduced above, so it will not be repeated here.
[0590] Optionally, when the instruction is executed by the electronic device, the electronic device further performs the following steps:
[0591] Before the face change detection is started, in response to detecting the operation of starting the first privacy application for the first time in the current unlocking cycle, the user in front of the display screen is authenticated, and if the identity authentication is successful, the first privacy content corresponding to the first privacy application is displayed; if the identity authentication is unsuccessful, the first non-privacy content is displayed, and the first non-privacy content does not include the first privacy content;
[0592] The initiating face change detection specifically includes: when the identity authentication is successful, initiating face change detection;
[0593] The responding to the operation and determining that the result of the face change detection is that the current face has not changed, then displaying the first privacy content corresponding to the first privacy application, specifically includes: responding to the operation of re-opening the first privacy application and determining that the result of the face change detection is that the current face has not changed, then displaying the first privacy content corresponding to the first privacy application;
[0594] The responding to the operation and determining that the result of the face change detection is that the current face has changed, then displaying the first non-privacy content, specifically includes: responding to the operation of re-opening the first privacy application and determining that the result of the face change detection is that the current face has changed, then displaying the first non-privacy content, and the first non-privacy content does not include the first privacy content.
[0595] Optionally, the starting of face change detection is to continuously detect whether the face in front of the display screen of the electronic device changes during the current unlocking cycle, including:
[0596] In the case where the identity authentication is successful, the face collected within a preset time after the identity authentication is successful is saved as a reference face;
[0597] The human face in front of the display screen is continuously collected during the current unlocking cycle; and it is determined whether the currently collected human face matches the saved reference human face.
[0598] Optionally, responding to the operation and determining that the result of the face change detection is that the current face has not changed, then displaying the first privacy content corresponding to the first privacy application specifically includes:
[0599] In response to the operation of opening the first privacy application for the first time in the current unlocking cycle, and determining that the result of the face change detection is that the current face has not changed, displaying the first privacy content corresponding to the first privacy application;
[0600] The responding to the operation and determining that the result of the face change detection is that the current face has changed, then displaying the first non-privacy content, specifically includes: responding to the operation of opening the first privacy application for the first time in the current unlocking cycle, and determining that the result of the face change detection is that the current face has changed, then displaying the first non-privacy content.
[0601] Optionally, before starting the face change detection, the method further includes:
[0602] When the electronic device is in a locked screen state, authenticating the user of the electronic device;
[0603] If the identity verification is successful, controlling the electronic device to enter an unlocked state;
[0604] The starting of face change detection includes:
[0605] When the electronic device enters the unlocked state, saving the face within a preset time after successful identity authentication as a reference face;
[0606] The human face in front of the display screen is continuously collected during the current unlocking cycle, and it is determined whether the currently collected human face matches the stored reference human face.
[0607] Optionally, when the electronic device is in a locked screen state, authenticating the user of the electronic device includes:
[0608] When the electronic device is in a locked screen state, acquiring an image in front of the display screen through a low-power camera;
[0609] Determining whether a human face is included based on the image in front of the display screen;
[0610] In the case where the image in front of the display screen includes the human face, the face in front of the display screen of the electronic device is acquired by the front camera of the electronic device for face unlocking, wherein the energy consumption of the low-power camera is lower than that of the front camera;
[0611] The continuously detecting whether the face of a person in front of the display screen of the electronic device changes includes:
[0612] When the face unlocking is successful, the low-power camera is used to continuously collect faces, and the faces collected by the low-power camera are used to determine whether the face in front of the display screen of the electronic device has changed.
[0613] Optionally, the identity verification of the user of the electronic device includes:
[0614] Performing face recognition on the face in front of the display screen of the electronic device; or,
[0615] Performing fingerprint verification on the user of the electronic device; or,
[0616] Performing password verification on the user of the electronic device; or,
[0617] Perform iris authentication on the user of the electronic device.
[0618] Optionally, performing face recognition on a face in front of a display screen of the electronic device includes:
[0619] Collecting a face in front of the display screen of the electronic device; determining whether the collected face matches a pre-stored face of the owner of the device; the pre-stored face of the owner of the device is a face input by the owner when the face recognition function is first enabled and used as a face recognition reference;
[0620] In response to detecting that the captured face successfully matches the pre-stored face of the host, determining that the face recognition is successful;
[0621] In response to detecting that the captured face fails to match the pre-stored face of the host, it is determined that the face recognition is unsuccessful.
[0622] Optionally, the collecting of the face in front of the display screen of the electronic device; and determining whether the collected face matches a pre-stored face of the owner of the device, specifically comprises: collecting the face in front of the display screen through a front camera of the electronic device; and determining whether the collected face matches a pre-stored face of the owner of the device;
[0623] The continuously detecting whether the face in front of the display screen of the electronic device has changed is specifically: continuously collecting the face in front of the display screen by the low-power camera of the electronic device, and determining whether the current face collected by the low-power camera matches the saved reference face;
[0624] Among them, the energy consumption of the low-power camera is lower than that of the front camera, and the feature points of the saved reference face are less than the feature points of the owner's face.
[0625] Optionally, after displaying the first privacy content, the method further includes:
[0626] Detecting an operation of re-opening the first privacy application, and determining that the result of the face change detection is that the current face has not changed, displaying the second privacy content corresponding to the first privacy application;
[0627] When an operation of re-opening the first privacy application is detected and it is determined that the result of the face change detection is that the current face has changed, second non-privacy content is displayed, and the second non-privacy content does not include the second privacy content.
[0628] Optionally, when the instruction is executed by the electronic device, the electronic device further performs the following steps:
[0629] When displaying the first private content, if it is determined that the result of the face change detection is that the current face has changed, the first private content is kept displayed; in response to detecting the operation of opening the second privacy application, the third non-privacy content is displayed, or
[0630] When the first privacy content is displayed, in response to no face change being detected and an operation of opening the second privacy application being detected, third privacy content corresponding to the second privacy application is displayed, and the third non-privacy content does not include the third non-privacy content.
[0631] Optionally, the continuously detecting whether the face of a person in front of the display screen of the electronic device changes specifically includes:
[0632] Continuously collecting images in front of the display screen to determine whether the images contain a human face;
[0633] In the case where the image contains a human face, it is determined whether the human face has changed based on the current human face contained in the image.
[0634] Optionally, when the image includes a face, judging whether the face has changed according to a current face included in the image specifically includes:
[0635] In the case where the image contains a face, determining whether the current face matches a saved reference face, and whether the current face matches a face in a previous frame, wherein the reference face is a user face collected during the start-up phase of face change detection;
[0636] In response to detecting that the current face fails to match the reference face, and the current face fails to match the previous face frame, it is determined that the face has changed.
[0637] Optionally, when the image includes a face, judging whether the face has changed according to a current face included in the image specifically includes:
[0638] In the case where the image contains a face, determining whether the face matches a saved reference face and whether the face matches a face in a previous frame, wherein the reference face is a user face collected during the start-up phase of face change detection;
[0639] In response to detecting that the face successfully matches a saved reference face, or detecting that the face successfully matches a face in a previous frame, or detecting that the face successfully matches a saved reference face and the face successfully matches a face in a previous frame, it is determined that the face has not changed.
[0640] Optionally, the continuously detecting whether the face of a person in front of the display screen of the electronic device changes specifically includes:
[0641] Continuously collecting images in front of the display screen to determine whether the images contain a human face;
[0642] If the image does not contain a face, continue to detect the image in front of the display screen; when it is detected that the image contains a face again, determine whether the duration for which the face cannot be detected is greater than a preset duration; if the duration is not greater than the preset duration, match the current face with the last frame of face before the face cannot be detected; if the duration is greater than the preset duration, start face recognition to determine whether the current face matches the pre-stored owner's face.
[0643] Optionally, the determining whether the current face matches the saved reference face specifically includes:
[0644] Determining whether the number of faces of the current face relative to the reference face has changed;
[0645] In the case where the number of faces changes, determining that the current face does not match the reference face;
[0646] When the number of faces has not changed, determine whether the facial features contained in the current face match the facial features contained in the benchmark face. If the facial features match, determine that the current face matches the benchmark face; if the facial features do not match, determine that the face does not match the benchmark face.
[0647] Optionally, when the number of faces changes, the method further includes: if the number of faces changes from one to multiple, outputting prompt information to prompt the user.
[0648] Optionally, the first privacy content is specifically: a homepage of the first privacy application; the first non-privacy content is specifically: a login interface or an identity authentication interface of the first privacy application or a prompt interface for prompting a user that he or she does not have permission to use the first privacy application; or,
[0649] The first privacy content specifically includes: preset content of the homepage of the first privacy application, and the first non-privacy content specifically includes: other content other than the preset content hidden on the homepage of the first privacy application.
[0650] Optionally, the starting of face change detection is to continuously detect whether the face in front of the display screen of the electronic device changes during the current unlocking cycle, including:
[0651] The face of the first user is collected and obtained as a reference face in the current unlocking cycle;
[0652] The current face in front of the display screen acquired is matched with the reference face acquired in the current unlocking cycle to determine whether the face on the display screen has changed.
[0653] How the electronic device 100 executes the above steps has been introduced in the previous method part, so it will not be repeated here.
[0654] Another embodiment of the present invention provides an electronic device, which is used to execute the privacy protection method of the electronic device introduced in another embodiment of the present invention. The electronic device includes:
[0655] one or more processors;
[0656] Memory;
[0657] Multiple applications;
[0658] and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, which, when executed by the electronic device, cause the electronic device to perform the following steps:
[0659] Initiate face change detection, wherein the face change detection is to continuously detect whether the face in front of the display screen of the electronic device has changed during the current unlocking cycle, wherein the face change in front of the display screen of the electronic device specifically refers to that the current face in front of the display screen of the electronic device does not match the reference face;
[0660] Display the first icon corresponding to the first private picture in the gallery application;
[0661] In response to determining that the result of the face change detection is that the current face has changed, hiding the first icon corresponding to the first privacy picture.
[0662] The above electronic equipment is for example Figure 1 The electronic device 100 shown in the figure has a processor such as Figure 1 The processor 110 shown, the memory is for example Figure 1 The internal memory 121 is shown.
[0663] Optionally, when the instruction is executed by the electronic device, the electronic device further performs the following steps:
[0664] In response to detecting an operation of opening a first picture folder containing the first private picture, and determining that the result of the face change detection is that the current face has not changed, displaying the first icon corresponding to the first private picture;
[0665] In response to detecting an operation of opening the first picture folder containing the first privacy picture, and determining that the result of the face change detection is that the current face has changed, fourth non-privacy content is displayed, and the fourth non-privacy content does not include an icon corresponding to the first privacy picture.
[0666] Optionally, after the fourth non-privacy content is displayed in response to detecting the operation of opening the first picture folder containing the first private picture and determining that the result of the face change detection is that the current face has changed, the method further includes:
[0667] In response to detecting a preset authorization operation of the user, the first icon corresponding to the first privacy picture is displayed.
[0668] Optionally, before hiding the first icon corresponding to the first privacy picture in response to determining that the result of the face change detection is that the current face has changed, the method further includes:
[0669] In response to detecting an operation of opening the first private picture and determining that the result of the face change detection is that the current face has not changed, displaying the first private picture;
[0670] When the first private picture is displayed, in response to detecting an operation of opening a second private picture and determining that the result of the face change detection is that the current face has not changed, displaying the second private picture;
[0671] When the first privacy picture is displayed, in response to the operation of opening the second privacy picture, and determining that the result of the face change detection is that the current face has changed, fifth non-privacy content is displayed, and the fifth non-privacy content is different from the second privacy picture.
[0672] Optionally, the starting face change detection includes:
[0673] detecting an authentication operation of a user of the electronic device;
[0674] When the identity authentication is passed, face change detection is started.
[0675] Optionally, the detecting of the identity authentication operation of the user of the electronic device includes: when the electronic device is in a locked state, detecting the identity authentication operation; after the detecting of the identity authentication operation of the user of the electronic device, further including: if the identity authentication is passed, the electronic device enters the current unlocked state; or
[0676] The detecting of the identity authentication operation on the user of the electronic device includes: when detecting that the first privacy application is turned on, detecting the identity authentication operation on the user of the electronic device; after the detecting of the identity authentication operation on the user of the electronic device, further including: if the identity authentication is successful, displaying the first privacy content corresponding to the first privacy application; if the identity authentication is unsuccessful, displaying the first non-privacy content, the first non-privacy content does not include the first privacy content.
[0677] Another embodiment of the present invention provides an electronic device, including:
[0678] one or more processors;
[0679] Memory;
[0680] Multiple applications;
[0681] and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, and when the instructions are executed by the electronic device, the electronic device performs the following steps: start face change detection, wherein the face change detection is to continuously detect whether the face in front of the display screen of the electronic device changes during the current unlocking cycle, wherein the face change in front of the display screen of the electronic device is specifically that the current face in front of the display screen of the electronic device does not match the reference face;
[0682] After starting face change detection, when the first display interface is displayed:
[0683] In response to receiving a new message from the first privacy application, and the result of the face change detection is that the current face has changed; not displaying the new message on the first display interface or displaying only a portion of the new message on the first display interface;
[0684] In response to receiving a new message from the first privacy application, and the result of the face change detection is that the current face has not changed, the new message is displayed on the first display interface.
[0685] The electronic device is, for example, Figure 1 The electronic device 100 shown in the figure has a processor such as Figure 1 The processor 110 shown, the memory is for example Figure 1 The internal memory 121 is shown. When the instruction is executed by the electronic device 100, how the electronic device 100 executes the above steps has been introduced above, so it will not be repeated here.
[0686] Another embodiment of the present invention provides a computer-readable storage medium, including instructions, which, when executed on an electronic device, causes the electronic device to perform the method described in any embodiment of the present invention.
[0687] Another embodiment of the present invention provides a computer program product comprising instructions, and when the computer program product is run on an electronic device, the electronic device executes the method introduced in any embodiment of the present invention.
[0688] Another embodiment of the present invention provides a chip including instructions, and when the chip runs on an electronic device, the electronic device executes the method introduced in any embodiment of the present invention.
[0689] Another embodiment of the present invention provides a chip including instructions, when the chip is run on an electronic device, the electronic device executes the following method:
[0690] Initiate face change detection, wherein the face change detection is to continuously detect whether the face in front of the display screen of the electronic device has changed during the current unlocking cycle, wherein the face change in front of the display screen of the electronic device specifically refers to that the current face in front of the display screen of the electronic device does not match the reference face;
[0691] After the face change detection is started, an operation of opening the first privacy application is detected;
[0692] In response to the operation and determining that the result of the face change detection is that the current face has not changed, instructing the display screen to display the first privacy content corresponding to the first privacy application;
[0693] In response to the operation and determining that the result of the face change detection is that the current face has changed, the display screen is instructed to display the first non-privacy content, and the first non-privacy content does not include the first privacy content.
[0694] Another embodiment of the present invention provides a chip including instructions, when the chip is run on an electronic device, the electronic device executes the following method:
[0695] Initiate face change detection, wherein the face change detection is to continuously detect whether the face in front of the display screen of the electronic device has changed during the current unlocking cycle, wherein the face change in front of the display screen of the electronic device specifically refers to that the current face in front of the display screen of the electronic device does not match the reference face;
[0696] Instructing the display screen to display a first icon corresponding to a first private picture in the gallery application;
[0697] In response to determining that the result of the face change detection is that the current face has changed, the display screen is instructed to hide the first icon corresponding to the first privacy picture.
[0698] Another embodiment of the present invention provides a chip including instructions, when the chip is run on an electronic device, the electronic device executes the following method:
[0699] Initiate face change detection, wherein the face change detection is to continuously detect whether the face in front of the display screen of the electronic device has changed during the current unlocking cycle, wherein the face change in front of the display screen of the electronic device specifically refers to that the current face in front of the display screen of the electronic device does not match the reference face;
[0700] After starting face change detection, the display screen is instructed to display the first display interface:
[0701] In response to receiving a new message from the first privacy application, and the result of the face change detection is that the current face has changed; instructing the display screen not to display the new message on the first display interface or to display only a part of the new message on the first display interface;
[0702] In response to receiving a new message from the first privacy application, and the result of the face change detection is that the current face has not changed, the display screen is instructed to display the new message on the first display interface.
[0703] It is understandable that, in order to realize the above functions, the above-mentioned terminals etc. include hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware 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 exceed the scope of the embodiments of the present invention.
[0704] The embodiment of the present application can divide the functional modules of the above-mentioned electronic device 100 etc. according to the above-mentioned method example. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present invention is schematic and is only a logical functional division. There may be other division methods in actual implementation. The following is an example of dividing each functional module corresponding to each function:
[0705] In the method provided in the embodiment of the present application, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, a network device, a terminal or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital video disc (DVD)), or a semiconductor medium (eg, an SSD), etc.
[0706] 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.
[0707] 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.
[0708] 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 units is only a logical function division. There may be other division methods in actual implementation. For example, 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.
[0709] The units described 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.
[0710] 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.
[0711] The above are only specific implementation methods of the present application, but the protection scope of the embodiments of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the embodiments of the present application, which should be included in the protection scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application shall be based on the protection scope of the claims.
Claims
1. A privacy protection method, characterized in that: The method comprises: Initiate face change detection, wherein the face change detection is to detect whether the face in front of the display screen of the electronic device has changed during the current unlocking cycle, wherein the face change in front of the display screen of the electronic device specifically refers to that the current face in front of the display screen of the electronic device does not match the reference face; After starting face change detection, when the first display interface is displayed: In response to receiving a new message from the first privacy application, and the result of the face change detection is that the current face has changed, only a portion of the new message is displayed on the first display interface, and the portion of the new message does not include sender information and message content; After only a portion of the content of the new message is displayed on the first display interface, the result of face change detection is continuously obtained, and in response to the result of the face change detection being that the current face has not changed, the new message is displayed on the first display interface, the new message including the sender information and the information content.
2. The method according to claim 1, characterized in that: The fact that the current face in front of the display screen of the electronic device does not match the reference face means that the number of the current face changes.
3. The method according to claim 1 or 2, characterized in that: The current face in front of the display screen of the electronic device does not match the reference face means that the current face includes an authorized user and at least one unauthorized user.
4. The method according to any one of claims 1 to 3, characterized in that The result of the face change detection is that the current face has not changed and the face is switched from an authorized user to an unauthorized user and then switched back to an authorized user.
5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: In response to a user operation acting on the new message, the entire content of the new message is displayed.
6. The method according to any one of claims 1 to 5, characterized in that The first display interface is the first screen or the negative first screen of the electronic device.
7. The method according to any one of claims 1 to 6, characterized in that The first privacy application is at least one of instant messaging software, browser, payment software, various chat software, and social software.
8. The method according to any one of claims 1 to 7, characterized in that The step of responding to receiving a new message from the first privacy application comprises: It is determined whether the new message is a new message of the privacy application.
9. The method according to claim 8, characterized in that The method further comprises: When the new message is not a new message of the privacy application, the new message is displayed.
10. An electronic device, characterized in that: include: one or more processors; Memory; Multiple applications; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, which, when executed by the electronic device, cause the electronic device to perform the following steps: Initiate face change detection, wherein the face change detection is to detect whether the face in front of the display screen of the electronic device has changed during the current unlocking cycle, wherein the face change in front of the display screen of the electronic device specifically refers to that the current face in front of the display screen of the electronic device does not match the reference face; After starting face change detection, when the first display interface is displayed: In response to receiving a new message from the first privacy application, and the result of the face change detection is that the current face has changed, only a portion of the new message is displayed on the first display interface, and the portion of the new message does not include sender information and message content; After only a portion of the content of the new message is displayed on the first display interface, the result of face change detection is continuously obtained, and in response to the result of the face change detection being that the current face has not changed, the new message is displayed on the first display interface, the new message including the sender information and the information content.
11. The electronic device according to claim 10, characterized in that: The fact that the current face in front of the display screen of the electronic device does not match the reference face means that the number of the current face changes.
12. The electronic device according to claim 10 or 11, characterized in that: The current face in front of the display screen of the electronic device does not match the reference face means that the current face includes an authorized user and at least one unauthorized user.
13. The electronic device according to any one of claims 10 to 12, characterized in that: The result of the face change detection is that the current face has not changed and the face is switched from an authorized user to an unauthorized user and then switched back to an authorized user.
14. The electronic device according to any one of claims 10 to 13, characterized in that: When the instruction is executed by the electronic device, the electronic device further performs the following steps: In response to a user operation acting on the new message, the entire content of the new message is displayed.
15. The electronic device according to any one of claims 10 to 14, characterized in that: The first display interface is the first screen or the negative first screen of the electronic device.
16. The electronic device according to any one of claims 10 to 15, characterized in that: The first privacy application is at least one of instant messaging software, browser, payment software, various chat software, and social software.
17. The electronic device according to any one of claims 10 to 16, characterized in that: The step of responding to receiving a new message from the first privacy application comprises: It is determined whether the new message is a new message of the privacy application.
18. The electronic device according to claim 17, characterized in that: When the instruction is executed by the electronic device, the electronic device further performs the following steps: When the new message is not a new message of the privacy application, the new message is displayed.
19. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on an electronic device, the electronic device is caused to execute the method as claimed in any one of claims 1 to 9.
