CN108830069A - Screen locking and unlocking method and device, electronic equipment and storage medium - Google Patents
Screen locking and unlocking method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN108830069A CN108830069A CN201810660621.0A CN201810660621A CN108830069A CN 108830069 A CN108830069 A CN 108830069A CN 201810660621 A CN201810660621 A CN 201810660621A CN 108830069 A CN108830069 A CN 108830069A
- Authority
- CN
- China
- Prior art keywords
- resolution ratio
- size
- camera head
- remaining area
- preview window
- 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
Links
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
- G06F21/32—User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/10—Image acquisition
- G06V10/12—Details of acquisition arrangements; Constructional details thereof
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/62—Control of parameters via user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Multimedia (AREA)
- Human Computer Interaction (AREA)
- Computer Security & Cryptography (AREA)
- General Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Oral & Maxillofacial Surgery (AREA)
- Studio Devices (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention provides a screen locking and unlocking method, a screen locking and unlocking device, electronic equipment and a storage medium. In the invention, the size of the preview window is determined according to the residual area, and the resolution of the camera is also determined according to the residual area, so that the preview window is matched with the resolution of the camera, images displayed in the preview window are easy to identify, and the unlocking success rate is improved.
Description
Technical field
The present invention relates to screen locking technical fields, more particularly to a kind of screen locking unlocking method, device, electronic equipment and storage
Medium.
Background technique
Currently, face recognition unlock is widely used, when user is unlocked by face recognition, in screen locking circle of electronic equipment
The preview window is shown on face, user can see the coverage of camera by the preview window.
In the related technology, the size of the preview window is random, and camera shown in the preview window is collected
Image resolution ratio be also it is random, this causes, and there may be following two situations:The first situation:The preview window is larger, preview
Shown image resolution ratio is lower in window, this leads to not accurately carry out face recognition, further results in unlock failure;
Second situation:The preview window is smaller, and shown image resolution ratio is higher in the preview window, since the preview window is smaller, leads
It causes shown image smaller, even if image resolution ratio is higher, can not also carry out face recognition to shown image, further
Unlock is caused to fail.
Therefore, in the related technology, unlock success rate is lower.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of screen locking unlocking method, device, electronic equipment and storage medium, with
Improve unlock success rate.Specific technical solution is as follows:
A kind of screen locking unlocking method is applied to electronic equipment, the method includes:
Unlock instruction is received, is determined in locking screen interface, the remaining area in addition to the component of display;
According to the size of the remaining area and default selection rule, it is adapted to from the camera of the electronic equipment
In resolution ratio of camera head, selection target resolution ratio of camera head;
Rule is determined according to the size of the remaining area and preset window, determines the size of the preview window;
The preview window of determined size is shown in the remaining area;
It controls the camera and acquires facial information with the target resolution ratio of camera head, based on described the preview window;
Facial match is carried out to the facial information and unlocks the locking screen interface when facial successful match.
Optionally, the reception unlock instruction, determines in the locking screen interface, the remaining area in addition to the component of display
The step of, including:
Unlock instruction is received, the current screen resolution ratio of the locking screen interface is obtained;
Determine that various components type is corresponding:Screen resolution gear and component occupy the default correspondence of locking screen interface size
Relationship determines the various components of display in the screen locking according to the default corresponding relationship and the current screen resolution ratio
Occupied size in interface;
Determine position of the various components in the locking screen interface;
According to the occupied size and location of identified various components, determine in the locking screen interface, unless each component
Remaining area in addition.
Optionally, the size according to the remaining area and default selection rule, from taking the photograph for the electronic equipment
In the resolution ratio of camera head being adapted to as head, the step of selection target resolution ratio of camera head, including:
According to the sequence of resolution ratio from high to low, resolution ratio of camera head that the camera of the electronic equipment is adapted into
Row sequence;
When the quantity of the resolution ratio of camera head is not more than three, and the size of the remaining area is greater than locking screen interface
When half, according to the sequence that sequence obtains, determine that first resolution ratio of camera head is target resolution ratio of camera head;
When the resolution ratio of camera head quantity be not more than three, and the size of the remaining area be not more than locking screen interface
Half when, according to the obtained sequence of sequence, determine that the last one resolution ratio of camera head is target resolution ratio of camera head;
When the resolution ratio of camera head quantity be greater than three, and the size of remaining area be greater than locking screen interface half
When, according to the sequence that sequence obtains, determine that second resolution ratio of camera head of positive number is target resolution ratio of camera head;
When the quantity of the resolution ratio of camera head is greater than three, and the size of the remaining area is no more than locking screen interface
When half, according to the sequence that sequence obtains, determine that penultimate resolution ratio of camera head is target resolution ratio of camera head.
Optionally, the step of described the preview window that determined size is shown in the remaining area, including:
According to position of the remaining area in locking screen interface, determine described the preview window in the remaining area
Position;
Show size be determination size preset shape the preview window in identified position, wherein it is described preset
Shape is round or oval.
Optionally, it is described display size by determination size the preset shape the preview window in identified position
The step of, including:
Preview interface is placed in the lower layer of the locking screen interface;
From the identified position of locking screen interface, the region of the preset shape of determined size is chosen;
By selected areas transparent, the preview window is obtained.
Optionally, after the step of described in the preview window of the determined size of remaining area display, the side
Method further includes:
In the edge of described the preview window display unlock progress bar.
Optionally, after described the step of carrying out facial match to the facial information, the method also includes:
When facial match time is more than preset time or facial match fails, cancel shown the preview window.
A kind of screen locking tripper, is applied to electronic equipment, and described device includes:
Receiving module determines in locking screen interface, the remaining area in addition to the component of display for receiving unlock instruction;
Selecting module, for according to the remaining area size and default selection rule, from the electronic equipment
In the resolution ratio of camera head that camera is adapted to, selection target resolution ratio of camera head;
Determining module determines the preview window for determining rule according to the size and preset window of the remaining area
Size;
Display module, for showing the preview window of determined size in the remaining area;
Control module is adopted for controlling the camera with the target resolution ratio of camera head, based on described the preview window
Collect facial information;
Unlocked state unlocks the screen locking when facial successful match for carrying out facial match to the facial information
Interface.
Optionally, the receiving module, including:
Acquiring unit obtains the current screen resolution ratio of the locking screen interface for receiving unlock instruction;
Size determination unit, for determining that various components type is corresponding:Screen resolution gear and component occupy screen locking
The default corresponding relationship of interface size determines display according to the default corresponding relationship and the current screen resolution ratio
Various components occupied size in the locking screen interface;
Position determination unit, for determining position of the various components in the locking screen interface;
Remaining area determination unit, described in determining according to the occupied size and location of identified various components
In locking screen interface, the remaining area other than component unless each.
Optionally, the selecting module, including:
Sequencing unit is adapted to the camera of the electronic equipment for the sequence according to resolution ratio from high to low
Resolution ratio of camera head is ranked up;
First determination unit, for the quantity when the resolution ratio of camera head no more than three, and the remaining area
When size is greater than the half of locking screen interface, according to the sequence that sequence obtains, determine first resolution ratio of camera head for target camera shooting
Head resolution ratio;
Second determination unit, for the quantity when the resolution ratio of camera head no more than three, and the remaining area
When size is not more than the half of locking screen interface, according to the sequence that sequence obtains, determine that the last one resolution ratio of camera head is target
Resolution ratio of camera head;
Third determination unit is greater than three for the quantity when the resolution ratio of camera head, and the size of remaining area is big
When the half of locking screen interface, according to the sequence that sequence obtains, determine that second resolution ratio of camera head of positive number is target camera
Resolution ratio;
4th determination unit is greater than three for the quantity when the resolution ratio of camera head, and the remaining area is big
When the small half no more than locking screen interface, according to the sequence that sequence obtains, determine that penultimate resolution ratio of camera head is target
Resolution ratio of camera head.
Optionally, the display module, including:
The preview window position determination unit, for the position according to the remaining area in locking screen interface, determine described in
Position of the preview window in the remaining area;
Display unit, for show size by determination size preset shape the preview window in identified position,
Wherein, the preset shape is round or oval.
Optionally, the display unit, including:
Subelement is placed, for preview interface to be placed in the lower layer of the locking screen interface;
Subelement is chosen, for choosing the area of the preset shape of determined size from the identified position of locking screen interface
Domain;
Transparence operating unit, for obtaining the preview window for selected areas transparent.
Optionally, described device further includes:
Unlock progress bar display module, for it is described the remaining area show determined size the preview window it
Afterwards, in the edge of described the preview window display unlock progress bar.
Optionally, described device further includes:
Cancel module, for being more than when facial match time after the progress facial match to the facial information
When preset time or facial match fail, cancel shown the preview window.
A kind of electronic equipment, including processor, communication interface, memory and communication bus, wherein processor, communication connect
Mouthful, memory completes mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the computer program stored on memory, realizes any of the above-described method step
Suddenly.
A kind of computer readable storage medium is stored with computer program in the computer readable storage medium, described
Any of the above-described method and step is realized when computer program is executed by processor.
In the embodiment of the present invention, unlock instruction is received, is determined in locking screen interface, the remaining area in addition to the component of display
Domain, according to the size of remaining area and default selection rule, the resolution ratio of camera head that is adapted to from the camera of electronic equipment
In, selection target resolution ratio of camera head determines rule according to the size of remaining area and preset window, determines the preview window
Size shows the preview window of determined size in remaining area, control camera with target resolution ratio of camera head, based on preview
Window acquires facial information, carries out facial match to facial information, when facial successful match, unlocks locking screen interface.The present invention
In, the size of the preview window is determined according to remaining area, and resolution ratio of camera head is also to determine that this makes according to remaining area
It obtains the preview window to be adapted with resolution ratio of camera head, so that the image shown in the preview window is easy to identified, improves unlock
Success rate.
Detailed description of the invention
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 technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is the first flow diagram of screen locking unlocking method provided in an embodiment of the present invention;
Fig. 2 is reception unlock instruction provided in an embodiment of the present invention, is determined in locking screen interface, in addition to the component of display
The flow diagram of remaining area;
Fig. 3 is the schematic diagram of remaining area provided in an embodiment of the present invention;
Fig. 4 is the size provided in an embodiment of the present invention according to remaining area and default selection rule, from electronic equipment
The resolution ratio of camera head that is adapted to of camera in, the flow diagram of selection target resolution ratio of camera head;
Fig. 5 determines that the process of the preview window of size is illustrated by provided in an embodiment of the present invention show in remaining area
Figure;
Fig. 6 by it is provided in an embodiment of the present invention display size be determine size preset shape the preview window in really
The flow diagram of fixed position;
Fig. 7 is second of flow diagram of screen locking unlocking method provided in an embodiment of the present invention;
Fig. 8 is the structural schematic diagram of screen locking tripper provided in an embodiment of the present invention;
Fig. 9 is the structural schematic diagram of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
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 description, 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.
In order to solve the lower technical problem of unlock success rate, the embodiment of the invention provides a kind of screen locking unlocking method,
Device, electronic equipment and storage medium.
A kind of screen locking unlocking method is provided for the embodiments of the invention first below to be introduced.
A kind of screen locking unlocking method provided in an embodiment of the present invention be applied to electronic equipment, wherein electronic equipment can with but
It is not limited to following equipment:Mobile phone, tablet computer.
As shown in Figure 1, a kind of screen locking unlocking method provided in an embodiment of the present invention, is applied to electronic equipment, this method can
To include:
S101:Unlock instruction is received, is determined in locking screen interface, the remaining area in addition to the component of display.
When user needs to be unlocked the screen locking of electronic equipment, unlock instruction can be sent to electronic equipment, electronics connects
The unlock instruction is received, knows that user needs to be unlocked screen locking.
Wherein, user can be to the mode that electronic equipment sends unlock instruction:When electronic equipment is touch screen, locking
Screen is slided on interface to issue unlock instruction, alternatively, the unblock button of operation electronic equipment is to issue unlock instruction;Work as electricity
When sub- equipment is non-touch screen, the unblock button of electronic equipment is operated to issue unlock instruction.
Due to generally showing component in locking screen interface, such as:Time component, electricity component, active card component etc.,
In, active card component is the component that can be moved in locking screen interface for showing advertisement, the area other than the component of display
Domain just can be used to show the preview window, therefore, after electronic equipment receives the unlock instruction, it is thus necessary to determine that in locking screen interface,
Remaining area in addition to the component of display.
Due to the component of same type, shown size is different under different screen resolutions, therefore, above-mentioned
Unlock instruction is received, is determined in locking screen interface, the remaining area in addition to the component of display, Ke Yiwei:Based on shown group
The type and screen resolution of part determine remaining area.Referring to fig. 2, step S101 may include:
S1011:Unlock instruction is received, the current screen resolution ratio of locking screen interface is obtained.
The size as shown by every kind of component in different screen resolutions is different, in order to true
Determine the size of remaining area, it is thus necessary to determine that the various components that locking screen interface is shown are shown big under current screen resolution ratio
It is small.
In order to determine the various components that locking screen interface is shown size shown under current screen resolution ratio, solved receiving
After lock instruction, need to obtain the current screen resolution ratio of locking screen interface.
S1012:Determine that various components type is corresponding:Screen resolution gear and component occupy the pre- of locking screen interface size
If corresponding relationship, according to default corresponding relationship and current screen resolution ratio, determine the various components of display in locking screen interface
Occupied size.
Since the display size of different component types may be different, in the current screen point for obtaining locking screen interface
After resolution, it is thus necessary to determine that various components type is corresponding:Screen resolution gear and component occupy the default of locking screen interface size
Corresponding relationship.Then according to corresponding relationship and current screen resolution ratio is preset, determine the various components of display in locking screen interface
In occupied size.
Wherein, according to default corresponding relationship and current screen resolution ratio, determine the various components of display in locking screen interface
In occupied size can be:
For each component, determine that the corresponding screen resolution gear of the component type of the component and component occupy screen locking circle
The default corresponding relationship of face size determines screen resolution gear where current screen resolution ratio, by identified current screen
It is shared in locking screen interface as the component that the corresponding component of screen resolution gear where resolution ratio occupies locking screen interface size
Size.
Such as:Assuming that component is time component, then the component type of time component is time type, then time type is corresponding
Screen resolution gear and time component occupy locking screen interface size default corresponding relationship can be as shown in the table:
Screen resolution gear | Screen resolution | Time component occupies locking screen interface size |
It is high-grade | 1280×1024、1280×960 | 1/16 locking screen interface size |
Middle-grade | 800×600、640×480 | 1/8 locking screen interface size |
It is low-grade | 320×240 | 1/4 locking screen interface size |
In general, for current screen resolution bits when top grade, identified component is occupied big in locking screen interface
It is small;When middle-grade, identified component is occupied in locking screen interface to be of moderate size current screen resolution bits;Currently
When screen resolution is located at middle-grade, identified component occupied size in locking screen interface is larger.
S1013:Determine position of the various components in locking screen interface.
In order to determine the remaining area in addition to the component of display, in the various components that display has been determined in locking screen interface
After occupied size, it is also necessary to determine position of the various components in locking screen interface.
In general, there is preset position in various components, such as:Time component and electricity component are normally at screen locking
The upper right corner at interface, active card component are normally at the top half of locking screen interface, when component is shown in locking screen interface, electricity
Sub- equipment is you can learn that position of the various components in locking screen interface.
S1014:According to the occupied size and location of identified various components, determine in locking screen interface, unless each group
Remaining area other than part.
After the occupied size and location of various components has been determined, that is, can determine in locking screen interface, unless each component with
Outer remaining area.
Such as:Referring to Fig. 3, it is assumed that shown component is time component and electricity component, it is assumed that time component and electricity
The occupied size of component is 1/8 locking screen interface size, and the position of time component and the position of electricity component are respectively as in Fig. 3
Shown in region 1 and region 2;
Then according to the occupied size and location of identified various components, determine in locking screen interface, unless each component with
Outer remaining area is as shown in region 3 in Fig. 3.
As a result, by way of determining region occupied by the component shown, to determine the residue in addition to the component of display
Region.
S102:According to the size of remaining area and default selection rule, taken the photograph from what the camera of electronic equipment was adapted to
In picture head resolution ratio, selection target resolution ratio of camera head.
In order to improve unlock success rate, after determining remaining area, the size and default choosing according to remaining area are needed
Rule is taken, from the resolution ratio of camera head that the camera of electronic equipment is adapted to, selection target resolution ratio of camera head.
The above-mentioned size according to remaining area and default selection rule, the camera shooting being adapted to from the camera of electronic equipment
In head resolution ratio, selection target resolution ratio of camera head, Ke Yiwei:According to the relative size between remaining area and locking screen interface with
And the number of the quantity of resolution ratio of camera head, selection target resolution ratio of camera head.Referring to fig. 4, step S102 may include:
S1021:According to the sequence of resolution ratio from high to low, the resolution ratio of camera head that the camera of electronic equipment is adapted to
It is ranked up.
It for selection target resolution ratio of camera head, needs to be ranked up resolution ratio, i.e., from high to low according to resolution ratio
Sequentially, the resolution ratio of camera head being adapted to the camera of electronic equipment is ranked up.
Such as:Assuming that the resolution ratio of camera head that the camera of electronic equipment is adapted to is:320 × 640,640 × 1280,
600×800,1080×1440;
The then sequence according to resolution ratio from high to low, the resolution ratio of camera head being adapted to the camera of electronic equipment carry out
It is ordered as:1080 × 1440,640 × 1280,600 × 800,320 × 640.
S1022:When the quantity of resolution ratio of camera head is not more than three, and one of the size of remaining area greater than locking screen interface
When half, according to the sequence that sequence obtains, determine that first resolution ratio of camera head is target resolution ratio of camera head.
Since the resolution ratio of camera head that the camera of different electronic equipments is supported is different, thus electronics is caused to set
The quantity for the resolution ratio of camera head that standby camera is adapted to is possible to different, right in the quantity difference of resolution ratio of camera head
The selection of target resolution ratio of camera head has a certain impact.
When the quantity of resolution ratio of camera head is not more than three, illustrate that the camera that the camera of electronic equipment supported is differentiated
Rate is less, at this point, selectable resolution ratio of camera head is less.
When the size of remaining area is greater than the half of locking screen interface, illustrate that remaining area is larger, since remaining area is used
In display the preview window, therefore, in the biggish situation of remaining area, the preview window is also larger, at this point, in order to improve unlock at
Power needs to select higher resolution ratio, i.e., the sequence obtained according to sequence determines that first resolution ratio of camera head is taken the photograph for target
As head resolution ratio.
S1023:When the quantity of resolution ratio of camera head is not more than three, and the size of remaining area is no more than locking screen interface
When half, according to the sequence that sequence obtains, determine that the last one resolution ratio of camera head is target resolution ratio of camera head.
When the quantity of resolution ratio of camera head is not more than three, illustrate that the camera that the camera of electronic equipment supported is differentiated
Rate is less, at this point, selectable resolution ratio of camera head is less.
When the size of remaining area is not more than the half of locking screen interface, illustrate that remaining area is smaller, due to remaining area
For showing the preview window, therefore, in the lesser situation of remaining area, the preview window is also smaller, at this point, in order to improve unlock
Success rate needs to select lower resolution ratio, i.e., the sequence obtained according to sequence determines that the last one resolution ratio of camera head is mesh
Mark resolution ratio of camera head.
S1024:When resolution ratio of camera head quantity be greater than three, and the size of remaining area be greater than locking screen interface half
When, according to the sequence that sequence obtains, determine that second resolution ratio of camera head of positive number is target resolution ratio of camera head.
When resolution ratio of camera head quantity be greater than three, illustrate the resolution ratio of camera head that the camera of electronic equipment is supported
It is more, at this point, selectable resolution ratio of camera head is more.
When the size of remaining area is greater than the half of locking screen interface, illustrate that remaining area is larger, since remaining area is used
In display the preview window, therefore, in the biggish situation of remaining area, the preview window is also larger, at this point, in order to improve unlock at
Power needs to select higher resolution ratio.
Since selectable resolution ratio of camera head is more at this time, highest resolution ratio of camera head and secondary high camera point
Resolution can achieve preferable effect, and the resource of the consuming as required for highest resolution ratio of camera head is larger, it can
To select time high resolution ratio of camera head to determine that second resolution ratio of camera head of positive number is mesh that is, according to the obtained sequence that sorts
Mark resolution ratio of camera head.
S1025:When the quantity of resolution ratio of camera head is greater than three, and one of the size of remaining area no more than locking screen interface
When half, according to the sequence that sequence obtains, determine that penultimate resolution ratio of camera head is target resolution ratio of camera head.
When resolution ratio of camera head quantity be greater than three, illustrate the resolution ratio of camera head that the camera of electronic equipment is supported
It is more, at this point, selectable resolution ratio of camera head is more.
When the size of remaining area is not more than the half of locking screen interface, illustrate that remaining area is smaller, due to remaining area
For showing the preview window, therefore, in the lesser situation of remaining area, the preview window is also smaller, at this point, in order to improve unlock
Success rate needs to select lower resolution ratio.
Since selectable resolution ratio of camera head is more at this time, minimum resolution ratio of camera head and secondary low camera point
Resolution can achieve preferable effect, and due to compared to minimum resolution ratio of camera head, secondary low resolution ratio of camera head institute
The image of display is apparent, it is thereby possible to select secondary low resolution ratio of camera head, i.e., the sequence obtained according to sequence determine
Second resolution ratio of camera head of number is target resolution ratio of camera head.
Thus, it is possible to according to the quantity of relative size and resolution ratio of camera head between remaining area and locking screen interface
How much, selection target resolution ratio of camera head avoids random selection resolution ratio of camera head.
S103:Rule is determined according to the size of remaining area and preset window, determines the size of the preview window.
In order to carry out preview, after determining remaining area, need to be determined according to the size and preset window of remaining area
Rule determines the size of the preview window.
Wherein, rule is determined according to the size of remaining area and preset window, determines the mode of the size of the preview window
There are many, it is including but not limited to following several:
First way:
The side length for determining the most short side of remaining area, by using the side length of preset ratio as the size of the circle of diameter as
The size of the preview window.
Such as:Assuming that the side length of the most short side of remaining area is 5, it is assumed that preset ratio 3/5, then by 5 × (3/5)=3
For size of the size as the preview window of the circle of diameter.
The second way:
The side length for determining the most short side of remaining area, will be using the side length of preset ratio as the size of the square of side length
Size as the preview window.
Such as:Assuming that the side length of the most short side of remaining area is 5, it is assumed that preset ratio 3/5, then by 5 × (3/5)=3
For size of the size as the preview window of the square of side length.
The third mode:
Using the size of remaining area as the size of the preview window.
It should be noted that step S102 can be executed before step S103, can also execute after step s 103,
It can also be performed simultaneously with step S103, the execution sequence in embodiment illustrated in fig. 1 between step S102 and step S103 is only
A kind of implementation of the invention is not constituted to any restriction of the invention.
S104:The preview window of determined size is shown in remaining area.
It, can be in the preview window of the determined size of remaining area display after determining the size of the preview window.
Referring to Fig. 5, step S104 may include:
S1041:According to position of the remaining area in locking screen interface, position of the preview window in remaining area is determined.
In order to show the preview window, it is thus necessary to determine that the position of the preview window, since the preview window is shown in remaining area, because
This, determine the position of the preview window mode can according to position of the remaining area in locking screen interface, determine the preview window
Position in remaining area.
Wherein, the position according to remaining area in locking screen interface determines that position of the preview window in remaining area can
Think:According to position of the remaining area in locking screen interface, the center of remaining area is determined, by identified center
As position of the preview window in remaining area.
S1042:Show size be determination size preset shape the preview window in identified position, wherein in advance
If shape is round or oval.
After position of the preview window in remaining area has been determined, preview window can be shown at identified position
Mouthful.
Since the shape of face that rectangle the preview window is difficult to people is adapted so that non-unlock must information be logged, therefore, in order to
Reduce non-unlock must information be logged, in the embodiment of the present invention, show size by determination size preset shape preview
Window is in identified position, wherein preset shape is round or oval.
As a result, by way of showing the preview window of round or ellipse, so that the preview window and the shape of face of people are mutually fitted
Match, reduces the typing of the necessary information of non-unlock.
Referring to Fig. 6, step S1042 may include:
S10421:Preview interface is placed in the lower layer of locking screen interface.
In order to show the preview window of preset shape, need for preview interface to be placed in the lower layer of locking screen interface, at this point, with
Family can only watch locking screen interface, can not watch preview interface, wherein preview interface is the boundary for preview facial information
Face.
S10422:From the identified position of locking screen interface, the region of the preset shape of determined size is chosen.
After the lower layer that preview interface is placed in locking screen interface, from the identified position of locking screen interface, institute is chosen really
Determine the region of the preset shape of size, i.e., selected is the region in locking screen interface.
S10423:By selected areas transparent, the preview window is obtained.
Since preview interface can not be watched at this point, user can only watch locking screen interface, in order to keep preview interface aobvious
Show, need selected areas transparent, i.e., sets absolutely transparent for the transparency in selected region.
At this point, the selected region in locking screen interface be it is transparent, since preview interface is placed under locking screen interface
Layer, and selected region is the region of the preset shape of determined size, therefore, at this point it is possible to view under locking screen interface
The preview interface of layer, and viewed be determined size preset shape preview interface, i.e. the preview window.
As a result, by way of transparence, the preview window is shown.
S105:It controls camera and acquires facial information with target resolution ratio of camera head, based on the preview window.
After having selected target resolution ratio of camera head and having shown the preview window, i.e., controllable camera is imaged with target
Head resolution ratio acquires facial information based on the preview window.
Wherein, control camera can be with target resolution ratio of camera head, based on the preview window acquisition facial information:Control
Camera with target resolution ratio of camera head carry out facial information acquisition, acquisition be the preview window institute energy typing facial information.
S106:Facial match is carried out to facial information, when facial successful match, unlocks locking screen interface.
In order to be unlocked screen locking, after acquiring facial information, need to carry out facial match to facial information.
Wherein, facial match, Ke Yiwei are carried out to facial information:Detect the facial information acquired is with default facial information
No matching illustrates that the corresponding user of the facial information is competent person when facial successful match, at this point, unlock locking screen interface.
In the embodiment of the present invention, unlock instruction is received, is determined in locking screen interface, the remaining area in addition to the component of display
Domain, according to the size of remaining area and default selection rule, the resolution ratio of camera head that is adapted to from the camera of electronic equipment
In, selection target resolution ratio of camera head determines rule according to the size of remaining area and preset window, determines the preview window
Size shows the preview window of determined size in remaining area, control camera with target resolution ratio of camera head, based on preview
Window acquires facial information, carries out facial match to facial information, when facial successful match, unlocks locking screen interface.The present invention
In, the size of the preview window is determined according to remaining area, and resolution ratio of camera head is also to determine that this makes according to remaining area
It obtains the preview window to be adapted with resolution ratio of camera head, so that the image shown in the preview window is easy to identified, improves unlock
Success rate.
Based on method shown in Fig. 1, after step s 104, referring to Fig. 7, a kind of screen locking unlock provided in an embodiment of the present invention
Method can also include:
S107:In the edge of the preview window display unlock progress bar.
In order to make user know the progress of unlock, unlock progress bar can also be shown at the edge of the preview window.Work as unlock
When success, it can also be shown in locking screen interface and unlock successfully pattern, such as:The pattern opened is locked, it, can be with when unlocking failure
Unlock failure pattern is shown in locking screen interface, such as:× shape pattern.
As a result, prompting the progress of user's unlock in such a way that the edge of the preview window shows unlock progress bar, improve
User experience.
Based on method shown in Fig. 1, after portion's information carries out facial match over there, a kind of lock provided in an embodiment of the present invention
Screen unlocks method can also include:
When facial match time is more than preset time or facial match fails, cancel shown the preview window.
It needs to consume electronic equipment resource due to carrying out facial match, in order to avoid consuming more resource, is provided with face
Portion's match time just cancels shown the preview window, illustratively, facial match time when being more than the facial match time
It can be 3s.
Due to being not aligned with the preview window because of user sometimes, so that camera can not collect the facial information of user,
Cause electronic equipment that can not recognize facial information, at this point, facial match fails, alternatively, facial information and default facial information
It mismatches, at this point, facial match fails, in order to reduce resource consumption, in facial match failure, cancels shown preview window
Mouthful.
In facial match failure, flush mechanism can also be triggered, i.e., shows the preview window again, re-starts facial letter
Breath acquisition re-starts facial information matching.
As a result, when facial match time is more than preset time or facial match fails, by pre- shown by cancellation
It lookes at the mode of window, reduces resource consumption.
Relative to above method embodiment, referring to Fig. 8, the embodiment of the invention also provides a kind of screen locking trippers, answer
For electronic equipment, the apparatus may include:
Receiving module 801 determines in locking screen interface, the remaining area in addition to the component of display for receiving unlock instruction
Domain;
Selecting module 802, for according to the remaining area size and default selection rule, from the electronic equipment
The resolution ratio of camera head that is adapted to of camera in, selection target resolution ratio of camera head;
Determining module 803 determines preview window for determining rule according to the size and preset window of the remaining area
The size of mouth;
Display module 804, for showing the preview window of determined size in the remaining area;
Control module 805, for control the camera with the target resolution ratio of camera head, based on described the preview window
Acquire facial information;
Unlocked state 806, for carrying out facial match to the facial information, when facial successful match, described in unlock
Locking screen interface.
In the embodiment of the present invention, unlock instruction is received, is determined in locking screen interface, the remaining area in addition to the component of display
Domain, according to the size of remaining area and default selection rule, the resolution ratio of camera head that is adapted to from the camera of electronic equipment
In, selection target resolution ratio of camera head determines rule according to the size of remaining area and preset window, determines the preview window
Size shows the preview window of determined size in remaining area, control camera with target resolution ratio of camera head, based on preview
Window acquires facial information, carries out facial match to facial information, when facial successful match, unlocks locking screen interface.The present invention
In, the size of the preview window is determined according to remaining area, and resolution ratio of camera head is also to determine that this makes according to remaining area
It obtains the preview window to be adapted with resolution ratio of camera head, so that the image shown in the preview window is easy to identified, improves unlock
Success rate.
In a kind of implementation of the invention, the receiving module 801 may include:
Acquiring unit obtains the current screen resolution ratio of the locking screen interface for receiving unlock instruction;
Size determination unit, for determining that various components type is corresponding:Screen resolution gear and component occupy screen locking
The default corresponding relationship of interface size determines display according to the default corresponding relationship and the current screen resolution ratio
Various components occupied size in the locking screen interface;
Position determination unit, for determining position of the various components in the locking screen interface;
Remaining area determination unit, described in determining according to the occupied size and location of identified various components
In locking screen interface, the remaining area other than component unless each.
In a kind of implementation of the invention, the selecting module 802 may include:
Sequencing unit is adapted to the camera of the electronic equipment for the sequence according to resolution ratio from high to low
Resolution ratio of camera head is ranked up;
First determination unit, for the quantity when the resolution ratio of camera head no more than three, and the remaining area
When size is greater than the half of locking screen interface, according to the sequence that sequence obtains, determine first resolution ratio of camera head for target camera shooting
Head resolution ratio;
Second determination unit, for the quantity when the resolution ratio of camera head no more than three, and the remaining area
When size is not more than the half of locking screen interface, according to the sequence that sequence obtains, determine that the last one resolution ratio of camera head is target
Resolution ratio of camera head;
Third determination unit is greater than three for the quantity when the resolution ratio of camera head, and the size of remaining area is big
When the half of locking screen interface, according to the sequence that sequence obtains, determine that second resolution ratio of camera head of positive number is target camera
Resolution ratio;
4th determination unit is greater than three for the quantity when the resolution ratio of camera head, and the remaining area is big
When the small half no more than locking screen interface, according to the sequence that sequence obtains, determine that penultimate resolution ratio of camera head is target
Resolution ratio of camera head.
In a kind of implementation of the invention, the display module 804 may include:
The preview window position determination unit, for the position according to the remaining area in locking screen interface, determine described in
Position of the preview window in the remaining area;
Display unit, for show size by determination size preset shape the preview window in identified position,
Wherein, the preset shape is round or oval.
In a kind of implementation of the invention, the display unit may include:
Subelement is placed, for preview interface to be placed in the lower layer of the locking screen interface;
Subelement is chosen, for choosing the area of the preset shape of determined size from the identified position of locking screen interface
Domain;
Transparence operating unit, for obtaining the preview window for selected areas transparent.
In a kind of implementation of the invention, described device can also include:
Unlock progress bar display module, for it is described the remaining area show determined size the preview window it
Afterwards, in the edge of described the preview window display unlock progress bar.
In a kind of implementation of the invention, described device can also include:
Cancel module, for being more than when facial match time after the progress facial match to the facial information
When preset time or facial match fail, cancel shown the preview window.
The embodiment of the invention also provides a kind of electronic equipment, as shown in figure 9, including processor 901 and memory 902,
Memory 902, for storing computer program;
Processor 901 when for executing the computer program stored on memory 902, realizes screen locking unlocking method, should
Method may include steps of:
Unlock instruction is received, is determined in locking screen interface, the remaining area in addition to the component of display;
According to the size of the remaining area and default selection rule, it is adapted to from the camera of the electronic equipment
In resolution ratio of camera head, selection target resolution ratio of camera head;
Rule is determined according to the size of the remaining area and preset window, determines the size of the preview window;
The preview window of determined size is shown in the remaining area;
It controls the camera and acquires facial information with the target resolution ratio of camera head, based on described the preview window;
Facial match is carried out to the facial information and unlocks the locking screen interface when facial successful match.
In the embodiment of the present invention, electronic equipment receives unlock instruction, determines in locking screen interface, in addition to the component of display
Remaining area, according to the size of remaining area and default selection rule, the camera that is adapted to from the camera of electronic equipment
In resolution ratio, selection target resolution ratio of camera head determines rule according to the size of remaining area and preset window, determines preview
The size of window shows the preview window of determined size in remaining area, controls camera with target resolution ratio of camera head, base
Facial information is acquired in the preview window, facial match is carried out to facial information, when facial successful match, unlocks locking screen interface.
In the present invention, the size of the preview window is determined according to remaining area, and resolution ratio of camera head is also to be determined according to remaining area
, this is adapted the preview window with resolution ratio of camera head, so that the image shown in the preview window is easy to identified, improves
Unlock success rate.
In a kind of implementation of the invention, the reception unlock instruction is determined in the locking screen interface, except display
The step of remaining area other than component, may include:
Unlock instruction is received, the current screen resolution ratio of the locking screen interface is obtained;
Determine that various components type is corresponding:Screen resolution gear and component occupy the default correspondence of locking screen interface size
Relationship determines the various components of display in the screen locking according to the default corresponding relationship and the current screen resolution ratio
Occupied size in interface;
Determine position of the various components in the locking screen interface;
According to the occupied size and location of identified various components, determine in the locking screen interface, unless each component
Remaining area in addition.
In a kind of implementation of the invention, the size according to the remaining area and default selection rule,
It, can be with the step of selection target resolution ratio of camera head from the resolution ratio of camera head that the camera of the electronic equipment is adapted to
Including:
According to the sequence of resolution ratio from high to low, resolution ratio of camera head that the camera of the electronic equipment is adapted into
Row sequence;
When the quantity of the resolution ratio of camera head is not more than three, and the size of the remaining area is greater than locking screen interface
When half, according to the sequence that sequence obtains, determine that first resolution ratio of camera head is target resolution ratio of camera head;
When the resolution ratio of camera head quantity be not more than three, and the size of the remaining area be not more than locking screen interface
Half when, according to the obtained sequence of sequence, determine that the last one resolution ratio of camera head is target resolution ratio of camera head;
When the resolution ratio of camera head quantity be greater than three, and the size of remaining area be greater than locking screen interface half
When, according to the sequence that sequence obtains, determine that second resolution ratio of camera head of positive number is target resolution ratio of camera head;
When the quantity of the resolution ratio of camera head is greater than three, and the size of the remaining area is no more than locking screen interface
When half, according to the sequence that sequence obtains, determine that penultimate resolution ratio of camera head is target resolution ratio of camera head.
In a kind of implementation of the invention, described the preview window that determined size is shown in the remaining area
Step may include:
According to position of the remaining area in locking screen interface, determine described the preview window in the remaining area
Position;
Show size be determination size preset shape the preview window in identified position, wherein it is described preset
Shape is round or oval.
In a kind of implementation of the invention, it is described display size by determination size the preset shape preview
Window may include in the identified position the step of:
Preview interface is placed in the lower layer of the locking screen interface;
From the identified position of locking screen interface, the region of the preset shape of determined size is chosen;
By selected areas transparent, the preview window is obtained.
In a kind of implementation of the invention, in described the preview window for showing determined size in the remaining area
The step of after, the method can also include:
In the edge of described the preview window display unlock progress bar.
In a kind of implementation of the invention, after described the step of carrying out facial match to the facial information,
The method can also include:
When facial match time is more than preset time or facial match fails, cancel shown the preview window.
The memory that above-mentioned electronic equipment is mentioned may include random access memory (Random Access Memory,
It RAM), also may include nonvolatile memory (Non-Volatile Memory, NVM), for example, at least a disk storage
Device.Optionally, memory can also be that at least one is located remotely from the storage device of aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit,
CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal
Processing, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing
It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete
Door or transistor logic, discrete hardware components.
The embodiment of the present invention also provides a kind of computer readable storage medium, storage in the computer readable storage medium
There is computer program, screen locking unlocking method is realized when the computer program is executed by processor, this method may include as follows
Step:
Unlock instruction is received, is determined in locking screen interface, the remaining area in addition to the component of display;
According to the size of the remaining area and default selection rule, it is adapted to from the camera of the electronic equipment
In resolution ratio of camera head, selection target resolution ratio of camera head;
Rule is determined according to the size of the remaining area and preset window, determines the size of the preview window;
The preview window of determined size is shown in the remaining area;
It controls the camera and acquires facial information with the target resolution ratio of camera head, based on described the preview window;
Facial match is carried out to the facial information and unlocks the locking screen interface when facial successful match.
In the embodiment of the present invention, unlock instruction is received when computer program is executed by processor, is determined in locking screen interface, is removed
Remaining area other than the component of display, according to the size of remaining area and default selection rule, from the camera shooting of electronic equipment
In the resolution ratio of camera head that head is adapted to, selection target resolution ratio of camera head, according to the size and preset window of remaining area
It determines rule, determines the size of the preview window, show the preview window of determined size in remaining area, control camera with mesh
It marks resolution ratio of camera head, facial information is acquired based on the preview window, facial match is carried out to facial information, when facial successful match
When, unlock locking screen interface.In the present invention, the size of the preview window is determined according to remaining area, and resolution ratio of camera head is also
It is determined according to remaining area, this is adapted the preview window with resolution ratio of camera head, so that the figure shown in the preview window
As being easy to identified, unlock success rate is improved.
In a kind of implementation of the invention, the reception unlock instruction is determined in the locking screen interface, except display
The step of remaining area other than component, may include:
Unlock instruction is received, the current screen resolution ratio of the locking screen interface is obtained;
Determine that various components type is corresponding:Screen resolution gear and component occupy the default correspondence of locking screen interface size
Relationship determines the various components of display in the screen locking according to the default corresponding relationship and the current screen resolution ratio
Occupied size in interface;
Determine position of the various components in the locking screen interface;
According to the occupied size and location of identified various components, determine in the locking screen interface, unless each component
Remaining area in addition.
In a kind of implementation of the invention, the size according to the remaining area and default selection rule,
It, can be with the step of selection target resolution ratio of camera head from the resolution ratio of camera head that the camera of the electronic equipment is adapted to
Including:
According to the sequence of resolution ratio from high to low, resolution ratio of camera head that the camera of the electronic equipment is adapted into
Row sequence;
When the quantity of the resolution ratio of camera head is not more than three, and the size of the remaining area is greater than locking screen interface
When half, according to the sequence that sequence obtains, determine that first resolution ratio of camera head is target resolution ratio of camera head;
When the resolution ratio of camera head quantity be not more than three, and the size of the remaining area be not more than locking screen interface
Half when, according to the obtained sequence of sequence, determine that the last one resolution ratio of camera head is target resolution ratio of camera head;
When the resolution ratio of camera head quantity be greater than three, and the size of remaining area be greater than locking screen interface half
When, according to the sequence that sequence obtains, determine that second resolution ratio of camera head of positive number is target resolution ratio of camera head;
When the quantity of the resolution ratio of camera head is greater than three, and the size of the remaining area is no more than locking screen interface
When half, according to the sequence that sequence obtains, determine that penultimate resolution ratio of camera head is target resolution ratio of camera head.
In a kind of implementation of the invention, described the preview window that determined size is shown in the remaining area
Step may include:
According to position of the remaining area in locking screen interface, determine described the preview window in the remaining area
Position;
Show size be determination size preset shape the preview window in identified position, wherein it is described preset
Shape is round or oval.
In a kind of implementation of the invention, it is described display size by determination size the preset shape preview
Window may include in the identified position the step of:
Preview interface is placed in the lower layer of the locking screen interface;
From the identified position of locking screen interface, the region of the preset shape of determined size is chosen;
By selected areas transparent, the preview window is obtained.
In a kind of implementation of the invention, in described the preview window for showing determined size in the remaining area
The step of after, the method can also include:
In the edge of described the preview window display unlock progress bar.
In a kind of implementation of the invention, after described the step of carrying out facial match to the facial information,
The method can also include:
When facial match time is more than preset time or facial match fails, cancel shown the preview window.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality
For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method
Part explanation.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all
Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention
It is interior.
Claims (10)
1. a kind of screen locking unlocking method, which is characterized in that it is applied to electronic equipment, the method includes:
Unlock instruction is received, is determined in locking screen interface, the remaining area in addition to the component of display;
According to the size of the remaining area and default selection rule, the camera shooting that is adapted to from the camera of the electronic equipment
In head resolution ratio, selection target resolution ratio of camera head;
Rule is determined according to the size of the remaining area and preset window, determines the size of the preview window;
The preview window of determined size is shown in the remaining area;
It controls the camera and acquires facial information with the target resolution ratio of camera head, based on described the preview window;
Facial match is carried out to the facial information and unlocks the locking screen interface when facial successful match.
2. the method according to claim 1, wherein the reception unlock instruction, determines in the locking screen interface,
The step of remaining area in addition to the component of display, including:
Unlock instruction is received, the current screen resolution ratio of the locking screen interface is obtained;
Determine that various components type is corresponding:Screen resolution gear and component occupy the default corresponding pass of locking screen interface size
System determines the various components of display in screen locking circle according to the default corresponding relationship and the current screen resolution ratio
Occupied size in face;
Determine position of the various components in the locking screen interface;
It according to the occupied size and location of identified various components, determines in the locking screen interface, unless each other than component
Remaining area.
3. the method according to claim 1, wherein the size and default choosing according to the remaining area
Rule is taken, from the resolution ratio of camera head that the camera of the electronic equipment is adapted to, the step of selection target resolution ratio of camera head
Suddenly, including:
According to the sequence of resolution ratio from high to low, the resolution ratio of camera head being adapted to the camera of the electronic equipment is arranged
Sequence;
When the resolution ratio of camera head quantity be not more than three, and the size of the remaining area be greater than locking screen interface half
When, according to the sequence that sequence obtains, determine that first resolution ratio of camera head is target resolution ratio of camera head;
When the quantity of the resolution ratio of camera head is not more than three, and one of the size of the remaining area no more than locking screen interface
When half, according to the sequence that sequence obtains, determine that the last one resolution ratio of camera head is target resolution ratio of camera head;
When the quantity of the resolution ratio of camera head is greater than three, and the size of remaining area is greater than the half of locking screen interface, press
The sequence that phototypesetting sequence obtains determines that second resolution ratio of camera head of positive number is target resolution ratio of camera head;
When the resolution ratio of camera head quantity be greater than three, and the size of the remaining area be not more than locking screen interface half
When, according to the sequence that sequence obtains, determine that penultimate resolution ratio of camera head is target resolution ratio of camera head.
4. the method according to claim 1, wherein described show the pre- of determined size in the remaining area
Look at window the step of, including:
According to position of the remaining area in locking screen interface, position of the described the preview window in the remaining area is determined
It sets;
Show size by determination size preset shape the preview window in identified position, wherein the preset shape
It is round or oval.
5. according to the method described in claim 4, it is characterized in that, it is described display size by determination size the default shape
The preview window of shape in the identified position the step of, including:
Preview interface is placed in the lower layer of the locking screen interface;
From the identified position of locking screen interface, the region of the preset shape of determined size is chosen;
By selected areas transparent, the preview window is obtained.
6. the method according to claim 1, wherein showing determined size in the remaining area described
After the step of the preview window, the method also includes:
In the edge of described the preview window display unlock progress bar.
7. the method according to claim 1, wherein in the step for carrying out facial match to the facial information
After rapid, the method also includes:
When facial match time is more than preset time or facial match fails, cancel shown the preview window.
8. a kind of screen locking tripper, which is characterized in that be applied to electronic equipment, described device includes:
Receiving module determines in locking screen interface, the remaining area in addition to the component of display for receiving unlock instruction;
Selecting module, for according to the remaining area size and default selection rule, from the camera shooting of the electronic equipment
In the resolution ratio of camera head that head is adapted to, selection target resolution ratio of camera head;
Determining module determines the big of the preview window for determining rule according to the size and preset window of the remaining area
It is small;
Display module, for showing the preview window of determined size in the remaining area;
Control module, for control the camera with the target resolution ratio of camera head, based on the preview window collection surface
Portion's information;
Unlocked state unlocks screen locking circle when facial successful match for carrying out facial match to the facial information
Face.
9. a kind of electronic equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein processing
Device, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the computer program stored on memory, realizes method as claimed in claim 1 to 7
Step.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium
Program, the computer program realize method and step as claimed in claim 1 to 7 when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810660621.0A CN108830069B (en) | 2018-06-25 | 2018-06-25 | Screen locking and unlocking method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810660621.0A CN108830069B (en) | 2018-06-25 | 2018-06-25 | Screen locking and unlocking method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108830069A true CN108830069A (en) | 2018-11-16 |
CN108830069B CN108830069B (en) | 2020-02-28 |
Family
ID=64137677
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810660621.0A Active CN108830069B (en) | 2018-06-25 | 2018-06-25 | Screen locking and unlocking method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108830069B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102508899A (en) * | 2011-11-07 | 2012-06-20 | 北京邮电大学 | Method for optimizing information acquisition according to needs of entities using information |
CN103019561A (en) * | 2012-11-28 | 2013-04-03 | 广东欧珀移动通信有限公司 | Unlocking method and device based on double cameras |
CN103268151A (en) * | 2013-05-29 | 2013-08-28 | 深圳市东方拓宇科技有限公司 | Data processing device and specific function starting method thereof |
CN104601888A (en) * | 2015-01-19 | 2015-05-06 | 联想(北京)有限公司 | Control method and electronic equipment |
US20170053109A1 (en) * | 2015-08-17 | 2017-02-23 | Lg Electronics Inc. | Mobile terminal and method for controlling the same |
-
2018
- 2018-06-25 CN CN201810660621.0A patent/CN108830069B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102508899A (en) * | 2011-11-07 | 2012-06-20 | 北京邮电大学 | Method for optimizing information acquisition according to needs of entities using information |
CN103019561A (en) * | 2012-11-28 | 2013-04-03 | 广东欧珀移动通信有限公司 | Unlocking method and device based on double cameras |
CN103268151A (en) * | 2013-05-29 | 2013-08-28 | 深圳市东方拓宇科技有限公司 | Data processing device and specific function starting method thereof |
CN104601888A (en) * | 2015-01-19 | 2015-05-06 | 联想(北京)有限公司 | Control method and electronic equipment |
US20170053109A1 (en) * | 2015-08-17 | 2017-02-23 | Lg Electronics Inc. | Mobile terminal and method for controlling the same |
Also Published As
Publication number | Publication date |
---|---|
CN108830069B (en) | 2020-02-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105208239B (en) | The display control method of picture in locking in information processing unit and the device | |
CN104143060A (en) | Screen unlocking method and device for multiple applications as well as mobile terminal | |
CN109754379A (en) | Image processing method and device | |
US20170124314A1 (en) | Device and Method for Keypad with an Integral Fingerprint Scanner | |
CN104036177A (en) | Intelligent terminal fingerprint unlocking device and method | |
US10564785B2 (en) | Device and method for sensing biological feature | |
JP2006202212A (en) | Personal authentication device, information processing apparatus and personal authentication system | |
US20150324565A1 (en) | Display device and method for controlling the same | |
US20180012010A1 (en) | Secure storage of fingerprint related elements | |
US20160060944A1 (en) | Dual Turnstile | |
CN101017427A (en) | Electronic conference system, electronic conference assistance method and conference control terminal device | |
CN104461307A (en) | Fingerprint sliding direction instruction recognition method and system | |
CN106796460B (en) | Display system, input unit, display device and display methods | |
CN109145735A (en) | Finger scan method, terminal and computer readable storage medium under a kind of screen | |
CN104317512B (en) | Terminal unlock method and device | |
CN106201509B (en) | A kind of information display method, device and mobile terminal | |
CN106504373A (en) | Intelligent door lock system and its control method | |
CN106445328A (en) | Unlocking method of mobile terminal screen, and mobile terminal | |
CN108830069A (en) | Screen locking and unlocking method and device, electronic equipment and storage medium | |
US11089171B2 (en) | Recording medium storing control program and electronic device for controlling use of function | |
WO2000011617A1 (en) | Method and array for controlling an apparatus by means of fingerprint information | |
DE202007019205U1 (en) | Display and operating device of building system technology | |
CN105719404A (en) | Locker control system based on two-dimensional code recognition technology | |
CN105809112A (en) | Fingerprint information recovering method, fingerprint information recovering apparatus and terminal | |
CN104461351B (en) | A kind of method of terminal unlocking |
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 |