A kind of unlocking method, device and electronic equipment
Technical field
The invention belongs to intelligent screen lock, solution screen technical field more particularly to a kind of unlocking method, device and electronic equipments.
Background technology
At present, the electronic equipments majority such as smart mobile phone, tablet computer provides the solution screen function based on fixed solution mode locking plate, with
For nine grids mode in pattern unlocking manner, electronic equipment is embodied as user based on a fixed nine grids layout templates and carries
The unlocking pattern for the set-up function of the unlocking pattern, and on this basis inputs unlocking function.
Such unlocking manner is due to using fixed unlock template, and easily leading to solution lock feature, there are higher in user group
Known property, in nine grids mode, the unlock behavior of user or the unlock track of input are only capable of being limited in a manner of nine grids
In each unlock focus to be selected of layout, to when user is unlocked based on the fixed form, easily pass through solution by other people
Lock behavior stealing passwords, especially can further increase the risk that password is stolen when long-time uses, and safety is poor.
Invention content
In view of this, the purpose of the present invention is to provide a kind of unlocking method, device and electronic equipments, it is intended to solve existing
The unlock scheme of technology causes to unlock this poor problem of safety due to using fixed unlock template.
For this purpose, the present invention is disclosed directly below technical solution:
A kind of unlocking method is applied to electronic equipment, the method includes:
Obtain user's operation behavior performed in each unlock focus to be selected in unlocking template, wherein the unlock
Each unlock focus to be selected in template is:Default feature based on unlock picture is laid out on the unlock picture each in advance
Focus is unlocked, the unlock picture is the pre-set picture of user;
Verify the legitimacy of the operation behavior;
If being verified, the electronic equipment unlock is controlled.
The above method, it is preferred that it is described default characterized by color characteristic, then it is described to be in advance based on the default spy for unlocking picture
Sign is laid out each unlock focus on the unlock picture, including:
The color for analyzing the unlock picture obtains each colour type that the unlock picture includes;
Region division is carried out to the unlock picture based on each colour type, obtains multiple and different color areas
Domain;
It is laid out a unlock focus to be selected in each color region, obtains forming each needed for the unlock template
A unlock focus to be selected.
The above method, it is preferred that it is described default characterized by color characteristic, then it is described to be in advance based on the default spy for unlocking picture
Sign is laid out each unlock focus on the unlock picture, including:
Determine the color of object to that need to be used when the unlock picture progress focus layout;
The depth degree for analyzing the color of object obtains multiple and different color of object depth ranks;
Based on each color of object depth rank, to the overlay area of color of object described in the unlock picture into
Row region division obtains multiple and different depth rank regions;
It is laid out a unlock focus to be selected in each depth rank region, obtains forming needed for the unlock template
Each unlock focus to be selected.
The above method, it is preferred that the legitimacy of the verification operation behavior includes:
Obtain user behavior reference templates;The user behavior reference templates are:User is based in the unlock template
The user behavior that each unlock focus to be selected pre-sets and stores;
The operation behavior is compared with the user behavior reference templates, if the two is identical, is verified.
The above method, it is preferred that the operation behavior or the user behavior reference templates are:
It hits simultaneously and unlocks focus by each target;Or,
It is hit successively according to preset order and unlocks focus by each target;Or,
It is sequentially connected each target according to preset order and unlocks focus;Or,
According to preset order corresponding slide is executed in each target unlock focus successively;
Wherein, each target unlock focus is that user is used for unlock from what each unlock focus to be selected was chosen
Focus combines.
A kind of tripper, is applied to electronic equipment, and described device includes:
Acquisition module, the operation behavior performed in each unlock focus to be selected in unlocking template for obtaining user,
Wherein, each unlock focus to be selected in the unlock template is:Default feature based on the unlock picture is in advance in the solution
The each unlock focus being laid out on lock picture, the unlock picture are the pre-set picture of user;
Authentication module, the legitimacy for verifying the operation behavior;
Control module is unlocked, for when being verified, controlling the electronic equipment unlock.
Above-mentioned apparatus, it is preferred that described default characterized by color characteristic, then the acquisition module includes the first pretreatment mould
Block, first preprocessing module include:
First analytic unit, the color for analyzing the unlock picture obtain each face that the unlock picture includes
Color classification;
First area division unit, for carrying out region division to the unlock picture based on each colour type,
Obtain multiple and different color regions;
First focus layout units obtain group for being laid out a unlock focus to be selected in each color region
At each unlock focus to be selected needed for the unlock template.
Above-mentioned apparatus, it is preferred that described default characterized by color characteristic, then the acquisition module includes the second pretreatment mould
Block, second preprocessing module include:
Determination unit, the color of object that need to be used when carrying out focus layout to the unlock picture for determining;
It is deep to obtain multiple and different color of objects for second analytic unit, the depth degree for analyzing the color of object
Shallow rank;
Second area division unit, for being based on each color of object depth rank, to institute in the unlock picture
The overlay area for stating color of object carries out region division, obtains multiple and different depth rank regions;
Second focus layout units are obtained for being laid out a unlock focus to be selected in each depth rank region
To each unlock focus to be selected formed needed for the unlock template.
Above-mentioned apparatus, it is preferred that the authentication module includes:
Acquiring unit, for obtaining user behavior reference templates;The user behavior reference templates are:User is based on described
The user behavior that each unlock focus to be selected in unlock template pre-sets and stores;
Comparing unit, for the operation behavior to be compared with the user behavior reference templates, if the two phase
Together, then it is verified.
A kind of electronic equipment, including tripper as described above.
As it can be seen from the above scheme unlocking method disclosed in the present application, device and electronic equipment, are used when being unlocked
Unlock template be a revocable template, electronic equipment based on user setting unlock picture dynamic generation unlock needed for
Unlock template.During using electronic equipment, user can voluntarily be arranged according to its use habit or hobby, replace unlock figure
Piece, on this basis electronic equipment according to unlock picture picture feature be unlocked focus layout, unlock template generation,
The unlock template with different spatial layout features is provided so as to be embodied as different users, solution lock feature is not easy to be grasped by other people,
User, to control the usage time for unlocking template, same mould can be avoided with this by being voluntarily arranged, replacing unlock picture simultaneously
Plate security risk caused by usage time is long, to further improve the unlock safety of electronic equipment.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is the unlocking method flow chart that the embodiment of the present invention one provides;
Fig. 2 is the exemplary plot that focus layout is carried out based on different colours that the embodiment of the present invention one provides;
Fig. 3 is the example that the different depth degrees based on same color that the embodiment of the present invention one provides carry out focus layout
Figure;
Fig. 4 is the structural schematic diagram of tripper provided by Embodiment 2 of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Embodiment one
The embodiment of the present invention one discloses a kind of unlocking method, and the unlocking method can be applied to smart mobile phone, tablet computer
Equal electronic equipments, with reference to figure 1, the method may include following steps:
S101:Obtain user's user behavior performed in each unlock focus to be selected in unlocking template, wherein described
Unlock template in each unlock focus to be selected be:The default feature cloth on the unlock picture in advance based on the unlock picture
Each unlock focus of office, the unlock picture are the pre-set picture of user.
S102:Verify the legitimacy of the user behavior.
S103:If being verified, the electronic equipment unlock is controlled.
Unlock scheme to solve the prior art cause due to using fixed unlock template unlock safety it is poor this
Problem, the application provide a kind of unlock scheme unlocking template using on-fixed.Wherein, unlock of the application based on user setting
Unlock template needed for the unlock of picture dynamic generation electronic equipment screen.User can voluntarily set according to its use habit or hobby
It sets, replace unlock picture, be often arranged or replace primary unlock picture, unlock of the electronic equipment based on the newest setting of user or replacement
Picture executes the generating process of primary unlock template.
Specifically, the present embodiment by default picture feature, such as color characteristic etc. according to the unlock picture in institute
It states and is laid out each unlock focus on unlock picture, realize the generation of unlock template.Next right by taking the color characteristic of picture as an example
The process for generating unlock template illustrates.
Wherein, electronic equipment specifically can be based on different colour types, the layout unlock focus in unlocking picture, at this
In invention other embodiment, the different depth degrees of same color are also based on, the layout unlock focus in unlocking picture.
If based on different colour type layout unlock focuses, need to analyze which kind the unlock picture includes first
Color corresponds to the colour type for including to obtain unlock picture, and with reference to the unlock picture example that figure 2 provides, which includes
There are the multiple colors such as red, blue, green, orange, yellow (Fig. 2 is specifically based on different gray scales and embodies different colours), on this basis, foundation
The colour type obtained is analyzed, region division is carried out to picture, each region corresponds to a kind of colour type, later, dividing
To each color region in be laid out a unlock focus to be selected, the layout scenarios of unlock focus specifically may be used in each color region
With reference to figure 2, wherein Fig. 2 has been laid out unlock focus 1, unlock focus 2, solution in red, blue, green, orange, yellow five kinds of color regions successively
Focus 3, unlock focus 4 and unlock focus 5 are locked, to obtain 5 unlock focuses being laid out based on regions of different colours.
In other embodiments of the present invention, it if the different depth degrees layout based on same color unlocks focus, needs
It is primarily based on certain Selection Strategy, determines that carrying out focus to the unlock picture is laid out the color of object that need to be used, such as have
Body can select the maximum color of overlay area area as progress focus based on the area coverage of each color in unlock picture
Color of object used by layout, the unlock picture example with reference to shown in figure 3, the overlay area based on each color in the picture are big
It is small, it may be determined that go out to use blue to carry out focus layout (blue region is in the region in Fig. 3 except sailing boat and hydrogen balloon).
After determining color of object, can by it is described unlock picture in color of object overlay area depth degree into
Row analysis, obtains multiple and different color of object depth ranks, as Fig. 3 picture example in, the blue overlay area after analysis
Include 4 depth ranks altogether:It is blue, light blue, dark blue, special that dark blue (Fig. 3 is specifically based on different gray scales and embodies different depth journeys
Degree).On this basis, continue the color of object depth rank obtained based on analysis, to the overlay area carry out area of color of object
Domain divides (each region corresponds to a kind of depth rank), and the unlock to be selected of layout one is burnt in dividing obtained each region
Point, the layout scenarios of unlock focus specifically refer to Fig. 3 in each depth rank region, wherein Fig. 3 successively it is blue, light blue, dark blue,
Unlock focus 1.1, unlock focus 1.2, unlock focus 1.3 and unlock focus have been laid out in special dark blue four kinds of depth ranks region
1.4, to obtain 4 unlock focuses of the different depth degrees layout based on same color.
In releasing process later, layout is had the unlock picture of multiple unlock focuses as unlock masterplate by electronic equipment
It is presented to the user.
After being arranged or replacing unlock picture, the unlock template that need to continue to be generated based on electronic equipment (is based on to institute user
The signature analysis for stating unlock picture progress or more generates), unlocking manner is set.Specifically, user can be by being in electronic equipment
Primary unlock behavior is previewed in existing unlock template, realizes the unlocking manner submitted to electronic equipment needed for unlock.
Electronic equipment senses user and is carried out in user's operation behavior during preview that unlocks, and as reference templates
Storage, such as user hit unlock focus by each target simultaneously, are unlocked by each target or, being hit successively according to preset order
Focus, or, being sequentially connected each target according to preset order unlocks focus, or, according to preset order successively in each institute
It states and executes the corresponding slide (cunning when executing slide in each focus with reference to shown in figure 3 in target unlock focus
Dynamic direction), or pin execution finger after each target unlocks focus at the same time and gather operation until the touch point convergence of each finger is
A little etc., in subsequent releasing process, electronic equipment is realized using the user behavior reference templates of storage as foundation is compared
Legitimate verification is carried out to the unlock operation of user.Wherein, each target unlock focus is user from each described
The focus combination for unlock that unlock focus to be selected is chosen.
If user is in unlock template to each operation unlocked performed by focus and pre-stored user behavior benchmark
Template is identical, then is verified, and user unlocks successfully;Otherwise, if the two differs, failure is unlocked, user cannot enter
Electronic equipment.
As it can be seen from the above scheme unlocking method disclosed in the present application used unlock template when being unlocked is one
Revocable template, the required unlock template of unlock picture dynamic generation unlock of the electronic equipment based on user setting.It is using
During electronic equipment, user can voluntarily be arranged according to its use habit or hobby, replace unlock picture, electric on this basis
Sub- equipment is unlocked the layout of focus according to the picture feature of unlock picture, unlocks the generation of template, so as to be embodied as not
Same user provides the unlock template with different spatial layout features, and solution lock feature is not easy to be grasped by other people, while user can pass through
Voluntarily it is arranged, replaces unlock picture, to control the usage time of unlock template, avoids the same template because of usage time mistake with this
Security risk caused by length, to further improve the unlock safety of electronic equipment.
Embodiment two
The embodiment of the present invention two discloses a kind of tripper, and the tripper can be applied to smart mobile phone, tablet computer
Equal electronic equipments, with reference to figure 4, described device may include acquisition module 100, the reconciliation lock control of authentication module 200 module 300.
Acquisition module 100, the operation row performed in each unlock focus to be selected in unlocking template for obtaining user
For, wherein it is described unlock template in each unlock focus to be selected be:Default feature based on the unlock picture is in advance described
The each unlock focus being laid out on unlock picture, the unlock picture are the pre-set picture of user.
Wherein, described preset is characterized as color characteristic, then the acquisition module 100 may include the first preprocessing module,
The module includes the first analytic unit, first area division unit and the first focus layout units.
First analytic unit, for analyze it is described unlock picture color, obtain it is described unlock picture include it is each
A colour type;
First area division unit, for carrying out region division to the unlock picture based on each colour type,
Obtain multiple and different color regions;
First focus layout units obtain group for being laid out a unlock focus to be selected in each color region
At each unlock focus to be selected needed for the unlock template.
In other embodiments of the present invention, the acquisition module 100 may include the second preprocessing module, which includes
Determination unit, the second analytic unit, second area division unit and the second focus layout units.
Determination unit, the color of object that need to be used when carrying out focus layout to the unlock picture for determining;
It is deep to obtain multiple and different color of objects for second analytic unit, the depth degree for analyzing the color of object
Shallow rank;
Second area division unit, for being based on each color of object depth rank, to institute in the unlock picture
The overlay area for stating color of object carries out region division, obtains multiple and different depth rank regions;
Second focus layout units are obtained for being laid out a unlock focus to be selected in each depth rank region
To each unlock focus to be selected formed needed for the unlock template.
Authentication module 200, the legitimacy for verifying the operation behavior.
The authentication module 200 includes acquiring unit and comparing unit.
Acquiring unit, for obtaining user behavior reference templates;The user behavior reference templates are:User is based on described
The user behavior that each unlock focus to be selected in unlock template pre-sets and stores;
Comparing unit, for the operation behavior to be compared with the user behavior reference templates, if the two phase
Together, then it is verified.
Control module 300 is unlocked, for when being verified, controlling the electronic equipment unlock.
For tripper disclosed in the embodiment of the present invention two, due to itself and unlocking method phase disclosed in embodiment one
Corresponding, so description is fairly simple, related similarity refers to the explanation of unlocking method part in embodiment one, this
Place is no longer described in detail.
Embodiment three
Three open a kind of electronic equipment of the embodiment of the present invention, the electronic equipment can be specifically smart mobile phones.Tablet electricity
The equipment such as brain, the electronic equipment include the tripper provided such as embodiment two.
The unlock needed for unlock picture dynamic generation unlock that the tripper voluntarily can be arranged or be replaced based on user
Template provides the personalized unlock template with different spatial layout features to which the electronic equipment can be realized for different users,
Solution lock feature is not easy to be grasped by other people, while user can be by being voluntarily arranged, replacing unlock picture, to control making for unlock template
With the time, same template security risk caused by usage time is long is avoided with this, to further improving electronics
The unlock safety of equipment.
In conclusion the application has the advantage that:
1) it realizes and focus layout is carried out based on picture feature, user can be by being arranged, replacing unlock picture, to control solution
The focus spatial layout feature of mode locking plate and the duration that uses for unlocking template, solution lock feature are not easy to be grasped by other people, greatly improve electricity
The unlock safety of sub- equipment;
2) user can be previewed by carrying out personalized unlocking manner in the unlock template that electronic equipment generates, and be realized a
Property unlocking manner setting promoted to stick to be unlocked using a certain specific unlocking manner using the application
Interest, playability when electronic equipment unlock.
It should be noted that each embodiment in this specification is described in a progressive manner, each embodiment weight
Point explanation is all difference from other examples, and the same or similar parts between the embodiments can be referred to each other.
For convenience of description, it describes to be divided into various modules when system above or device with function or unit describes respectively.
Certainly, the function of each unit is realized can in the same or multiple software and or hardware when implementing the application.
As seen through the above description of the embodiments, those skilled in the art can be understood that the application can
It is realized by the mode of software plus required general hardware platform.Based on this understanding, the technical solution essence of the application
On in other words the part that contributes to existing technology can be expressed in the form of software products, the computer software product
It can be stored in a storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions are used so that a computer equipment
(can be personal computer, server either network equipment etc.) executes the certain of each embodiment of the application or embodiment
Method described in part.
Finally, it is to be noted that, herein, such as first, second, third and fourth or the like relational terms
It is only used to distinguish one entity or operation from another entity or operation, without necessarily requiring or implying these
There are any actual relationship or orders between entity or operation.Moreover, the terms "include", "comprise" or its is any
Other variants are intended to non-exclusive inclusion, so that including the process, method, article or equipment of a series of elements
Include not only those elements, but also include other elements that are not explicitly listed, or further includes for this process, side
Method, article or the intrinsic element of equipment.In the absence of more restrictions, limited by sentence "including a ..."
Element, it is not excluded that there is also other identical elements in the process, method, article or apparatus that includes the element.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.