CN107203712A - Determine method, device, storage medium and the terminal of unlocking manner - Google Patents

Determine method, device, storage medium and the terminal of unlocking manner Download PDF

Info

Publication number
CN107203712A
CN107203712A CN201710526402.9A CN201710526402A CN107203712A CN 107203712 A CN107203712 A CN 107203712A CN 201710526402 A CN201710526402 A CN 201710526402A CN 107203712 A CN107203712 A CN 107203712A
Authority
CN
China
Prior art keywords
parameter
parameter value
normalized
value
terminal
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.)
Granted
Application number
CN201710526402.9A
Other languages
Chinese (zh)
Other versions
CN107203712B (en
Inventor
梁昆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710526402.9A priority Critical patent/CN107203712B/en
Publication of CN107203712A publication Critical patent/CN107203712A/en
Application granted granted Critical
Publication of CN107203712B publication Critical patent/CN107203712B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The embodiment of the present invention provides a kind of method, device, storage medium and terminal for determining unlocking manner, and this method obtains the first parameter value and the second parameter value in ambient parameter;According to first parameter value and the second parameter value calculation ambient parameter weights;Judge whether the ambient parameter weights are in preset range;When the ambient parameter weights are in the preset range, current unlocking manner is determined according to the parameter type of first parameter and the second parameter.In the program, when the ambient parameter weights calculated are in preset range, terminal determines the current unlocking manner of terminal according to the parameter type of the first parameter and the second parameter, so as to reduce influence of the ambient parameter to unblock accuracy rate, the unblock success rate of terminal can be improved, and then improves the convenience of terminal.

Description

Determine method, device, storage medium and the terminal of unlocking manner
Technical field
The present invention relates to field of terminal technology, more particularly to a kind of method for determining unlocking manner, device, storage medium and Terminal.
Background technology
With the development of terminal technology, the function of the terminal such as smart mobile phone is more and more.Wherein, many work(of terminal Individual privacy that can be all with user is closely bound up.For example, payment application, social networking application, individual health data in terminal etc..From And, in order to ensure the personal secrets of user, the security of terminal increasingly attracts attention.
In order to improve the safety in utilization of terminal, when user enters terminal interface, it is necessary to carry out subscriber authentication.Example Such as, when user enters terminal interface, demanding terminal user input fingerprint, and checking is identified to the fingerprint.However, terminal Validated user (namely owner) situation of authentication failure also occurs, now terminal can continue to carry out multiple identity to test Card.Now, the identification verification function of terminal expends the time, to user using bringing inconvenience, so as to cause the convenience of terminal to drop It is low.
The content of the invention
The embodiment of the present invention provides a kind of method, device, storage medium and terminal for determining unlocking manner, can improve end The convenience at end.
The embodiment of the present invention provides a kind of method for determining unlocking manner, including:
Obtain the first parameter value and the second parameter value in ambient parameter;
According to first parameter value and the second parameter value calculation ambient parameter weights;
Judge whether the ambient parameter weights are in preset range;
If the ambient parameter weights are in the preset range, according to the parameter type of the first parameter and the second parameter It is determined that current unlocking manner.
The embodiment of the present invention also provides a kind of device for determining unlocking manner, including:
Acquisition module, for obtaining the first parameter value and the second parameter value in ambient parameter;
Computing module, for according to first parameter value and the second parameter value calculation ambient parameter weights;
Judge module, for judging whether the ambient parameter weights are in preset range;
Determining module, for when the ambient parameter weights are in the preset range, according to the first parameter and second The parameter type of parameter determines current unlocking manner.
The embodiment of the present invention also provides a plurality of instruction that is stored with a kind of storage medium, the storage medium, the instruction Method suitable for being loaded by processor to perform above-mentioned determination unlocking manner.
The embodiment of the present invention also provides a plurality of refer to that be stored with a kind of terminal, including processor and memory, the memory Order, the processor loads the instruction in the method for performing above-mentioned determination unlocking manner.
The method provided in an embodiment of the present invention for determining unlocking manner, obtains the first parameter value in ambient parameter and the Two parameter values;According to first parameter value and the second parameter value calculation ambient parameter weights;Judging the ambient parameter weights is It is no to be in preset range;When the ambient parameter weights are in the preset range, according to first parameter and the ginseng of the second parameter Several classes of types determine current unlocking manner.In the program, when the ambient parameter weights calculated are in preset range, terminal root The current unlocking manner of terminal is determined according to the parameter type of the first parameter and the second parameter, so as to reduce ambient parameter pair The influence of accuracy rate is unlocked, the unblock success rate of terminal can be improved, and then improve the convenience of terminal.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, makes required in being described below to embodiment Accompanying drawing is briefly described.It should be evident that drawings in the following description are only some embodiments of the present invention, for For those skilled in the art, on the premise of not paying creative work, it can also be obtained according to these accompanying drawings other attached Figure.
Fig. 1 is the view of terminal screen lock interface.
Fig. 2 is the schematic flow sheet of the method for determination unlocking manner provided in an embodiment of the present invention.
Fig. 3 is another schematic flow sheet of the method for determination unlocking manner provided in an embodiment of the present invention.
Fig. 4 is the another schematic flow sheet of the method for determination unlocking manner provided in an embodiment of the present invention.
Fig. 5 is the method application scenarios schematic diagram of determination unlocking manner provided in an embodiment of the present invention.
Fig. 6 is the method another application schematic diagram of a scenario of determination unlocking manner provided in an embodiment of the present invention.
Fig. 7 is the another application scenarios schematic diagram of method of determination unlocking manner provided in an embodiment of the present invention.
Fig. 8 is the structural representation of the device of determination unlocking manner provided in an embodiment of the present invention.
Fig. 9 is another structural representation of the device of determination unlocking manner provided in an embodiment of the present invention.
Figure 10 is the another structural representation of the device of determination unlocking manner provided in an embodiment of the present invention.
Figure 11 is the structural representation of terminal provided in an embodiment of the present invention.
Figure 12 is another structural representation of terminal provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described.Obviously, described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, the every other implementation that those skilled in the art are obtained under the premise of creative work is not paid Example, belongs to protection scope of the present invention.
Term " first ", " second ", " the 3rd " in description and claims of this specification and above-mentioned accompanying drawing etc. (if present) is for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that this The object of sample description can be exchanged in the appropriate case.In addition, term " comprising " and " having " and their any deformation, meaning Figure is to cover non-exclusive include.For example, containing the process of series of steps, method or containing a series of modules or list The device of member, terminal, system are not necessarily limited to those steps or module or the unit clearly listed, and can also include unclear The step of ground is listed or module or unit, can also be included for intrinsic its of these processes, method, device, terminal or system Its step or module or unit.
With reference to Fig. 1, Fig. 1 is the view of terminal screen lock interface.User is when entering terminal system, and terminal first can Show locking screen interface.Wherein, there is fingerprint identification module, the finger print information for gathering user in terminal.Inputted as user When finger print information coincide with the finger print information prestored in terminal, subscriber authentication passes through.Now, terminal is unlocked, And the interface entered after unblock.The interface entered after terminal unlocking can be the main interface (i.e. the desktop of terminal) of terminal, also may be used To be some Application Program Interface.
The embodiment of the present invention provides a kind of method for determining unlocking manner, and this method can apply in terminal.The terminal Can be the equipment such as smart mobile phone, tablet personal computer.As shown in Fig. 2 the method for the determination unlocking manner, can include following step Suddenly:
S110, obtains the first parameter value and the second parameter value in ambient parameter.
Wherein, terminal has a variety of unlocking manners.For example, terminal can include unlocked by fingerprint, iris unblock, vocal print unblock Deng unlocking manner.
In unlocked by fingerprint mode, terminal gathers the finger print information of user.When the finger print information and preset fingerprint information are coincide When, terminal is unlocked.Wherein, preset fingerprint information can be the owner (i.e. the owner of the terminal) that terminal is gathered in advance Finger print information.
In iris unlocking manner, terminal gathers the iris information of user.When the iris information and default iris information are coincide When, terminal is unlocked.Wherein, default iris information can be the iris information for the owner that terminal is gathered in advance.
In vocal print unlocking manner, terminal gathers the voiceprint of user.When the voiceprint and default voiceprint coincide When, terminal is unlocked.Wherein, default voiceprint can be the voiceprint for the owner that terminal is gathered in advance.
When the unblock of user's triggering terminal is operated, such as during end point bright screen curtain, terminal can be obtained in ambient parameter First parameter value and the second parameter value.Wherein, first parameter and the second parameter can be influence terminal unlocking accuracys Parameter.
In certain embodiments, ambient parameter can include environment temperature, fine particle concentration (PM2.5), environmental light intensity The parameter such as degree, ambient noise and the distance between terminal and user.Terminal can gather above-mentioned multiple ambient parameters in real time, and Successively two parameters are obtained from the multiple ambient parameters collected to be handled.
For unlocked by fingerprint, when environment temperature is too high, user's hand may perspire, so as to influence the accurate of fingerprint recognition Property.When fine particle excessive concentration, user's finger can be infected with fine particle, so as to can also influence the accuracy of fingerprint recognition. Therefore, first parameter and the second parameter can be temperature and fine particle concentration.
For iris unblock, when ambient light intensity is not enough, for example at night, the camera in terminal gathers the rainbow of user Occur during film information and gather inaccurate situation.When the distance between terminal and user are too remote, camera collection user's Iris information, which also occurs, gathers inaccurate situation.Therefore, first parameter and the second parameter can be ambient light intensity and The distance between terminal and user.
For vocal print unblock, when ambient noise is too big, sound and the ambient noise of user are mixed, terminal collection There is a situation where that collection is inaccurate during the voiceprint of user.When the distance between terminal and user are too remote, what user sent It can weaken during sound incoming terminal, so as to also influence whether that terminal gathers the accuracy of user's voiceprint.Therefore, first ginseng Number and the second parameter can be the distance between ambient noise and terminal and user.
S120, according to first parameter value and the second parameter value calculation ambient parameter weights.
Wherein, terminal is got after the first parameter value and the second parameter value, based on the algorithm pre-set according to this One parameter value and the second parameter value calculation ambient parameter weights.The ambient parameter weights can be a numerical value.The environment is joined Number weights are used for the current unlocking manner for determining terminal.
S130, judges whether the ambient parameter weights are in preset range.
Wherein, preset range can be the number range pre-set for ambient parameter weights.The default model Enclosing to be prestored in terminal.After terminal calculates ambient parameter weights, by the ambient parameter weights and the default model The numerical end point enclosed is compared, to judge whether the ambient parameter weights are in the preset range.
S140, when the ambient parameter weights are in the preset range, according to first parameter and the parameter of the second parameter Type determines current unlocking manner.
When terminal judges that the ambient parameter weights are in the preset range, then according to first parameter and the second parameter Parameter type determine current unlocking manner.Terminal is determined after current unlocking manner, you can gathered according to current unlocking manner The authentication information of user, to be verified to user identity.Wherein, parameter type can be environment temperature, fine particle The type such as concentration, ambient light intensity, ambient noise and the distance between terminal and user.
When terminal judges the ambient parameter weights not in the preset range, terminal can terminate this flow, Huo Zhechong It is new to start to perform this flow.
In certain embodiments, as shown in figure 3, step S120, according to first parameter value and the second parameter value meter Ambient parameter weights are calculated, are comprised the following steps:
S121, first parameter value is normalized, to obtain the first normalized parameter value;
S122, second parameter value is normalized, to obtain the second normalized parameter value;
S123, according to the first normalized parameter value and the second normalized parameter value computing environment parameter weights.
Wherein, normalization is a kind of mode of simplified calculating, will there is the expression formula of dimension, by conversion, is turned to immeasurable The expression formula of guiding principle, as scalar.Terminal is got after the first parameter value and the second parameter value, can be respectively by first parameter Value and second parameter value are normalized, to respectively obtain the first normalized parameter value and the second normalized parameter Value.
Then, terminal is weighed according to the first normalized parameter value and the second normalized parameter value computing environment parameter Value.
In certain embodiments, step S121, first parameter value is normalized, to obtain the first normalization During parameter value, terminal first parameter value can be normalized according to below equation:
Wherein, W1For the first normalized parameter value, P is the first parameter value, P0For the first preset parameter value.First default ginseng Numerical value can pre-set a parameter value in the terminal.For different parameter types, the number of the first preset parameter value Value can be different.
For example, when the first parameter is environment temperature, first preset parameter value P0Can be 25 degrees Celsius (DEG C, below Abbreviation degree).For example, P=30 DEG C of the first parameter value, then can calculate W1=1.2.
In certain embodiments, step S122, second parameter value is normalized, to obtain the second normalization During parameter value, terminal second parameter value can be normalized according to below equation:
Wherein, W2For the second normalized parameter value, Q is the second parameter value, Q0For the second preset parameter value.Second default ginseng Numerical value can pre-set a parameter value in the terminal.For different parameter types, the number of the second preset parameter value Value can be different.
For example, when the second parameter is fine particle concentration, second preset parameter value Q0Can be 50 every cube of micrograms Rice (μ g/m3).For example, the second parameter value Q=100 μ g/m3, then W can be calculated2=2.
In certain embodiments, as shown in figure 4, step S123, according to the first normalized parameter value and this second return One changes parameter value calculation ambient parameter weights, comprises the following steps:
S1231, obtains corresponding first weighted value of the first normalized parameter value and the second normalized parameter value pair The second weighted value answered;
S1232, according to the first normalized parameter value, the first weighted value, the second normalized parameter value and the second weight It is worth computing environment parameter weights.
Wherein, the corresponding relation between parameter type and the weighted value of the parameter type can be prestored in terminal.Eventually End is obtained after the first normalized parameter value and the second normalized parameter value, can be returned according to the first normalized parameter value, second One change parameter value parameter type and the corresponding relation come obtain corresponding first weighted value of the first normalized parameter value with And corresponding second weighted value of the second normalized parameter value.
For example, above-mentioned corresponding relation can be corresponding relation as shown in table 1.
Table 1
Terminal is got after the first weighted value and the second weighted value, you can according to the first normalized parameter value, the first power Weight values, the second normalized parameter value and the second weighted value computing environment parameter weights.
Wherein, terminal can be with multiple information during multi collect terminal unlocking success.For example, being adopted during acquisition terminal unblock Unlocking manner, the real time environment parameter for influenceing the unlocking manner.And the multiple information collected are learnt, with continuous Weighted value corresponding to various types of ambient parameters is adjusted, to be calculated by the weighted value got Ambient parameter weights and actual environment situation more coincide, and then success rate when improving terminal unlocking.
In certain embodiments, step S1232, according to the first normalized parameter value, the first weighted value, second normalization Parameter value and the second weighted value computing environment parameter weights, terminal can be according to below equation come computing environment parameter weights:
W=W1×R1+W2×R2
Wherein, W is ambient parameter weights, W1For the first normalized parameter value, R1For the first weighted value, W2For the second normalizing Change parameter value, R2For the second weighted value.
For example, the first parameter is environment temperature, the second parameter is fine particle concentration, then can get the first weighted value R1For 0.6, the second weighted value R2For 0.4.For example, the first normalized parameter value W1=1.2, the second normalized parameter value W2=2, W=1.2 × 0.6+2 × 0.4=1.52 can then be calculated.
In certain embodiments, as shown in figure 3, step S110, the first parameter value and second obtained in ambient parameter Before parameter value, determining the method for unlocking manner can also comprise the following steps:
S150, the mapping relations between arrange parameter type and unlocking manner;
Step S140, when the ambient parameter weights are in the preset range, according to first parameter and the second parameter Parameter type determines current unlocking manner, comprises the following steps:
S141, when the ambient parameter weights are in the preset range, according to the first parameter and the parameter class of the second parameter Type and the mapping relations determine current unlocking manner.
Wherein, the mapping relations between parameter type and unlocking manner can be pre-set in terminal.User can also be right The mapping relations are modified.Terminal receives the mapping relations between the parameter type and unlocking manner of user's input, and carries out Storage.
For example, the mapping relations can be mapping relations as shown in table 2.
Table 2
When terminal judges that ambient parameter weights are in preset range, terminal can be according to the first parameter and the second parameter Parameter type and the mapping relations determine current unlocking manner.
For example, preset range is (0.5,2).When the ambient parameter weights that terminal is calculated are in the preset range When, terminal determines current unlocking manner according to the parameter type and the mapping relations of the first parameter and the second parameter.It is determined that working as After preceding unlocking manner, terminal can start corresponding unlocking manner, and to gather the authentication information of user, user identity is entered Row checking.
For example, when the first parameter and the second parameter are respectively environment temperature and fine particle concentration, terminal can be determined Current unlocking manner is unlocked by fingerprint.Then, terminal enters unlocked by fingerprint interface, as shown in Figure 5.Now, terminal passes through fingerprint Module gathers the finger print information of user, and the finger print information collected is identified.
When the first parameter and the second parameter are respectively ambient light intensity and terminal with the distance between user, terminal can be with It is determined that current unlocking manner unlocks for iris.Then, terminal enters iris unlock interface, as shown in Figure 6.Now, terminal passes through Iris camera gathers the iris information of user, and the iris information collected is identified.
When the first parameter and the second parameter are respectively the distance between ambient noise and terminal and user, terminal can be true Settled preceding unlocking manner unlocks for vocal print.Then, terminal enters vocal print unlock interface, as shown in Figure 7.Now, terminal passes through wheat The voiceprint of gram elegance collection user, and the voiceprint is identified.
When it is implemented, the present invention is not limited by the execution sequence of each described step, conflict is not being produced In the case of, some steps can also be carried out using other orders or carried out simultaneously.
From the foregoing, it will be observed that the method provided in an embodiment of the present invention for determining unlocking manner, obtains the first ginseng in ambient parameter Numerical value and the second parameter value;According to first parameter value and the second parameter value calculation ambient parameter weights;Judge the environment Whether parameter weights are in preset range;When the ambient parameter weights are in the preset range, according to first parameter and the The parameter type of two parameters determines current unlocking manner.In the program, when the ambient parameter weights calculated are in default model When enclosing, terminal determines the current unlocking manner of terminal according to the parameter type of the first parameter and the second parameter, so as to subtract Influence of the subenvironment parameter to unblock accuracy rate, can improve the unblock success rate of terminal, and then improve the convenience of terminal.
The embodiment of the present invention also provide it is a kind of determine unlocking manner device, the device can with it is integrated in the terminal, the end End can be the equipment such as smart mobile phone, tablet personal computer.
As shown in figure 8, determining the device 200 of unlocking manner can include:Acquisition module 201, computing module 202, judgement Module 203 and determining module 204.
Acquisition module 201, for obtaining the first parameter value and the second parameter value in ambient parameter.
Wherein, terminal has a variety of unlocking manners.For example, terminal can include unlocked by fingerprint, iris unblock, vocal print unblock Deng unlocking manner.
In unlocked by fingerprint mode, terminal gathers the finger print information of user.When the finger print information and preset fingerprint information are coincide When, terminal is unlocked.Wherein, preset fingerprint information can be the owner (i.e. the owner of the terminal) that terminal is gathered in advance Finger print information.
In iris unlocking manner, terminal gathers the iris information of user.When the iris information and default iris information are coincide When, terminal is unlocked.Wherein, default iris information can be the iris information for the owner that terminal is gathered in advance.
In vocal print unlocking manner, terminal gathers the voiceprint of user.When the voiceprint and default voiceprint coincide When, terminal is unlocked.Wherein, default voiceprint can be the voiceprint for the owner that terminal is gathered in advance.
When the unblock of user's triggering terminal is operated, such as during end point bright screen curtain, acquisition module 201 can obtain environment ginseng The first parameter value and the second parameter value in number.Wherein, first parameter and the second parameter can be influence terminal unlockings The parameter of accuracy.
In certain embodiments, ambient parameter can include environment temperature, fine particle concentration (PM2.5), environmental light intensity The parameter such as degree, ambient noise and the distance between terminal and user.Terminal can gather above-mentioned multiple ambient parameters in real time, obtain Modulus block 201 obtains two parameters successively from the multiple ambient parameters collected and handled.
For unlocked by fingerprint, when environment temperature is too high, user's hand may perspire, so as to influence the accurate of fingerprint recognition Property.When fine particle excessive concentration, user's finger can be infected with fine particle, so as to can also influence the accuracy of fingerprint recognition. Therefore, first parameter and the second parameter can be temperature and fine particle concentration.
For iris unblock, when ambient light intensity is not enough, for example at night, the camera in terminal gathers the rainbow of user Occur during film information and gather inaccurate situation.When the distance between terminal and user are too remote, camera collection user's Iris information, which also occurs, gathers inaccurate situation.Therefore, first parameter and the second parameter can be ambient light intensity and The distance between terminal and user.
For vocal print unblock, when ambient noise is too big, sound and the ambient noise of user are mixed, terminal collection There is a situation where that collection is inaccurate during the voiceprint of user.When the distance between terminal and user are too remote, what user sent It can weaken during sound incoming terminal, so as to also influence whether that terminal gathers the accuracy of user's voiceprint.Therefore, first ginseng Number and the second parameter can be the distance between ambient noise and terminal and user.
Computing module 202, for according to first parameter value and the second parameter value calculation ambient parameter weights.
Wherein, acquisition module 201 is got after the first parameter value and the second parameter value, and computing module 202 is based on advance The algorithm of setting is according to first parameter value and the second parameter value calculation ambient parameter weights.The ambient parameter weights can be One numerical value.The ambient parameter weights are used for the current unlocking manner for determining terminal.
Judge module 203, for judging whether the ambient parameter weights are in preset range.
Wherein, preset range can be the number range pre-set for ambient parameter weights.The default model Enclosing to be prestored in terminal.After computing module 202 calculates ambient parameter weights, judge module 203 is by the environment Whether parameter weights and the numerical end point of the preset range are compared, to judge the ambient parameter weights in the default model Enclose.
Determining module 204, for when the ambient parameter weights are in the preset range, according to first parameter and second The parameter type of parameter determines current unlocking manner.
When judge module 203 judges that the ambient parameter weights are in the preset range, determining module 204 according to this The parameter type of one parameter and the second parameter determines current unlocking manner.Determining module 204 determined after current unlocking manner, terminal The authentication information of user can be gathered according to current unlocking manner, to be verified to user identity.Wherein, parameter class Type can be the classes such as environment temperature, fine particle concentration, ambient light intensity, ambient noise and the distance between terminal and user Type.
When judge module 203 judges the ambient parameter weights not in the preset range, terminal can terminate this flow, Or restart to perform this flow.
In certain embodiments, as shown in figure 9, computing module 202 includes:First processing submodule 2021, second processing Submodule 2022, calculating sub module 2023.
First processing submodule 2021, for first parameter value to be normalized, to obtain the first normalization Parameter value;
Second processing submodule 2022, for second parameter value to be normalized, to obtain the second normalization Parameter value;
Calculating sub module 2023, for calculating ring according to the first normalized parameter value and the second normalized parameter value Border parameter weights.
Wherein, normalization is a kind of mode of simplified calculating, will there is the expression formula of dimension, by conversion, is turned to immeasurable The expression formula of guiding principle, as scalar.Acquisition module 201 is got after the first parameter value and the second parameter value, the first processing submodule Place can be normalized respectively in first parameter value and second parameter value by block 2021, second processing submodule 2022 Reason, to respectively obtain the first normalized parameter value and the second normalized parameter value.
Then, calculating sub module 2023 calculates ring according to the first normalized parameter value and the second normalized parameter value Border parameter weights.
In certain embodiments, first parameter value is normalized according to below equation for the first processing submodule 2021 Processing:
Wherein, W1For the first normalized parameter value, P is the first parameter value, P0For the first preset parameter value.First default ginseng Numerical value can pre-set a parameter value in the terminal.For different parameter types, the number of the first preset parameter value Value can be different.
For example, when the first parameter is environment temperature, first preset parameter value P0Can be 25 degrees Celsius (DEG C, below Abbreviation degree).For example, P=30 DEG C of the first parameter value, then can calculate W1=1.2.
In certain embodiments, second parameter value is normalized according to below equation for second processing submodule 2022 Processing:
Wherein, W2For the second normalized parameter value, Q is the second parameter value, Q0For the second preset parameter value.Second default ginseng Numerical value can pre-set a parameter value in the terminal.For different parameter types, the number of the second preset parameter value Value can be different.
For example, when the second parameter is fine particle concentration, second preset parameter value Q0Can be 50 every cube of micrograms Rice (μ g/m3).For example, the second parameter value Q=100 μ g/m3, then W can be calculated2=2.
In certain embodiments, calculating sub module 2023 is used to perform following steps:
Obtain corresponding first weighted value of the first normalized parameter value and the second normalized parameter value corresponding Two weighted values;
Calculated according to the first normalized parameter value, the first weighted value, the second normalized parameter value and the second weighted value Ambient parameter weights.
Wherein, the corresponding relation between parameter type and the weighted value of the parameter type can be prestored in terminal.The One processing submodule 2021, second processing submodule 2022 respectively obtain the first normalized parameter value and the second normalized parameter value Afterwards, calculating sub module 2023 can according to the first normalized parameter value, the parameter type of the second normalized parameter value and should Corresponding relation is corresponding to obtain corresponding first weighted value of the first normalized parameter value and the second normalized parameter value Second weighted value.
For example, above-mentioned corresponding relation can be corresponding relation as shown in table 3.
Table 3
Calculating sub module 2023 is got after the first weighted value and the second weighted value, you can according to first normalized parameter Value, the first weighted value, the second normalized parameter value and the second weighted value computing environment parameter weights.
Wherein, terminal can be with multiple information during multi collect terminal unlocking success.For example, being adopted during acquisition terminal unblock Unlocking manner, the real time environment parameter for influenceing the unlocking manner.And the multiple information collected are learnt, with continuous Weighted value corresponding to various types of ambient parameters is adjusted, to be calculated by the weighted value got Ambient parameter weights and actual environment situation more coincide, and then success rate when improving terminal unlocking.
In certain embodiments, calculating sub module 2023 according to below equation come computing environment parameter weights:
W=W1×R1+W2×R2
Wherein, W is ambient parameter weights, W1For the first normalized parameter value, R1For the first weighted value, W2For the second normalizing Change parameter value, R2For the second weighted value.
For example, the first parameter is environment temperature, the second parameter is fine particle concentration, then can get the first weighted value R1For 0.6, the second weighted value R2For 0.4.For example, the first normalized parameter value W1=1.2, the second normalized parameter value W2=2, W=1.2 × 0.6+2 × 0.4=1.52 can then be calculated.
In certain embodiments, as shown in Figure 10, determining the device 200 of unlocking manner also includes:Setup module 205.
Setup module 205, for the mapping relations between arrange parameter type and unlocking manner;
Determining module 204, for when the ambient parameter weights are in the preset range, being joined according to the first parameter and second Several parameter types and the mapping relations determine current unlocking manner.
Wherein, the mapping relations between parameter type and unlocking manner can be pre-set in terminal.User can also be right The mapping relations are modified.Setup module 205 receives the mapping relations between the parameter type and unlocking manner of user's input, And stored.
For example, the mapping relations can be mapping relations as shown in table 4.
Table 4
When judge module 203 judges that ambient parameter weights are in preset range, determining module 204 can be according to first The parameter type and the mapping relations of parameter and the second parameter determine current unlocking manner.
For example, preset range is (0.5,2).When the ambient parameter weights that computing module 202 is calculated are default in this In the range of when, determining module 204 determines current solution according to the first parameter and the parameter type of the second parameter and the mapping relations Lock mode.It is determined that after current unlocking manner, terminal can start corresponding unlocking manner, believed with the authentication for gathering user Breath, is verified to user identity.
For example, when the first parameter and the second parameter are respectively environment temperature and fine particle concentration, determining module 204 can To determine current unlocking manner as unlocked by fingerprint.Then, terminal enters unlocked by fingerprint interface.Now, terminal passes through fingerprint module The finger print information of user is gathered, and the finger print information collected is identified.
When the first parameter and the second parameter are respectively the distance between ambient light intensity and terminal and user, determining module 204 can determine that current unlocking manner unlocks for iris.Then, terminal enters iris unlock interface.Now, terminal passes through iris Camera gathers the iris information of user, and the iris information collected is identified.
When the first parameter and the second parameter are respectively the distance between ambient noise and terminal and user, determining module 204 can determine that current unlocking manner unlocks for vocal print.Then, terminal enters vocal print unlock interface.Now, terminal passes through Mike The voiceprint of elegance collection user, and the voiceprint is identified.
It when it is implemented, above modules can be realized as independent entity, can also be combined, be made Realized for same or several entities.
From the foregoing, it will be observed that the device 200 provided in an embodiment of the present invention for determining unlocking manner, is obtained by acquisition module 201 The first parameter value and the second parameter value in ambient parameter;Computing module 202 is according to first parameter value and the second parameter It is worth computing environment parameter weights;Judge module 203 judges whether the ambient parameter weights are in preset range;When the ambient parameter When weights are in the preset range, determining module 204 determines current solution according to the parameter type of first parameter and the second parameter Lock mode.In the program, when the ambient parameter weights calculated are in preset range, terminal is according to the first parameter and second The parameter type of parameter determines the current unlocking manner of terminal, so as to reduce ambient parameter to unlocking the shadow of accuracy rate Ring, the unblock success rate of terminal can be improved, and then improve the convenience of terminal.
The embodiment of the present invention also provides a kind of terminal.The terminal can be the equipment such as smart mobile phone, tablet personal computer.Such as Figure 11 Shown, terminal 300 includes processor 301 and memory 302.Wherein, processor 301 is electrically connected with memory 302.
Processor 301 is the control centre of terminal 300, utilizes various interfaces and each portion of the whole terminal of connection Point, the application program in memory 302 by operation or load store, and call the data being stored in memory 302, The various functions and processing data of terminal are performed, so as to carry out integral monitoring to terminal.
In the present embodiment, the processor 301 in terminal 300 can be according to the steps, will be one or more The corresponding instruction of the process of application program is loaded into memory 302, and is run by processor 301 and be stored in memory 302 In application program, so as to realize various functions:
Obtain the first parameter value and the second parameter value in ambient parameter;
According to first parameter value and the second parameter value calculation ambient parameter weights;
Judge whether the ambient parameter weights are in preset range;
If the ambient parameter weights are in the preset range, according to the parameter type of the first parameter and the second parameter It is determined that current unlocking manner.
When in certain embodiments, according to first parameter value and the second parameter value calculation ambient parameter weights, place Manage device 301 and perform following steps:
First parameter value is normalized, to obtain the first normalized parameter value;
Second parameter value is normalized, to obtain the second normalized parameter value;
According to the first normalized parameter value and the second normalized parameter value computing environment parameter weights.
In certain embodiments, processor 301 calculates the first normalized parameter value according to below equation:
Wherein, W1For the first normalized parameter value, P is the first parameter value, P0For the first preset parameter value.
In certain embodiments, ring is calculated according to the first normalized parameter value and the second normalized parameter value During the parameter weights of border, processor 301 performs following steps:
Obtain corresponding first weighted value of the first normalized parameter value and the second normalized parameter value correspondence The second weighted value;
According to the first normalized parameter value, the first weighted value, the second normalized parameter value and the second weighted value meter Calculate ambient parameter weights.
In certain embodiments, processor 301 is according to below equation computing environment parameter weights:
W=W1×R1+W2×R2
Wherein, W is ambient parameter weights, W1For the first normalized parameter value, R1For the first weighted value, W2For the second normalizing Change parameter value, R2For the second weighted value.
In certain embodiments, before the first parameter value and the second parameter value in acquisition ambient parameter, processor 301 Also perform following steps:
Mapping relations between arrange parameter type and unlocking manner;
If the ambient parameter weights are in the preset range, according to the parameter type of the first parameter and the second parameter It is determined that during current unlocking manner, processor 301 performs following steps:
If the ambient parameter weights are in the preset range, according to the parameter type of the first parameter and the second parameter And the mapping relations determine current unlocking manner.
Memory 302 can be used for storage application program and data.Including in the application program that memory 302 is stored can be The instruction performed in processor.Application program can constitute various functions module.Processor 301 is stored in memory by operation 302 application program, so as to perform various function application and data processing.
In certain embodiments, as shown in figure 12, terminal 300 also includes:Fingerprint module 303, display screen 304, microphone 305th, input block 306, camera 307, sensor 308 and power supply 309.Wherein, processor 301 respectively with fingerprint module 303rd, display screen 304, microphone 305, input block 306, camera 307, sensor 308 and power supply 309 are electrically connected with.
Fingerprint module 303 is used for the finger print information for gathering user, so that user identity to be identified.
Display screen 304 can be used for showing the information inputted by user or be supplied to the information of user and the various figures of terminal Shape user interface, these graphical user interface can be made up of image, text, icon, video and its any combination.
Microphone 305 is used for collected sound signal.In certain embodiments, microphone 305 can be used for the sound of collection user Line information.
Input block 306 can be used for numeral, character information or the user's characteristic information (such as fingerprint) for receiving input, and Keyboard, mouse, action bars, optics or the trace ball signal relevant with user's setting and function control is produced to input.Wherein, Input block 306 can include fingerprint recognition module.
Camera 307 is used to gather external image signal.In certain embodiments, camera 307 is iris camera, can Iris information for gathering user.
Sensor 308 is used to gather external environmental information.In certain embodiments, sensor 308 can be bright including environment Spend the multiple sensors such as sensor, temperature sensor, fine particle concentration sensor, range sensor.
Power supply 309 is used to power to all parts of terminal 300.In certain embodiments, power supply 309 can pass through power supply Management system and processor 301 are logically contiguous, so as to realize management charging, electric discharge and power consumption pipe by power-supply management system The functions such as reason.
Although not shown in Figure 12, terminal 300 can also include radio-frequency module, bluetooth module etc., will not be repeated here.
From the foregoing, it will be observed that the embodiments of the invention provide a kind of terminal, the terminal obtains the first parameter value in ambient parameter And second parameter value;According to first parameter value and the second parameter value calculation ambient parameter weights;Judge the ambient parameter Whether weights are in preset range;When the ambient parameter weights are in the preset range, joined according to first parameter and second Several parameter types determines current unlocking manner.In the program, when the ambient parameter weights calculated are in preset range, Terminal determines the current unlocking manner of terminal according to the parameter type of the first parameter and the second parameter, so as to reduce environment Influence of the parameter to unblock accuracy rate, can improve the unblock success rate of terminal, and then improve the convenience of terminal.
The embodiment of the present invention also provides a kind of storage medium, and be stored with a plurality of instruction in the storage medium, and the instruction is suitable to The method to perform the determination unlocking manner described in any of the above-described embodiment is loaded as processor.
It should be noted that one of ordinary skill in the art will appreciate that whole in the various methods of above-described embodiment or Part steps can be by program to instruct the hardware of correlation to complete, and the program can be stored in computer-readable storage medium In matter, the storage medium can include but is not limited to:Read-only storage (ROM, Read Only Memory), random access memory Device (RAM, Random Access Memory), disk or CD etc..
Method, device, storage medium and the terminal of the determination unlocking manner provided above the embodiment of the present invention are carried out It is discussed in detail, specific case used herein is set forth to the principle and embodiment of the present invention, above example Explanation be only intended to help to understand the method and its core concept of the present invention;Simultaneously for those skilled in the art, foundation The thought of the present invention, will change, in summary, this specification content is not in specific embodiments and applications It is interpreted as limitation of the present invention.

Claims (10)

1. a kind of method for determining unlocking manner, it is characterised in that including:
Obtain the first parameter value and the second parameter value in ambient parameter;
According to first parameter value and the second parameter value calculation ambient parameter weights;
Judge whether the ambient parameter weights are in preset range;
If the ambient parameter weights are in the preset range, determined according to the parameter type of the first parameter and the second parameter Current unlocking manner.
2. the method for unlocking manner is determined according to claim 1, it is characterised in that according to first parameter value and the Two parameter value calculation ambient parameter weights, including:
First parameter value is normalized, to obtain the first normalized parameter value;
Second parameter value is normalized, to obtain the second normalized parameter value;
According to the first normalized parameter value and the second normalized parameter value computing environment parameter weights.
3. the method for unlocking manner is determined according to claim 2, it is characterised in that joined according to below equation to described first Numerical value is normalized, to obtain the first normalized parameter value:
<mrow> <msub> <mi>W</mi> <mn>1</mn> </msub> <mo>=</mo> <mfrac> <mi>P</mi> <msub> <mi>P</mi> <mn>0</mn> </msub> </mfrac> </mrow>
Wherein, W1For the first normalized parameter value, P is the first parameter value, P0For the first preset parameter value.
4. the method for unlocking manner is determined according to claim 2, it is characterised in that according to the first normalized parameter value And the second normalized parameter value computing environment parameter weights, including:
Obtain corresponding first weighted value of the first normalized parameter value and the second normalized parameter value corresponding Two weighted values;
Ring is calculated according to the first normalized parameter value, the first weighted value, the second normalized parameter value and the second weighted value Border parameter weights.
5. the method for unlocking manner is determined according to claim 4, it is characterised in that according to below equation computing environment parameter Weights:
W=W1×R1+W2×R2
Wherein, W is ambient parameter weights, W1For the first normalized parameter value, R1For the first weighted value, W2For the second normalization ginseng Numerical value, R2For the second weighted value.
6. according to any one of claim 1 to 5 method for determining unlocking manner, it is characterised in that obtain in ambient parameter The first parameter value and the second parameter value the step of before, methods described also includes:
Mapping relations between arrange parameter type and unlocking manner;
If the ambient parameter weights are in the preset range, determined according to the parameter type of the first parameter and the second parameter Current unlocking manner, including:
If the ambient parameter weights are in the preset range, according to the parameter type of the first parameter and the second parameter and The mapping relations determine current unlocking manner.
7. a kind of device for determining unlocking manner, it is characterised in that including:
Acquisition module, for obtaining the first parameter value and the second parameter value in ambient parameter;
Computing module, for according to first parameter value and the second parameter value calculation ambient parameter weights;
Judge module, for judging whether the ambient parameter weights are in preset range;
Determining module, for when the ambient parameter weights are in the preset range, according to the first parameter and the second parameter Parameter type determine current unlocking manner.
8. the device of unlocking manner is determined according to claim 7, it is characterised in that the computing module includes:
First processing submodule, for first parameter value to be normalized, to obtain the first normalized parameter value;
Second processing submodule, for second parameter value to be normalized, to obtain the second normalized parameter value;
Calculating sub module, for according to the first normalized parameter value and the second normalized parameter value computing environment ginseng Number weights.
9. a kind of storage medium, it is characterised in that be stored with a plurality of instruction in the storage medium, the instruction is suitable to by handling The method that device loading requires the determination unlocking manner described in 1 to 6 any one with perform claim.
10. be stored with a plurality of instruction in a kind of terminal, it is characterised in that including processor and memory, the memory, described The method that the processor loading instruction requires the determination unlocking manner described in 1 to 6 any one with perform claim.
CN201710526402.9A 2017-06-30 2017-06-30 Method and device for determining unlocking mode, storage medium and terminal Expired - Fee Related CN107203712B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710526402.9A CN107203712B (en) 2017-06-30 2017-06-30 Method and device for determining unlocking mode, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710526402.9A CN107203712B (en) 2017-06-30 2017-06-30 Method and device for determining unlocking mode, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN107203712A true CN107203712A (en) 2017-09-26
CN107203712B CN107203712B (en) 2020-04-10

Family

ID=59911850

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710526402.9A Expired - Fee Related CN107203712B (en) 2017-06-30 2017-06-30 Method and device for determining unlocking mode, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN107203712B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108427873A (en) * 2018-02-12 2018-08-21 维沃移动通信有限公司 A kind of biological feather recognition method and mobile terminal
CN108573138A (en) * 2018-03-30 2018-09-25 广东欧珀移动通信有限公司 Electronic device, solution lock control method and Related product
CN108769386A (en) * 2018-05-03 2018-11-06 河海大学常州校区 A kind of adaptive unlocking manner selection method
CN110334496A (en) * 2019-06-27 2019-10-15 Oppo广东移动通信有限公司 A kind of solution lock control method, terminal and computer readable storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102830932A (en) * 2012-08-17 2012-12-19 东莞宇龙通信科技有限公司 Terminal and method for automatically switching unlocking patterns of terminal
CN103514416A (en) * 2013-10-15 2014-01-15 广东欧珀移动通信有限公司 Dynamic unlocking method and unlocking system for mobile terminal
CN104217147A (en) * 2014-09-24 2014-12-17 中国联合网络通信集团有限公司 Method for switching unlocking modes of intelligent terminal and intelligent terminal
CN104270503A (en) * 2014-09-12 2015-01-07 上海闻泰电子科技有限公司 Mobile phone unlocking method based on geographical location information
WO2015009111A1 (en) * 2013-07-18 2015-01-22 삼성전자 주식회사 Biometrics-based authentication method and apparatus
CN104503567A (en) * 2014-11-28 2015-04-08 惠州Tcl移动通信有限公司 Method for switching unlocking solution and intelligent terminal
CN105590045A (en) * 2015-09-14 2016-05-18 ***股份有限公司 Environmental self-adaptation identity authentication method and terminal
CN106096383A (en) * 2016-06-12 2016-11-09 捷开通讯(深圳)有限公司 Automatically mobile terminal and the method thereof of unlocking pin are changed
CN106375533A (en) * 2016-11-29 2017-02-01 惠州Tcl移动通信有限公司 Unlocking method and system of mobile terminal
CN106791167A (en) * 2017-01-13 2017-05-31 深圳市三体科技有限公司 A kind of latching mode switching system and method based on weather conditions
CN106897079A (en) * 2015-12-18 2017-06-27 北京奇虎科技有限公司 Unlocking method and mobile terminal

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102830932A (en) * 2012-08-17 2012-12-19 东莞宇龙通信科技有限公司 Terminal and method for automatically switching unlocking patterns of terminal
WO2015009111A1 (en) * 2013-07-18 2015-01-22 삼성전자 주식회사 Biometrics-based authentication method and apparatus
CN103514416A (en) * 2013-10-15 2014-01-15 广东欧珀移动通信有限公司 Dynamic unlocking method and unlocking system for mobile terminal
CN104270503A (en) * 2014-09-12 2015-01-07 上海闻泰电子科技有限公司 Mobile phone unlocking method based on geographical location information
CN104217147A (en) * 2014-09-24 2014-12-17 中国联合网络通信集团有限公司 Method for switching unlocking modes of intelligent terminal and intelligent terminal
CN104503567A (en) * 2014-11-28 2015-04-08 惠州Tcl移动通信有限公司 Method for switching unlocking solution and intelligent terminal
CN105590045A (en) * 2015-09-14 2016-05-18 ***股份有限公司 Environmental self-adaptation identity authentication method and terminal
CN106897079A (en) * 2015-12-18 2017-06-27 北京奇虎科技有限公司 Unlocking method and mobile terminal
CN106096383A (en) * 2016-06-12 2016-11-09 捷开通讯(深圳)有限公司 Automatically mobile terminal and the method thereof of unlocking pin are changed
CN106375533A (en) * 2016-11-29 2017-02-01 惠州Tcl移动通信有限公司 Unlocking method and system of mobile terminal
CN106791167A (en) * 2017-01-13 2017-05-31 深圳市三体科技有限公司 A kind of latching mode switching system and method based on weather conditions

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108427873A (en) * 2018-02-12 2018-08-21 维沃移动通信有限公司 A kind of biological feather recognition method and mobile terminal
CN108573138A (en) * 2018-03-30 2018-09-25 广东欧珀移动通信有限公司 Electronic device, solution lock control method and Related product
CN108573138B (en) * 2018-03-30 2020-04-21 Oppo广东移动通信有限公司 Electronic device, unlocking control method and related product
CN108769386A (en) * 2018-05-03 2018-11-06 河海大学常州校区 A kind of adaptive unlocking manner selection method
CN110334496A (en) * 2019-06-27 2019-10-15 Oppo广东移动通信有限公司 A kind of solution lock control method, terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN107203712B (en) 2020-04-10

Similar Documents

Publication Publication Date Title
CN107203712A (en) Determine method, device, storage medium and the terminal of unlocking manner
CN109063920B (en) Transaction risk identification method and device and computer equipment
WO2018228428A1 (en) Data type identification, model training, and risk identification method and apparatus, and device
CN104077516B (en) A kind of biological authentication method and terminal
KR101812911B1 (en) Orientation aware authentication on mobile platforms
CN110569909B (en) Block chain-based fault early warning method, device, equipment and storage medium
CN107077551A (en) The scalable verification process selection inputted based on sensor
CN105590045A (en) Environmental self-adaptation identity authentication method and terminal
CN107832670A (en) Face identification method and Related product
CN107851154A (en) Storage hierarchy monitoring system and method
CN106446786A (en) Fingerprint identifying method, fingerprint identifying apparatus and terminal device
CN107580114A (en) Biometric discrimination method, mobile terminal and computer-readable recording medium
KR102108695B1 (en) Method and device for identity authentication
CN107657161A (en) Method of mobile payment and Related product based on recognition of face
CN106056386A (en) Payment method, payment terminal, server and payment system
CN107179831A (en) Start method, device, storage medium and the terminal of application
CN110059794A (en) Man-machine recognition methods and device, electronic equipment, storage medium
US20230027527A1 (en) Identity authentication method, and method and apparatus for training identity authentication model
Basar et al. Resource usage analysis of a mobile banking application using sensor-and-touchscreen-based continuous authentication
CN110348471A (en) Exception object recognition methods, device, medium and electronic equipment
Sturgess et al. Watchauth: User authentication and intent recognition in mobile payments using a smartwatch
CN106951751A (en) A kind of sensor-based smart mobile phone unlocking recognition methods
CN114626036B (en) Information processing method and device based on face recognition, storage medium and terminal
CN108388790A (en) A kind of unlocking request response method, mobile terminal
CN107294981A (en) A kind of method and apparatus of certification

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
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200410