CN108197558A - Face identification method, device, storage medium and electronic equipment - Google Patents

Face identification method, device, storage medium and electronic equipment Download PDF

Info

Publication number
CN108197558A
CN108197558A CN201711466318.9A CN201711466318A CN108197558A CN 108197558 A CN108197558 A CN 108197558A CN 201711466318 A CN201711466318 A CN 201711466318A CN 108197558 A CN108197558 A CN 108197558A
Authority
CN
China
Prior art keywords
face
user
faceform
human face
action
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711466318.9A
Other languages
Chinese (zh)
Inventor
陈岩
刘耀勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711466318.9A priority Critical patent/CN108197558A/en
Publication of CN108197558A publication Critical patent/CN108197558A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • 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/174Facial expression recognition
    • 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/20Movements or behaviour, e.g. gesture recognition
    • 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/40Spoof detection, e.g. liveness detection
    • G06V40/45Detection of the body part being alive

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Engineering & Computer Science (AREA)
  • Evolutionary Computation (AREA)
  • Evolutionary Biology (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Psychiatry (AREA)
  • Social Psychology (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Collating Specific Patterns (AREA)

Abstract

The embodiment of the present application discloses a kind of face identification method, device, storage medium and electronic equipment;The method includes:Obtain the faceform of user, and faceform is matched with default faceform, if it fits through, then corresponding human face action is generated according to faceform to instruct, receive human face action of the user according to human face action instruction input, and judge whether the completeness of human face action meets preset value, if satisfied, then determining that recognition of face is verified.The embodiment of the present application further can verify human face action on the basis of faceform verifies, effectively prevent non-permission user and crack permission using picture or face mold etc., so as to improve the accuracy of recognition of face and safety.

Description

Face identification method, device, storage medium and electronic equipment
Technical field
This application involves electronic device fields, and in particular to a kind of face identification method, device, storage medium and electronics are set It is standby.
Background technology
With the development of terminal technology, terminal have begun from simply provided in the past verbal system become gradually one it is logical With the platform of running software.The platform no longer to provide call management as the main purpose, and be to provide one include call management, Running environment including the types of applications softwares such as Entertainment, office account, mobile payment, is popularized with a large amount of, deep Enter to the every aspect of people’s lives, work.
Face is the important biological characteristic of the mankind, therefore develops the relevant research of many faces.Wherein, one Important application is recognition of face, and the feature of face vision is compared by computer analysis, carries out identity discriminating.Utilizing people When face recognizes the foundation as gate inhibition's keyholed back plate, the management that can save contactless card builds expense, can also remove the personnel of disengaging gate inhibition from Forget the puzzlement with card.Compared to the identification mode of other biological feature, human face recognition using non-intruding, non-contacting mode into Row, is easily received by most people.
However, flourishing due to world-wide web and community network, the photo and film of a face can easily by Acquired by other people.In addition, the technology of various output element (such as printer, display) is constantly progressive, output element is exportable Quality, similarity high photo or film.Therefore, it easily cheats or misses easily using the photo or film of high-quality output Lead face identification system.
Invention content
The embodiment of the present application provides a kind of face identification method, device, storage medium and electronic equipment, can promote face The accuracy of identification.
In a first aspect, the embodiment of the present application provides a kind of face identification method, including:
The faceform of user is obtained, and the faceform is matched with default faceform;
If fitting through, corresponding human face action is generated according to the faceform and is instructed;
Human face action of the user according to the human face action instruction input is received, and judges the completeness of the human face action Whether preset value is met;
If satisfied, then determine that the recognition of face is verified.
Second aspect, the embodiment of the present application additionally provide a kind of face identification device, including:Acquisition module, matching module, Generation module, receiving module, judgment module and determining module;
The acquisition module, for obtaining the faceform of user;
The matching module, for the faceform to be matched with default faceform;
The generation module, for when the matching module fits through, being generated according to the faceform corresponding Human face action instructs;
The receiving module, for receiving human face action of the user according to the human face action instruction input;
The judgment module, for judging whether the completeness of the human face action meets preset value;
The determining module, for when the action judgment module is judged as YES, determining that the recognition of face verification is logical It crosses.
The third aspect, the embodiment of the present application also provide a kind of storage medium, are stored thereon with computer program, the calculating The step of machine program realizes above-mentioned face identification method when being executed by processor.
Fourth aspect, the embodiment of the present application also provide a kind of electronic equipment, including memory, processor and are stored in storage On device and the computer program that can run on a processor, the processor realize above-mentioned recognition of face side when performing described program The step of method.
Face identification method provided by the embodiments of the present application obtains the faceform of user first, and by faceform and in advance If faceform is matched, if fitting through, corresponding human face action is generated according to faceform and is instructed, receives user's root According to the human face action of human face action instruction input, and judge whether the completeness of human face action meets preset value, if satisfied, then really Determine recognition of face to be verified.The embodiment of the present application further can carry out human face action on the basis of faceform verifies Verification, effectively prevents non-permission user and cracks permission using picture or face mold etc., so as to improve the standard of recognition of face True property and safety.
Description of the drawings
In order to illustrate more clearly of the technical solution in the embodiment of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present application, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is a kind of flow diagram of face identification method provided by the embodiments of the present application.
Fig. 2 is another flow diagram of face identification method provided by the embodiments of the present application.
Fig. 3 is a kind of application scenarios schematic diagram of face identification method provided by the embodiments of the present application.
Fig. 4 is another application scenarios schematic diagram of face identification method provided by the embodiments of the present application.
Fig. 5 is a kind of structure diagram of face identification device provided by the embodiments of the present application.
Fig. 6 is another structure diagram of face identification device provided by the embodiments of the present application.
Fig. 7 is a kind of structure diagram of electronic equipment provided by the embodiments of the present application.
Fig. 8 is another structure diagram of electronic equipment provided by the embodiments of the present application.
Specific embodiment
Schema is please referred to, wherein identical element numbers represent identical component, the principle of the application is to implement one It is illustrated in appropriate computing environment.The following description be based on illustrated the application specific embodiment, should not be by It is considered as limitation the application other specific embodiments not detailed herein.
In the following description, the specific embodiment of the application will be with reference to as the step performed by one or multi-section computer And symbol illustrates, unless otherwise stating clearly.Therefore, these steps and operation will have to mention for several times is performed by computer, this paper institutes The computer execution of finger includes by representing with the computer processing unit of the electronic signal of the data in a structuring pattern Operation.This operation is converted at the data or the position being maintained in the memory system of the computer, reconfigurable Or in addition change the running of the computer in a manner of known to the tester of this field.The data structure that the data are maintained For the provider location of the memory, there is the specific feature as defined in the data format.But the application principle is with above-mentioned text Word illustrates that be not represented as a kind of limitation, this field tester will appreciate that plurality of step as described below and behaviour Also it may be implemented in hardware.
The principle of the application is grasped using many other wide usages or specific purpose operation, communication environment or configuration Make.The example of the known arithmetic system for being suitable for the application, environment and configuration may include (but not limited to) hold phone, Personal computer, server, multicomputer system, system, body frame configuration computer and distributed arithmetic ring based on micro computer Border, which includes any above systems or device.
It will be described in detail respectively below.
The present embodiment will be described from the angle of face identification device, which can specifically be integrated in electronic equipment In, which can connect the network equipment (such as smart mobile phone, tablet computer) for mobile internet and have the electricity of shooting function Sub- equipment.
Referring initially to Fig. 1, Fig. 1 is a kind of flow diagram of face identification method provided by the embodiments of the present application, including Following steps:
Step S101 obtains the faceform of user, and faceform is matched with default faceform.
Wherein, above-mentioned faceform can be the facial image of two dimension, or three-dimensional facial image.In this implementation In example, default faceform's database that ownership limits the use of family can be prestored in electronic equipment, such as can in the database To store the faceform of user oneself and household, after the faceform of active user is got, the face can be extracted Characteristic information in model, and the characteristic information of the faceform in default faceform's database is matched.
In one embodiment, facial image of the above-mentioned faceform for two dimension.Active user is obtained by front camera Facial image, then judge whether current face's image matches by recognition of face, wherein, exist in the prior art there are many The basic skills of recognition of face, including:The face identification method of geometric properties, the geometric properties can be eye, nose, mouth etc. Shape and the geometrical relationship (such as mutual distance) between them;The face identification method of line segment distance (LHD), this method It is identified based on the line chart extracted from face gray level image;In addition, the also recognition of face side of elastic graph matching Method etc..Recognition of face belongs to the scope of the prior art, and details are not described herein by the present invention, any face recognition technology It is applied to the present invention.Pass through face recognition technology, you can judge whether preset faceform's database lookup to it is current The sample that user matches.
In one embodiment, the accuracy for promotion recognition of face, above-mentioned faceform can be three-dimensional faceform. Two-dimension human face image can be obtained by front camera at this time, wherein two-dimension human face image includes color information, then passes through scape Deep camera obtains depth image, and depth image includes the depth of view information of face.Finally by above-mentioned two-dimension human face image and Depth image is matched the three-dimensional face images to generate user.
Wherein, the color information in above-mentioned two-dimension human face image can be that two-dimension human face image is shown on electronic equipment screen When showing, screen currently shows the current rgb value of the pixel of picture, can use algorithm obtain query region in pixel work as Preceding rgb value, used algorithm can be bitmap.getPixel (int x, int y) algorithm, specifically obtain and inquire Process sees the prior art, does not repeat further herein.
Specifically, three-dimensional face images are RGB-D (color-depth) figure.In above-described embodiment, by depth map Before color information in picture and two-dimension human face image is matched, it is also necessary to judge the depth of each pixel in depth image Whether information and the color information of pixel each in two-dimension human face image are corresponding, if so, can be directly in conjunction with each pixel Depth information and color information are that can obtain the RGB-D figures namely 3-D view of face.If each pixel in depth image Depth information and the color information of pixel each in two-dimension human face image be not corresponding, then needs according to camera and depth of field camera The distance between and calibration information the color information of each pixel in depth image and two-dimension human face image is aligned, then The depth information of each pixel after alignment and color information are combined again and can obtain the corresponding RGB-D figures of target.
In an embodiment, before the color information in depth image and two-dimension human face image is matched, Two-dimension human face image can also be pre-processed, which can include image enhancement, smoothing processing, noise reduction process etc. Deng.
Step S102 if fitting through, generates corresponding human face action according to faceform and instructs.
Wherein, the instruction of above-mentioned human face action can be phonetic order, literal order, animation instructions, be moved based on interface element At least one of the instruction that presents a demonstration, the indirect instruction of task based access control scene.Above-mentioned human face action can be moved for human face expression At least one of work, human eye action and mouth action.
In an embodiment, above-mentioned human face action instruction can be that facial expressions and acts instruct.For example, when faceform matches By rear, a literal order " XX expressions please be make " or one full animation expression of generation are generated to prompt user etc..It is above-mentioned Full animation expression can be the expression that a cartoon figure or animal etc. are personalized, before faceform fits through, cartoon Personage is in normal emotional state, and after faceform fits through, the expression of cartoon figure changes, and user is prompted to do Go out corresponding expression.
In other embodiment, the instruction of above-mentioned human face action can also be human eye action command, for example, eyeball to some Direction rotation or repeatedly blink etc..Above-mentioned human face action instruction can also be that mouth action instructs, for example open one's mouth, and stuck out one's tongue Head, beep mouth etc..
In an embodiment, above-mentioned human face action instruction is generated according to faceform, specifically, can be according to people Face model determines the more apparent position of feature in face, then generates human face action instruction according to the position.Such as The larger user of eyes can generate human eye action instruction, and mouth action instruction can be generated for the thicker user of lip, this The benefit of kind way is the accuracy rate improved when electronic equipment carries out human face action identification in subsequent step.
Step S103 receives human face action of the user according to human face action instruction input, and judges the completion of human face action Whether degree meets preset value, if satisfied, step S104 is then performed, if not satisfied, then re-executing step S102.
It, may be with the standard faces of electronic equipment in view of user when making corresponding action according to human face action instruction The radian of lip, the amplitude of Rotation of eyeball, exaggeration degree of facial expression etc. all can shadows when acting there are deviation, for example opening one's mouth The completeness to human face action is rung, therefore a preset value can be set, as long as being preset when the completeness of human face action reaches this Value, you can judge that user completes above-mentioned human face action instruction.
Step S104 determines that recognition of face is verified.
In one embodiment, the time that user completes above-mentioned human face action instruction can also be obtained, if user is when default Between above-mentioned human face action instruction is not completed in section, it is determined that recognition of face authentication failed simultaneously regenerates human face action instruction.If User is made that the action specified, and completeness meets preset value in the preset time period after generation human face action instruction, then Determine that recognition of face is verified.
In one embodiment, if the number of user's recognition of face authentication failed is more than preset times, electronic equipment can be with Directly locked and store active user's image.Wherein, above-mentioned recognition of face authentication failed includes faceform's mismatch, uses Family does not complete human face action instruction in preset time period and human face action completeness is not up to preset value.
In the embodiment of the present invention, above-mentioned electronic equipment can be any equipment with face identification functions, such as:Hand Machine, tablet computer (Tablet Personal Computer), laptop computer (Laptop Computer), individual digital help Manage (personal digital assistant, abbreviation PDA), mobile Internet access device (Mobile Internet Device, ) or wearable device (Wearable Device) etc. MID.
From the foregoing, it will be observed that the embodiment of the present application can obtain the faceform of user, and by faceform and default face mould Type is matched, if fitting through, is generated corresponding human face action according to faceform and is instructed, receive user and moved according to face Make the human face action of instruction input, and judge whether the completeness of human face action meets preset value, if satisfied, then determining that face is known It is not verified.The embodiment of the present application further can verify human face action have on the basis of faceform verifies Effect avoids non-permission user and cracks permission using picture or face mold etc., so as to improve the accuracy of recognition of face and peace Quan Xing.
According to the description of a upper embodiment, illustrate the face identification method of the application by further below.
Referring to Fig. 2, Fig. 2 is the flow diagram of another face identification method provided by the embodiments of the present application, including Following steps:
Step S201 obtains the facial image of user by the first camera.
In embodiments of the present invention, can two-dimension human face image, wherein two-dimension human face image be obtained by front camera Including color information.Wherein, the color information in above-mentioned two-dimension human face image can be two-dimension human face image in electronic equipment screen When being shown on curtain, screen currently shows the current rgb value of the pixel of picture, algorithm can be used to obtain pixel in query region The current rgb value of point, used algorithm can be bitmap.getPixel (int x, int y) algorithm, specific to obtain And query process sees the prior art, does not repeat further herein.
Step S202 obtains the face depth of view information of user by second camera.
For example, obtaining depth image by depth of field camera, depth image includes the depth of view information of face.
In other embodiment, above-mentioned depth of field camera can also be replaced with ultrasonic sensor, ultrasonic wave transmitting Device will be reflected back toward ultrasonic wave reception when ultrasonic wave encounters barrier for the ultrasonic wave of target object transmitting preset range Device.Wherein, ultrasonic receiver receives the sound wave of target object reflection and records from ultrasonic wave emission time to sound wave automatically Time between at the time of being reflected back by target object.Because of transmission speed of the sound wave in transmission medium known to us, in this way Distance between can calculating from sonic generator to target object.The ultrasound that electronic equipment receives ultrasonic sensor Wave signal is handled, you can obtains the depth image of face, depth image includes the depth of view information of face.
Step S203, according to facial image and the three-dimensional face model of face depth of view information generation user, and by face mould Type is matched with default faceform.
Specifically, three-dimensional face images are RGB-D (color-depth) figure.In above-described embodiment, by depth map Before color information in picture and two-dimension human face image is matched, it is also necessary to judge the depth of each pixel in depth image Whether information and the color information of pixel each in two-dimension human face image are corresponding, if so, can be directly in conjunction with each pixel Depth information and color information are that can obtain the RGB-D figures namely 3-D view of face.If each pixel in depth image Depth information and the color information of pixel each in two-dimension human face image be not corresponding, then needs according to camera and depth of field camera The distance between and calibration information the color information of each pixel in depth image and two-dimension human face image is aligned, then The depth information of each pixel after alignment and color information are combined again and can obtain the corresponding RGB-D figures of target.
In the present embodiment, the default three-dimensional face model data that ownership limits the use of family can be prestored in electronic equipment The three-dimensional face model of user oneself and household can be stored in library, such as the database, is getting the three of active user After tieing up faceform, the characteristic information in the three-dimensional face model can be extracted, and in default three-dimensional face model database The characteristic information of three-dimensional face model matched.
Step S204 if fitting through, generates corresponding human face action according to faceform and instructs.
Wherein, the instruction of above-mentioned human face action can be phonetic order, literal order, animation instructions, be moved based on interface element At least one of the instruction that presents a demonstration, the indirect instruction of task based access control scene.Above-mentioned human face action can be moved for human face expression At least one of work, human eye action and mouth action.
In one embodiment, above-mentioned human face action instruction is generated according to faceform, specifically, can be according to face Model determines the more apparent position of feature in face, then generates human face action instruction according to the position.Such as eye The larger user of eyeball can generate human eye action instruction, by taking literal order as an example, as shown in figure 3, when three-dimensional face model matches By when, generate literal order " eyeball is rotated according to direction shown in arrow ", with prompt user perform corresponding actions.
Step S205 instructs the position of multiple characteristic points in the facial image for obtaining user according to human face action.
Step S206 according to the relative distance between the position of multiple characteristic points, determines human face action input by user, and Judge whether the completeness of human face action meets preset value, if satisfied, step S207 is then performed, if not satisfied, then continuing to execute Step S204.
In the embodiment of the present application, the position of features described above point includes the position of human eye feature point.It is above-mentioned according to multiple spies The step of levying the relative distance between the position of point, determining human face action input by user can include:
According to the relative distance between the position of multiple human eye feature points, offset distance and the direction of pupil are obtained;
According to the offset distance of pupil and direction, Rotation of eyeball action input by user is determined.
As shown in figure 4, Fig. 4 is the schematic diagram of a scenario of another face identification method provided in an embodiment of the present invention.It is above-mentioned The position of human eye feature point can include position of lead to the hole site, the position of upper lower eyelid and left and right canthus etc., according to above-mentioned Characteristic point position can determine that the distance that pupil deviates to the right namely human face action input by user turn right for eyeball.Into one Step judges whether rotation amplitude meets preset value, if satisfied, step S207 is then further performed, if not satisfied, then regenerating Human face action instructs.
Step S207, obtains the face temperature of user, and whether judges face temperature in preset temperature section, if then Determine that recognition of face is proved to be successful, if otherwise determining recognition of face authentication failed.
In the embodiment of the present application, in order to further enhance the accuracy of recognition of face, it can also judge active user's Whether faceform is live body, especially by whether face temperature is judged in preset temperature section, if being in, it is determined that current The faceform of user is live body and determines that recognition of face is proved to be successful.People specifically can be obtained using infrared temperature sensor The temperature of face, above-mentioned preset temperature section can be 36 degree or so of normal body temperature, such as 34 degree to 38 degree, and specific setting range can It is adjusted according to the demand of user.
From the foregoing, it will be observed that the embodiment of the present application can obtain the facial image of user by the first camera, taken the photograph by second As the face depth of view information of head acquisition user, the three-dimensional face model of user is generated according to facial image and face depth of view information, And match faceform with default faceform, if fitting through, corresponding face is generated according to faceform and is moved It instructs, the position of multiple characteristic points in the facial image for obtaining user is instructed according to human face action, according to multiple characteristic points Position between relative distance, determine human face action input by user, and judge human face action completeness whether meet it is pre- If value, if satisfied, then obtaining the face temperature of user, and whether face temperature is judged in preset temperature section, if then really Determine recognition of face to be proved to be successful, if otherwise determining recognition of face authentication failed.The embodiment of the present application can be verified in faceform On the basis of further human face action is verified, effectively prevent non-permission user and cracked using picture or face mold etc. Permission, so as to improve the accuracy of recognition of face and safety.
For the ease of preferably implementing face identification method provided by the embodiments of the present application, the embodiment of the present application additionally provides A kind of device based on above-mentioned face identification method.Wherein the meaning of noun is identical with above-mentioned face identification method, specific real Existing details can be with the explanation in reference method embodiment.
Referring to Fig. 5, Fig. 5 is a kind of structure diagram of face identification device provided by the embodiments of the present application, the face Identification device 30 includes:Acquisition module 301, matching module 302, generation module 303, receiving module 304, judgment module 305 with And determining module 306;
Acquisition module 301, for obtaining the faceform of user;
Matching module 302, for faceform to be matched with default faceform;
Generation module 303, for when matching module 302 fits through, generating corresponding face according to faceform and moving It instructs;
Receiving module 304, for receiving human face action of the user according to human face action instruction input;
Judgment module 305, for judging whether the completeness of human face action meets preset value;
Determining module 306, for when action judgment module 305 is judged as YES, determining that recognition of face is verified.
With continued reference to Fig. 6, in an embodiment, acquisition module 301 specifically includes:First acquisition submodule 3011, Two acquisition submodules 3012 and generation submodule 3013;
First acquisition submodule 3011, for passing through the facial image that the first camera obtains user;
Second acquisition submodule 3012, for obtaining the face depth of view information of user by second camera;
Submodule 3013 is generated, for the three-dimensional face model according to facial image and face depth of view information generation user.
Receiving module 304 specifically includes:Receiving submodule 3041 and determination sub-module 3042;
Receiving submodule 3041, for instructing multiple characteristic points in the facial image for obtaining user according to human face action Position;
Determination sub-module 3042 for the relative distance between the position according to multiple characteristic points, determines input by user Human face action.
From the foregoing, it will be observed that face identification device 30 provided by the embodiments of the present application can obtain user's by acquisition module 301 Faceform, matching module 302 matches faceform with default faceform, if fitting through, generation module 303 Corresponding human face action instruction is generated according to faceform, receiving module 304 receives people of the user according to human face action instruction input Face acts, and judgment module 305 judges whether the completeness of human face action meets preset value, if satisfied, then determining module 306 determines Recognition of face is verified.The embodiment of the present application further can test human face action on the basis of faceform verifies Card, effectively prevents non-permission user and cracks permission using picture or face mold etc., so as to improve the accurate of recognition of face Property and safety.
The application also provides a kind of storage medium, is stored thereon with computer program, which is characterized in that the computer journey The face identification method that implementation method embodiment provides when sequence is executed by processor.
The application also provides a kind of electronic equipment, and including memory, processor and storage on a memory and can handled The computer program run on device, which is characterized in that implementation method embodiment provides when the processor performs described program Face identification method.
A kind of electronic equipment is also provided in the another embodiment of the application, which can be smart mobile phone, tablet Apparatus such as computer.As shown in fig. 7, electronic equipment 400 includes processor 401, memory 402.Wherein, processor 401 and storage Device 402 is electrically connected.
Processor 401 is the control centre of electronic equipment 400, utilizes various interfaces and the entire electronic equipment of connection Various pieces, by operation or load store, application program in memory 402 and calling is stored in memory 402 Data, perform electronic equipment various functions and processing data, so as to electronic equipment carry out integral monitoring.
In the present embodiment, processor 401 in electronic equipment 400 can according to the steps, by one or one with On application program process it is corresponding instruction be loaded into memory 402, and memory is stored in run by processor 401 Application program in 402, so as to fulfill various functions:
The faceform of user is obtained, and the faceform is matched with default faceform;
If fitting through, corresponding human face action is generated according to the faceform and is instructed;
Human face action of the user according to the human face action instruction input is received, and judges the completeness of the human face action Whether preset value is met;
If satisfied, then determine that the recognition of face is verified.
Referring to Fig. 8, Fig. 8 is electronic devices structure schematic diagram provided by the embodiments of the present application.The electronic equipment 500 can be with Including radio frequency (RF, Radio Frequency) circuit 501, include one or more computer readable storage mediums Memory 502, input unit 503, display unit 504, sensor 504, voicefrequency circuit 506, Wireless Fidelity (WiFi, Wireless Fidelity) module 507, including there are one or more than one processing core processor 508 and power supply 509 grade components.It will be understood by those skilled in the art that the electronic devices structure shown in Fig. 8 is not formed to electronic equipment It limits, can include either combining certain components or different components arrangement than illustrating more or fewer components.
Radio circuit 501 can be used for receiving and sending messages or communication process in signal send and receive, particularly, by base station Downlink information receive after, transfer to one or more than one processor 508 handled;In addition, the data for being related to uplink are sent To base station.In general, radio circuit 501 includes but not limited to antenna, at least one amplifier, tuner, one or more oscillations Device, subscriber identity module (SIM, Subscriber Identity Module) card, transceiver, coupler, low noise amplification Device (LNA, Low Noise Amplifier), duplexer etc..In addition, radio circuit 501 can also by radio communication with network It communicates with other equipment.The wireless communication can use any communication standard or agreement, including but not limited to global mobile communication System (GSM, Global System of Mobile communication), general packet radio service (GPRS, General Packet Radio Service), CDMA (CDMA, Code Division Multiple Access), wideband code division it is more Location (WCDMA, Wideband Code Division Multiple Access), long term evolution (LTE, Long Term Evolution), Email, short message service (SMS, Short Messaging Service) etc..
Memory 502 can be used for storage application program and data.Include and can hold in the application program that memory 502 stores Line code.Application program can form various functions module.Processor 508 is stored in the application journey of memory 502 by operation Sequence, so as to perform various functions application and data processing.Memory 502 can mainly include storing program area and storage data Area, wherein, storing program area can storage program area, needed at least one function application program (such as sound-playing function, Image player function etc.) etc.;Storage data field can be stored uses created data (such as audio number according to electronic equipment According to, phone directory etc.) etc..In addition, memory 502 can include high-speed random access memory, non-volatile deposit can also be included Reservoir, for example, at least a disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 502 can also include Memory Controller, to provide the access of processor 508 and input unit 503 to memory 502.
Input unit 503 can be used for receive input number, character information or user's characteristic information (such as fingerprint) and Generate the keyboard related with user setting and function control, mouse, operating lever, optics or the input of trace ball signal.Specifically Ground, in a specific embodiment, input unit 503 may include touch sensitive surface and other input equipments.Touch sensitive surface, Referred to as touch display screen or Trackpad, collect user on it or neighbouring touch operation (such as user using finger, touch The operations of any suitable object or attachment on touch sensitive surface or near touch sensitive surface such as pen), and according to preset Formula drives corresponding attachment device.Optionally, touch sensitive surface may include both touch detecting apparatus and touch controller. Wherein, the touch orientation of touch detecting apparatus detection user, and the signal that touch operation is brought is detected, transmit a signal to touch Controller;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processing Device 508, and the order that processor 508 is sent can be received and performed.
Display unit 504 can be used for display by information input by user or be supplied to the information and electronic equipment of user Various graphical user interface, these graphical user interface can be made of figure, text, icon, video and its arbitrary combination. Display unit 504 may include display panel.Optionally, liquid crystal display (LCD, Liquid Crystal may be used Display), display surface is configured in the forms such as Organic Light Emitting Diode (OLED, Organic Light-Emitting Diode) Plate.Further, touch sensitive surface can cover display panel, when touch sensitive surface is detected on it or after neighbouring touch operation, Processor 508 is sent to determine the type of touch event, is followed by subsequent processing device 508 according to the type of touch event in display panel It is upper that corresponding visual output is provided.Although in fig. 8, touch sensitive surface is realized with display panel is the component independent as two Input and input function, but in some embodiments it is possible to touch sensitive surface and display panel are integrated and realizes and inputs and defeated Go out function.
Electronic equipment may also include at least one sensor 505, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel, and proximity sensor can close display surface when electronic equipment is moved in one's ear Plate and/or backlight.As one kind of motion sensor, gravity accelerometer can detect in all directions (generally three axis) The size of acceleration can detect that size and the direction of gravity when static, the application that can be used to identify mobile phone posture is (such as vertical and horizontal Shield switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;As for electronics The other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared ray sensor that equipment can also configure, it is no longer superfluous herein It states.
Voicefrequency circuit 506 can provide the audio interface between user and electronic equipment by loud speaker, microphone.Audio-frequency electric The audio data received can be converted into electric signal by road 506, be transferred to loud speaker, and it is defeated to be converted to voice signal by loud speaker Go out;On the other hand, the voice signal of collection is converted to electric signal by microphone, and audio is converted to after being received by voicefrequency circuit 506 Data, then after audio data output processor 508 is handled, through radio circuit 501 be sent to such as another electronic equipment or Audio data is exported to memory 502 to be further processed by person.Voicefrequency circuit 506 is also possible that earphone jack, to carry For the communication of peripheral hardware earphone and electronic equipment.
Wireless Fidelity (WiFi) belongs to short range wireless transmission technology, and electronic equipment can be with by wireless fidelity module 507 User is helped to send and receive e-mail, webpage is browsed and accesses streaming video etc., it has provided wireless broadband internet to the user It accesses.Although Fig. 8 shows wireless fidelity module 507, but it is understood that, and it is not belonging to the necessary structure of electronic equipment Into, completely can as needed do not change invention essence range in and omit.
Processor 508 is the control centre of electronic equipment, utilizes each of various interfaces and the entire electronic equipment of connection A part is stored in by running or performing the application program being stored in memory 502 and call in memory 502 Data perform the various functions of electronic equipment and processing data, so as to carry out integral monitoring to electronic equipment.Optionally, it handles Device 508 may include one or more processing cores;Preferably, processor 508 can integrate application processor and modulation /demodulation processing Device, wherein, the main processing operation system of application processor, user interface and application program etc., modem processor is mainly located Reason wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 508.
Electronic equipment further includes the power supply 509 (such as battery) powered to all parts.Preferably, power supply can pass through electricity Management system and processor 508 are logically contiguous, so as to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.Power supply 509 can also include one or more direct current or AC power, recharging system, power supply event Hinder the random components such as detection circuit, power supply changeover device or inverter, power supply status indicator.
Although being not shown in Fig. 8, electronic equipment can also include camera, bluetooth module etc., and details are not described herein.
When it is implemented, Yi Shang modules can be independent entity to realize, arbitrary combination can also be carried out, is made It is realized for same or several entities, the specific implementation of more than modules can be found in the embodiment of the method for front, herein not It repeats again.
It should be noted that one of ordinary skill in the art will appreciate that whole in the various methods of above-described embodiment or Part steps are relevant hardware can be instructed to complete by program, which can be stored in computer-readable storage medium It in matter, is such as stored in the memory of terminal, and is performed by least one processor in the terminal, can be wrapped in the process of implementation Include the flow of the embodiment such as face identification method.Wherein, storage medium can include:Read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
A kind of face identification method provided by the embodiments of the present application, device, storage medium and electronic equipment are carried out above It being discussed in detail, each function module can be integrated in a processing chip or modules are individually physically present, Can also two or more modules be integrated in a module.The form that hardware had both may be used in above-mentioned integrated module is real It is existing, it can also be realized in the form of software function module.Used herein principle and implementation of the specific case to the application Mode is expounded, and the explanation of above example is only intended to help to understand the present processes and its core concept;Meanwhile For those skilled in the art, according to the thought of the application, change is had in specific embodiments and applications Place, in conclusion the content of the present specification should not be construed as the limitation to the application.

Claims (10)

1. a kind of face identification method, which is characterized in that include the following steps:
The faceform of user is obtained, and the faceform is matched with default faceform;
If fitting through, corresponding human face action is generated according to the faceform and is instructed;
User is received according to the human face action of the human face action instruction input, and judge the human face action completeness whether Meet preset value;
If satisfied, then determine that the recognition of face is verified.
2. face identification method according to claim 1, which is characterized in that it is described obtain user faceform the step of Including:
The facial image of the user is obtained by the first camera;
The face depth of view information of the user is obtained by second camera;
The three-dimensional face model of the user is generated according to the facial image and the face depth of view information.
3. face identification method according to claim 1, which is characterized in that the reception user is according to the human face action The step of human face action of instruction input, includes:
The position of multiple characteristic points in the facial image of the user is obtained according to human face action instruction;
According to the relative distance between the position of the multiple characteristic point, the human face action input by user is determined.
4. face identification method according to claim 3, which is characterized in that the position of the characteristic point includes human eye feature The position of point;
Relative distance between the position according to the multiple characteristic point determines the step of the human face action input by user Suddenly include:
According to the relative distance between the position of the multiple human eye feature point, offset distance and the direction of pupil are obtained;
According to the offset distance of the pupil and direction, the Rotation of eyeball action input by user is determined.
5. face identification method according to claim 1, which is characterized in that determining that the recognition of face is verified it Before, the method further includes:
The face temperature of the user is obtained, and judges the face temperature whether in preset temperature section;
If so, determine that the recognition of face is verified.
6. a kind of face identification device, which is characterized in that described device includes:Acquisition module, generation module, connects matching module Receive module, judgment module and determining module;
The acquisition module, for obtaining the faceform of user;
The matching module, for the faceform to be matched with default faceform;
The generation module, for when the matching module fits through, corresponding face to be generated according to the faceform Action command;
The receiving module, for receiving human face action of the user according to the human face action instruction input;
The judgment module, for judging whether the completeness of the human face action meets preset value;
The determining module, for when the action judgment module is judged as YES, determining that the recognition of face is verified.
7. face identification device according to claim 6, which is characterized in that the acquisition module specifically includes:First obtains Take submodule, the second acquisition submodule and generation submodule;
First acquisition submodule, for passing through the facial image that the first camera obtains the user;
Second acquisition submodule, for passing through the face depth of view information that second camera obtains the user;
The generation submodule, for generating the three-dimensional people of the user according to the facial image and the face depth of view information Face model.
8. face identification device according to claim 6, which is characterized in that the receiving module specifically includes:Receive son Module and determination sub-module;
The receiving submodule, for obtaining multiple features in the facial image of the user according to human face action instruction The position of point;
The determination sub-module for the relative distance between the position according to the multiple characteristic point, determines that the user is defeated The human face action entered.
9. a kind of storage medium, is stored thereon with computer program, which is characterized in that the computer program is executed by processor The step of Shi Shixian such as any one of claim 1-5 the methods.
10. a kind of electronic equipment, including memory, processor and storage are on a memory and the calculating that can run on a processor Machine program, which is characterized in that the processor is realized when performing described program such as the step of any one of claim 1-5 the methods Suddenly.
CN201711466318.9A 2017-12-28 2017-12-28 Face identification method, device, storage medium and electronic equipment Pending CN108197558A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711466318.9A CN108197558A (en) 2017-12-28 2017-12-28 Face identification method, device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711466318.9A CN108197558A (en) 2017-12-28 2017-12-28 Face identification method, device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN108197558A true CN108197558A (en) 2018-06-22

Family

ID=62585870

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711466318.9A Pending CN108197558A (en) 2017-12-28 2017-12-28 Face identification method, device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN108197558A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109271978A (en) * 2018-11-23 2019-01-25 四川长虹电器股份有限公司 Recognition of face anti-fraud method
CN110795981A (en) * 2019-07-01 2020-02-14 烟台宏远氧业股份有限公司 Face recognition interaction method and system for hyperbaric oxygen chamber
CN111460982A (en) * 2020-03-30 2020-07-28 维沃移动通信有限公司 Face recognition method and electronic equipment
CN111966985A (en) * 2020-08-18 2020-11-20 深圳传音控股股份有限公司 Unlocking method, terminal device and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070036398A1 (en) * 2005-08-12 2007-02-15 Tianlong Chen Apparatus and method for partial component facial recognition
CN102622588A (en) * 2012-03-08 2012-08-01 无锡数字奥森科技有限公司 Dual-certification face anti-counterfeit method and device
CN104348778A (en) * 2013-07-25 2015-02-11 信帧电子技术(北京)有限公司 Remote identity authentication system, terminal and method carrying out initial face identification at handset terminal
US20150178580A1 (en) * 2013-12-20 2015-06-25 Wistron Corp. Identification method and apparatus utilizing the method
CN104918035A (en) * 2015-05-29 2015-09-16 深圳奥比中光科技有限公司 Method and system for obtaining three-dimensional image of target
CN105005779A (en) * 2015-08-25 2015-10-28 湖北文理学院 Face verification anti-counterfeit recognition method and system thereof based on interactive action
CN106845345A (en) * 2016-12-15 2017-06-13 重庆凯泽科技股份有限公司 Biopsy method and device
CN107087150A (en) * 2017-04-26 2017-08-22 成都通甲优博科技有限责任公司 A kind of three-dimensional camera shooting method, system and device based on binocular solid and photometric stereo

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070036398A1 (en) * 2005-08-12 2007-02-15 Tianlong Chen Apparatus and method for partial component facial recognition
CN102622588A (en) * 2012-03-08 2012-08-01 无锡数字奥森科技有限公司 Dual-certification face anti-counterfeit method and device
CN104348778A (en) * 2013-07-25 2015-02-11 信帧电子技术(北京)有限公司 Remote identity authentication system, terminal and method carrying out initial face identification at handset terminal
US20150178580A1 (en) * 2013-12-20 2015-06-25 Wistron Corp. Identification method and apparatus utilizing the method
CN104918035A (en) * 2015-05-29 2015-09-16 深圳奥比中光科技有限公司 Method and system for obtaining three-dimensional image of target
CN105005779A (en) * 2015-08-25 2015-10-28 湖北文理学院 Face verification anti-counterfeit recognition method and system thereof based on interactive action
CN106845345A (en) * 2016-12-15 2017-06-13 重庆凯泽科技股份有限公司 Biopsy method and device
CN107087150A (en) * 2017-04-26 2017-08-22 成都通甲优博科技有限责任公司 A kind of three-dimensional camera shooting method, system and device based on binocular solid and photometric stereo

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
吴会霞等: "基于RGB-D的人脸表情识别研究", 《现代计算机(专业版)》 *
李实秋: "RGB-D图像分析关键技术研究", 《中国优秀硕士学位论文全文数据库信息科技辑》 *
邵洁等: "RGB-D动态序列的人脸自然表情识别", 《计算机辅助设计与图形学学报》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109271978A (en) * 2018-11-23 2019-01-25 四川长虹电器股份有限公司 Recognition of face anti-fraud method
CN110795981A (en) * 2019-07-01 2020-02-14 烟台宏远氧业股份有限公司 Face recognition interaction method and system for hyperbaric oxygen chamber
CN111460982A (en) * 2020-03-30 2020-07-28 维沃移动通信有限公司 Face recognition method and electronic equipment
CN111460982B (en) * 2020-03-30 2024-04-19 维沃移动通信有限公司 Face recognition method and electronic equipment
CN111966985A (en) * 2020-08-18 2020-11-20 深圳传音控股股份有限公司 Unlocking method, terminal device and storage medium

Similar Documents

Publication Publication Date Title
US10445482B2 (en) Identity authentication method, identity authentication device, and terminal
CN105487649B (en) A kind of reminding method and mobile terminal
US20200167452A1 (en) Permission control method and related product
CN108197558A (en) Face identification method, device, storage medium and electronic equipment
CN103632165A (en) Picture processing method, device and terminal equipment
CN108921941A (en) Image processing method, device, storage medium and electronic equipment
CN108830062A (en) Face identification method, mobile terminal and computer readable storage medium
CN108334809A (en) Electronic device and its operating method for iris recognition
KR102616403B1 (en) Electronic device and method for delivering message thereof
CN110443769A (en) Image processing method, image processing apparatus and terminal device
CN108259758A (en) Image processing method, device, storage medium and electronic equipment
CN106603548A (en) Application program login method and mobile terminal
CN109257336A (en) It is a kind of based on the encrypted message processing method of block chain, terminal device
CN105279186A (en) Image processing method and system
CN110300267A (en) Photographic method and terminal device
US11881011B2 (en) Fingerprint anti-counterfeiting method and electronic device
CN108551521A (en) A kind of log-on message reminding method and mobile terminal
CN109067981A (en) Split screen application switching method, device, storage medium and electronic equipment
CN109086582A (en) A kind of fingerprint verification method, terminal and computer readable storage medium
CN107884157A (en) A kind of method for detecting abnormality of diffractive-optical element, mobile terminal
CN108958629A (en) Split screen exits method, apparatus, storage medium and electronic equipment
CN107784268A (en) Make to use it to the method and electronic equipment for measuring heart rate based on infrared ray sensor
CN110096320A (en) The display methods and device of authentication window
CN112818733B (en) Information processing method, device, storage medium and terminal
CN108197560A (en) Facial image recognition method, mobile terminal and computer readable storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180622