Information display method, device, electronic device and storage medium
By matching the unlocked user image and preset user image in the target mode of the electronic device, and displaying the content before the lock screen according to the lock screen time, the problem of cumbersome information display after the lock screen of the electronic device is solved, and the user experience is improved.
Patent Information
- Application Number
- CN202110724060.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-29
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2041-06-29
AI Technical Summary
In the prior art, in the lock screen state, electronic devices need to preset users to unlock or inform other users of unlocking passwords, resulting in cumbersome display of information and affecting user experience.
By receiving the unlock input when the electronic device is in the target mode and locked screen state, an image of the first user is acquired and matching the image of the preset user. If the lock screen does not match and the lock screen time is less than the preset time, the content displayed by the electronic device before the lock screen is displayed.
It simplifies the redisplay process of the content displayed by the electronic device before the lock screen status, improves the user experience, and automatically displays the content before the lock screen when the user accidentally touches the lock screen.
Smart Images

Figure CN113468501B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of terminal technology, and specifically relates to an information display method, device, electronic device and storage medium. Background Art
[0002] When using an electronic device, a user often gives the electronic device to other users. To prevent other users from using functions other than those allowed by the preset user (such as the owner) of the electronic device, the preset user can set the electronic device to guest mode, restricted mode, child mode, etc. (hereinafter collectively referred to as target mode).
[0003] In the target mode, other users can only use the functions corresponding to the mode. After the electronic device is locked, if other users want to continue to use the functions of the electronic device before the last lock, they need to hand the electronic device over to the preset user of the electronic device to unlock it again, or the preset user tells the other users the unlock password in the protection mode, and the other users use the unlock password to unlock the electronic device to display the information before the electronic device was last locked, and use the functions of the electronic device before the last lock.
[0004] In the process of implementing this application, the inventors found that there are at least the following problems in the prior art:
[0005] Handing the electronic device over to a preset user to unlock the electronic device again, or having the preset user tell the unlock password to other users to unlock the electronic device to display the information before the electronic device was last in the locked screen state, will make the display process of the information before the electronic device was last in the locked screen state more cumbersome, which will affect the user experience. Summary of the invention
[0006] The purpose of the embodiments of the present application is to provide an information display method, device, electronic device and storage medium, which can solve the problem that the display process of information before the electronic device was last in the lock screen state is relatively cumbersome, thereby affecting the user experience.
[0007] In order to solve the above technical problems, this application is implemented as follows:
[0008] In a first aspect, an embodiment of the present application provides an information display method, the method comprising:
[0009] When the electronic device is in the target mode and in the locked screen state, receiving an unlock input from a first user;
[0010] In response to the unlock input, acquiring a first image of the first user;
[0011] In a case where the first image does not match the second image, determining a first time duration for which the electronic device is in the locked screen state, the second image being an image of a preset user;
[0012] When the first duration is less than the preset duration, first content is displayed, where the first content is content displayed by the electronic device before the screen is locked.
[0013] In a second aspect, an embodiment of the present application provides an information display device, the device comprising:
[0014] A receiving module, configured to receive an unlocking input from a first user when the electronic device is in a target mode and in a locked screen state;
[0015] an acquisition module, configured to acquire a first image of the first user in response to the unlock input;
[0016] a determination module, configured to determine a first duration for which the electronic device is in the locked screen state when the first image does not match the second image, the second image being an image of a preset user;
[0017] The first display module is used to display first content when the first time length is less than the preset time length, and the first content is the content displayed by the electronic device before the screen is locked.
[0018] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.
[0019] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0020] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the steps of the method described in the first aspect.
[0021] In an embodiment of the present application, by matching the first image of the first user who inputs the unlocking with the second image of the preset user of the electronic device, when the first image does not match the second image and the first duration of the electronic device being in the lock screen state is less than the preset duration, the first content displayed by the electronic device before the lock screen state is displayed. The first image does not match the second image, that is, the user who currently unlocks the electronic device is not the preset user of the electronic device, and the electronic device is still in the target mode. At this time, if the first duration is less than the preset duration, it can be considered that the lock screen may be caused by an accidental touch by the user, and the electronic device can display the first content displayed by the electronic device before the lock screen state. In this way, the electronic device can automatically display the content displayed by the electronic device before the lock screen state when the screen is locked due to an accidental touch by the user, thereby simplifying the process of re-displaying the content displayed by the electronic device before the lock screen state and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 It is a flowchart of the information display method provided in the embodiment of the present application;
[0023] Figure 2 is a schematic diagram of a display interface provided in an embodiment of the present application;
[0024] Figure 3 is another display interface schematic diagram provided in an embodiment of the present application;
[0025] Figure 4 This is a schematic diagram of an unlocking interface provided in an embodiment of the present application;
[0026] Figure 5 This is a flow chart of a scenario implementation of the information display method provided by the embodiment of the present application;
[0027] Figure 6 is a schematic diagram of the structure of an information display device provided in an embodiment of the present application;
[0028] Figure 7 It is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application. DETAILED DESCRIPTION
[0029] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0030] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0031] The information display method provided by the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0032] Figure 1 : is a flow chart of an information display method provided in an embodiment of the present application. The information display method may include:
[0033] S101, receiving an unlocking input from a first user when the electronic device is in a target mode and in a locked screen state;
[0034] S102, in response to an unlock input, acquiring a first image of a first user;
[0035] S103, when the first image does not match the second image, determining a first time duration for the electronic device to be in a locked screen state, and the second image is an image of a preset user;
[0036] S104: Display first content when the first duration is less than a preset duration, where the first content is content displayed by the electronic device before the screen is locked.
[0037] In step S101, when the electronic device is in the target mode and in the lock screen state, an unlock input of the first user may be received. The target mode may be enabled by default in the electronic device, or may be enabled by a preset user of the electronic device, and the preset user of the electronic device may be the holder of the electronic device or another preset user. For example, the preset users of the electronic device may include the holder of the electronic device and user A.
[0038] To some extent, the target mode can be considered as a protection mode, for example, the target mode can be a visitor mode, a restricted mode, a child mode, etc. For example, in a normal unlocking mode, the electronic device can be unlocked based on the user's facial image, fingerprint or palm print and other biometric information, and the electronic device can also be unlocked based on the user's preset unlocking password. In the target mode, the electronic device can, under certain conditions, not be fully unlocked, but only display the content displayed before the electronic device was in the locked screen state.
[0039] The first user may be any user of the electronic device, and the unlock input may include sliding upward or double-clicking the display screen of the electronic device, clicking or sliding the unlock button corresponding to the electronic device, and other operations performed on the electronic device. Receiving the unlock input of the first user may be receiving relevant operation information performed by the first user on unlocking the electronic device.
[0040] In step S102, after receiving the unlock input of the first user, the electronic device can obtain an image of the first user, that is, a first image, in response to the unlock input. It can be understood that the electronic device can collect the face image of the first user through an image acquisition device after receiving the unlock input of the first user. For example, when the electronic device is a mobile phone, the face image of the first user can be obtained through the front camera of the mobile phone.
[0041] In step S103, the second image is a facial image of a preset user of the electronic device. The second image may be pre-stored in the electronic device, or may be retrieved when the target mode is turned on. The first duration may be the duration between the start time when the electronic device last entered the lock screen state and the time when the unlock input of the first user is received. For example, taking the electronic device as a mobile phone as an example, the duration between the time when the mobile phone enters the lock screen state after turning off the screen and the time when the screen turns on after receiving the unlock input is the first duration.
[0042] After acquiring the first image of the first user, the electronic device may compare the first image of the first user with the second image to determine whether the first image matches the second image. If the first image does not match the second image, it means that the first user is not the preset user of the electronic device, and at this time, the first duration of the electronic device being in the locked screen state is determined.
[0043] In step S104, when the first duration is less than the preset duration, the first content may be displayed, wherein the first content may be the content displayed by the electronic device before the screen is locked. It is understandable that the preset duration may be set according to an empirical value, for example, it may be set to 20s. When the first duration is less than 20s, it may be considered that the electronic device is in the screen lock state due to a user's misoperation, and the electronic device may display the content displayed before the screen is locked.
[0044] For example, the electronic device is a mobile phone, such as Figure 2 As shown, the mobile phone displays a chat record interface with a certain user before the screen is locked. When the first duration is less than the preset duration, the mobile phone can only display the chat record interface and cannot switch to view other content, that is, it cannot display other interfaces outside the chat record interface.
[0045] For another example, if the mobile phone is displaying a document or web page information that requires page turning before the screen is locked, when the first duration is less than the preset duration, the mobile phone can display the document or web page information, and can turn pages to view other content in the document or web page information, but cannot switch to view other content that does not belong to the document or web page information. Figure 3 As shown, the mobile phone is displaying a document 1 that needs to be turned before the screen is locked. When the first duration is less than the preset duration, the mobile phone can continue to display the content of document 1 that is being displayed before the screen is locked, and the page can be turned to continue to view the subsequent content of document 1.
[0046] In an embodiment of the present application, by matching the first image of the first user who inputs the unlocking with the second image of the preset user of the electronic device, when the first image does not match the second image and the first duration of the electronic device being in the lock screen state is less than the preset duration, the first content displayed by the electronic device before the lock screen state is displayed. The first image does not match the second image, that is, the user who currently unlocks the electronic device is not the preset user of the electronic device, and the electronic device is still in the target mode. At this time, if the first duration is less than the preset duration, it can be considered that the lock screen may be caused by an accidental touch by the user, and the electronic device can display the first content displayed by the electronic device before the lock screen state. In this way, the electronic device can automatically display the content displayed by the electronic device before the lock screen state when the screen is locked due to an accidental touch by the user, thereby simplifying the process of re-displaying the content displayed by the electronic device before the lock screen state and improving the user experience.
[0047] In some embodiments, after the above step S103, the information display method may further include:
[0048] When the first time duration is greater than or equal to the preset time duration, an unlocking interface of the electronic device is displayed.
[0049] It is understandable that, when the first duration is greater than or equal to the preset duration, it can be considered that the lock screen is not caused by a user's misoperation. Figure 4 As shown, the electronic device can display an unlocking interface.
[0050] When the electronic device displays the unlocking interface, it needs to be unlocked using preset user biometric information or an unlocking password. After the unlocking is successful, the electronic device can display other information.
[0051] In this way, when the first time length is greater than or equal to the preset time length, that is, when the lock screen is not caused by a user's misoperation, the unlocking interface is displayed at this time, which can prevent the information in the electronic device from being leaked.
[0052] In some embodiments, before the above step S101, the information display method may further include:
[0053] Acquire a third image of a second user operating the electronic device, where the second user is a user other than the preset user;
[0054] Based on this, the above step S103 may include:
[0055] When the first image does not match the second image but matches the third image, a first duration during which the electronic device is in a locked screen state is determined.
[0056] It is understandable that before the above step S101, the electronic device can obtain a face image of the second user as the third image. The second user is a user other than the preset user of the electronic device, that is, the second user is a user who operates the electronic device before the electronic device is in the locked screen state.
[0057] In an optional embodiment, when the first image does not match the second image, the first image may be compared with the third image to determine whether the first image matches the third image. When the first image matches the third image, it can be said that the facial image of the first user matches the facial image of the second user who operates the electronic device before the lock screen state. In other words, it can be considered that the first user and the second user are the same user. At this time, the first duration of the electronic device being in the lock screen state can be determined. When the first duration is less than the preset duration, the first content displayed by the electronic device before the lock screen state is displayed.
[0058] In this way, the first duration is determined only when the first user is not the preset user of the electronic device and the first user is the second user, and the first content is displayed when the first duration is less than the preset duration. That is, the second user who used the electronic device before the lock screen state is the same user as the first user who unlocked the terminal in a short period of time (that is, the unlocking operation was an erroneous operation). At this time, even if the second user and the first user are not the preset users, the content that the second user was viewing before the lock screen state can be displayed. In this way, users other than the second user and the preset user can be prevented from viewing the first content, thereby further preventing information leakage from the electronic device and improving the information security of the electronic device.
[0059] In another optional embodiment, the target mode may include a first sub-mode and a second sub-mode. When the target mode is the first sub-mode, the electronic device is more protected, and only when the first image does not match the second image and the first image matches the third image, the first duration of the electronic device being in the locked screen state can be determined, so as to display the first content when the first duration is less than the preset duration. In other words, when the target mode is the first sub-mode, the first content is displayed only when the first user matches the second user.
[0060] When the target mode is the second sub-mode, the degree of protection of the electronic device is relatively low, and as long as the first duration is less than the preset duration, the content displayed by the electronic device before the lock screen state can be displayed. In other words, when the target mode is the second sub-mode, the first content can be displayed without the first user and the second user matching.
[0061] For example, the second user who operates the electronic device before the lock screen state is user B. If the electronic device is in the first sub-mode, it is necessary to determine whether the first user is user B. If the first user is user B (the same user as the second user), the first content can be displayed when the first duration is less than the preset duration; if the first user is user C (a different user from the second user), the electronic device cannot display the first content even if the first duration is less than the preset duration. If the electronic device is in the second sub-mode, it is not necessary to determine whether the first user is user B. That is, the first user can be user B, user C, or user D, etc. As long as the first duration is less than the preset duration, the electronic device can display the first content.
[0062] In this way, when the target mode is the first sub-mode, the electronic device only displays the first content to the operating user before the lock screen state, and when the target mode is the second sub-mode, the electronic device can display the first content to any user. In this way, the information display method can be more flexible.
[0063] In some embodiments, after the above step S102, the information display method may further include:
[0064] In case the first image matches the second image, the first content is displayed and the target mode is turned off.
[0065] It can be understood that the first image matches the second image, and it can be considered that the first user is the preset user of the electronic device. At this time, the electronic device can be directly unlocked, the first content displayed by the electronic device before the lock screen state can be displayed, and the target mode can be turned off. In other words, when the first user matches the preset user of the electronic device, the electronic device can display the first content to the first user and turn off the target mode. After turning off the target mode, the electronic device can display any content corresponding to the operation according to the received operation of the first user.
[0066] In this way, when the first user is a preset user, the first content is displayed and the target mode is turned off. The first user can view the first content and use the electronic device normally without manually turning off the target mode, thereby simplifying the operation and further improving the user experience.
[0067] In some embodiments, after the above step S104, the information display method may further include:
[0068] The target image is cleared, where the target image includes at least one of the first image and the third image.
[0069] In the embodiment of the present application, after displaying the first content, that is, displaying the content displayed by the electronic device before the lock screen state, the target image can be automatically cleared. The target image can be the first image or the third image, or the first image and the third image.
[0070] For example, if the target image is the first image, after displaying the first content, the electronic device may clear the first image, and when the electronic device is in the lock screen state again, it will receive the unlock input of the first user again and obtain a new first image of the first user. For another example, if the target image is the first image and the third image, the electronic device automatically clears the target image, which may be to clear the first image and the third image.
[0071] In this way, on the one hand, the target image can be automatically cleared to avoid occupying storage space, and on the other hand, the leakage of the target image can be avoided, thereby further improving the security of information in the electronic device.
[0072] In some embodiments, after the above step S104, the information display method may further include:
[0073] When receiving a first input from a third user with respect to the first content, acquiring a fourth image of the third user;
[0074] In response to the first input, displaying content corresponding to the first input when the fourth image matches the second image;
[0075] In case the fourth image does not match the second image, the first content is displayed.
[0076] It is understandable that after displaying the first content, the electronic device may receive an input from a third user on the first content, i.e., a first input. For example, the first input may be used to instruct the electronic device to turn off the display of the first content, or the first input may be used to instruct the display of other content besides the first content.
[0077] When the first input is received, the electronic device may obtain a fourth image of the third user, that is, obtain a facial image of the user who operates the first content. When the fourth image matches the second image, the third user may be considered as a preset user. In this case, in response to the first input, the content corresponding to the first input may be displayed. When the fourth image does not match the second image, the third user may be considered as not a preset user. In this case, the electronic device will not respond to any operation of the third user, but will continue to display the first content.
[0078] In this way, when the third user is a preset user, the electronic device can display content corresponding to the third user's operation, so that the third user can use the electronic device normally. When the third user is not a preset user, the electronic device does not respond to the third user's related operations and only displays the first content. In this way, not only can the information in the electronic device be further prevented from being leaked, but the user experience can also be further improved.
[0079] In order to facilitate understanding of the information display method provided by the above embodiment, the above information display method is described below using a specific scenario embodiment. Figure 5 A flowchart of a scenario implementation of the information display method provided in an embodiment of the present application.
[0080] The application scenario of this scenario embodiment may be: after the owner of the mobile phone turns on the target mode, he can hand the mobile phone to others to view relevant information. If others lock the mobile phone, any user can relight the screen and activate the face recognition unlocking mechanism to perform the unlocking operation after the mobile phone lights up the screen.
[0081] This scenario embodiment may specifically include the following steps:
[0082] S501, after the owner of the mobile phone turns on the target mode, he can hand the mobile phone to others to view relevant information, and the others lock the mobile phone screen during viewing the information.
[0083] S502, any user turns on the screen again, and after the mobile phone turns on the screen, the face recognition unlocking mechanism is activated to perform the unlocking operation.
[0084] S503, determining whether the mobile phone is successfully unlocked.
[0085] S504, if the face recognition unlocking is successful, it can be said that the owner is using the mobile phone. At this time, the mobile phone can display the interface displayed before the lock screen, and other functions of the mobile phone can be used normally. The target mode can be automatically turned off, and the relevant facial image is automatically cleared. The relevant facial image can be a facial image obtained before the lock screen and / or a facial image obtained by the mobile phone after the screen is re-lit.
[0086] S505, if the face recognition unlocking fails, it means that the mobile phone is used by someone other than the owner. At this time, it can be determined whether the target mode is the first sub-mode.
[0087] S506: If it is the first sub-mode, a face image of the current user may be obtained to determine whether the current user is the user before the screen is locked.
[0088] S507, if the current face image and the face image obtained before the screen is locked are not recognized as the same person, the mobile phone can display an unlocking interface to prompt that the mobile phone cannot be used without being unlocked.
[0089] S508: If the current face image and the face image acquired before the screen is locked are recognized as the same person, it can be determined whether the first duration of the screen lock has timed out.
[0090] If it is the second sub-mode, it can be directly determined whether the first duration of the lock screen has timed out.
[0091] S509, if the first duration of the mobile phone screen lock is greater than or equal to the preset duration, for example, greater than or equal to 20 seconds, the mobile phone can display an unlocking interface at this time, prompting that the mobile phone cannot be used without being unlocked.
[0092] S510, if the first duration of the mobile phone screen lock is less than the preset duration, for example, less than 20s, it can be considered that the mobile phone screen lock is caused by the user's misoperation. The mobile phone can display the interface displayed before the screen lock, and it is not possible to switch to view other content at this time.
[0093] In the embodiment of this scenario, the mobile phone can automatically display the pre-lock screen interface of the mobile phone when the user accidentally touches the screen and causes the screen to be locked, thereby simplifying the information display process and improving the user experience. At the same time, it increases the judgment of the lock screen duration and can also increase the matching process of the user image according to the specific sub-mode, effectively preventing the information in the mobile phone from being leaked to a certain extent.
[0094] It should be noted that the information display method provided in the embodiment of the present application can be executed by an information display device, or by a control module in the information display device for executing the method for loading information display. In the embodiment of the present application, the method for information display provided in the embodiment of the present application is described by taking the method for loading information display executed by an information display device as an example.
[0095] Figure 6 600 is a schematic diagram of the structure of the information display device provided in the embodiment of the present application. The information display device 600 may include:
[0096] The receiving module 601 is used to receive an unlocking input from a first user when the electronic device is in a target mode and in a locked screen state;
[0097] An acquisition module 602 is used to acquire a first image of a first user in response to an unlock input;
[0098] A determination module 603, configured to determine a first duration for which the electronic device is in a locked screen state when the first image does not match the second image, and the second image is an image of a preset user;
[0099] The first display module 604 is used to display the first content when the first time length is less than the preset time length, and the first content is the content displayed by the electronic device before the screen is locked.
[0100] In an embodiment of the present application, by matching the first image of the first user who inputs the unlocking with the second image of the preset user of the electronic device, when the first image does not match the second image and the first duration of the electronic device being in the lock screen state is less than the preset duration, the first content displayed by the electronic device before the lock screen state is displayed. The first image does not match the second image, that is, the user who currently unlocks the electronic device is not the preset user of the electronic device, and the electronic device is still in the target mode. At this time, if the first duration is less than the preset duration, it can be considered that the lock screen may be caused by an accidental touch by the user, and the electronic device can display the first content displayed by the electronic device before the lock screen state. In this way, the electronic device can automatically display the content displayed by the electronic device before the lock screen state when the screen is locked due to an accidental touch by the user, thereby simplifying the process of re-displaying the content displayed by the electronic device before the lock screen state and improving the user experience.
[0101] In some embodiments, the information display device 600 may further include:
[0102] The second display module is used to display an unlocking interface of the electronic device when the first time period is greater than or equal to a preset time period.
[0103] In this way, when the first time length is greater than or equal to the preset time length, that is, when the lock screen is not caused by a user's misoperation, the unlocking interface is displayed at this time, which can prevent the information in the electronic device from being leaked.
[0104] In some embodiments, the information display device 600 may further include:
[0105] An acquisition module, used to acquire a third image of a second user operating the electronic device, where the second user is a user other than the preset user;
[0106] Accordingly, the determination module 603 may be specifically configured to:
[0107] When the first image does not match the second image but matches the third image, a first duration during which the electronic device is in a locked screen state is determined.
[0108] In this way, the first duration is determined only when the first user is not the preset user of the electronic device and the first user is the second user, and the first content is displayed when the first duration is less than the preset duration. In this way, the second user and users other than the preset user can be prevented from viewing the first content, thereby further preventing information leakage from the electronic device and improving the information security of the electronic device.
[0109] In some embodiments, the information display device 600 may further include:
[0110] The third display module is used to display the first content and turn off the target mode when the first image matches the second image.
[0111] In this way, when the first user is a preset user, the first content is displayed and the target mode is turned off. The first user can view the first content and use the electronic device normally without manually turning off the target mode, thereby simplifying the operation and further improving the user experience.
[0112] In some embodiments, the information display device 600 may further include:
[0113] The clearing module is used to clear a target image, where the target image includes at least one of the first image and the third image.
[0114] In the embodiment of the present application, after displaying the first content, that is, displaying the content displayed by the electronic device before the lock screen state, the target image can be automatically cleared. The target image can be the first image or the third image, or the first image and the third image.
[0115] The information display device 600 in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0116] The information display device 600 in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0117] The information display device 600 provided in the embodiment of the present application can realize Figures 1 to 5 To avoid repetition, the various processes in the information display method embodiment are not described here.
[0118] Optionally, an embodiment of the present application also provides an electronic device 700, including a processor 710, a memory 709, and a program or instruction stored in the memory 709 and executable on the processor 710. When the program or instruction is executed by the processor 710, each process of the above-mentioned information display method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0119] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0120] Figure 7 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0121] The electronic device 700 includes but is not limited to: a radio frequency module 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 710 and other components.
[0122] Those skilled in the art will appreciate that the electronic device 700 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 710 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 7 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0123] The user input unit 707 may be used to receive an unlocking input from a first user when the electronic device is in the target mode and in the lock screen state;
[0124] The processor 710 may be configured to:
[0125] In response to the unlock input, acquiring a first image of the first user;
[0126] In the case where the first image does not match the second image, determining a first time duration for the electronic device to be in a locked screen state, the second image being an image of a preset user;
[0127] The display unit 706 may be configured to display first content when the first duration is less than a preset duration, where the first content is content displayed by the electronic device before the screen is locked.
[0128] In an embodiment of the present application, by matching the first image of the first user who inputs the unlocking with the second image of the preset user of the electronic device, when the first image does not match the second image and the first duration of the electronic device being in the lock screen state is less than the preset duration, the first content displayed by the electronic device before the lock screen state is displayed. The first image does not match the second image, that is, the user who currently unlocks the electronic device is not the preset user of the electronic device, and the electronic device is still in the target mode. At this time, if the first duration is less than the preset duration, it can be considered that the lock screen may be caused by an accidental touch by the user, and the electronic device can display the first content displayed by the electronic device before the lock screen state. In this way, the electronic device can automatically display the content displayed by the electronic device before the lock screen state when the screen is locked due to an accidental touch by the user, thereby simplifying the process of re-displaying the content displayed by the electronic device before the lock screen state and improving the user experience.
[0129] In some embodiments, the display unit 706 may also be used to:
[0130] When the first time duration is greater than or equal to the preset time duration, an unlocking interface of the electronic device is displayed.
[0131] In this way, when the first time length is greater than or equal to the preset time length, that is, when the lock screen is not caused by a user's misoperation, the unlocking interface is displayed at this time, which can prevent the information in the electronic device from being leaked.
[0132] In some embodiments, the processor 710 may also be configured to:
[0133] Acquire a third image of a second user operating the electronic device, where the second user is a user other than the preset user;
[0134] When the first image does not match the second image but matches the third image, a first duration during which the electronic device is in a locked screen state is determined.
[0135] In this way, the first duration is determined only when the first user is not the preset user of the electronic device and the first user is the second user, and the first content is displayed when the first duration is less than the preset duration. In this way, the second user and users other than the preset user can be prevented from viewing the first content, thereby further preventing information leakage from the electronic device and improving the information security of the electronic device.
[0136] In some embodiments, the display unit 706 may also be used to:
[0137] In case the first image matches the second image, the first content is displayed and the target mode is turned off.
[0138] In this way, when the first user is a preset user, the first content is displayed and the target mode is turned off. The first user can view the first content and use the electronic device normally without manually turning off the target mode, thereby simplifying the operation and further improving the user experience.
[0139] In some embodiments, the processor 710 may also be configured to:
[0140] The target image is cleared, where the target image includes at least one of the first image and the third image.
[0141] In the embodiment of the present application, after displaying the first content, that is, displaying the content displayed by the electronic device before the lock screen state, the target image can be automatically cleared. The target image can be the first image or the third image, or the first image and the third image.
[0142] It should be understood that in the embodiment of the present application, the input unit 704 may include a graphics processor (Graphics Processing Unit, GPU) 7041 and a microphone 7042, and the graphics processor 7041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The first display module 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071 is also called a touch screen. The touch panel 7071 may include two parts: a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 709 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 710 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 710.
[0143] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned information display method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0144] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0145] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned information display method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0146] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0147] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0148] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0149] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. An information display method, characterized in that: The method comprises: Acquire a third image of a second user operating the electronic device, where the second user is a user other than the preset user, and the second user is a user operating the electronic device before the electronic device is in a locked screen state; When the electronic device is in a target mode and in a locked screen state, receiving an unlock input from a first user, wherein the target mode includes a first sub-mode and a second sub-mode; In response to the unlock input, acquiring a first image of the first user; When the target mode is the first sub-mode, when the first image does not match the second image and the first image matches the third image, determining a first time duration for the electronic device to be in the locked screen state, the second image being an image of a preset user; When the first duration is less than a preset duration, displaying first content, the first content being content displayed by the electronic device before the screen is locked; When the target mode is the second sub-mode, in the case where the first image does not match the second image, determining a first time duration for which the electronic device is in the locked screen state; When the first duration is shorter than a preset duration, the first content is displayed.
2. The method according to claim 1, characterized in that The method further comprises: When the first time period is greater than or equal to the preset time period, an unlocking interface of the electronic device is displayed.
3. The method according to claim 1, characterized in that After acquiring the first image of the first user in response to the unlock input, the method further includes: When the first image matches the second image, the first content is displayed and the target mode is turned off.
4. The method according to claim 1, after displaying the first content, further comprising: A target image is cleared, where the target image includes at least one of the first image and the third image.
5. An information display device, characterized in that: The device comprises: An acquisition module, configured to acquire a third image of a second user operating the electronic device, where the second user is a user other than the preset user, and the second user is a user operating the electronic device before the electronic device is in a locked screen state; A receiving module, configured to receive an unlocking input from a first user when the electronic device is in a target mode and in a locked screen state, wherein the target mode includes a first sub-mode and a second sub-mode; The acquisition module is further configured to acquire a first image of the first user in response to the unlock input; a determination module, configured to determine, when the target mode is the first sub-mode, a first duration for which the electronic device is in the locked screen state when the first image does not match the second image and the first image matches the third image, and the second image is an image of a preset user; A first display module, configured to display first content when the first duration is less than a preset duration, wherein the first content is content displayed by the electronic device before the screen is locked; The determination module is further configured to, when the target mode is the second sub-mode and the first image does not match the second image, determine a first duration for which the electronic device is in the locked screen state; The first display module is further used to display first content when the target mode is the second sub-mode and the first duration is less than a preset duration, wherein the first content is content displayed by the electronic device before the screen is locked.
6. The device according to claim 5, characterized in that The device also includes: The second display module is used to display the unlocking interface of the electronic device when the first time length is greater than or equal to the preset time length.
7. The device according to claim 5, characterized in that The device also includes: The third display module is used to display the first content and turn off the target mode when the first image matches the second image.
8. The device according to claim 5, further comprising: The clearing module is used to clear a target image, where the target image includes at least one of the first image and the third image.
9. An electronic device, characterized in that: It includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the information display method as described in any one of claims 1 to 4.
10. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the information display method according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Privacy protection method, mobile terminal and computer readable storage medium
CN107315937A
Unlocking method and device for intelligent terminal and equipment
CN107808086A
Screen awakening method and terminal
CN111475211A