CN107918727B - Interface unlocking method based on electronic equipment and electronic equipment - Google Patents

Interface unlocking method based on electronic equipment and electronic equipment Download PDF

Info

Publication number
CN107918727B
CN107918727B CN201711266127.8A CN201711266127A CN107918727B CN 107918727 B CN107918727 B CN 107918727B CN 201711266127 A CN201711266127 A CN 201711266127A CN 107918727 B CN107918727 B CN 107918727B
Authority
CN
China
Prior art keywords
electronic equipment
portrait
information
subunit
portrait information
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.)
Active
Application number
CN201711266127.8A
Other languages
Chinese (zh)
Other versions
CN107918727A (en
Inventor
罗亚平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TCL China Star Optoelectronics Technology Co Ltd
Original Assignee
Shenzhen China Star Optoelectronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen China Star Optoelectronics Technology Co Ltd filed Critical Shenzhen China Star Optoelectronics Technology Co Ltd
Priority to CN201711266127.8A priority Critical patent/CN107918727B/en
Publication of CN107918727A publication Critical patent/CN107918727A/en
Application granted granted Critical
Publication of CN107918727B publication Critical patent/CN107918727B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/172Classification, e.g. identification

Abstract

The embodiment of the invention relates to the technical field of electronic equipment, in particular to an interface unlocking method based on electronic equipment and the electronic equipment, wherein the method comprises the following steps: when a built-in program interface of the electronic equipment is in a locked state, detecting whether an object is close to the electronic equipment; if an object is close to the electronic equipment, starting a portrait recognition device built in the electronic equipment, and acquiring portrait information through the portrait recognition device; if the portrait recognition device collects the portrait information, judging whether the portrait information is matched with the portrait information of a legal user prestored in the electronic equipment; and if the program interfaces are matched, unlocking the built-in program interface in the locked state. By implementing the embodiment of the invention, the interface unlocking efficiency can be improved.

Description

Interface unlocking method based on electronic equipment and electronic equipment
Technical Field
The invention relates to the technical field of electronic equipment, in particular to an interface unlocking method based on electronic equipment and the electronic equipment.
Background
When a user watches videos by using the electronic equipment, the video operation interface is usually locked by using a locking function of the player, so that the influence caused by misoperation is avoided. However, in practice, it is found that the user often needs to unlock the video operation interface manually, thereby reducing the efficiency of interface unlocking.
Disclosure of Invention
The embodiment of the invention discloses an interface unlocking method based on electronic equipment and the electronic equipment, which can improve the interface unlocking efficiency.
The first aspect of the embodiment of the invention discloses an interface unlocking method based on electronic equipment, which comprises the following steps:
when a built-in program interface of the electronic equipment is in a locked state, detecting whether an object approaches the electronic equipment;
if an object is close to the electronic equipment, starting a portrait recognition device built in the electronic equipment, and acquiring portrait information through the portrait recognition device;
if the portrait recognition device collects the portrait information, judging whether the portrait information is matched with the portrait information of a legal user prestored in the electronic equipment;
and if the built-in program interface is matched with the lock state, unlocking the built-in program interface in the lock state.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the detecting whether there is an object approaching the electronic device when the built-in program interface of the electronic device is in the locked state includes:
when a built-in program interface of the electronic equipment is in a locked state, detecting whether an object exists in an induction range of a distance inductor through the built-in distance inductor of the electronic equipment;
if yes, judging whether the first spacing distance is smaller than a preset distance threshold value; the first spacing distance is the distance between the object and the electronic equipment obtained by the induction of the distance inductor;
if so, determining that the object is close to the electronic equipment;
and if the distance is larger than or equal to the preset distance, determining that the object does not exist to approach the electronic equipment.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, if there is an object close to the electronic device, the starting a portrait recognition apparatus built in the electronic device, and acquiring the portrait information through the portrait recognition apparatus includes:
if an object is close to the electronic equipment, starting a portrait recognition device built in the electronic equipment;
searching first image information through a camera of the portrait recognition device, wherein the matching degree between the first image information and the portrait model information reaches a preset degree threshold;
and controlling the camera to perform dimming and focusing operation on the first image information to obtain second image information, and determining that the second image information is the portrait information.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, if the portrait information is collected by the portrait recognition apparatus, the determining whether the portrait information matches portrait information of a legal user pre-stored in the electronic device includes:
if the portrait recognition device collects the portrait information, facial image data in the portrait information is collected;
comparing the collected face image data with at least one pre-stored face image data one by one, and calculating the matching degree score of each comparison result; the at least one pre-stored face image data is face image data of at least one legal portrait information pre-stored by the electronic equipment, and the at least one legal portrait information is portrait information of at least one legal user;
judging whether the maximum value of all the calculated matching degree scores is greater than a preset matching degree threshold value or not;
and if the maximum value of all the calculated matching degree scores is greater than the preset matching degree threshold value, determining that the portrait information is matched with the portrait information of the legal user pre-stored in the electronic equipment.
As an optional implementation manner, in the first aspect of this embodiment of the present invention, the method further includes:
if the maximum value of all the calculated matching degree scores is smaller than or equal to the preset matching degree threshold value, performing median filtering and noise removing processing on the collected face image data to obtain optimized face image data;
comparing the optimized face image data with prestored face image data corresponding to the maximum value in all the calculated matching degree scores to obtain an optimized comparison result;
calculating a first matching degree score of the optimization comparison result;
judging whether the first matching degree score is larger than the preset matching degree threshold value or not;
and if the first matching degree score is larger than the preset matching degree threshold value, triggering and executing the step of determining that the portrait information is matched with the portrait information of the legal user pre-stored in the electronic equipment.
A second aspect of an embodiment of the present invention discloses an electronic device, including:
the detection unit is used for detecting whether an object approaches the electronic equipment or not when a built-in program interface of the electronic equipment is in a locked state;
the acquisition unit is used for starting a portrait recognition device built in the electronic equipment and acquiring portrait information through the portrait recognition device when the detection result of the detection unit is positive;
the judging unit is used for judging whether the portrait information is matched with the portrait information of a legal user prestored in the electronic equipment or not when the portrait information is collected by the collecting unit;
and the unlocking unit is used for unlocking the built-in program interface in the locking state when the judgment result of the judgment unit is yes.
As an optional implementation manner, in a second aspect of the embodiment of the present invention, the detection unit includes:
the detection subunit is used for detecting whether an object exists in the sensing range of a distance sensor built in the electronic equipment or not through the distance sensor built in the electronic equipment when a built-in program interface of the electronic equipment is in a locked state;
the first judging subunit is used for judging whether the first spacing distance is smaller than a preset distance threshold value or not when the detection result of the detecting subunit is positive; the first spacing distance is the distance between the object and the electronic equipment obtained by the induction of the distance inductor;
the first determining subunit is configured to determine that the object is close to the electronic device when the first determining subunit determines that the first distance is smaller than the preset distance threshold;
the first determining subunit is further configured to determine that the object does not exist to approach the electronic device when the first determining subunit determines that the first separation distance is greater than or equal to the preset distance threshold.
As an optional implementation manner, in a second aspect of the embodiment of the present invention, the acquisition unit includes:
the starting unit is used for starting a portrait recognition device built in the electronic equipment when the detection result of the detection unit is positive;
the searching subunit is used for searching first image information through a camera of the portrait recognition device started by the starting subunit, wherein the matching degree between the first image information and the portrait model information reaches a preset degree threshold value;
and the second determining subunit is used for controlling the camera to perform dimming and focusing operations on the first image information searched by the searching subunit to obtain second image information, and determining that the second image information is portrait information.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, the determining unit includes:
the acquisition subunit is used for acquiring the face image data in the portrait information when the acquisition unit acquires the portrait information;
the calculating subunit is used for comparing the facial image data acquired by the acquiring subunit with at least one pre-stored facial image data one by one and calculating the matching degree score of each comparison result; the at least one pre-stored face image data is face image data of at least one legal portrait information pre-stored by the electronic equipment, and the at least one legal portrait information is portrait information of at least one legal user;
the second judging subunit is used for judging whether the maximum value of all the matching degree scores calculated by the calculating subunit is greater than a preset matching degree threshold value or not;
and the third determining subunit is used for determining that the portrait information is matched with the portrait information of the legal user pre-stored in the electronic equipment when the judgment result of the second judging subunit is yes.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, the determining unit further includes:
the optimization subunit is configured to, when the judgment result of the second judgment subunit is negative, perform median filtering and noise removal processing on the face image data acquired by the acquisition subunit to obtain optimized face image data;
the comparison subunit is used for comparing the optimized face image data obtained by the optimization subunit with prestored face image data corresponding to the maximum value in all the calculated matching degree scores to obtain an optimized comparison result;
the calculating subunit is further configured to calculate a first matching degree score of the optimized comparison result obtained by the comparing subunit;
a third determining subunit, configured to determine whether the first matching degree score calculated by the calculating subunit is greater than the preset matching degree threshold;
the third determining subunit is further configured to determine that the portrait information matches with portrait information of a valid user pre-stored in the electronic device when the determination result of the second determining subunit is negative and the determination result of the third determining subunit is positive.
A third aspect of an embodiment of the present invention discloses an electronic device, including:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to execute the interface unlocking method based on the electronic equipment disclosed by the first aspect of the embodiment of the invention.
The fourth aspect of the present invention discloses a computer-readable storage medium storing a computer program, where the computer program enables a computer to execute the interface unlocking method based on an electronic device disclosed in the first aspect of the present invention.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the electronic equipment can detect whether an object approaches under the condition that a built-in program of the electronic equipment is in a locked state, and starts a portrait recognition device built in the electronic equipment to collect portrait information when the detection result is yes, if the portrait recognition device collects the portrait information, whether the portrait information is matched with portrait information of a legal user pre-stored in the electronic equipment is judged, and if the portrait information is matched with the portrait information, the built-in program interface in the locked state is unlocked. Therefore, the interface unlocking efficiency can be improved by implementing the embodiment of the invention.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flowchart of an interface unlocking method based on an electronic device according to an embodiment of the present invention;
FIG. 2 is a schematic flowchart of another method for unlocking an interface based on an electronic device according to an embodiment of the present disclosure;
FIG. 3 is a schematic flowchart of another method for unlocking an interface based on an electronic device according to an embodiment of the present disclosure;
FIG. 4 is a schematic flowchart of another method for unlocking an interface based on an electronic device according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure;
FIG. 6 is a schematic structural diagram of another electronic device disclosed in the embodiments of the present invention;
FIG. 7 is a schematic structural diagram of another electronic device disclosed in the embodiments of the present invention;
fig. 8 is a schematic structural diagram of another electronic device disclosed in the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It is to be noted that the terms "comprises" and "comprising" and any variations thereof in the embodiments and drawings of the present invention are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
The embodiment of the invention discloses an interface unlocking method based on electronic equipment and the electronic equipment, which can improve the interface unlocking efficiency. The following are detailed below.
Example one
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating an interface unlocking method based on an electronic device according to an embodiment of the present invention. As shown in fig. 1, the method for unlocking an interface based on an electronic device may include the following steps:
101. when a built-in program interface of the electronic equipment is in a locked state, the electronic equipment detects whether an object is close to the electronic equipment, if so, the steps 102 to 103 are executed; if not, the flow is ended.
In an embodiment of the present invention, an electronic device may include: various electronic devices such as mobile phones and tablets, the embodiments of the present invention are not limited. The operating system of each electronic device may include, but is not limited to, an Android operating system, an IOS operating system, a Symbian operating system, a blackberry operating system, a Windows Phone8 operating system, and the like.
In the embodiment of the invention, the locking state is an interface state which is owned by the electronic equipment and used for preventing the user from touching the electronic equipment by mistake or an interface state which is owned by a built-in program of the electronic equipment and used for preventing the user from touching the electronic equipment by mistake.
As an alternative implementation, the electronic device detecting whether there is an object close to the electronic device may include:
the electronic equipment starts the infrared detection device, judges whether an object exists in a detection range or not according to the infrared detection state, determines the distance between the object and the electronic equipment when the object exists, judges whether the distance is smaller than a preset distance threshold or not, and determines that the object exists and is close to the electronic equipment if the distance is smaller than the preset distance threshold. By implementing the embodiment, the electronic device can determine whether an object is close to the electronic device by using an infrared detection method, and meanwhile, can determine whether a living body is close to the electronic device according to an infrared temperature measurement function, so that a good detection method is provided, and the detection applicability of the electronic device is improved.
As an optional implementation manner, after the electronic device detects that an object is close to the electronic device, the method may further include:
the electronic equipment detects whether the time of the object existing in the detection range of the electronic equipment is greater than a detection time threshold value, if so, the electronic equipment determines that the object is in a state close to the electronic equipment for a long time, so that a portrait recognition device built in the electronic equipment is further started, and the portrait information is collected through the portrait recognition device. By implementing the implementation mode, the situation that the user accidentally touches the detection device can be avoided, so that the electronic equipment does not need to start the portrait recognition device built in the electronic equipment under the situation, the intelligence of the electronic equipment is improved, and the electricity consumption of the electronic equipment is saved.
102. The electronic equipment starts a portrait recognition device built in the electronic equipment, and the portrait information is collected through the portrait recognition device.
In the embodiment of the present invention, the portrait recognition apparatus may include: the present disclosure relates to a camera module, a detection module, a confirmation module, and an acquisition module.
As an optional implementation manner, the electronic device starting a portrait recognition device built in the electronic device, and acquiring portrait information through the portrait recognition device may include:
the electronic equipment starts a human image recognition device built in the electronic equipment, a camera module of the human image recognition device is used for shooting, whether a human-shaped object exists in a shooting result is detected through a detection module of the human image recognition device, if yes, whether the human-shaped object is a user is confirmed through a confirmation module of the human image recognition device, if yes, face information of the user is further collected through a collection module of the human image recognition device, and the face information of the user is used as the human image information.
By implementing the implementation mode, a prejudgment function can be provided, so that the electronic equipment can prejudge whether a human-shaped object exists through a built-in human image recognition device, if so, whether the human-shaped object is a user is determined, and if so, the face information of the user is collected as the human image information; on the other hand, if no human-shaped object exists or the human-shaped object is determined not to be the user, the subsequent step of acquiring the portrait information can be omitted, so that the electronic equipment is prevented from acquiring wrong portrait information, and the accuracy of the electronic equipment is improved.
As an optional implementation manner, after the electronic device starts a portrait recognition device built in the electronic device and acquires portrait information through the portrait recognition device, the method may further include:
the electronic equipment collects at least one part of portrait information through the portrait recognition device, and selects at least one part of high-quality portrait information from the at least one part of portrait information, wherein the high-quality portrait information is good quality portrait information in the at least one part of portrait information. By implementing the implementation mode, a plurality of pieces of portrait information can be acquired, and high-quality portrait information is selected from the portrait information, so that the electronic equipment can acquire a plurality of pieces of high-quality portrait information, and the quality of acquiring the portrait information by the electronic equipment is improved.
103. If the portrait recognition device collects the portrait information, the electronic equipment judges whether the portrait information is matched with the portrait information of a legal user prestored in the electronic equipment, if so, the step 104 is executed; if not, the flow is ended.
In the embodiment of the invention, the legal user is the user who stores the user information in the electronic equipment.
As an embodiment, before the electronic device determines whether the portrait information matches with the portrait information of a valid user pre-stored in the electronic device, the method may further include:
the electronic equipment detects a setting instruction input by a user, the setting instruction is an instruction for setting a legal user, and after the instruction for setting the legal user is detected, an authentication request (such as password authentication) is output, and after the electronic equipment receives correct authentication information input by the user, the function for setting the legal user is started. By implementing the implementation mode, the method for presetting or changing the legal user pre-stored in the electronic equipment can be provided when the electronic equipment does not perform identity matching, so that the electronic equipment in a non-matching state can perform the change operation of the legal user under the operation of the user, and the intelligence and the convenience of the electronic equipment are improved.
As an optional implementation manner, the determining, by the electronic device, whether the portrait information matches portrait information of a valid user pre-stored in the electronic device may include:
the electronic equipment selects at least one feature point of the portrait information, selects at least one feature point of the portrait information of a pre-stored legal user, compares at least one feature point of the two portrait information to obtain a matching degree, and determines that the portrait information is the portrait information of the legal user if the matching degree is greater than a matching degree threshold value; and if the matching degree is less than or equal to the threshold value of the matching degree, determining that the portrait information is not the portrait information of the legal user. By implementing the implementation mode, whether the portrait information of the current user is matched with the portrait information of the legal user can be further refined and compared, so that the electronic equipment can accurately identify whether the current user is the legal user, and the identification precision of the electronic equipment is improved.
104. And the electronic equipment unlocks the built-in program interface in the locked state.
In the embodiment of the invention, the electronic equipment unlocks the built-in program interface in the locked state, so that a user can operate the built-in program interface in the unlocked state, and the user can control the built-in program of the electronic equipment through operating the built-in program interface.
As an optional implementation manner, after the electronic device unlocks the internal program interface in the locked state, the method may further include:
the electronic equipment detects the time length of the built-in program interface for receiving the user operation, judges whether the standing time length without receiving the user operation is larger than a preset time length threshold value, wherein the preset time length threshold value is a preset threshold value of the electronic equipment when leaving a factory or a threshold value set by the user, and locks the built-in program interface if the standing time length is larger than the preset time length threshold value. By implementing the implementation mode, the built-in program interface of the electronic equipment can be prevented from being in a static state for a long time, so that the intelligence of the electronic equipment is improved, and the probability of mistakenly touching the electronic equipment after unlocking is reduced.
As an optional implementation manner, by implementing the above steps 101 to 104, the user may give the electronic device to a child for use, the child may accidentally perform a false touch operation on the electronic device when using the electronic device, when the electronic device detects that the child is close to the electronic device, the portrait recognition apparatus is turned on and recognizes a current operator, when the electronic device detects that the operator is present and the operator is a child (the child is not a legal user), the lock state of the built-in program interface of the electronic device is maintained, so as to ensure that the electronic device is not operated by the child by the false touch, when the user wants to operate the electronic device, the user only needs to trigger the electronic device to turn on the portrait recognition apparatus, detect that the operator is present and perform portrait recognition on the operator (the user is a legal user), and when the recognition is successful, and automatically unlocking a built-in application interface of the electronic equipment, so that a user can operate the built-in application interface.
For example, the electronic device is a tablet computer, the electronic device has a built-in program of video playing software, the user is a parent, the parent starts the video playing software of the tablet computer and plays a video to be watched by a child, meanwhile, the video playing software locks a video playing interface in the process of playing the video, the child may touch the tablet computer in the process of watching the video, when the child touches the tablet computer, the tablet computer detects the operation of the child and automatically detects whether portrait information exists in a recognition area by a portrait recognition device, if the portrait information of the child is detected, whether the portrait information of the child is matched with the portrait information of a legal user stored in the tablet computer is judged, and the tablet computer judges that the child is not a legal user, so that the locking state of the video playing interface is maintained; when the parent withdraws the tablet computer, the parent triggers the tablet computer to detect whether an object is close to the tablet computer, and detects whether portrait information exists in the identification area through the portrait recognition device, at the moment, the parent is in the identification area, so that the tablet computer can acquire the portrait information of the parent through the portrait recognition device, match the portrait information with a legal user, and unlock the locking state of the video playing interface when the tablet computer judges that the parent is the legal user, so that the parent can operate the video playing interface.
In the method described in fig. 1, when a built-in program interface of an electronic device is in a locked state, it is detected whether an object is present around the electronic device, if it is detected that an object is present, portrait information in an identification area is collected by a portrait identification device built in the electronic device, and the portrait information is matched with portrait information of a legal user stored in the electronic device, and if so, the lock of the built-in program interface is unlocked. Therefore, the method described in fig. 1 can avoid the situation of user mistouch, and provides a program interface unlocking method based on portrait recognition, thereby improving the efficiency of interface unlocking.
Example two
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating another interface unlocking method based on an electronic device according to an embodiment of the present disclosure. As shown in fig. 2, the method for unlocking an interface based on an electronic device may include the following steps:
201. when a built-in program interface of the electronic equipment is in a locked state, the electronic equipment detects whether an object exists in a sensing range of a distance sensor through the built-in distance sensor of the electronic equipment, and if so, the step 202 is executed; if not, the flow is ended.
In the embodiment of the invention, the locking state is an interface state which is owned by the electronic equipment and used for preventing the user from touching the electronic equipment by mistake or an interface state which is owned by a built-in program of the electronic equipment and used for preventing the user from touching the electronic equipment by mistake.
In the embodiment of the present invention, the sensing range of the distance sensor built in the electronic device may be a sensing range calculated by big data and most suitable for using the mobile phone, or may be a sensing range set by the user, which is not limited in the embodiment of the present invention.
As an alternative implementation, the electronic device detecting whether an object exists in a sensing range of a distance sensor through the distance sensor built in the electronic device may include:
the electronic equipment sends infrared rays through a built-in distance sensor of the electronic equipment, when the infrared rays sent by the distance sensor are shielded by an object, the distance sensor obtains the sending distance of the infrared rays, when the distance sensor obtains the sending distance of the infrared rays, whether the sending distance is smaller than a preset distance threshold value (the preset distance threshold value is the most suitable distance for using a mobile phone) or not is judged, if yes, the object is determined to exist in the sensing range of the distance sensor, and if not, the object is determined to not exist in the sensing range of the distance sensor. By implementing the embodiment, a specific distance detection method can be provided, so that a built-in sensor of the electronic equipment can detect the distance between the object and the electronic equipment by using the detection method, and the accuracy of detecting the object by using the distance sensor is improved.
202. The electronic device determines whether the first separation distance is smaller than a preset distance threshold, if so, the steps 204 to 206 are executed; if not, go to step 203. The first spacing distance is a distance between the object and the electronic device, which is obtained by sensing the distance from the sensor.
In the embodiment of the invention, when the electronic equipment determines that an object exists in the sensing range of the distance sensor, whether the distance between the object and the electronic equipment is less than the most suitable distance for using the mobile phone is judged, if so, the object is determined to be close to the electronic equipment, and if not, the object is determined not to be close to the electronic equipment.
203. The electronic device determines that there is no object near the electronic device.
204. The electronic device determines that an object is present near the electronic device.
As an optional implementation, after the electronic device determines that the object is close to the electronic device, the method may further include:
and the electronic equipment detects whether the time for the object to approach the electronic equipment is greater than a detection time threshold value, if so, the electronic equipment determines that the object is in a state of approaching the electronic equipment for a long time, so that a portrait recognition device built in the electronic equipment is further started, and the portrait information is collected through the portrait recognition device. By implementing the implementation mode, the situation that the user accidentally touches the distance emoticon can be avoided, so that the electronic equipment does not need to start a portrait recognition device built in the electronic equipment under the situation, the intelligence of the electronic equipment is improved, and the electricity consumption of the electronic equipment is saved.
In the embodiment of the present invention, by implementing the steps 201 to 204, whether the object is within the sensing range of the distance sensor may be detected by the built-in distance sensor of the electronic device, and if so, whether the object is close to the electronic device may be further determined, so that the electronic device may accurately detect whether the object is close to the electronic device by the built-in distance sensor, thereby improving the detection precision of the electronic device.
205. The electronic equipment starts a portrait recognition device built in the electronic equipment, and the portrait information is collected through the portrait recognition device.
In the embodiment of the present invention, the portrait recognition apparatus may include: the present disclosure relates to a camera module, a detection module, a confirmation module, and an acquisition module.
206. If the portrait identification device collects the portrait information, the electronic equipment judges whether the portrait information is matched with the portrait information of a legal user prestored in the electronic equipment, if so, step 207 is executed; if not, the flow is ended.
207. And the electronic equipment unlocks the built-in program interface in the locked state.
In the embodiment of the invention, the electronic equipment unlocks the built-in program interface in the locked state, so that a user can operate the built-in program interface in the unlocked state, and the user can control the built-in program of the electronic equipment through operating the built-in program interface.
In the method depicted in fig. 2, when the built-in program interface of the electronic device is in a locked state, it is detected whether an object is within the sensing range through a built-in distance sensor of the electronic device, if so, it is detected whether the distance from the object to the electronic device is smaller than the most suitable distance of the electronic device, if so, portrait information in the recognition area is collected through a portrait recognition device built in the electronic device and is matched with portrait information of a legal user stored in the electronic device, and if so, the locking of the built-in program interface is unlocked. It can be seen that the method described in fig. 2 can accurately detect whether an object is close to the electronic device, and can acquire portrait information through the portrait recognition device and judge whether the acquired portrait information matches with portrait information of a legal user pre-stored in the electronic device, and if the acquired portrait information matches with the portrait information of the legal user, the internal program interface in the locked state is unlocked, so that the efficiency of interface unlocking is improved.
EXAMPLE III
Referring to fig. 3, fig. 3 is a schematic flowchart illustrating another interface unlocking method based on an electronic device according to an embodiment of the present disclosure. As shown in fig. 3, the method for unlocking an interface based on an electronic device may include the following steps:
301. when the built-in program interface of the electronic equipment is in a locked state, the electronic equipment detects whether an object exists in the sensing range of a distance sensor through the built-in distance sensor of the electronic equipment, if so, step 302 is executed; if not, the flow is ended.
302. The electronic device determines whether the first separation distance is smaller than a preset distance threshold, if so, the steps 304 to 308 are executed; if not, go to step 303. The first spacing distance is a distance between the object and the electronic device, which is obtained by sensing the distance from the sensor.
303. The electronic device determines that there is no object near the electronic device.
304. The electronic device determines that an object is present near the electronic device.
In the embodiment of the present invention, by implementing steps 301 to 304, whether an object is within a sensing range of a distance sensor may be detected by the built-in distance sensor of the electronic device, and if so, whether the object is close to the electronic device may be further determined, so that the electronic device may accurately detect whether the object is close to the electronic device by the built-in distance sensor, thereby improving the detection precision of the electronic device.
305. Portrait identification device A portrait identification device.
306. The electronic equipment searches for first image information through a camera of the portrait recognition device, and the matching degree between the first image information and the portrait model information reaches a preset degree threshold value.
In the embodiment of the present invention, the preset degree threshold may be a portrait matching degree threshold obtained through calculation of big data, or may be a portrait matching degree threshold adjusted by a user.
As an alternative implementation, the searching, by the electronic device, for the first image information through the camera of the person image recognition device may include:
the electronic equipment starts a camera of the portrait recognition device, controls the camera to rotate at a constant speed from the maximum rotatable position on the left side of the camera end of the camera to the right side of the camera end of the camera within a rotatable range until the camera rotates to the maximum rotatable position on the right side of the camera end of the camera, and searches for first image information of which the matching degree with the portrait model information reaches a preset degree threshold value in the rotating process of the camera. By implementing the implementation mode, the first image information meeting the conditions can be searched in an all-around manner, so that the function of the portrait recognition device for collecting the image information is more complete, and the accuracy of the portrait recognition device for collecting the first image information is improved.
As an optional implementation manner, after the electronic device finds the first image information through the camera of the portrait recognition apparatus, the method may further include:
the electronic device stores the first image information in a cache of the electronic device. By implementing the implementation mode, the first image information can be stored in the cache, so that enough memory space is available when the first image information is operated, the processing of the first image information is guaranteed, and the problem of non-response in the processing of the first image information is avoided.
307. The electronic equipment controls the camera to perform dimming and focusing operation on the first image information to obtain second image information, and determines that the second image information is portrait information.
In the embodiment of the invention, the light adjusting and focusing operation is that the camera adjusts the aperture to change the light inlet quantity, and the position between lenses in the camera is adjusted to change the focal length.
In the embodiment of the invention, the electronic device controls the camera to perform dimming and focusing operations on the first image information, and can also perform optimization processing on the first image information.
As an alternative implementation, the electronic device controlling the camera to perform a dimming and focusing operation on the first image information to obtain the second image information, and determining that the second image information is the portrait information may include:
the electronic equipment controls the camera to conduct dimming and focusing operation on the first image information to obtain second image information, the second image information is stored in a cache of the electronic equipment, the cache occupied by the first image information is cleared, and when the second image information is stored in the cache of the electronic equipment, the electronic equipment determines that the second image information is portrait information. By implementing the implementation mode, the first image information can be acquired and adjusted through the camera, the first image information is further replaced by the adjusted second image information in the cache, and the second image information is determined to be the portrait information, so that the second image information can be stored in the cache of the electronic equipment in advance, a storage basis of the portrait information is provided for judging whether the portrait information is matched with the portrait information of a legal user pre-stored in the electronic equipment, and the operation efficiency of the electronic equipment is improved.
As an optional implementation manner, after the electronic device controls the camera to perform a dimming and focusing operation on the first image information to obtain the second image information, and determines that the second image information is the image information, the method may further include:
the electronic equipment collects at least one part of portrait information through implementing the steps 305 to 307, and selects at least one part of high-quality portrait information from the at least one part of portrait information, wherein the high-quality portrait information is good quality portrait information in the at least one part of portrait information. By implementing the implementation mode, a plurality of pieces of portrait information can be acquired, and high-quality portrait information is selected from the portrait information, so that the electronic equipment can acquire a plurality of pieces of high-quality portrait information, and the quality of acquiring the portrait information by the electronic equipment is improved.
In the embodiment of the present invention, by implementing steps 305 to 307, the first image information is acquired by using the portrait recognition apparatus, and the camera is adjusted on the basis of selecting the first image information, so as to obtain the second image information with a better quality than the first image information, and determine that the second image information is the portrait information, so that the electronic device can acquire better portrait information, thereby improving the quality degree of the acquired portrait information.
308. If the portrait identification device collects the portrait information, the electronic device judges whether the portrait information is matched with the portrait information of the legal user pre-stored in the electronic device, if so, step 309 is executed; if not, the flow is ended.
309. And the electronic equipment unlocks the built-in program interface in the locked state.
In the method described in fig. 3, when a built-in program interface of an electronic device is in a locked state, a built-in distance sensor of the electronic device detects whether an object is within a sensing range, if so, detects whether the distance between the object and the electronic device is smaller than the optimal distance of the electronic device, if so, acquires first image information with a matching degree with a portrait model in a recognition area reaching a preset degree threshold value through a portrait recognition device built in the electronic device, after the first image information is acquired, the electronic device controls a camera to perform a dimming and focusing operation to obtain second image information, determines the second image information as portrait information, further matches the portrait information with legal user portrait information stored in the electronic device, and if so, unlocks the built-in program interface. It can be seen that the method described in fig. 3 can accurately detect whether an object is close to the electronic device, accurately collect portrait information through the portrait recognition device and judge whether the collected portrait information matches with portrait information of a legal user pre-stored in the electronic device, and if the collected portrait information matches with the portrait information of the legal user, the internal program interface in the locked state is unlocked, so that the efficiency of interface unlocking is improved.
Example four
Referring to fig. 4, fig. 4 is a schematic flowchart illustrating another interface unlocking method based on an electronic device according to an embodiment of the present disclosure. As shown in fig. 4, the method for unlocking an interface based on an electronic device may include the following steps:
steps 401 to 407 are the same as steps 301 to 307, and the following description is omitted.
408. If the portrait recognition device collects the portrait information, the electronic equipment collects the facial image data in the portrait information.
409. The electronic equipment compares the collected facial image data with at least one pre-stored facial image data one by one, and calculates the matching degree score of each comparison result. The at least one pre-stored face image data is face image data of at least one legal portrait information pre-stored by the electronic equipment, and the at least one legal portrait information is portrait information of at least one legal user.
In the embodiment of the invention, the electronic equipment compares the collected facial image data with each piece of pre-stored facial image data stored in the electronic equipment one by one, calculates the matching degree score of each comparison result and records the matching degree score of each comparison result, wherein the matching degree score is used for representing the similarity degree of the facial image and the pre-stored facial image, and the higher the score is, the higher the similarity is.
410. The electronic device determines whether the maximum value of all the calculated matching degree scores is greater than a preset matching degree threshold, if so, the steps 415 to 416 are executed; if not, step 411 to step 414 are executed.
In the embodiment of the invention, the preset matching degree threshold is obtained by calculating big data and is used for judging whether the face image data is matched with the pre-stored face image data, wherein if the matching degree of the face image data and the pre-stored face image data is higher than the preset matching degree threshold, the face image data is the face image data of a legal user.
411. The electronic equipment carries out median filtering and noise removing processing on the collected face image data to obtain optimized face image data.
In the embodiment of the invention, the median filtering and noise removing method comprises the steps of selecting a template (the template is composed of a plurality of adjacent pixels) for the current pixel to be processed, sequencing the pixels of the template from small to large, and replacing the value of the original pixel by the median of the template.
412. And the electronic equipment compares the optimized face image data with prestored face image data corresponding to the maximum value in all the calculated matching degree scores to obtain an optimized comparison result.
In the embodiment of the present invention, the pre-stored face image data corresponding to the maximum value among all the calculated matching degree scores is the pre-stored face image data most similar to the face image data (the face image data before optimization).
413. The electronic device calculates a first match score that optimizes the comparison.
414. The electronic device determines whether the first matching degree score is greater than a preset matching degree threshold, if so, the steps 415 to 416 are executed; if not, the flow is ended.
In the embodiment of the present invention, by implementing the above steps 408 to 414, the matching degree of the collected face image data may be determined, and if the determination result is negative, the face image data is optimized, and the matching degree of the optimized face image data is further determined, so that the electronic device may accurately determine whether the current user is a valid user, thereby improving the accuracy of the determination of the electronic device.
415. The electronic equipment determines that the portrait information is matched with the portrait information of the legal user pre-stored in the electronic equipment.
416. And the electronic equipment unlocks the built-in program interface in the locked state.
In the method described in fig. 4, when the internal program interface of the electronic device is in a locked state, detecting whether an object is in the sensing range through an internal distance sensor of the electronic device, if so, detecting whether the distance between the object and the electronic device is smaller than the optimum distance of the electronic device, if so, acquiring first image information with the matching degree between the object and a portrait model in the recognition area reaching a preset degree threshold through a portrait recognition device built in the electronic device, after acquiring the first image information, controlling the camera to perform dimming and focusing operations by the electronic device to obtain second image information, determining the second image information as the portrait information, further performing matching degree calculation on the portrait information and the portrait information of a legal user stored in the electronic device, and performing optimization processing on the portrait information when the matching degree is insufficient, and calculating the matching degree again, and unlocking the lock of the built-in program interface if the matching degree is matched. It can be seen that the method described in fig. 4 can accurately detect whether an object is close to the electronic device, and can accurately acquire portrait information through the portrait recognition device and judge whether the acquired portrait information matches with portrait information of a legal user pre-stored in the electronic device, and if the acquired portrait information matches with the portrait information of the legal user, the built-in program interface in the locked state is unlocked, so that the accuracy of detection and judgment of the electronic device is improved, and the efficiency of interface unlocking is improved.
EXAMPLE five
Referring to fig. 5, fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure. As shown in fig. 5, the electronic device may include:
the detecting unit 501 is configured to detect whether an object approaches the electronic device when a built-in program interface of the electronic device is in a locked state.
In an embodiment of the present invention, an electronic device may include: various electronic devices such as mobile phones and tablets, the embodiments of the present invention are not limited. The operating system of each electronic device may include, but is not limited to, an Android operating system, an IOS operating system, a Symbian operating system, a blackberry operating system, a Windows Phone8 operating system, and the like.
In the embodiment of the invention, the locking state is an interface state which is owned by the electronic equipment and used for preventing the user from touching the electronic equipment by mistake or an interface state which is owned by a built-in program of the electronic equipment and used for preventing the user from touching the electronic equipment by mistake.
As an alternative implementation, the way for the detecting unit 501 to detect whether there is an object approaching the electronic device may be:
the detection unit 501 starts the infrared detection device, and determines whether an object exists in the detection range through the infrared detection state, when the object exists, the detection unit 501 determines the distance between the object and the electronic device, determines whether the distance is smaller than a preset distance threshold, and if the distance is smaller than the preset distance threshold, determines that the object exists and is close to the electronic device. By implementing the embodiment, the electronic device can determine whether an object is close to the electronic device by using an infrared detection method, and meanwhile, can determine whether a living body is close to the electronic device according to an infrared temperature measurement function, so that a good detection method is provided, and the detection applicability of the electronic device is improved.
And the acquisition unit 502 is configured to start a portrait recognition device built in the electronic device and acquire portrait information through the portrait recognition device when the detection result of the detection unit 501 is yes.
In the embodiment of the present invention, the portrait recognition apparatus may include: the present disclosure relates to a camera module, a detection module, a confirmation module, and an acquisition module.
As an optional implementation manner, the manner in which the acquisition unit 502 starts a portrait recognition device built in the electronic device and acquires portrait information through the portrait recognition device may be:
the acquisition unit 502 starts a portrait recognition device built in the electronic device, performs shooting through a camera module of the portrait recognition device, detects whether a human-shaped object exists in a shooting result through a detection module of the portrait recognition device, if so, confirms whether the human-shaped object is a user through a confirmation module of the portrait recognition device, if so, further acquires face information of the user through an acquisition module of the portrait recognition device, and uses the face information of the user as the portrait information.
By implementing the implementation mode, a prejudgment function can be provided, so that the electronic equipment can prejudge whether a human-shaped object exists through a built-in human image recognition device, if so, whether the human-shaped object is a user is determined, and if so, the face information of the user is collected as the human image information; on the other hand, if no human-shaped object exists or the human-shaped object is determined not to be the user, the subsequent operation of acquiring the portrait information can be omitted, so that the electronic equipment is prevented from acquiring wrong portrait information, and the accuracy of the electronic equipment is improved.
The judging unit 503 is configured to judge whether the portrait information matches with portrait information of a valid user pre-stored in the electronic device when the portrait information is collected by the collecting unit 502.
In the embodiment of the invention, the legal user is the user who stores the user information in the electronic equipment.
As an alternative embodiment, the manner for determining whether the portrait information matches with the portrait information of the valid user pre-stored in the electronic device by the determining unit 503 may be:
the judging unit 503 selects at least one feature point of the portrait information, selects at least one feature point of the portrait information of the pre-stored legal user, compares at least one feature point of the two portrait information to obtain a matching degree, and determines that the portrait information is the portrait information of the legal user if the matching degree is greater than a matching degree threshold; and if the matching degree is less than or equal to the threshold value of the matching degree, determining that the portrait information is not the portrait information of the legal user. By implementing the implementation mode, whether the portrait information of the current user is matched with the portrait information of the legal user can be further refined and compared, so that the electronic equipment can accurately identify whether the current user is the legal user, and the identification precision of the electronic equipment is improved.
An unlocking unit 504, configured to unlock the internal program interface in the locked state when the determination result of the determining unit 503 is yes.
In the embodiment of the present invention, the unlocking unit 504 unlocks the internal program interface in the locked state, so that a user can operate the internal program interface in the unlocked state, and thus the user can control the internal program of the electronic device through the operation of the internal program interface.
Therefore, the electronic device described in fig. 5 can avoid the situation that the user touches the electronic device by mistake, and can unlock the program interface based on human image recognition, so that the efficiency of interface unlocking is improved.
EXAMPLE six
Referring to fig. 6, fig. 6 is a schematic structural diagram of another electronic device according to an embodiment of the disclosure. The electronic device shown in fig. 6 is optimized from the electronic device shown in fig. 5. In contrast to the electronic device shown in fig. 5, in the electronic device shown in fig. 6, the detection unit 501 may include:
the detection subunit 5011 is configured to detect whether an object is present in a sensing range of a distance sensor built in the electronic device when a built-in program interface of the electronic device is in a locked state.
In the embodiment of the invention, the locking state is an interface state which is owned by the electronic equipment and used for preventing the user from touching the electronic equipment by mistake or an interface state which is owned by a built-in program of the electronic equipment and used for preventing the user from touching the electronic equipment by mistake.
In the embodiment of the present invention, the sensing range of the distance sensor built in the electronic device may be a sensing range calculated by big data and most suitable for using the mobile phone, or may be a sensing range set by the user, which is not limited in the embodiment of the present invention.
As an alternative embodiment, the way for the detecting subunit 5011 to detect whether there is an object in the sensing range of the distance sensor through the distance sensor built in the electronic device may be:
the detection subunit 5011 transmits infrared rays through a distance sensor built in the electronic device, when the infrared rays transmitted by the distance sensor are blocked by an object, the distance sensor acquires a transmission distance of the infrared rays, when the distance sensor acquires the transmission distance of the infrared rays, it is determined whether the transmission distance is smaller than a preset distance threshold (the preset distance threshold is a distance most suitable for using a mobile phone), if the determination result is yes, it is determined that the object exists within a sensing range of the distance sensor, and if the determination result is no, it is determined that the object does not exist within the sensing range of the distance sensor. By implementing the embodiment, a specific distance detection method can be provided, so that a built-in sensor of the electronic equipment can detect the distance between the object and the electronic equipment by using the detection method, and the accuracy of detecting the object by using the distance sensor is improved.
The first determining subunit 5012 is configured to determine whether a first distance, which is a distance between the object sensed by the distance sensor and the electronic device, is smaller than a preset distance threshold when the detection result of the detecting subunit 5011 is yes.
In the embodiment of the present invention, when determining that an object exists in the sensing range of the distance sensor, the first determining subunit 5012 determines whether the distance between the object and the electronic device is less than the most suitable distance for using the mobile phone, and if so, determines that the object is close to the electronic device, and if not, determines that the object is not close to the electronic device.
The first determining subunit 5013 is configured to determine that there is an object approaching the electronic apparatus when the first determining subunit 5012 determines that the first separation distance is smaller than the preset distance threshold.
The first determining subunit 5013 is further configured to determine that there is no object approaching the electronic device when the first determining subunit 5012 determines that the first separation distance is greater than or equal to a preset distance threshold.
In the embodiment of the present invention, by implementing the detecting subunit 5011, the first determining subunit 5012, and the first determining subunit 5013, it is able to detect whether an object is within a sensing range of a distance sensor through a built-in distance sensor of an electronic device, and if so, further determine whether the object is close to the electronic device, so that the electronic device can accurately detect whether there is an object close to the electronic device through the built-in distance sensor, thereby improving the accuracy of detecting the electronic device.
As an alternative implementation, in the electronic device shown in fig. 6, the acquisition unit 502 may include:
and a start sub unit 5021 for starting the portrait recognition device built in the electronic device when the detection result of the detection unit 501 is yes.
In the embodiment of the present invention, the portrait recognition apparatus may include: the present disclosure relates to a camera module, a detection module, a confirmation module, and an acquisition module.
The searching subunit 5022 is configured to search for first image information through a camera of the portrait recognition apparatus started by the starting subunit 5021, where a matching degree between the first image information and the portrait model information reaches a preset degree threshold.
In the embodiment of the present invention, the preset degree threshold may be a portrait matching degree threshold obtained through calculation of big data, or may be a portrait matching degree threshold adjusted by a user.
As an alternative embodiment, the manner of finding the first image information by the finding subunit 5022 through the camera of the image recognition device may be:
the searching subunit 5022 starts the camera of the portrait recognition device, controls the camera to rotate at a constant speed from the maximum rotatable position on the left side of the camera end of the camera to the right side of the camera end of the camera within a rotatable range until the camera rotates to the maximum rotatable position on the right side of the camera end of the camera, and searches for first image information of which the matching degree with the portrait model information reaches a preset degree threshold value in the process of camera rotation. By implementing the implementation mode, the first image information meeting the conditions can be searched in an all-around manner, so that the function of the portrait recognition device for collecting the image information is more complete, and the accuracy of the portrait recognition device for collecting the first image information is improved.
The second determining subunit 5023 is configured to control the camera to perform a dimming and focusing operation on the first image information found by the finding subunit 5022 to obtain second image information, and determine that the second image information is portrait information.
In the embodiment of the invention, the light adjusting and focusing operation is that the camera adjusts the aperture to change the light inlet quantity, and the position between lenses in the camera is adjusted to change the focal length.
In this embodiment of the present invention, the second determining subunit 5023 controls the camera to perform a dimming and focusing operation on the first image information, and may also perform an optimization process on the first image information.
As an alternative embodiment, the manner in which the second determining subunit 5023 controls the camera to perform the dimming and focusing operation on the first image information to obtain the second image information, and determines that the second image information is the portrait information may be:
the second determining subunit 5023 controls the camera to perform dimming and focusing operations on the first image information to obtain second image information, stores the second image information in the cache of the electronic device, and clears the cache occupied by the first image information, and when the second image information is stored in the cache of the electronic device, the second determining subunit 5023 determines that the second image information is portrait information. By implementing the implementation mode, the first image information can be acquired and adjusted through the camera, the first image information is further replaced by the adjusted second image information in the cache, and the second image information is determined to be the portrait information, so that the second image information can be stored in the cache of the electronic equipment in advance, a storage basis of the portrait information is provided for judging whether the portrait information is matched with the portrait information of a legal user pre-stored in the electronic equipment, and the operation efficiency of the electronic equipment is improved.
In the embodiment of the present invention, by implementing the above-mentioned starting subunit 5021, searching subunit 5022 and second determining subunit 5023, the first image information can be acquired by using the portrait recognition device, and the camera is adjusted on the basis of selecting the first image information, so that the second image information with a higher quality than the first image information is obtained, and the second image information is determined to be the portrait information, so that the electronic device can obtain better portrait information, and thus the quality degree of the obtained portrait information is improved.
It can be seen that the method described in fig. 6 can accurately detect whether an object is close to the electronic device, accurately collect portrait information through the portrait recognition device and judge whether the collected portrait information matches with portrait information of a legal user pre-stored in the electronic device, and if the collected portrait information matches with the portrait information of the legal user, the internal program interface in the locked state is unlocked, so that the efficiency of interface unlocking is improved.
EXAMPLE seven
Referring to fig. 7, fig. 7 is a schematic structural diagram of another electronic device disclosed in the embodiment of the invention. The electronic device shown in fig. 7 is optimized from the electronic device shown in fig. 6. In contrast to the electronic apparatus shown in fig. 6, in the electronic apparatus shown in fig. 7, the determination unit 503 may include:
a collecting sub-unit 5031, configured to collect the face image data in the portrait information when the portrait information is collected by the collecting unit 502.
A calculating sub-unit 5032, configured to compare the facial image data acquired by the acquiring sub-unit 5031 with at least one pre-stored facial image data one by one, and calculate a matching degree score of each comparison result. The at least one pre-stored face image data is face image data of at least one legal portrait information pre-stored by the electronic equipment, and the at least one legal portrait information is portrait information of at least one legal user.
In the embodiment of the present invention, the calculating subunit 5032 compares the collected face image data with each pre-stored face image data stored in the electronic device one by one, and calculates a matching degree score of each comparison result, and records the matching degree score of each comparison result, where the matching degree score is used to indicate a similarity between the face image and the pre-stored face image, and the higher the score is, the higher the similarity is.
A second determining sub-unit 5033, configured to determine whether the maximum value of all the matching degree scores calculated by the calculating sub-unit 5032 is greater than a preset matching degree threshold.
In the embodiment of the invention, the preset matching degree threshold is obtained by calculating big data and is used for judging whether the face image data is matched with the pre-stored face image data, wherein if the matching degree of the face image data and the pre-stored face image data is higher than the preset matching degree threshold, the face image data is the face image data of a legal user.
A third determining sub-unit 5034, configured to determine that the portrait information matches with the portrait information of the valid user pre-stored in the electronic device when the determination result of the second determining sub-unit 5033 is yes.
As an optional implementation manner, in the electronic device shown in fig. 7, the determining unit 503 may further include:
an optimizing subunit 5035, configured to, if the determination result of the second determining subunit 5033 is negative, perform median filtering and noise removing processing on the facial image data acquired by the acquiring subunit 5031 to obtain optimized facial image data.
In the embodiment of the invention, the median filtering and noise removing method comprises the steps of selecting a template (the template is composed of a plurality of adjacent pixels) for the current pixel to be processed, sequencing the pixels of the template from small to large, and replacing the value of the original pixel by the median of the template.
A comparing sub-unit 5036, configured to compare the optimized facial image data obtained by the optimizing sub-unit 5035 with the pre-stored facial image data corresponding to the maximum value of all the calculated matching degree scores, so as to obtain an optimized comparison result.
In the embodiment of the present invention, the pre-stored face image data corresponding to the maximum value among all the calculated matching degree scores is the pre-stored face image data most similar to the face image data (the face image data before optimization).
The calculating sub-unit 5032 is further configured to calculate a first matching degree score of the optimized comparison result obtained by the comparing sub-unit 5036.
A third determining sub-unit 5037, configured to determine whether the first matching degree score calculated by the calculating sub-unit 5032 is greater than a preset matching degree threshold.
In the embodiment of the present invention, by implementing the acquiring sub-unit 5031, the calculating sub-unit 5032, the second determining sub-unit 5033, the third determining sub-unit 5034, the optimizing sub-unit 5035, the comparing sub-unit 5036, and the third determining sub-unit 5037, the matching degree of the acquired facial image data can be determined, and if the determination result is negative, the facial image data is optimized, and further the matching degree of the optimized facial image data is determined, so that the electronic device can accurately determine whether the current user is a valid user, thereby improving the accuracy of the determination of the electronic device.
The third determining sub-unit 5034 is specifically configured to determine that the portrait information matches with the portrait information of the valid user pre-stored in the electronic device when the determination result of the second determining sub-unit 5033 is no and the determination result of the third determining sub-unit 5037 is yes.
It can be seen that the method described in fig. 7 can accurately detect whether an object is close to the electronic device, and can accurately acquire portrait information through the portrait recognition device and judge whether the acquired portrait information matches with portrait information of a legal user pre-stored in the electronic device, and if the acquired portrait information matches with the portrait information of the legal user, the built-in program interface in the locked state is unlocked, so that the accuracy of detection and judgment of the electronic device is improved, and the efficiency of interface unlocking is improved.
Example eight
Referring to fig. 8, fig. 8 is a schematic structural diagram of another electronic device according to an embodiment of the disclosure. As shown in fig. 8, the electronic device may include:
a memory 801 in which executable program code is stored.
A processor 802 coupled to a memory 801.
The processor 802 calls the executable program code stored in the memory 801 to execute any one of the interface unlocking methods based on the electronic device in fig. 1 to 4.
The embodiment of the invention discloses a computer-readable storage medium which stores a computer program, wherein the computer program enables a computer to execute any one of the interface unlocking methods based on electronic equipment in figures 1-4.
It will be understood by those skilled in the art that all or part of the steps in the methods of the embodiments described above may be implemented by instructions associated with a program, which may be stored in a computer-readable storage medium, where the storage medium includes Read-Only Memory (ROM), Random Access Memory (RAM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), One-time Programmable Read-Only Memory (OTPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), compact disc-Read-Only Memory (CD-ROM), or other Memory, magnetic disk, magnetic tape, or magnetic tape, Or any other medium which can be used to carry or store data and which can be read by a computer.
The interface unlocking method based on the electronic device and the electronic device disclosed by the embodiment of the invention are described in detail, a specific example is applied in the description to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (8)

1. An interface unlocking method based on an electronic device is characterized by comprising the following steps:
when a built-in program interface of the electronic equipment is in a locked state, detecting whether an object approaches the electronic equipment; when the existence of the object is detected, determining the distance between the object and the electronic equipment, judging whether the distance is smaller than a preset distance threshold value, and if so, determining that the object is close to the electronic equipment;
if an object is close to the electronic equipment, detecting whether the time for the object to be close to the electronic equipment is greater than a detection time threshold value, if so, determining that the object is in a state of being close to the electronic equipment for a long time, starting a portrait recognition device built in the electronic equipment, and acquiring portrait information through the portrait recognition device, wherein the method comprises the following steps:
searching first image information through a camera of the portrait recognition device, wherein the matching degree between the first image information and the portrait model information reaches a preset degree threshold;
controlling the camera to perform dimming and focusing operations on the first image information to obtain second image information, storing the second image information into a cache of the electronic equipment, cleaning the cache occupied by the first image information, and when the second image information is stored into the cache of the electronic equipment, determining the second image information as portrait information by the electronic equipment;
if the portrait recognition device collects the portrait information, judging whether the portrait information is matched with the portrait information of a legal user prestored in the electronic equipment;
and if the built-in program interface is matched with the lock state, unlocking the built-in program interface in the lock state.
2. The method according to claim 1, wherein the detecting whether an object is near the electronic device when the built-in program interface of the electronic device is in a locked state comprises:
when a built-in program interface of the electronic equipment is in a locked state, detecting whether an object exists in an induction range of a distance inductor through the built-in distance inductor of the electronic equipment;
if yes, judging whether the first spacing distance is smaller than a preset distance threshold value; the first spacing distance is the distance between the object and the electronic equipment obtained by the induction of the distance inductor;
if so, determining that the object is close to the electronic equipment;
and if the distance is larger than or equal to the preset distance, determining that the object does not exist to approach the electronic equipment.
3. The method according to claim 1 or 2, wherein if the portrait information is collected by the portrait recognition device, the determining whether the portrait information matches portrait information of a legal user pre-stored in the electronic device includes:
if the portrait recognition device collects the portrait information, facial image data in the portrait information is collected;
comparing the collected face image data with at least one pre-stored face image data one by one, and calculating the matching degree score of each comparison result; the at least one pre-stored face image data is face image data of at least one legal portrait information pre-stored by the electronic equipment, and the at least one legal portrait information is portrait information of at least one legal user;
judging whether the maximum value of all the calculated matching degree scores is greater than a preset matching degree threshold value or not;
and if the maximum value of all the calculated matching degree scores is greater than the preset matching degree threshold value, determining that the portrait information is matched with the portrait information of the legal user pre-stored in the electronic equipment.
4. The method of claim 3, further comprising:
if the maximum value of all the calculated matching degree scores is smaller than or equal to the preset matching degree threshold value, performing median filtering and noise removing processing on the collected face image data to obtain optimized face image data;
comparing the optimized face image data with prestored face image data corresponding to the maximum value in all the calculated matching degree scores to obtain an optimized comparison result;
calculating a first matching degree score of the optimization comparison result;
judging whether the first matching degree score is larger than the preset matching degree threshold value or not;
and if the first matching degree score is larger than the preset matching degree threshold value, triggering and executing the step of determining that the portrait information is matched with the portrait information of the legal user pre-stored in the electronic equipment.
5. An electronic device, comprising:
the detection unit is used for detecting whether an object approaches the electronic equipment or not when a built-in program interface of the electronic equipment is in a locked state, determining the distance between the object and the electronic equipment when the object is detected to exist, judging whether the distance is smaller than a preset distance threshold or not, and determining that the object approaches the electronic equipment if the distance is smaller than the preset distance threshold; detecting whether the time for an object to approach the electronic equipment is greater than a detection time threshold value, and if so, determining that the object is in a state of approaching the electronic equipment for a long time;
the acquisition unit is used for starting a portrait recognition device built in the electronic equipment and acquiring portrait information through the portrait recognition device when the detection result of the detection unit is positive; the acquisition unit includes:
the starting unit is used for starting a portrait recognition device built in the electronic equipment when the detection result of the detection unit is positive;
the searching subunit is used for searching first image information through a camera of the portrait recognition device started by the starting subunit, wherein the matching degree between the first image information and the portrait model information reaches a preset degree threshold value;
the second determining subunit is used for controlling the camera to perform dimming and focusing operations on the first image information to obtain second image information, storing the second image information into a cache of the electronic equipment, and cleaning the cache occupied by the first image information;
the judging unit is used for judging whether the portrait information is matched with the portrait information of a legal user prestored in the electronic equipment or not when the portrait information is collected by the collecting unit;
and the unlocking unit is used for unlocking the built-in program interface in the locking state when the judgment result of the judgment unit is yes.
6. The electronic device according to claim 5, wherein the detection unit includes:
the detection subunit is used for detecting whether an object exists in the sensing range of a distance sensor built in the electronic equipment or not through the distance sensor built in the electronic equipment when a built-in program interface of the electronic equipment is in a locked state;
the first judging subunit is used for judging whether the first spacing distance is smaller than a preset distance threshold value or not when the detection result of the detecting subunit is positive; the first spacing distance is the distance between the object and the electronic equipment obtained by the induction of the distance inductor;
the first determining subunit is configured to determine that the object is close to the electronic device when the first determining subunit determines that the first distance is smaller than the preset distance threshold;
the first determining subunit is further configured to determine that the object does not exist to approach the electronic device when the first determining subunit determines that the first separation distance is greater than or equal to the preset distance threshold.
7. The electronic device according to claim 5 or 6, wherein the determination unit includes:
the acquisition subunit is used for acquiring the face image data in the portrait information when the acquisition unit acquires the portrait information;
the calculating subunit is used for comparing the facial image data acquired by the acquiring subunit with at least one pre-stored facial image data one by one and calculating the matching degree score of each comparison result; the at least one pre-stored face image data is face image data of at least one legal portrait information pre-stored by the electronic equipment, and the at least one legal portrait information is portrait information of at least one legal user;
the second judging subunit is used for judging whether the maximum value of all the matching degree scores calculated by the calculating subunit is greater than a preset matching degree threshold value or not;
and the third determining subunit is used for determining that the portrait information is matched with the portrait information of the legal user pre-stored in the electronic equipment when the judgment result of the second judging subunit is yes.
8. The electronic device according to claim 7, wherein the determination unit further includes:
the optimization subunit is configured to, when the judgment result of the second judgment subunit is negative, perform median filtering and noise removal processing on the face image data acquired by the acquisition subunit to obtain optimized face image data;
the comparison subunit is used for comparing the optimized face image data obtained by the optimization subunit with prestored face image data corresponding to the maximum value in all the calculated matching degree scores to obtain an optimized comparison result;
the calculating subunit is further configured to calculate a first matching degree score of the optimized comparison result obtained by the comparing subunit;
a third determining subunit, configured to determine whether the first matching degree score calculated by the calculating subunit is greater than the preset matching degree threshold;
the third determining subunit is further configured to determine that the portrait information matches with portrait information of a valid user pre-stored in the electronic device when the determination result of the second determining subunit is negative and the determination result of the third determining subunit is positive.
CN201711266127.8A 2017-12-05 2017-12-05 Interface unlocking method based on electronic equipment and electronic equipment Active CN107918727B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711266127.8A CN107918727B (en) 2017-12-05 2017-12-05 Interface unlocking method based on electronic equipment and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711266127.8A CN107918727B (en) 2017-12-05 2017-12-05 Interface unlocking method based on electronic equipment and electronic equipment

Publications (2)

Publication Number Publication Date
CN107918727A CN107918727A (en) 2018-04-17
CN107918727B true CN107918727B (en) 2020-04-14

Family

ID=61898382

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711266127.8A Active CN107918727B (en) 2017-12-05 2017-12-05 Interface unlocking method based on electronic equipment and electronic equipment

Country Status (1)

Country Link
CN (1) CN107918727B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108919949A (en) * 2018-06-25 2018-11-30 联想(北京)有限公司 A kind of state switching method and device
CN109165911A (en) * 2018-07-27 2019-01-08 重庆小雨点小额贷款有限公司 A kind of business approval method, apparatus, server and storage medium
CN109144268A (en) * 2018-09-04 2019-01-04 爱笔(北京)智能科技有限公司 The state switching method and device of a kind of electronic equipment
CN110162950A (en) * 2019-05-27 2019-08-23 Oppo广东移动通信有限公司 Electronic equipment and its control method
CN110321174A (en) * 2019-06-25 2019-10-11 Oppo广东移动通信有限公司 A kind of starting-up method and device, equipment, storage medium
CN111177681B (en) * 2019-12-31 2023-01-17 联想(北京)有限公司 Identification verification method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105447474A (en) * 2015-12-15 2016-03-30 3M创新有限公司 Human image identification method and human image identification apparatus
CN106055957A (en) * 2016-05-31 2016-10-26 广东欧珀移动通信有限公司 Fingerprint unlocking method and terminal
CN106066953A (en) * 2016-05-27 2016-11-02 广东欧珀移动通信有限公司 A kind of unlocked by fingerprint control method and terminal unit
CN106096372A (en) * 2016-06-21 2016-11-09 广东欧珀移动通信有限公司 A kind of unlocked by fingerprint method and terminal
CN107423592A (en) * 2016-05-24 2017-12-01 富泰华工业(深圳)有限公司 Unlocking system and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105447474A (en) * 2015-12-15 2016-03-30 3M创新有限公司 Human image identification method and human image identification apparatus
CN107423592A (en) * 2016-05-24 2017-12-01 富泰华工业(深圳)有限公司 Unlocking system and method
CN106066953A (en) * 2016-05-27 2016-11-02 广东欧珀移动通信有限公司 A kind of unlocked by fingerprint control method and terminal unit
CN106055957A (en) * 2016-05-31 2016-10-26 广东欧珀移动通信有限公司 Fingerprint unlocking method and terminal
CN106096372A (en) * 2016-06-21 2016-11-09 广东欧珀移动通信有限公司 A kind of unlocked by fingerprint method and terminal

Also Published As

Publication number Publication date
CN107918727A (en) 2018-04-17

Similar Documents

Publication Publication Date Title
CN107918727B (en) Interface unlocking method based on electronic equipment and electronic equipment
KR101696602B1 (en) Biometric authentication using gesture
US7813532B2 (en) Apparatus and method for recognizing fingerprint dually
CN105844128B (en) Identity recognition method and device
WO2016165172A1 (en) Terminal system management method and device
CN108804006B (en) Unlocking method, device, equipment and storage medium for wearable equipment
JP2019502198A (en) Finger joint and finger vein based biometric authentication method and apparatus
WO2017031969A1 (en) Fingerprint verification method, fingerprint verification device and terminal
WO2018214499A1 (en) Method and device for starting fingerprint recognition, and intelligent terminal
WO2016110061A1 (en) Terminal unlocking method and device based on eye print recognition
EP3200126B1 (en) Biometric information process device, biometric information process method and biometric information process program
KR20170123950A (en) Access Control Method and System using Face Recognition
CN105138881A (en) Screen locking method and device
CN105550561A (en) Identification method and device of mobile terminal
WO2017173823A1 (en) Fingerprint-controlled flame-producing method and device
CN107408208B (en) Method and fingerprint sensing system for analyzing a biometric of a user
KR102151474B1 (en) Non contract fingerprint recognition method using smart terminal
WO2017041358A1 (en) User identity recognition method and apparatus, and mobile terminal
JP4320775B2 (en) Face recognition device
KR101006861B1 (en) Fingerprint Authentication Method
WO2019095097A1 (en) Identity authentication method for electronic terminal, and electronic terminal
KR102135959B1 (en) Fast fingerprint authorizing method and apparatus using priority of selecting fingerprint template
KR101269107B1 (en) Method for recognizing hand gesture using camera and thereof apparatus
CN112800886B (en) Face recognition system and method based on machine vision
CN110941985A (en) Mobile terminal, fingerprint verification method and system thereof

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