CN111797370A - Unlocking method and device, storage medium and electronic equipment - Google Patents
Unlocking method and device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN111797370A CN111797370A CN201910282159.XA CN201910282159A CN111797370A CN 111797370 A CN111797370 A CN 111797370A CN 201910282159 A CN201910282159 A CN 201910282159A CN 111797370 A CN111797370 A CN 111797370A
- Authority
- CN
- China
- Prior art keywords
- unlocking
- scene
- mode
- electronic equipment
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 61
- 238000003860 storage Methods 0.000 title claims abstract description 13
- 238000004590 computer program Methods 0.000 claims description 21
- 238000004422 calculation algorithm Methods 0.000 description 10
- 238000012545 processing Methods 0.000 description 10
- 238000000605 extraction Methods 0.000 description 7
- 230000008447 perception Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 230000010354 integration Effects 0.000 description 5
- 230000001133 acceleration Effects 0.000 description 4
- 230000003190 augmentative effect Effects 0.000 description 3
- 238000004140 cleaning Methods 0.000 description 3
- 238000013500 data storage Methods 0.000 description 3
- 239000011521 glass Substances 0.000 description 3
- 238000013459 approach Methods 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000013501 data transformation Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000001914 filtration Methods 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000007619 statistical method Methods 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000005355 Hall effect Effects 0.000 description 1
- 238000013528 artificial neural network Methods 0.000 description 1
- 238000007635 classification algorithm Methods 0.000 description 1
- 238000013527 convolutional neural network Methods 0.000 description 1
- 125000004122 cyclic group Chemical group 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 238000003064 k means clustering Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 238000012856 packing Methods 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000012706 support-vector machine Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/45—Structures or tools for the administration of authentication
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the application provides an unlocking method, an unlocking device, a storage medium and electronic equipment, wherein the unlocking method comprises the following steps: acquiring a plurality of historical unlocking information of the electronic equipment; generating an unlocking statistical information database according to the plurality of historical unlocking information; acquiring a current unlocking scene of the electronic equipment; determining a target unlocking mode according to the current unlocking scene and the unlocking statistical information database; and unlocking the electronic equipment in the target unlocking mode. According to the unlocking method provided by the embodiment of the application, the electronic equipment can select the optimal unlocking mode according to the current unlocking scene, so that the unlocking failure caused when the electronic equipment is unlocked through other unlocking modes is avoided, the time consumed when the electronic equipment is unlocked can be reduced, and the unlocking efficiency is improved.
Description
Technical Field
The present disclosure relates to the field of electronic technologies, and in particular, to an unlocking method and apparatus, a storage medium, and an electronic device.
Background
With the development of electronic technology, electronic devices such as smart phones have become more and more rich in functions. Electronic devices are also increasingly storing data. Accordingly, the electronic devices are increasingly required to have security.
When a user uses the electronic device, the electronic device needs to verify the identity of the user. After the user identity authentication is successful, the electronic equipment can be unlocked for the user to operate. Generally, the electronic device may be unlocked in a variety of ways. For example, password unlocking, fingerprint unlocking, face recognition unlocking, voice recognition unlocking, and the like.
Disclosure of Invention
The embodiment of the application provides an unlocking method, an unlocking device, a storage medium and electronic equipment, and the unlocking efficiency of the electronic equipment can be improved.
The embodiment of the application provides an unlocking method, which is applied to electronic equipment, wherein the electronic equipment can be unlocked in a plurality of unlocking modes, and the unlocking method comprises the following steps:
acquiring a plurality of historical unlocking information of the electronic equipment, wherein the historical unlocking information comprises a historical unlocking mode and a historical unlocking scene;
generating an unlocking statistical information database according to the plurality of historical unlocking information, wherein the unlocking statistical information database comprises a corresponding relation between an unlocking mode and an unlocking scene;
acquiring a current unlocking scene of the electronic equipment;
determining a target unlocking mode according to the current unlocking scene and the unlocking statistical information database;
and unlocking the electronic equipment in the target unlocking mode.
The embodiment of the present application further provides an unlocking device, which is applied to an electronic device, the electronic device can be unlocked in a plurality of unlocking modes, and the unlocking device includes:
the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a plurality of historical unlocking information of the electronic equipment, and the historical unlocking information comprises a historical unlocking mode and a historical unlocking scene;
the generation module is used for generating an unlocking statistical information database according to the plurality of historical unlocking information, wherein the unlocking statistical information database comprises a corresponding relation between an unlocking mode and an unlocking scene;
the second acquisition module is used for acquiring a current unlocking scene of the electronic equipment;
the determining module is used for determining a target unlocking mode according to the current unlocking scene and the unlocking statistical information database;
and the unlocking module is used for unlocking the electronic equipment in the target unlocking mode.
The embodiment of the application also provides a storage medium, wherein a computer program is stored in the storage medium, the computer program is applied to electronic equipment, the electronic equipment can be unlocked in multiple unlocking modes, and when the computer program runs on a computer, the computer is enabled to execute the unlocking method.
The embodiment of the application further provides electronic equipment which can be unlocked in multiple unlocking modes and comprises a processor and a memory, wherein a computer program is stored in the memory, and the processor is used for executing the unlocking method by calling the computer program stored in the memory.
The unlocking method provided by the embodiment of the application comprises the following steps: acquiring a plurality of historical unlocking information of the electronic equipment, wherein the historical unlocking information comprises a historical unlocking mode and a historical unlocking scene; generating an unlocking statistical information database according to the plurality of historical unlocking information, wherein the unlocking statistical information database comprises a corresponding relation between an unlocking mode and an unlocking scene; acquiring a current unlocking scene of the electronic equipment; determining a target unlocking mode according to the current unlocking scene and the unlocking statistical information database; and unlocking the electronic equipment in the target unlocking mode. In the unlocking method, the electronic equipment can select the optimal unlocking mode according to the current unlocking scene, so that the unlocking failure caused when the electronic equipment is unlocked by other unlocking modes is avoided, the time consumed when the electronic equipment is unlocked can be reduced, and the unlocking efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a schematic view of an application scenario of an unlocking method according to an embodiment of the present application.
Fig. 2 is a first flowchart illustrating an unlocking method according to an embodiment of the present application.
Fig. 3 is a second flowchart of the unlocking method according to the embodiment of the present application.
Fig. 4 is a third flowchart illustrating an unlocking method according to an embodiment of the present application.
Fig. 5 is a fourth flowchart illustrating an unlocking method according to an embodiment of the present application.
Fig. 6 is a fifth flowchart illustrating an unlocking method according to an embodiment of the present application.
Fig. 7 is a sixth flowchart illustrating an unlocking method according to an embodiment of the present application.
Fig. 8 is a seventh flowchart illustrating an unlocking method according to an embodiment of the present application.
Fig. 9 is a first structural schematic diagram of an unlocking device according to an embodiment of the present application.
Fig. 10 is a second structural schematic diagram of an unlocking device provided in the embodiment of the present application.
Fig. 11 is a schematic structural diagram of a first electronic device according to an embodiment of the present application.
Fig. 12 is a schematic structural diagram of a second electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without inventive step, are within the scope of the present application.
Referring to fig. 1, fig. 1 is a schematic view of an application scenario of an unlocking method provided in an embodiment of the present application. The unlocking method is applied to the electronic equipment. A panoramic perception framework is arranged in the electronic equipment. The panoramic sensing architecture is an integration of hardware and software for implementing the unlocking method in an electronic device.
The panoramic perception architecture comprises an information perception layer, a data processing layer, a feature extraction layer, a scene modeling layer and an intelligent service layer.
The information perception layer is used for acquiring information of the electronic equipment or information in an external environment. The information-perceiving layer may include a plurality of sensors. For example, the information sensing layer includes a plurality of sensors such as a distance sensor, a magnetic field sensor, a light sensor, an acceleration sensor, a fingerprint sensor, a hall sensor, a position sensor, a gyroscope, an inertial sensor, an attitude sensor, a barometer, and a heart rate sensor.
Among other things, a distance sensor may be used to detect a distance between the electronic device and an external object. The magnetic field sensor may be used to detect magnetic field information of the environment in which the electronic device is located. The light sensor can be used for detecting light information of the environment where the electronic equipment is located. The acceleration sensor may be used to detect acceleration data of the electronic device. The fingerprint sensor may be used to collect fingerprint information of a user. The Hall sensor is a magnetic field sensor manufactured according to the Hall effect, and can be used for realizing automatic control of electronic equipment. The location sensor may be used to detect the geographic location where the electronic device is currently located. Gyroscopes may be used to detect angular velocity of an electronic device in various directions. Inertial sensors may be used to detect motion data of an electronic device. The gesture sensor may be used to sense gesture information of the electronic device. A barometer may be used to detect the barometric pressure of the environment in which the electronic device is located. The heart rate sensor may be used to detect heart rate information of the user.
And the data processing layer is used for processing the data acquired by the information perception layer. For example, the data processing layer may perform data cleaning, data integration, data transformation, data reduction, and the like on the data acquired by the information sensing layer.
The data cleaning refers to cleaning a large amount of data acquired by the information sensing layer to remove invalid data and repeated data. The data integration refers to integrating a plurality of single-dimensional data acquired by the information perception layer into a higher or more abstract dimension so as to comprehensively process the data of the plurality of single dimensions. The data transformation refers to performing data type conversion or format conversion on the data acquired by the information sensing layer so that the transformed data can meet the processing requirement. The data reduction means that the data volume is reduced to the maximum extent on the premise of keeping the original appearance of the data as much as possible.
The characteristic extraction layer is used for extracting characteristics of the data processed by the data processing layer so as to extract the characteristics included in the data. The extracted features may reflect the state of the electronic device itself or the state of the user or the environmental state of the environment in which the electronic device is located, etc.
The feature extraction layer may extract features or process the extracted features by a method such as a filtering method, a packing method, or an integration method.
The filtering method is to filter the extracted features to remove redundant feature data. Packaging methods are used to screen the extracted features. The integration method is to integrate a plurality of feature extraction methods together to construct a more efficient and more accurate feature extraction method for extracting features.
The scene modeling layer is used for building a model according to the features extracted by the feature extraction layer, and the obtained model can be used for representing the state of the electronic equipment, the state of a user, the environment state and the like. For example, the scenario modeling layer may construct a key value model, a pattern identification model, a graph model, an entity relation model, an object-oriented model, and the like according to the features extracted by the feature extraction layer.
The intelligent service layer is used for providing intelligent services for the user according to the model constructed by the scene modeling layer. For example, the intelligent service layer can provide basic application services for users, perform system intelligent optimization for electronic equipment, and provide personalized intelligent services for users.
In addition, the panoramic perception architecture can further comprise a plurality of algorithms, each algorithm can be used for analyzing and processing data, and the plurality of algorithms can form an algorithm library. For example, the algorithm library may include algorithms such as a markov algorithm, a hidden dirichlet distribution algorithm, a bayesian classification algorithm, a support vector machine, a K-means clustering algorithm, a K-nearest neighbor algorithm, a conditional random field, a residual error network, a long-short term memory network, a convolutional neural network, and a cyclic neural network.
The embodiment of the application provides an unlocking method which can be applied to electronic equipment. The electronic device can be unlocked in a plurality of unlocking modes. The plurality of unlocking manners means two or more unlocking manners. For example, the electronic device can be unlocked in unlocking modes such as password unlocking, fingerprint unlocking, face recognition unlocking, voice recognition unlocking and the like.
The electronic device may be a smartphone, a tablet computer, a gaming device, an AR (Augmented Reality) device, an automobile, a data storage device, an audio playback device, a video playback device, a laptop computer, a desktop computing device, a wearable device such as an electronic watch, an electronic glasses, an electronic helmet, an electronic bracelet, an electronic necklace, an electronic garment, or the like.
Referring to fig. 2, fig. 2 is a first flowchart illustrating an unlocking method according to an embodiment of the present application. The unlocking method comprises the following steps:
110, obtaining a plurality of historical unlocking information of the electronic equipment, wherein the historical unlocking information comprises historical unlocking modes and historical unlocking scenes.
When a user uses the electronic equipment, the electronic equipment can record information related to unlocking operation each time the user performs the unlocking operation on the electronic equipment. Wherein the information related to the unlocking operation may constitute historical unlocking information. For example, the electronic device may record information such as an unlocking manner, an unlocking scenario, a duration consumed by unlocking, and a time when unlocking. The unlocking mode can be fingerprint unlocking, for example. The unlocking scene may include, for example, information such as an ambient temperature, an ambient humidity, an ambient light intensity, an ambient noise intensity, a geographical location of the electronic device when the electronic device is unlocked. The unlocking mode included in the historical unlocking information is a historical unlocking mode, and the unlocking scene included in the historical unlocking information is a historical unlocking scene.
For example, the electronic device may be represented by (l)t,ct) Records historical unlock information. Wherein t represents the time when unlocking, l represents the unlocking mode, and c represents the scene when unlocking.
The scene c may be defined by multiple dimensions. The dimensions may include ambient temperature, ambient humidity, ambient light intensity, ambient noise intensity, geographic location where the electronic device is located, and the like. That is, the scene c may include one or more of ambient temperature, ambient humidity, ambient light intensity, ambient noise intensity, geographical location where the electronic device is located, and the like.
For example, scene c may pass through c (p)1,p2,…pm) To perform the presentation. Wherein p is1Representing the 1 st dimension, p, in scene c2Representing the 2 nd dimension, p, in scene cmRepresenting the mth dimension in scene c. Each of the dimensions is one of an ambient temperature, an ambient humidity, an ambient light intensity, an ambient noise intensity, and a geographical location of the electronic device.
It should be noted that, when recording the information related to the unlocking operation, the electronic device may record only the information related to the successful unlocking, but not record the information related to the failed unlocking. The electronic device may also record all information related to the unlocking operation, including both information related to the success of the unlocking and information related to the failure of the unlocking.
The unlocking success indicates that the electronic equipment successfully verifies the unlocking information of the user, so that the electronic equipment releases the locking state. The unlocking failure indicates that the electronic equipment fails to verify the unlocking information of the user, so that the electronic equipment continues to keep the locked state.
When a user triggers an unlocking operation of the electronic equipment, the electronic equipment acquires a plurality of historical unlocking information. And each historical unlocking information comprises a historical unlocking mode and a historical unlocking scene. For example, when a user presses a power key to light up a display screen of the electronic device, the electronic device may obtain a plurality of historical unlocking information.
And 120, generating an unlocking statistical information database according to the plurality of historical unlocking information, wherein the unlocking statistical information database comprises a corresponding relation between an unlocking mode and an unlocking scene.
After the electronic device obtains the plurality of historical unlocking information, an unlocking statistical information database can be generated according to the plurality of historical unlocking information. The unlocking statistical information database comprises a corresponding relation between an unlocking mode and an unlocking scene.
For example, the electronic device may adopt a statistical method to perform statistics on historical unlocking manners and historical unlocking scenes in the plurality of historical unlocking information, so as to obtain the number of times of unlocking in each unlocking manner in each scene.
For example, in some embodiments, each piece of statistical information in the unlock statistical information database may be presented in a format of c (l, n). Wherein c represents an unlocking scene, l represents an unlocking mode, and n represents the number of times of unlocking in the l unlocking mode in the c unlocking scene.
For another example, in some embodiments, each piece of statistics in the unlock statistics database may be represented by c (l)1:n1,l2:n2,…,lk:nk) Is presented. Wherein c represents an unlocking scene, and k represents the types of all unlocking modes that the electronic device can support. l1Indicates the 1 st unlocking mode in the c scene2Indicates the 2 nd unlocking mode in the c scene, lkDenotes the kth unlocking mode, n, under c scenarios1To representIn the c-unlock scenario with l1Number of times of unlocking in unlocking mode, n2Denotes the unlocking of c with l2Number of times of unlocking in unlocking mode, nkDenotes the unlocking of c with lkThe number of times of unlocking by the unlocking mode.
And 130, acquiring a current unlocking scene of the electronic equipment.
When the electronic equipment is unlocked, the current unlocking scene can be acquired. And the current unlocking scene is the scene where the current electronic equipment is located. The current unlock scenario may include one or more of a plurality of dimensions, such as ambient temperature, ambient humidity, ambient light intensity, ambient noise intensity, a geographic location of the electronic device, and so on.
And 140, determining a target unlocking mode according to the current unlocking scene and the unlocking statistical information database.
After the electronic device acquires the current unlocking scene, a target unlocking mode can be determined according to the current unlocking scene and the unlocking statistical information database. And the target unlocking mode is the best unlocking mode in the current unlocking scene determined according to the unlocking statistical information database.
For example, when the ambient light intensity in the current unlocking scene is strong and the geographic location of the electronic device is a public place, the target unlocking manner may be fingerprint unlocking. For another example, when the ambient temperature and the ambient humidity in the current unlocking scene are high and high, the target unlocking manner may be face recognition unlocking.
And 150, unlocking the electronic equipment in the target unlocking mode.
After the electronic equipment determines the target unlocking mode, the unlocking program corresponding to the target unlocking mode can be started, so that the electronic equipment is unlocked through the target unlocking mode. For example, if the target unlocking manner is fingerprint unlocking, the electronic device may start a fingerprint identification program to collect and identify fingerprint information of the user.
In the embodiment of the application, when the electronic equipment is unlocked, the optimal unlocking mode can be selected according to the current unlocking scene, so that the unlocking failure caused when the electronic equipment is unlocked through other unlocking modes is avoided, the time consumed when the electronic equipment is unlocked can be reduced, and the unlocking efficiency is improved.
In some embodiments, referring to fig. 3, fig. 3 is a second flowchart of an unlocking method provided in the embodiments of the present application.
141, determining a target historical unlocking scene corresponding to the current unlocking scene from the unlocking statistical information database;
142, acquiring unlocking statistical information corresponding to the historical target unlocking scene, wherein the unlocking statistical information comprises unlocking success times of each unlocking mode;
143, determining a target unlocking mode according to the unlocking statistical information.
The electronic device may match a current unlocking scenario with the unlocking statistical information database to determine a historical target unlocking scenario corresponding to the current unlocking scenario from the unlocking statistical information database. The target historical unlocking scene may be the same scene as the current unlocking scene or a scene which is less different from the current unlocking scene.
For example, the unlocking statistic information includes c1、c2、…c100Wait for 100 unlock scenarios, wherein scenario c2Including an ambient temperature of 26 degrees and an ambient humidity of 60 degrees. If the current unlocking scene comprises an environment temperature of 26 ℃ and an environment humidity of 60, the electronic device may determine that a target historical unlocking scene corresponding to the current unlocking scene is c2。
And then, the electronic equipment acquires unlocking statistical information corresponding to the historical target unlocking scene. And the unlocking statistical information comprises the unlocking success times of each unlocking mode. For example, the target history unlock scenario is c2Then the electronic device acquires c2Corresponding unlocking statistical information.
For example, the unlocking statistic information acquired by the electronic device may be c2(password unlock: 50, fingerprint unlock: 80, face recognition unlock: 30, voice recognition unlock: 10). In the unlocking statistical information, 50 indicates that the password unlocking mode is successfully unlocked for 50 times, 80 indicates that the fingerprint unlocking mode is successfully unlocked for 80 times, 30 indicates that the face recognition unlocking mode is successfully unlocked for 30 times, and 10 indicates that the voice recognition unlocking mode is successfully unlocked for 10 times.
Subsequently, the electronic device may determine a target unlocking manner according to the unlocking statistical information. The target unlocking mode is the best unlocking mode in the unlocking statistical information. For example, the electronic device may determine that a fingerprint unlock is a target unlock manner.
In some embodiments, referring to fig. 4, fig. 4 is a third flowchart illustrating an unlocking method provided in an embodiment of the present application.
1431, determining an unlocking mode with the largest unlocking success frequency according to the unlocking statistical information;
1432, determining the unlocking mode with the largest unlocking success frequency as a target unlocking mode.
After the electronic device obtains the unlocking statistical information, the unlocking mode with the largest number of successful unlocking times can be determined according to the unlocking statistical information, and then the unlocking mode with the largest number of successful unlocking times is determined as the target unlocking mode.
For example, the unlocking statistic information acquired by the electronic device is c2(password unlock: 50, fingerprint unlock: 80, face recognition unlock: 30, voice recognition unlock: 10). Then, the electronic device may determine that the unlocking manner with the largest number of successful unlocking times is fingerprint unlocking. And then, the electronic equipment determines the fingerprint unlocking as a target unlocking mode.
In some embodiments, referring to fig. 5, fig. 5 is a fourth flowchart illustrating an unlocking method provided in an embodiment of the present application.
1432a, determining an unlocking mode which consumes the shortest average time for unlocking from the unlocking modes with the largest unlocking success times;
1432b, determining the unlocking mode with the shortest average time consumption of unlocking as the target unlocking mode.
In the embodiment of the present application, the unlocking statistical information further includes average time consumption of each unlocking manner. The electronic equipment can calculate the average consumed time of each unlocking mode according to the unlocking success times of each unlocking mode and the total consumed time of the unlocking modes.
For example, the unlock statistic may be in c (l)1:n1:t1,l2:n2:t2,…,lk:nk:tk) Is presented. Wherein, t1Indicates i under c scene1Average time spent in unlocking mode, t2Indicates i under c scene2Average time spent in unlocking mode, tkIndicates i under c scenekThe average time consuming unlocking approach.
In the embodiment of the application, the unlocking modes with the largest unlocking success times comprise at least two modes. For example, the unlocking statistic information acquired by the electronic device is c2(password unlock: 80: 5, fingerprint unlock: 80: 1, face recognition unlock: 30: 2, voice recognition unlock: 10: 3). The unlocking success times of password unlocking and fingerprint unlocking are the most, and are 80 times. The average time consumption of password unlocking is 5 microseconds, the average time consumption of fingerprint unlocking is 1 microsecond, the average time consumption of face recognition unlocking is 2 microseconds, and the average time consumption of voice recognition unlocking is 3 microseconds.
When the unlocking modes with the largest unlocking success times include at least two unlocking modes, the electronic device may determine the unlocking mode with the shortest average time consumption for unlocking from the at least two unlocking modes with the largest unlocking success times. And then, the electronic equipment determines the unlocking mode with the shortest average unlocking time as a target unlocking mode.
For example, the unlocking statistic information acquired by the electronic device is c2(password unlock: 80: 5, fingerprint unlock: 80: 1, face recognition unlock: 30: 2, voice recognition unlock: 10: 3). Then, the electronic device may determine that the unlocking manner that takes the shortest average time for unlocking is fingerprint unlocking. And then, the electronic equipment determines the fingerprint unlocking as a target unlocking mode.
In some embodiments, referring to fig. 6, fig. 6 is a fifth flowchart illustrating an unlocking method provided in an embodiment of the present application.
1432c, obtaining the unlocking success rate of each unlocking mode according to the unlocking success times and the unlocking failure times of each unlocking mode;
1432d, determining an unlocking mode with the highest unlocking success rate from the at least two unlocking modes with the highest unlocking success times;
1432e, determining the unlocking mode with the highest unlocking success rate as the target unlocking mode.
In the embodiment of the application, when the electronic device records the information related to unlocking, the information related to successful unlocking and the information related to failed unlocking are recorded. Therefore, the unlocking statistical information database generated by the electronic equipment also comprises the unlocking failure times of each unlocking mode in each scene.
For example, each unlocking statistic in the unlocking statistic database may be represented by c (l)1:n1:m1,l2:n2:m2,…,lk:nk:mk) Is presented. Wherein m is1Indicates i under c scene1Number of unlocking failures m of unlocking mode2Indicates i under c scene2Number of unlocking failures m of unlocking modekIndicates i under c scenekThe number of times of unlocking failure of the unlocking mode.
In the embodiment of the application, the unlocking mode with the largest unlocking success times comprises at least two unlocking modesAnd (4) seed preparation. For example, the unlocking statistic information acquired by the electronic device is c2(password unlock: 80: 20, fingerprint unlock: 80: 10, face recognition unlock: 30: 8, voice recognition unlock: 10: 3). The unlocking success times of password unlocking and fingerprint unlocking are both 80 times. The unlocking failure times of password unlocking are 20 times, the unlocking failure times of fingerprint unlocking are 10 times, the unlocking failure times of face recognition unlocking are 8 times, and the unlocking failure times of voice recognition unlocking are 3 times.
The electronic equipment can obtain the unlocking success rate of each unlocking mode according to the unlocking success times and the unlocking failure times of each unlocking mode.
For example, the unlocking statistic information acquired by the electronic device is c2(password unlock: 80: 20, fingerprint unlock: 80: 10, face recognition unlock: 30: 8, voice recognition unlock: 10: 3). Then, the electronic device can calculate that the unlocking success rate of password unlocking is 80%, the unlocking success rate of fingerprint unlocking is 88.89%, the unlocking success rate of face recognition unlocking is 78.95%, and the unlocking success rate of voice recognition unlocking is 76.92%.
And then, the electronic equipment determines the unlocking mode with the highest unlocking success rate from the at least two unlocking modes with the highest unlocking success times, and determines the unlocking mode with the highest unlocking success rate as the target unlocking mode.
For example, the password unlocking and the fingerprint unlocking have the largest number of unlocking success times, and are both 80 times. The unlocking success rate of password unlocking is 80%, and the unlocking success rate of fingerprint unlocking is 88.89%. Then, the electronic device may determine that the unlocking manner with the highest unlocking success rate is fingerprint unlocking. And then, the electronic equipment determines the fingerprint unlocking as a target unlocking mode.
In some embodiments, referring to fig. 7, fig. 7 is a sixth flowchart illustrating an unlocking method provided in an embodiment of the present application.
131, obtaining scene information of a scene where the electronic device is located, where the scene information includes at least two of ambient light intensity, ambient noise intensity, ambient temperature, ambient humidity, and current geographical location;
and 132, determining the current unlocking scene of the electronic equipment according to the scene information.
When the electronic device is unlocked, scene information of a scene where the electronic device is located can be acquired. For example, the electronic device may acquire scene information of a scene in which the electronic device is located through an information sensing layer of a panorama sensing architecture. Wherein the scene information comprises at least two of ambient light intensity, ambient noise intensity, ambient temperature, ambient humidity, and current geographic location.
And then, the electronic equipment determines the current unlocking scene of the electronic equipment according to the scene information.
For example, the electronic device may obtain the current ambient light intensity through a light sensor of the information sensing layer, and obtain the current geographical location of the electronic device through a location sensor. Subsequently, the current unlock scenario is determined as c (y, z). Where y represents the ambient light intensity acquired and z represents the geographical location acquired.
In some embodiments, referring to fig. 8, fig. 8 is a seventh flowchart illustrating an unlocking method according to an embodiment of the present application.
Before the step 130 of obtaining the current unlocking scene of the electronic device, the method further includes the following steps:
161, acquiring angular velocity data of the electronic device;
162, judging whether the electronic equipment is in a preset posture or not according to the angular speed data;
and if the electronic equipment is in the preset posture, acquiring a current unlocking scene of the electronic equipment.
The preset posture can be preset in the electronic equipment. The preset gesture represents that when the electronic equipment is in the preset gesture, the unlocking operation of the electronic equipment is triggered. For example, the preset posture may be a posture in which the display screen of the electronic device faces upward, and an included angle of 30 degrees is formed between a plane where the display screen of the electronic device is located and a horizontal plane.
The electronic equipment can acquire the angular speed data of the electronic equipment in real time. The angular velocity data may include angular velocities of the electronic device in three mutually perpendicular axes. For example, the electronic device may acquire its own angular velocity data through a gyroscope.
And then, the electronic equipment judges whether the electronic equipment is in a preset posture or not according to the angular speed data. And if the electronic equipment is in the preset posture, the electronic equipment acquires the current unlocking scene to trigger the unlocking operation of the electronic equipment. If the electronic device is not in the preset posture, the electronic device may not perform any processing, that is, does not trigger the unlocking operation.
In particular implementation, the present application is not limited by the execution sequence of the described steps, and some steps may be performed in other sequences or simultaneously without conflict.
As can be seen from the above, the unlocking method provided in the embodiment of the present application includes: acquiring a plurality of historical unlocking information of the electronic equipment, wherein the historical unlocking information comprises a historical unlocking mode and a historical unlocking scene; generating an unlocking statistical information database according to the plurality of historical unlocking information, wherein the unlocking statistical information database comprises a corresponding relation between an unlocking mode and an unlocking scene; acquiring a current unlocking scene of the electronic equipment; determining a target unlocking mode according to the current unlocking scene and the unlocking statistical information database; and unlocking the electronic equipment in the target unlocking mode. In the unlocking method, the electronic equipment can select the optimal unlocking mode according to the current unlocking scene, so that the unlocking failure caused when the electronic equipment is unlocked by other unlocking modes is avoided, the time consumed when the electronic equipment is unlocked can be reduced, and the unlocking efficiency is improved.
The embodiment of the application further provides an unlocking device, and the unlocking device can be integrated in the electronic equipment. The electronic device may be a smartphone, a tablet computer, a gaming device, an AR (Augmented Reality) device, an automobile, a data storage device, an audio playback device, a video playback device, a laptop computer, a desktop computing device, a wearable device such as an electronic watch, an electronic glasses, an electronic helmet, an electronic bracelet, an electronic necklace, an electronic garment, or the like. The electronic equipment can be unlocked in various unlocking modes.
Referring to fig. 9, fig. 9 is a first structural schematic diagram of an unlocking device according to an embodiment of the present application. Wherein the unlocking means 200 comprises: the device comprises a first acquisition module 201, a generation module 202, a second acquisition module 203, a determination module 204 and an unlocking module 205.
The first obtaining module 201 is configured to obtain a plurality of historical unlocking information of the electronic device, where the historical unlocking information includes a historical unlocking manner and a historical unlocking scenario.
When a user uses the electronic equipment, the electronic equipment can record information related to unlocking operation each time the user performs the unlocking operation on the electronic equipment. Wherein the information related to the unlocking operation may constitute historical unlocking information. For example, the electronic device may record information such as an unlocking manner, an unlocking scenario, a duration consumed by unlocking, and a time when unlocking. The unlocking mode can be fingerprint unlocking, for example. The unlocking scene may include, for example, information such as an ambient temperature, an ambient humidity, an ambient light intensity, an ambient noise intensity, a geographical location of the electronic device when the electronic device is unlocked. The unlocking mode included in the historical unlocking information is a historical unlocking mode, and the unlocking scene included in the historical unlocking information is a historical unlocking scene.
For example, the electronic device may be represented by (l)t,ct) Records historical unlock information. Wherein t represents the time when unlocking, l represents the unlocking mode, and c represents the scene when unlocking.
The scene c may be defined by multiple dimensions. The dimensions may include ambient temperature, ambient humidity, ambient light intensity, ambient noise intensity, geographic location where the electronic device is located, and the like. That is, the scene c may include one or more of ambient temperature, ambient humidity, ambient light intensity, ambient noise intensity, geographical location where the electronic device is located, and the like.
For example, scene c may pass through c (p)1,p2,…pm) To perform the presentation. Wherein p is1Representing the 1 st dimension, p, in scene c2Representing the 2 nd dimension, p, in scene cmRepresenting the mth dimension in scene c. Each of the dimensions is one of an ambient temperature, an ambient humidity, an ambient light intensity, an ambient noise intensity, and a geographical location of the electronic device.
It should be noted that, when recording the information related to the unlocking operation, the electronic device may record only the information related to the successful unlocking, but not record the information related to the failed unlocking. The electronic device may also record all information related to the unlocking operation, including both information related to the success of the unlocking and information related to the failure of the unlocking.
The unlocking success indicates that the electronic equipment successfully verifies the unlocking information of the user, so that the electronic equipment releases the locking state. The unlocking failure indicates that the electronic equipment fails to verify the unlocking information of the user, so that the electronic equipment continues to keep the locked state.
When a user triggers an unlocking operation of the electronic device, the first obtaining module 201 obtains a plurality of historical unlocking information of the electronic device. And each historical unlocking information comprises a historical unlocking mode and a historical unlocking scene. For example, when a user presses a power button of the electronic device to illuminate a display screen of the electronic device, the first obtaining module 201 may obtain a plurality of historical unlocking information of the electronic device.
A generating module 202, configured to generate an unlocking statistical information database according to the multiple historical unlocking information, where the unlocking statistical information database includes a corresponding relationship between an unlocking manner and an unlocking scenario.
After the first obtaining module 201 obtains a plurality of historical unlocking information of the electronic device, the generating module 202 may generate an unlocking statistical information database according to the plurality of historical unlocking information. The unlocking statistical information database comprises a corresponding relation between an unlocking mode and an unlocking scene.
For example, the generating module 202 may adopt a statistical method to count the historical unlocking manners and the historical unlocking scenarios in the multiple pieces of historical unlocking information, so as to obtain the unlocking times of each unlocking manner in each scenario.
For example, in some embodiments, each piece of statistical information in the unlock statistical information database may be presented in a format of c (l, n). Wherein c represents an unlocking scene, l represents an unlocking mode, and n represents the number of times of unlocking in the l unlocking mode in the c unlocking scene.
For another example, in some embodiments, each piece of statistics in the unlock statistics database may be represented by c (l)1:n1,l2:n2,…,lk:nk) Is presented. Wherein c represents an unlocking scene, and k represents the types of all unlocking modes that the electronic device can support. l1Indicates the 1 st unlocking mode in the c scene2Indicates the 2 nd unlocking mode in the c scene, lkDenotes the kth unlocking mode, n, under c scenarios1Denotes the unlocking of c with l1Number of times of unlocking in unlocking mode, n2Denotes the unlocking of c with l2Number of times of unlocking in unlocking mode, nkDenotes the unlocking of c with lkThe number of times of unlocking by the unlocking mode.
A second obtaining module 203, configured to obtain a current unlocking scenario of the electronic device.
When the electronic device is unlocked, the second obtaining module 203 may obtain a current unlocking scenario. And the current unlocking scene is the scene where the current electronic equipment is located. The current unlock scenario may include one or more of a plurality of dimensions, such as ambient temperature, ambient humidity, ambient light intensity, ambient noise intensity, a geographic location of the electronic device, and so on.
And the determining module 204 is configured to determine a target unlocking manner according to the current unlocking scenario and the unlocking statistical information database.
After the second obtaining module 203 obtains the current unlocking scenario, the determining module 204 may determine the target unlocking manner according to the current unlocking scenario and the unlocking statistical information database. And the target unlocking mode is the best unlocking mode in the current unlocking scene determined according to the unlocking statistical information database.
For example, when the ambient light intensity in the current unlocking scene is strong and the geographic location of the electronic device is a public place, the target unlocking manner may be fingerprint unlocking. For another example, when the ambient temperature and the ambient humidity in the current unlocking scene are high and high, the target unlocking manner may be face recognition unlocking.
An unlocking module 205, configured to unlock the electronic device in the target unlocking manner.
After the determining module 204 determines the target unlocking manner, the unlocking module 205 may start an unlocking program corresponding to the target unlocking manner, so as to unlock the electronic device through the target unlocking manner. For example, if the target unlocking manner is fingerprint unlocking, the unlocking module 205 may start a fingerprint identification program to collect fingerprint information of the user and perform identification.
In the embodiment of the application, when the electronic equipment is unlocked, the optimal unlocking mode can be selected according to the current unlocking scene, so that the unlocking failure caused when the electronic equipment is unlocked through other unlocking modes is avoided, the time consumed when the electronic equipment is unlocked can be reduced, and the unlocking efficiency is improved.
In some embodiments, the determination module 204 is configured to perform the following steps:
determining a target historical unlocking scene corresponding to the current unlocking scene from the unlocking statistical information database;
acquiring unlocking statistical information corresponding to the target historical unlocking scene, wherein the unlocking statistical information comprises unlocking success times of each unlocking mode;
and determining a target unlocking mode according to the unlocking statistical information.
The determining module 204 may match the current unlocking scenario with the unlocking statistic information database to determine a historical target unlocking scenario corresponding to the current unlocking scenario from the unlocking statistic information database. The target historical unlocking scene may be the same scene as the current unlocking scene or a scene which is less different from the current unlocking scene.
For example, the unlocking statistic information includes c1、c2、…c100Wait for 100 unlock scenarios, wherein scenario c2Including an ambient temperature of 26 degrees and an ambient humidity of 60 degrees. If the current unlocking scenario includes an ambient temperature of 26 degrees and an ambient humidity of 60 degrees, the determining module 204 may determine that the historical target unlocking scenario corresponding to the current unlocking scenario is c2。
Subsequently, the determining module 204 obtains unlocking statistical information corresponding to the historical unlocking scene of the target. And the unlocking statistical information comprises the unlocking success times of each unlocking mode. For example, the target history unlock scenario is c2Then the determination module 204 obtains c2Corresponding unlocking statistical information.
For example, the unlocking statistic obtained by the determination module 204 may be c2(password unlock: 50, fingerprint unlock: 80, face recognition unlock: 30, voice recognition unlock: 10). In the unlocking statistical information, 50 indicates that the password unlocking mode is successfully unlocked for 50 times, 80 indicates that the fingerprint unlocking mode is successfully unlocked for 80 times, 30 indicates that the face recognition unlocking mode is successfully unlocked for 30 times, and 10 indicates that the voice recognition unlocking mode is successfully unlocked for 10 times.
Subsequently, the determining module 204 may determine the target unlocking manner according to the unlocking statistical information. The target unlocking mode is the best unlocking mode in the unlocking statistical information. For example, the determination module 204 may determine that the fingerprint unlock is the target unlock manner.
In some embodiments, when determining the target unlocking manner according to the unlocking statistic information, the determining module 204 is configured to perform the following steps:
determining an unlocking mode with the maximum unlocking success times according to the unlocking statistical information;
and determining the unlocking mode with the maximum unlocking success times as a target unlocking mode.
After the determining module 204 obtains the unlocking statistical information, it may determine the unlocking mode with the largest number of successful unlocking times according to the unlocking statistical information, and then determine the unlocking mode with the largest number of successful unlocking times as the target unlocking mode.
For example, the unlocking statistic information acquired by the determination module 204 is c2(password unlock: 50, fingerprint unlock: 80, face recognition unlock: 30, voice recognition unlock: 10). Then, the determining module 204 may determine that the unlocking manner with the largest number of successful unlocking times is fingerprint unlocking. Subsequently, the determining module 204 determines the fingerprint unlock as the target unlock mode.
In some embodiments, when the unlocking manner with the largest number of successful unlocking times is determined as the target unlocking manner, the determining module 204 is configured to perform the following steps:
determining the unlocking mode with the shortest average unlocking time from the at least two unlocking modes with the largest unlocking success times;
and determining the unlocking mode with the shortest average unlocking time as a target unlocking mode.
In the embodiment of the present application, the unlocking statistical information further includes average time consumption of each unlocking manner. The determining module 204 may calculate the average consumed time of each unlocking manner according to the number of unlocking success times of each unlocking manner and the total consumed time of the unlocking manner.
For example, the unlock statistic may be in c (l)1:n1:t1,l2:n2:t2,…,lk:nk:tk) Is presented. Wherein, t1Indicates i under c scene1Average time spent in unlocking mode, t2Indicates i under c scene2Average time spent in unlocking mode, tkIndicates i under c scenekThe average time consuming unlocking approach.
In the embodiment of the application, the unlocking modes with the largest unlocking success times comprise at least two modes. For example, the unlocking statistic information acquired by the determination module 204 is c2(password unlock: 80: 5, fingerprint unlock): 80: 1, face recognition unlocking: 30: 2, unlocking by voice recognition: 10: 3). The unlocking success times of password unlocking and fingerprint unlocking are the most, and are 80 times. The average time consumption of password unlocking is 5 microseconds, the average time consumption of fingerprint unlocking is 1 microsecond, the average time consumption of face recognition unlocking is 2 microseconds, and the average time consumption of voice recognition unlocking is 3 microseconds.
When the unlocking manners with the largest unlocking success times include at least two unlocking manners, the determining module 204 may determine the unlocking manner with the shortest average time consumption for unlocking from the at least two unlocking manners with the largest unlocking success times. Subsequently, the determining module 204 determines the unlocking mode with the shortest average time consumption as the target unlocking mode.
For example, the unlocking statistic information acquired by the determination module 204 is c2(password unlock: 80: 5, fingerprint unlock: 80: 1, face recognition unlock: 30: 2, voice recognition unlock: 10: 3). Then, the determining module 204 may determine that the unlocking manner that takes the shortest average time for unlocking is fingerprint unlocking. Subsequently, the determining module 204 determines the fingerprint unlock as the target unlock mode.
In some embodiments, when the unlocking manner with the largest number of successful unlocking times is determined as the target unlocking manner, the determining module 204 is configured to perform the following steps:
acquiring the unlocking success rate of each unlocking mode according to the unlocking success times and the unlocking failure times of each unlocking mode;
determining the unlocking mode with the highest unlocking success rate from the at least two unlocking modes with the highest unlocking success times;
and determining the unlocking mode with the highest unlocking success rate as a target unlocking mode.
In the embodiment of the application, when the electronic device records the information related to unlocking, the information related to successful unlocking and the information related to failed unlocking are recorded. Therefore, the unlocking statistical information database generated by the generation module 202 further includes the number of times of unlocking failure of each unlocking mode in each scenario.
For example, the unlock statistics databaseMay be given as c (l) per unlock statistic1:n1:m1,l2:n2:m2,…,lk:nk:mk) Is presented. Wherein m is1Indicates i under c scene1Number of unlocking failures m of unlocking mode2Indicates i under c scene2Number of unlocking failures m of unlocking modekIndicates i under c scenekThe number of times of unlocking failure of the unlocking mode.
In the embodiment of the application, the unlocking modes with the largest unlocking success times comprise at least two modes. For example, the unlocking statistic information acquired by the determination module 204 is c2(password unlock: 80: 20, fingerprint unlock: 80: 10, face recognition unlock: 30: 8, voice recognition unlock: 10: 3). The unlocking success times of password unlocking and fingerprint unlocking are both 80 times. The unlocking failure times of password unlocking are 20 times, the unlocking failure times of fingerprint unlocking are 10 times, the unlocking failure times of face recognition unlocking are 8 times, and the unlocking failure times of voice recognition unlocking are 3 times.
The determining module 204 may obtain the unlocking success rate of each unlocking manner according to the unlocking success frequency and the unlocking failure frequency of each unlocking manner.
For example, the unlocking statistic information acquired by the determination module 204 is c2(password unlock: 80: 20, fingerprint unlock: 80: 10, face recognition unlock: 30: 8, voice recognition unlock: 10: 3). Then, the determining module 204 may calculate that the unlocking success rate of password unlocking is 80%, the unlocking success rate of fingerprint unlocking is 88.89%, the unlocking success rate of face recognition unlocking is 78.95%, and the unlocking success rate of voice recognition unlocking is 76.92%.
Subsequently, the determining module 204 determines the unlocking mode with the highest unlocking success rate from the at least two unlocking modes with the highest unlocking success times, and determines the unlocking mode with the highest unlocking success rate as the target unlocking mode.
For example, the password unlocking and the fingerprint unlocking have the largest number of unlocking success times, and are both 80 times. The unlocking success rate of password unlocking is 80%, and the unlocking success rate of fingerprint unlocking is 88.89%. Then, the determining module 204 may determine that the unlocking manner with the highest unlocking success rate is fingerprint unlocking. Subsequently, the determining module 204 determines the fingerprint unlock as the target unlock mode.
In some embodiments, the second obtaining module 203 is configured to perform the following steps:
acquiring scene information of a scene where the electronic equipment is located, wherein the scene information comprises at least two of ambient light intensity, ambient noise intensity, ambient temperature, ambient humidity and current geographic position;
and determining the current unlocking scene of the electronic equipment according to the scene information.
When the electronic device is unlocked, the second obtaining module 203 may obtain scene information of a scene where the electronic device is located. For example, the second obtaining module 203 may obtain scene information of a scene in which the electronic device is located through an information sensing layer of a panorama sensing architecture of the electronic device. Wherein the scene information comprises at least two of ambient light intensity, ambient noise intensity, ambient temperature, ambient humidity, and current geographic location.
Subsequently, the second obtaining module 203 determines a current unlocking scene of the electronic device according to the scene information.
For example, the second obtaining module 203 may obtain the current ambient light intensity through a light sensor of the information sensing layer, and obtain the current geographic location of the electronic device through a location sensor. Subsequently, the current unlock scenario is determined as c (y, z). Where y represents the ambient light intensity acquired and z represents the geographical location acquired.
In some embodiments, referring to fig. 10, fig. 10 is a second structural schematic diagram of an unlocking device provided in the embodiments of the present application.
Wherein, the unlocking device 200 further includes: a third obtaining module 206 and a judging module 207.
A third obtaining module 206, configured to obtain angular velocity data of the electronic device;
the judging module 207 is configured to judge whether the electronic device is in a preset posture according to the angular velocity data;
the second obtaining module 203 is configured to obtain a current unlocking scene of the electronic device if the electronic device is in the preset posture.
The preset posture can be preset in the electronic equipment. The preset gesture represents that when the electronic equipment is in the preset gesture, the unlocking operation of the electronic equipment is triggered. For example, the preset posture may be a posture in which the display screen of the electronic device faces upward, and an included angle of 30 degrees is formed between a plane where the display screen of the electronic device is located and a horizontal plane.
The third obtaining module 206 may obtain the angular velocity data of the electronic device in real time. The angular velocity data may include angular velocities of the electronic device in three mutually perpendicular axes. For example, the third obtaining module 206 may obtain the angular velocity data of the electronic device through a gyroscope of the electronic device.
Subsequently, the determining module 207 determines whether the electronic device is in a preset posture according to the angular velocity data. If the electronic device is in the preset posture, the second obtaining module 203 obtains the current unlocking scene to trigger the unlocking operation of the electronic device. If the electronic device is not in the preset posture, the electronic device may not perform any processing, that is, does not trigger the unlocking operation.
In specific implementation, the modules may be implemented as independent entities, or may be combined arbitrarily and implemented as one or several entities.
As can be seen from the above, the unlocking device 200 provided in the embodiment of the present application includes: the first obtaining module 201 is configured to obtain a plurality of historical unlocking information of the electronic device, where the historical unlocking information includes a historical unlocking manner and a historical unlocking scenario; a generating module 202, configured to generate an unlocking statistical information database according to the plurality of historical unlocking information, where the unlocking statistical information database includes a corresponding relationship between an unlocking manner and an unlocking scenario; a second obtaining module 203, configured to obtain a current unlocking scenario of the electronic device; a determining module 204, configured to determine a target unlocking manner according to the current unlocking scenario and the unlocking statistical information database; an unlocking module 205, configured to unlock the electronic device in the target unlocking manner. In the unlocking device, the electronic equipment can select the optimal unlocking mode according to the current unlocking scene, so that the unlocking failure caused when the electronic equipment is unlocked by other unlocking modes is avoided, the time consumed when the electronic equipment is unlocked can be reduced, and the unlocking efficiency is improved.
The embodiment of the application also provides the electronic equipment. The electronic device may be a smartphone, a tablet computer, a gaming device, an AR (Augmented Reality) device, an automobile, a data storage device, an audio playback device, a video playback device, a laptop computer, a desktop computing device, a wearable device such as an electronic watch, an electronic glasses, an electronic helmet, an electronic bracelet, an electronic necklace, an electronic garment, or the like. The electronic equipment can be unlocked in various unlocking modes.
Referring to fig. 11, fig. 11 is a schematic view of a first structure of an electronic device according to an embodiment of the present application.
The processor 301 is a control center of the electronic device 300, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or calling a computer program stored in the memory 302 and calling data stored in the memory 302, thereby performing overall monitoring of the electronic device.
In this embodiment, the processor 301 in the electronic device 300 loads instructions corresponding to one or more processes of the computer program into the memory 302 according to the following steps, and the processor 301 runs the computer program stored in the memory 302, so as to implement various functions:
acquiring a plurality of historical unlocking information of the electronic equipment, wherein the historical unlocking information comprises a historical unlocking mode and a historical unlocking scene;
generating an unlocking statistical information database according to the plurality of historical unlocking information, wherein the unlocking statistical information database comprises a corresponding relation between an unlocking mode and an unlocking scene;
acquiring a current unlocking scene of the electronic equipment;
determining a target unlocking mode according to the current unlocking scene and the unlocking statistical information database;
and unlocking the electronic equipment in the target unlocking mode.
In some embodiments, when determining the target unlocking manner according to the current unlocking scenario and the unlocking statistic information database, the processor 301 performs the following steps:
determining a target historical unlocking scene corresponding to the current unlocking scene from the unlocking statistical information database;
acquiring unlocking statistical information corresponding to the target historical unlocking scene, wherein the unlocking statistical information comprises unlocking success times of each unlocking mode;
and determining a target unlocking mode according to the unlocking statistical information.
In some embodiments, when determining the target unlocking manner according to the unlocking statistic information, the processor 301 performs the following steps:
determining an unlocking mode with the maximum unlocking success times according to the unlocking statistical information;
and determining the unlocking mode with the maximum unlocking success times as a target unlocking mode.
In some embodiments, the unlocking manners with the largest number of successful unlocking times include at least two unlocking manners, the unlocking statistical information further includes average consumed time of each unlocking manner, and when the unlocking manner with the largest number of successful unlocking times is determined as the target unlocking manner, the processor 301 performs the following steps:
determining the unlocking mode with the shortest average unlocking time from the at least two unlocking modes with the largest unlocking success times;
and determining the unlocking mode with the shortest average unlocking time as a target unlocking mode.
In some embodiments, the unlocking manners with the largest number of successful unlocking times include at least two unlocking manners, the unlocking statistical information further includes the number of failed unlocking times of each unlocking manner, and when the unlocking manner with the largest number of successful unlocking times is determined as the target unlocking manner, the processor 301 performs the following steps:
acquiring the unlocking success rate of each unlocking mode according to the unlocking success times and the unlocking failure times of each unlocking mode;
determining the unlocking mode with the highest unlocking success rate from the at least two unlocking modes with the highest unlocking success times;
and determining the unlocking mode with the highest unlocking success rate as a target unlocking mode.
In some embodiments, when acquiring the current unlocking scenario of the electronic device, the processor 301 performs the following steps:
acquiring scene information of a scene where the electronic equipment is located, wherein the scene information comprises at least two of ambient light intensity, ambient noise intensity, ambient temperature, ambient humidity and current geographic position;
and determining the current unlocking scene of the electronic equipment according to the scene information.
In some embodiments, before acquiring the current unlocking scenario of the electronic device, the processor 301 further performs the following steps:
acquiring angular velocity data of the electronic equipment;
judging whether the electronic equipment is in a preset posture or not according to the angular speed data;
and if the electronic equipment is in the preset posture, acquiring a current unlocking scene of the electronic equipment.
In some embodiments, referring to fig. 12, fig. 12 is a schematic view of a second structure of an electronic device provided in the embodiments of the present application.
Wherein, the electronic device 300 further comprises: a display 303, a control circuit 304, an input unit 305, a sensor 306, and a power supply 307. The processor 301 is electrically connected to the display 303, the control circuit 304, the input unit 305, the sensor 306, and the power source 307.
The display screen 303 may be used to display information entered by or provided to the user as well as various graphical user interfaces of the electronic device, which may be comprised of images, text, icons, video, and any combination thereof.
The control circuit 304 is electrically connected to the display 303, and is configured to control the display 303 to display information.
The input unit 305 may be used to receive input numbers, character information, or user characteristic information (e.g., fingerprint), and generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control. Wherein, the input unit 305 may include a fingerprint recognition module.
The sensor 306 is used to collect information of the electronic device itself or information of the user or external environment information. For example, the sensor 306 may include a plurality of sensors such as a distance sensor, a magnetic field sensor, a light sensor, an acceleration sensor, a fingerprint sensor, a hall sensor, a position sensor, a gyroscope, an inertial sensor, an attitude sensor, a barometer, a heart rate sensor, and the like.
The power supply 307 is used to power the various components of the electronic device 300. In some embodiments, the power supply 307 may be logically coupled to the processor 301 through a power management system, such that functions of managing charging, discharging, and power consumption are performed through the power management system.
Although not shown in fig. 12, the electronic device 300 may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
As can be seen from the above, an embodiment of the present application provides an electronic device, where the electronic device performs the following steps: acquiring a plurality of historical unlocking information of the electronic equipment, wherein the historical unlocking information comprises a historical unlocking mode and a historical unlocking scene; generating an unlocking statistical information database according to the plurality of historical unlocking information, wherein the unlocking statistical information database comprises a corresponding relation between an unlocking mode and an unlocking scene; acquiring a current unlocking scene of the electronic equipment; determining a target unlocking mode according to the current unlocking scene and the unlocking statistical information database; and unlocking the electronic equipment in the target unlocking mode. According to the electronic equipment provided by the embodiment of the application, when unlocking is carried out, the electronic equipment can select the best unlocking mode according to the current unlocking scene, so that the unlocking failure caused when the electronic equipment is unlocked through other unlocking modes is avoided, the time consumed when the electronic equipment is unlocked can be reduced, and the unlocking efficiency is improved.
The embodiment of the application further provides a storage medium, wherein a computer program is stored in the storage medium, the computer program is applied to electronic equipment, the electronic equipment can be unlocked in multiple unlocking modes, and when the computer program runs on a computer, the computer executes the unlocking method in any embodiment.
It should be noted that, all or part of the steps in the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, which may be stored in a computer-readable storage medium, which may include, but is not limited to: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
The unlocking method, the unlocking device, the storage medium and the electronic device provided by the embodiment of the application are described in detail above. The principle and the implementation of the present application are explained herein by applying specific examples, and the above description of the embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.
Claims (10)
1. An unlocking method is applied to electronic equipment, and is characterized in that the electronic equipment can be unlocked in multiple unlocking modes, and the unlocking method comprises the following steps:
acquiring a plurality of historical unlocking information of the electronic equipment, wherein the historical unlocking information comprises a historical unlocking mode and a historical unlocking scene;
generating an unlocking statistical information database according to the plurality of historical unlocking information, wherein the unlocking statistical information database comprises a corresponding relation between an unlocking mode and an unlocking scene;
acquiring a current unlocking scene of the electronic equipment;
determining a target unlocking mode according to the current unlocking scene and the unlocking statistical information database;
and unlocking the electronic equipment in the target unlocking mode.
2. The unlocking method according to claim 1, wherein the determining a target unlocking manner according to the current unlocking scenario and the unlocking statistic information database includes:
determining a target historical unlocking scene corresponding to the current unlocking scene from the unlocking statistical information database;
acquiring unlocking statistical information corresponding to the target historical unlocking scene, wherein the unlocking statistical information comprises unlocking success times of each unlocking mode;
and determining a target unlocking mode according to the unlocking statistical information.
3. The unlocking method according to claim 2, wherein the determining a target unlocking manner according to the unlocking statistical information includes:
determining an unlocking mode with the maximum unlocking success times according to the unlocking statistical information;
and determining the unlocking mode with the maximum unlocking success times as a target unlocking mode.
4. The unlocking method according to claim 3, wherein the unlocking manners with the largest number of successful unlocking times include at least two unlocking manners, the unlocking statistical information further includes average consumed time of each unlocking manner, and the determining the unlocking manner with the largest number of successful unlocking times as a target unlocking manner includes:
determining the unlocking mode with the shortest average unlocking time from the at least two unlocking modes with the largest unlocking success times;
and determining the unlocking mode with the shortest average unlocking time as a target unlocking mode.
5. The unlocking method according to claim 3, wherein the unlocking modes with the largest number of successful unlocking times include at least two unlocking modes, the unlocking statistical information further includes the number of failed unlocking times of each unlocking mode, and the determining the unlocking mode with the largest number of successful unlocking times as the target unlocking mode includes:
acquiring the unlocking success rate of each unlocking mode according to the unlocking success times and the unlocking failure times of each unlocking mode;
determining the unlocking mode with the highest unlocking success rate from the at least two unlocking modes with the highest unlocking success times;
and determining the unlocking mode with the highest unlocking success rate as a target unlocking mode.
6. The unlocking method according to claim 1, wherein the obtaining of the current unlocking scenario of the electronic device comprises:
acquiring scene information of a scene where the electronic equipment is located, wherein the scene information comprises at least two of ambient light intensity, ambient noise intensity, ambient temperature, ambient humidity and current geographic position;
and determining the current unlocking scene of the electronic equipment according to the scene information.
7. The unlocking method according to claim 1, wherein before the obtaining of the current unlocking scenario of the electronic device, further comprising:
acquiring angular velocity data of the electronic equipment;
judging whether the electronic equipment is in a preset posture or not according to the angular speed data;
and if the electronic equipment is in the preset posture, acquiring a current unlocking scene of the electronic equipment.
8. The utility model provides an unlocking device, is applied to electronic equipment, its characterized in that, electronic equipment accessible multiple unblock mode is unblock, unlocking device includes:
the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a plurality of historical unlocking information of the electronic equipment, and the historical unlocking information comprises a historical unlocking mode and a historical unlocking scene;
the generation module is used for generating an unlocking statistical information database according to the plurality of historical unlocking information, wherein the unlocking statistical information database comprises a corresponding relation between an unlocking mode and an unlocking scene;
the second acquisition module is used for acquiring a current unlocking scene of the electronic equipment;
the determining module is used for determining a target unlocking mode according to the current unlocking scene and the unlocking statistical information database;
and the unlocking module is used for unlocking the electronic equipment in the target unlocking mode.
9. A storage medium, wherein a computer program is stored in the storage medium, and the computer program is applied to an electronic device, wherein the electronic device can be unlocked through a plurality of unlocking manners, and when the computer program runs on a computer, the computer is caused to execute the unlocking method according to any one of claims 1 to 7.
10. An electronic device, characterized in that the electronic device can be unlocked by a plurality of unlocking manners, the electronic device comprises a processor and a memory, the memory stores a computer program, and the processor is used for executing the unlocking method according to any one of claims 1 to 7 by calling the computer program stored in the memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910282159.XA CN111797370A (en) | 2019-04-09 | 2019-04-09 | Unlocking method and device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910282159.XA CN111797370A (en) | 2019-04-09 | 2019-04-09 | Unlocking method and device, storage medium and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111797370A true CN111797370A (en) | 2020-10-20 |
Family
ID=72805362
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910282159.XA Pending CN111797370A (en) | 2019-04-09 | 2019-04-09 | Unlocking method and device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111797370A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109002702A (en) * | 2018-08-01 | 2018-12-14 | Oppo广东移动通信有限公司 | Solve lock control method and electronic device |
US20180365443A1 (en) * | 2017-06-20 | 2018-12-20 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Information Processing Method And Related Products |
CN109144221A (en) * | 2018-07-17 | 2019-01-04 | Oppo广东移动通信有限公司 | Information cuing method, storage medium and electronic equipment |
CN109558719A (en) * | 2019-01-03 | 2019-04-02 | 中国联合网络通信集团有限公司 | Unlocking method and terminal |
-
2019
- 2019-04-09 CN CN201910282159.XA patent/CN111797370A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180365443A1 (en) * | 2017-06-20 | 2018-12-20 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Information Processing Method And Related Products |
CN109144221A (en) * | 2018-07-17 | 2019-01-04 | Oppo广东移动通信有限公司 | Information cuing method, storage medium and electronic equipment |
CN109002702A (en) * | 2018-08-01 | 2018-12-14 | Oppo广东移动通信有限公司 | Solve lock control method and electronic device |
CN109558719A (en) * | 2019-01-03 | 2019-04-02 | 中国联合网络通信集团有限公司 | Unlocking method and terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108446638B (en) | Identity authentication method and device, storage medium and electronic equipment | |
CN111489378B (en) | Video frame feature extraction method and device, computer equipment and storage medium | |
US9224064B2 (en) | Electronic device, electronic device operating method, and computer readable recording medium recording the method | |
WO2020048392A1 (en) | Application virus detection method, apparatus, computer device, and storage medium | |
EP3407256A1 (en) | Recognizing biological feature | |
US20140232748A1 (en) | Device, method and computer readable recording medium for operating the same | |
CN112257552B (en) | Image processing method, device, equipment and storage medium | |
CN108847941B (en) | Identity authentication method, device, terminal and storage medium | |
CN111931877A (en) | Target detection method, device, equipment and storage medium | |
CN106471440A (en) | Eye tracking based on efficient forest sensing | |
CN111797854B (en) | Scene model building method and device, storage medium and electronic equipment | |
CN111797302A (en) | Model processing method and device, storage medium and electronic equipment | |
CN111797851A (en) | Feature extraction method and device, storage medium and electronic equipment | |
CN111797850A (en) | Video classification method and device, storage medium and electronic equipment | |
CN112580472A (en) | Rapid and lightweight face recognition method and device, machine readable medium and equipment | |
CN113515987A (en) | Palm print recognition method and device, computer equipment and storage medium | |
CN112001442B (en) | Feature detection method, device, computer equipment and storage medium | |
CN112818733B (en) | Information processing method, device, storage medium and terminal | |
CN110363187B (en) | Face recognition method, face recognition device, machine readable medium and equipment | |
CN111178455B (en) | Image clustering method, system, device and medium | |
CN111797873A (en) | Scene recognition method and device, storage medium and electronic equipment | |
CN111796701A (en) | Model training method, operation processing method, device, storage medium and equipment | |
CN111797370A (en) | Unlocking method and device, storage medium and electronic equipment | |
CN111796663B (en) | Scene recognition model updating method and device, storage medium and electronic equipment | |
CN111797869A (en) | Model training method and device, storage medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |