The content of the invention
In order to solve to add hardware cost, and the problem of occupy larger volume, the embodiments of the invention provide one
Plant face identification method, device and mobile terminal.The technical scheme is as follows:
First aspect includes there is provided a kind of face identification method, methods described:
According to default collection rule, visible ray face image set, the visible ray are obtained using double light sensing cameras
Face image set includes at least one visible ray facial image;
According to the default collection rule, infrared light face image set, institute are obtained using described pair of light sensing camera
Stating infrared light face image set includes at least one infrared light facial image;
Wherein, the default collection rule at least includes the order for obtaining visible ray facial image and infrared light facial image
With image number;
Judge that local terminal whether there is and concentrate any with the visible ray face image set and the infrared light facial image
The face template image of facial image matching;
When local terminal is present any face figure is concentrated with the visible ray face image set and the infrared light facial image
During the face template image of picture matching, recognition of face passes through.
Preferably, according to default collection rule, before double light sensing cameras acquisition visible ray face image set,
Methods described also includes:
According to the light condition of current environment, visible ray facial image and infrared light people in the default collection rule are adjusted
The image number of face image.
Preferably, according to default collection rule, before double light sensing cameras acquisition visible ray face image set,
Methods described also includes:
Configure the frame per second and image resolution ratio during described pair of light sensing camera collection image.
Preferably, according to default collection rule, visible ray face image set, bag are obtained using double light sensing cameras
Include:
When described pair of light sensing camera collects complete face, according to default collection rule, double light senses are used
Answer camera according to the light pixel arrangement mode of visible ray, obtain visible ray facial image;
Continue to obtain visible ray facial image, until the visible ray facial image number got is advised with the default collection
Visible ray facial image number in then is identical, terminates the collection to visible ray facial image;
Correspondingly, according to the default collection rule, light image of the described pair of light sensing camera according to infrared light is used
Plain arrangement mode, obtains infrared light face image set, including:
When described pair of light sensing camera collects complete face, according to default collection rule, double light senses are used
Answer camera according to the light pixel arrangement mode of infrared light, obtain infrared light facial image;
Continue to obtain infrared light facial image, until the infrared light facial image number got is advised with the default collection
Infrared light facial image number in then is identical, terminates the collection to infrared light facial image.
Concentrated preferably, judging that local terminal whether there is with the visible ray face image set and the infrared light facial image
After the face template image of any facial image matching, methods described also includes:
When it is determined that local terminal is not present concentrates any with the visible ray face image set and the infrared light facial image
During the face template image of facial image matching, recognition of face does not pass through, reuses described pair of light sensing camera acquisition
Visible ray face image set and infrared light face image set.
Concentrated preferably, judging that local terminal whether there is with the visible ray face image set and the infrared light facial image
After the face template image of any facial image matching, methods described also includes:
The recognition result of recognition of face is included on the display screen of local terminal.
Second aspect includes there is provided a kind of face identification device, described device:
Visible ray acquisition module, for according to default collection rule, visible ray people to be obtained using double light sensing cameras
Face image collection, the visible ray face image set includes at least one visible ray facial image;
Infrared light acquisition module, for according to the default collection rule, being obtained using described pair of light sensing camera
Infrared light face image set, the infrared light face image set includes at least one infrared light facial image;
Wherein, the default collection rule at least includes the order for obtaining visible ray facial image and infrared light facial image
With image number;
Matching module, for judging that local terminal whether there is and the visible ray face image set and the infrared light face figure
The face template image of any facial image matching in image set;
Module is identified by, for existing and the visible ray face image set and the infrared light facial image when local terminal
During the face template image for concentrating any facial image to match, recognition of face passes through.
Preferably, described device also includes:
Rule adjustment module, for the light condition according to current environment, adjusts visible ray in the default collection rule
The image number of facial image and infrared light facial image.
Preferably, described device also includes:
Configuration module, for configuring frame per second and image resolution ratio during described pair of light sensing camera collection image.
Preferably, the visible ray acquisition module is used for when described pair of light sensing camera collects complete face,
According to default collection rule, using light pixel arrangement mode of double light sensing cameras according to visible ray, visible ray people is obtained
Face image;Continue to obtain visible ray facial image, until the visible ray facial image number got is advised with the default collection
Visible ray facial image number in then is identical, terminates the collection to visible ray facial image;
Correspondingly, the infrared light acquisition module is used for when described pair of light sensing camera collects complete face,
According to default collection rule, using light pixel arrangement mode of double light sensing cameras according to infrared light, infrared light people is obtained
Face image;Continue to obtain infrared light facial image, until the infrared light facial image number got is advised with the default collection
Infrared light facial image number in then is identical, terminates the collection to infrared light facial image.
Preferably, described device also includes:
Identification is not by module, for being not present and the visible ray face image set and the infrared light when determination local terminal
When facial image concentrates the face template image that any facial image is matched, recognition of face does not pass through, reuses described double
Light sensing camera obtains visible ray face image set and infrared light face image set.
Preferably, described device also includes:
Display module, for the recognition result of recognition of face to be included into the display screen in local terminal.
The third aspect includes memory, and one or more than one program there is provided a kind of mobile terminal,
One of them or more than one program storage is configured to by one or more than one computing device in memory
One or more than one program bag contains the instruction for being used for being operated below:
According to default collection rule, visible ray face image set, the visible ray are obtained using double light sensing cameras
Face image set includes at least one visible ray facial image;
According to the default collection rule, infrared light face image set, institute are obtained using described pair of light sensing camera
Stating infrared light face image set includes at least one infrared light facial image;
Wherein, the default collection rule at least includes the order for obtaining visible ray facial image and infrared light facial image
With image number;
Judge that local terminal whether there is and concentrate any with the visible ray face image set and the infrared light facial image
The face template image of facial image matching;
When local terminal is present any face figure is concentrated with the visible ray face image set and the infrared light facial image
During the face template image of picture matching, recognition of face passes through.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:
Method provided in an embodiment of the present invention, device and mobile terminal, pedestrian is entered by using double light sensing cameras
Face is recognized, can be realized the collection and recognition of face of varying environment light condition servant's face image, be improved the standard of recognition of face
True rate, and without the multiple cameras of mobile terminal configuration, save hardware space, improve cost performance, facilitate user to movement
The carrying and operation of terminal.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of protection of the invention.
Fig. 1 is a kind of flow chart of face identification method provided in an embodiment of the present invention.The execution master of the inventive embodiments
Body is mobile terminal, and referring to Fig. 1, methods described includes:
101:According to default collection rule, visible ray face image set is obtained using double light sensing cameras, this is visible
Light face image set includes at least one visible ray facial image;
102:According to the default collection rule, infrared light face image set is obtained using this pair of light sensing camera, should
Infrared light face image set includes at least one infrared light facial image;
Wherein, the default collection rule at least include obtaining visible ray facial image and infrared light facial image order and
Image number;
103:Judge that local terminal whether there is and concentrate any with the visible ray face image set and the infrared light facial image
The face template image of facial image matching;
104:When local terminal is present any face figure is concentrated with the visible ray face image set and the infrared light facial image
During the face template image of picture matching, recognition of face passes through.
Method provided in an embodiment of the present invention, by according to default collection rule, being obtained using double light sensing cameras
Visible ray face image set and infrared light face image set, and judge that local terminal whether there is and the visible ray face image set and this
Infrared light facial image concentrates the face template image of any facial image matching, when local terminal is present and the visible ray face figure
When image set and the infrared light facial image concentrate the face template image that any facial image is matched, recognition of face passes through.Adopt
With technical scheme, recognition of face is carried out by using double light sensing cameras, varying environment light can be realized
Under the conditions of facial image collection and recognition of face, improve the accuracy rate of recognition of face, and multiple without mobile terminal configuration
Camera, saves hardware space, improves cost performance, facilitates carrying and operation of the user to mobile terminal.
Preferably, according to default collection rule, before double light sensing cameras acquisition visible ray face image set,
This method also includes:
According to the light condition of current environment, visible ray facial image and infrared light face in the default collection rule are adjusted
The image number of image.
Preferably, according to default collection rule, before double light sensing cameras acquisition visible ray face image set,
This method also includes:
Configure the frame per second and image resolution ratio during this pair of light sensing camera collection image.
Preferably, according to default collection rule, visible ray face image set, bag are obtained using double light sensing cameras
Include:
When this pair of light sensing camera collects complete face, according to default collection rule, double light sensings are used
Camera obtains visible ray facial image according to the light pixel arrangement mode of visible ray;
Continue to obtain visible ray facial image, until the visible ray facial image number got and the default collection rule
In visible ray facial image number it is identical, terminate collection to visible ray facial image;
Correspondingly, according to the default collection rule, arranged using this pair of light sensing camera according to the light pixel of infrared light
Row mode, obtains infrared light face image set, including:
When this pair of light sensing camera collects complete face, according to default collection rule, double light sensings are used
Camera obtains infrared light facial image according to the light pixel arrangement mode of infrared light;
Continue to obtain infrared light facial image, until the infrared light facial image number got and the default collection rule
In infrared light facial image number it is identical, terminate collection to infrared light facial image.
Preferably, judge that local terminal whether there is concentrates any with the visible ray face image set and the infrared light facial image
After the face template image for opening facial image matching, this method also includes:
When it is determined that local terminal is not present concentrates any face with the visible ray face image set and the infrared light facial image
During the face template image of images match, recognition of face does not pass through, reuses this pair of light sensing camera and obtains visible ray
Face image set and infrared light face image set.
Preferably, judge that local terminal whether there is concentrates any with the visible ray face image set and the infrared light facial image
After the face template image for opening facial image matching, this method also includes:
The recognition result of recognition of face is included on the display screen of local terminal.
Above-mentioned all optional technical schemes, can form the alternative embodiment of the present invention, herein no longer using any combination
Repeat one by one.
Fig. 2 is a kind of flow chart of face identification method provided in an embodiment of the present invention.The execution master of the inventive embodiments
Body is mobile terminal, and referring to Fig. 2, methods described includes:
201:According to default collection rule, visible ray face image set is obtained using double light sensing cameras, this is visible
Light face image set includes at least one visible ray facial image;
The step specifically includes step(One)With(Two):
(One)When this pair of light sensing camera collects complete face, according to default collection rule, double light are used
Sense light pixel arrangement mode of the camera according to visible ray, obtain visible ray facial image;
(Two)Continue to obtain visible ray facial image, until the visible ray facial image number got and the default collection
Visible ray facial image number in rule is identical, terminates the collection to visible ray facial image.
202:According to the default collection rule, infrared light face image set is obtained using this pair of light sensing camera, should
Infrared light face image set includes at least one infrared light facial image;
The step specifically includes step(Three)With(Four):
(Three)When this pair of light sensing camera collects complete face, according to default collection rule, double light are used
Sense light pixel arrangement mode of the camera according to infrared light, obtain infrared light face image set;
(Four)Continue to obtain infrared light facial image, until the infrared light facial image number got and the default collection
Infrared light facial image number in rule is identical, terminates the collection to infrared light facial image.
Step 201 and step 202 will be further illustrated below.
In the embodiment of the present invention, when obtaining facial image, facial image can be obtained from different directions, before just
Side, left side side or right side side etc., to obtain front face image, left surface facial image or right flank facial image.Wherein, should
Default collection rule at least includes the order and image number for obtaining visible ray facial image and infrared light facial image.Specifically
Ground, the order for obtaining visible ray facial image and infrared light facial image refers to obtain visible ray facial image from all directions
Order and the order that infrared light facial image is obtained from all directions, correspondingly, obtain visible ray facial image and infrared light
The image number of facial image refers to the image number of the visible ray facial image obtained from all directions and from all directions
The image number of the infrared light facial image of acquisition.Preferably, according to the suitable of the facial image obtained in the default collection rule
Sequence and image number, are pointed out user on the display screen of local terminal, to gather the image of user successively, get symbol
Close the face image set of the default collection rule.
The default collection rule can be set by technical staff, can also in use be set by user, the present invention
Embodiment is not limited this.
Such as, the default collection rule is first from one visible ray face figure of each acquisition in front, left side side and right side side
Picture, then respectively obtain an infrared light facial image from front, left side side and right side side.Or, headed by the default collection rule
Visible ray facial image and infrared light facial image first are obtained from front, then visible ray facial image is obtained and red from left side side
Outer smooth facial image.
Wherein, this pair of light sensing camera can obtain visible images and infrared light image.When this pair of light sensing
When camera obtains image according to the light pixel arrangement mode of visible ray, you can visible images are obtained, when this pair of light sensing
When camera obtains image according to the light pixel arrangement mode of infrared light, you can obtain infrared light image.In the embodiment of the present invention
This pair of light sensing camera is used to obtain visible ray facial image and infrared light facial image, it is to avoid due to simultaneously using can
The hardware cost seen light video camera head and infrared pick-up head and caused rises.
The step 201 and step 202 are specifically included:When this pair of light sensing camera collects complete face, according to
The order and image number that obtain visible ray facial image and infrared light facial image that the default collection rule includes, are obtained successively
At least one visible ray facial image and/or at least one infrared light facial image are taken, at least one visible ray got
Facial image is to constitute visible ray face image set, and at least one infrared light facial image got constitutes infrared light people
Face image collection.
It should be noted that absolute sequential relationship is not present between the step 201 and step 202.Can obtaining respectively
When seeing light face image set and infrared light face image set, face is obtained successively according to the acquisition order in the default collection rule
Image, until the visible ray facial image number got and the visible ray facial image number phase in the default collection rule
Together, and the infrared light facial image number that gets is identical i.e. with the infrared light facial image number in the default collection rule
Can.The embodiment of the present invention is so that step 202 is performed after step 201 as an example.
Wherein, when determining to switch to collection infrared by collection visible ray facial image local terminal according to the default collection rule
During light facial image, by light pixel arrangement mode of the light pixel arrangement mode of this pair of light sensing camera use by visible ray
The light pixel arrangement mode of infrared light is switched to, it is correspondingly, when being determined according to the default collection rule that local terminal is infrared by gathering
When light facial image switches to collection visible ray facial image, the light pixel arrangement mode that this pair of light sensing camera is used
The light pixel arrangement mode of visible ray is switched to by the light pixel arrangement mode of infrared light.
The light pixel arrangement mode that general visible image capturing head and this pair of light sensing camera are used will be carried out below
Comparative illustration.Table 1 is the light pixel arrangement mode that general visible image capturing head is used, wherein, R represents red, and G represents green, B
Blueness is represented, by the acquisition to tri- kinds of colors of RGB, visible images are formed.Table 2 is what this pair of light sensing camera was used
Light pixel arrangement mode, wherein, tri- kinds of colors of RGB and the first cause of general visible image capturing, and with general visible image capturing head not
With this pair of light sensing camera introduces infrared light photosensitive pixel IR.Specifically, in collection visible ray facial image
When, IR does not work, RGB work, realizes the acquisition of visible ray facial image;When gathering infrared light facial image, IR work,
RGB works, and realizes the acquisition of infrared light facial image.By the switching to light pixel arrangement mode, realize using this pair
Light sensing camera obtains visible ray facial image and infrared light facial image, it is to avoid simultaneously using visible image capturing head and
The hardware cost that infrared pick-up head is caused rises, and improves cost performance.
Table 1
R |
G |
R |
G |
R |
G |
G |
B |
G |
B |
G |
B |
R |
G |
R |
G |
R |
G |
G |
B |
G |
B |
G |
B |
Table 2
R |
G |
R |
G |
R |
G |
IR |
B |
IR |
B |
IR |
B |
R |
G |
R |
G |
R |
G |
IR |
B |
IR |
B |
IR |
B |
Before the step 201 and step 202, this method also includes:
According to the light condition of current environment, visible ray facial image and infrared light face in the default collection rule are adjusted
The image number of image.
Wherein, the light condition of the environment includes the state such as bright, moderate, dark, black.Specifically, can be according to this pair of light
The light intensity that collects of sensing camera, and each light condition default light intensity threshold value, determine current environment
Light condition.Determination of the embodiment of the present invention to the light condition of current environment is not limited.
In fact, current environment light condition be bright or moderate state when, it is seen that light video camera head by automatic exposure,
The visible ray facial image got can accurately be recognized;And be dark or black state in the light condition of current environment
When, infrared pick-up head passes through automatic exposure, you can the infrared light facial image got is accurately recognized.Therefore,
According to the light condition of current environment, the figure of visible ray facial image and infrared light facial image in the default collection rule is adjusted
As number, including:
When the light condition of current environment brightens, the default collection rule is adjusted, according to the light of current environment
The change intensity of condition, accordingly increases the image number of the visible ray facial image in the default collection rule, reduces this and preset
The image number of infrared light facial image in collection rule;
When the light condition of current environment is dimmed, the default collection rule is adjusted, according to the light of current environment
The change intensity of condition, accordingly reduces the image number of the visible ray facial image in the default collection rule, increases this and preset
The image number of infrared light facial image in collection rule.
The above-mentioned image number to visible ray facial image and infrared light facial image in the default collection rule is adjusted
Whole concrete mode can be set by technical staff in exploitation, can also in use be set by user, the present invention is real
Example is applied not limit this.
203:Judge that local terminal whether there is and concentrate any with the visible ray face image set and the infrared light facial image
The face template image of facial image matching;
Wherein, the face template image is the facial image for being pre-stored in local terminal, and the face template image can conduct
The validation criteria of recognition of face.Correspondingly, before step 201 and step 202, this method also includes:Obtain at least one people
Face template image;
It should be noted that when receiving the operation such as click respective keys of user, face template image can be triggered
Process instruction, the operation such as is added or deletes at least one face template image, and the embodiment of the present invention is not limited this
It is fixed.
The step 203 is specifically included:The face template image that local terminal is preserved is traveled through, according to default face recognition algorithms, is sentenced
Whether any face template image that disconnected local terminal is preserved is concentrated with the visible ray face image set and the infrared light facial image is appointed
One facial image matching.
Specifically, according to the default face recognition algorithms, discrete, binaryzation etc. is carried out to any facial image got
A series of images processing, obtains result, and calculate any face mould that the result of the facial image is preserved with local terminal
The similarity of the result of plate image, when the similarity belongs to preset range, determines the facial image and the face template
Images match, when the similarity is not belonging to preset range, determines that the facial image is mismatched with the face template image.
Wherein, the default face recognition algorithms can be subspace analysis, principal component analysis scheduling algorithm.The default face is known
Other algorithm can be set by technical staff in exploitation, can also in use be selected by user.The embodiment of the present invention pair
This is not limited.
It should be noted that due to the difference of default face recognition algorithms used, causing, when obtaining facial image, to need
Frame per second and image resolution ratio are configured so that the frame per second and image resolution ratio of the facial image got are applied to current
The default face recognition algorithms used.Correspondingly, before step 201 and step 202, this method also includes:Configure this pair of light
Line senses the frame per second and image resolution ratio during camera collection image.
Specifically, according to the default face recognition algorithms applicable frame per second and image resolution ratio, this pair of light sensing is configured
Frame per second and image resolution ratio during camera collection image.
It should be noted that when obtaining face image set, can be collected by the display screen of local terminal to local terminal
Image carries out preview, in order to which user confirms to face location, it is ensured that collect complete face.Wherein it is possible to will collection
The image arrived carries out preview according to the ratio of the resolution ratio of the display screen of local terminal, when collecting complete face, will collect
Facial image obtained according to the applicable image resolution ratio of the default face recognition algorithms.Preferably, using register pair
The resolution ratio of this pair of light camera is configured.
Specifically, it is 16 in the ratio of the resolution ratio of display screen:When 9, this pair of light camera is set to use identical
Image resolution ratio ratio, it is ensured that transfer rate per minute is higher, is easy to when carrying out preview, it is ensured that user can be with this pair
Light camera is aligned, and then reaches the position of effective collection facial image.When the position for reaching effective collection facial image
When putting, the facial image currently collected is obtained, now, sets this pair of light camera to be fitted using the default face recognition algorithms
Resolution ratio carries out the acquisition of facial image, to get the effective information in the facial image to greatest extent.
204:When local terminal is present any face figure is concentrated with the visible ray face image set and the infrared light facial image
During the face template image of picture matching, recognition of face passes through, and performs step 206;
205:When it is determined that local terminal is not present concentrates any with the visible ray face image set and the infrared light facial image
During the face template image of facial image matching, recognition of face does not pass through, and reusing this pair of light sensing camera acquisition can
See light face image set and infrared light face image set, perform step 206;
206:The recognition result of recognition of face is included on the display screen of local terminal.
Step 204-205 specifically includes following two situations:
When local terminal is present any facial image is concentrated with the visible ray face image set and the infrared light facial image
During the face template image matched somebody with somebody, recognition of face passes through, and the result that recognition of face passes through is included on the display screen of local terminal, and
Continue executing with subsequent operation;It can be applied in the systems such as authentication, gate inhibition, correspondingly, know in face in the embodiment of the present invention
After not being verified, perform and enter the authentication system, or open the operation such as gate inhibition.
Or, concentrating any people with the visible ray face image set and the infrared light facial image when determining that local terminal is not present
During the face template image of face image matching, recognition of face does not pass through, and the unsanctioned result of recognition of face is included in local terminal
On display screen, and reuse this pair of light sensing camera acquisition visible ray face image set and infrared light facial image
Collection.
When recognition of face checking not by when, by the unsanctioned result of recognition of face include on the display screen of local terminal.
Meanwhile, " again verify " button can be provided on the display screen of local terminal, when detecting user to " verifying again " button
During clicking operation, reuse this pair of light sensing camera and obtain visible ray face image set and infrared light face image set.
Or, when recognition of face checking not by when, by the unsanctioned result of recognition of face include on the display screen of local terminal, simultaneously
Automatic triggering reuses the mistake that this pair of light sensing camera obtains visible ray face image set and infrared light face image set
Journey, until when the execution number of times of the process reaches predetermined threshold value, and recognition of face checking not yet by when, exit recognition of face.
The embodiment of the present invention to recognition of face verify not by when specific processing mode do not limit.
It should be noted that face identification method provided in an embodiment of the present invention, can be carried out by clicking on corresponding button
Triggering, such as clicks on " authentication " button and " continuing to verify " button.On triggering, it is necessary to carry out initial configuration, including
System initialization is configured and camera initial configuration.Wherein, system initialization configuration pin is tested face identification system, such as identity
Card system, gate control system etc..Camera initial configuration in itself, specifically includes this pair of light of setting for this pair of light camera
The electric sequence of camera, the location of pixels of starting and ending and related optical imagery parameter etc..Starting and ending is set
Location of pixels refer to set different acquisition image resolution ratio under camera pixel original position and pixel end position, phase
The optical imagery parameter of pass includes but is not limited to the exposure parameter and digital simulation gain parameter of acquiescence.Preferably, using deposit
Device carries out system initialization configuration and camera initial configuration.
Method provided in an embodiment of the present invention, by according to default collection rule, being obtained using double light sensing cameras
Visible ray face image set and infrared light face image set, and judge that local terminal whether there is and the visible ray face image set and this
Infrared light facial image concentrates the face template image of any facial image matching, when local terminal is present and the visible ray face figure
When image set and the infrared light facial image concentrate the face template image that any facial image is matched, recognition of face passes through.Adopt
With technical scheme, recognition of face is carried out by using double light sensing cameras, varying environment light can be realized
Under the conditions of facial image collection and recognition of face, improve the accuracy rate of recognition of face, and multiple without mobile terminal configuration
Camera, saves hardware space, improves cost performance, facilitates carrying and operation of the user to mobile terminal.
Fig. 3 is a kind of face identification device structural representation provided in an embodiment of the present invention, referring to Fig. 3, described device bag
Include:
Visible ray acquisition module 301, for according to default collection rule, visible ray to be obtained using double light sensing cameras
Face image set, the visible ray face image set includes at least one visible ray facial image;
Infrared light acquisition module 302, for according to the default collection rule, being obtained using described pair of light sensing camera
Infrared light face image set is taken, the infrared light face image set includes at least one infrared light facial image;
Wherein, the default collection rule at least includes the order for obtaining visible ray facial image and infrared light facial image
With image number;
Matching module 303, for judging that local terminal whether there is and the visible ray face image set and the infrared light people
Face image concentrates the face template image of any facial image matching;
Module 304 is identified by, for existing and the visible ray face image set and the infrared light face when local terminal
During the face template image that any facial image is matched in image set, recognition of face passes through.
Preferably, described device also includes:
Rule adjustment module, for the light condition according to current environment, adjusts visible ray in the default collection rule
The image number of facial image and infrared light facial image.
Preferably, described device also includes:
Configuration module, for configuring frame per second and image resolution ratio during described pair of light sensing camera collection image.
Preferably, the visible ray acquisition module 301 is used for when described pair of light sensing camera collects complete face
When, according to default collection rule, using light pixel arrangement mode of double light sensing cameras according to visible ray, obtain visible ray
Facial image;Continue to obtain visible ray facial image, until the visible ray facial image number got and the default collection
Visible ray facial image number in rule is identical, terminates the collection to visible ray facial image;
Correspondingly, the infrared light acquisition module 302 is used for when described pair of light sensing camera collects complete face
When, according to default collection rule, using light pixel arrangement mode of double light sensing cameras according to infrared light, obtain infrared light
Facial image;Continue to obtain infrared light facial image, until the infrared light facial image number got and the default collection
Infrared light facial image number in rule is identical, terminates the collection to infrared light facial image.
Preferably, described device also includes:
Identification is not by module, for being not present and the visible ray face image set and the infrared light when determination local terminal
When facial image concentrates the face template image that any facial image is matched, recognition of face does not pass through, reuses described double
Light sensing camera obtains visible ray face image set and infrared light face image set.
Preferably, described device also includes:
Display module, for the recognition result of recognition of face to be included into the display screen in local terminal.
Device provided in an embodiment of the present invention, carries out recognition of face by using double light sensing cameras, can realize
The collection and recognition of face of varying environment light condition servant's face image, improve the accuracy rate of recognition of face, and without mobile
Terminal configures multiple cameras, saves hardware space, improves cost performance, facilitates carrying and behaviour of the user to mobile terminal
Make.
It should be noted that:The device for the recognition of face that above-described embodiment is provided is in recognition of face, only with above-mentioned each work(
The division progress of energy module is for example, in practical application, as needed can distribute above-mentioned functions by different functions
Module complete, i.e., the internal structure of mobile terminal is divided into different functional modules, with complete it is described above whole or
Partial function.In addition, the device of recognition of face and the embodiment of the method for recognition of face that above-described embodiment is provided belong to same structure
Think, it implements process and refer to embodiment of the method, repeats no more here.
Fig. 4 is a kind of terminal device structural representation provided in an embodiment of the present invention, referring to Fig. 4, and the terminal device can be with
For implementing the face identification method provided in above-described embodiment.Specifically:
Terminal device 400 can include radio circuit 110, include one or more computer-readable recording mediums
Memory 120, input block 130, display unit 140, sensor 150, voicefrequency circuit 160, WiFi module 170, include
The parts such as the processor 180 and power supply 190 of one or more than one processing core.It will be understood by those skilled in the art that
The terminal device structure shown in Fig. 4 does not constitute the restriction to terminal device, can include than illustrating more or less portions
Part, either combines some parts or different parts arrangement.Wherein:
Radio circuit 110 can be used for receive and send messages or communication process in, the reception and transmission of signal.Especially, radio frequency electrical
Road 110 will base station downlink information receive after, transfer to one or more than one processor 180 handled;In addition, will be related to up
Data be sent to base station.Usually as communication unit radio circuit include but is not limited to antenna, at least one amplifier,
Tuner, one or more oscillators, subscriber identity module(SIM)Card, transceiver, coupler, LNA(Low Noise
Amplifier, low-noise amplifier), duplexer etc..In addition, radio circuit 110 can also pass through radio communication and network and its
His equipment communication.The radio communication can use any communication standard or agreement, including but not limited to GSM (Global
System of Mobile communication, global system for mobile communications), GPRS (General Packet Radio
Service, general packet radio service), CDMA (Code Division Multiple Access, CDMA), WCDMA
(Wideband Code Division Multiple Access, WCDMA), LTE (Long Term
Evolution, Long Term Evolution), Email, SMS (Short Messaging Service, Short Message Service) etc..Memory
120 can be used for storage software program and module, processor 180 by operation be stored in memory 120 software program and
Module, so as to perform various function application and data processing.Memory 120 can mainly include storing program area and data storage
Area, wherein, the application program that storing program area can be needed for storage program area, at least one function(Such as sound-playing function,
Image player function etc.)Deng;Storage data field can be stored uses created data according to terminal device 400(Such as audio
Data, phone directory etc.)Deng.In addition, memory 120 can include high-speed random access memory, it can also include non-volatile
Memory, for example, at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, store
Device 120 can also include Memory Controller, to provide the access of processor 180 and input block 130 to memory 120.
Input block 130 can be used for the numeral or character information for receiving input, and generation to be set with user and function
The relevant keyboard of control, mouse, action bars, optics or the input of trace ball signal.Specifically, input block 130 may include to touch
Sensitive surfaces 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad, collect and use
Touch operation of the family on or near it(Such as user is using any suitable objects such as finger, stylus or annex in touch-sensitive table
Operation on face 131 or near Touch sensitive surface 131), and corresponding attachment means are driven according to formula set in advance.It is optional
, Touch sensitive surface 131 may include two parts of touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used
The touch orientation at family, and the signal that touch operation is brought is detected, transmit a signal to touch controller;Touch controller is from touch
Touch information is received in detection means, and is converted into contact coordinate, then gives processor 180, and can receiving processor 180
The order sent simultaneously is performed.Furthermore, it is possible to using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves
Realize Touch sensitive surface 131.Except Touch sensitive surface 131, input block 130 can also include other input equipments 132.Specifically,
Other input equipments 132 can include but is not limited to physical keyboard, function key(Such as volume control button, switch key etc.)、
One or more in trace ball, mouse, action bars etc..
Display unit 140 can be used for display by the information of user input or be supplied to the information and terminal device of user
400 various graphical user interface, these graphical user interface can by figure, text, icon, video and its any combination Lai
Constitute.Display unit 140 may include display panel 141, optionally, can using LCD (Liquid Crystal Display,
Liquid crystal display), the form such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) configure display
Panel 141.Further, Touch sensitive surface 131 can cover display panel 141, when Touch sensitive surface 131 is detected on or near it
Touch operation after, processor 180 is sent to determine the type of touch event, with preprocessor 180 according to touch event
Type provides corresponding visual output on display panel 141.Although in Fig. 4, Touch sensitive surface 131 is with display panel 141
Realized as two independent parts input and input function, but in some embodiments it is possible to by Touch sensitive surface 131 with
Display panel 141 is integrated and realizes input and output function.
Terminal device 400 may also include at least one sensor 150, such as optical sensor, motion sensor and other
Sensor.Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can basis
The light and shade of ambient light adjusts the brightness of display panel 141, proximity transducer can when terminal device 400 is moved in one's ear,
Close display panel 141 and/or backlight.As one kind of motion sensor, Gravity accelerometer can detect all directions
On(Generally three axles)The size of acceleration, can detect that size and the direction of gravity when static, available for identification mobile phone attitude
Application(Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function(Such as pedometer, strike
Hit)Deng;Gyroscope, barometer, hygrometer, thermometer, infrared ray sensor for can also configure as terminal device 400 etc. other
Sensor, will not be repeated here.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the COBBAIF between user and terminal device 400.
Electric signal after the voice data received conversion can be transferred to loudspeaker 161, is changed by loudspeaker 161 by voicefrequency circuit 160
Exported for voice signal;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, is connect by voicefrequency circuit 160
Be converted to voice data after receipts, then after voice data output processor 180 is handled, it is such as another to be sent to through RF circuits 110
One terminal device, or voice data is exported to memory 120 so as to further processing.Voicefrequency circuit 160 is also possible that
Earphone jack, to provide the communication of peripheral hardware earphone and terminal device 400.
In order to realize radio communication, WiFi module 170 can be configured with the terminal device.WiFi belongs to short-distance wireless
Transmission technology, terminal device 400 can help user to send and receive e-mail, browse webpage and access stream by WiFi module 170
Formula media etc., it has provided the user wireless broadband internet and accessed., can be with although Fig. 4 shows WiFi module 170
Understand, it is simultaneously not belonging to must be configured into for terminal device 400, can not change the essential of invention as needed completely
In the range of and omit.
Processor 180 is the control centre of terminal device 400, utilizes each of various interfaces and connection whole mobile phone
Part, by operation or performs and is stored in software program and/or module in memory 120, and calls and be stored in memory
Data in 120, perform the various functions and processing data of terminal device 400, so as to carry out integral monitoring to mobile phone.It is optional
, processor 180 may include one or more processing cores;It is preferred that, processor 180 can integrated application processor and modulatedemodulate
Processor is adjusted, wherein, application processor mainly handles operating system, user interface and application program etc., modem processor
Main processing radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 180.
Terminal device 400 also includes the power supply 190 powered to all parts(Such as battery), it is preferred that power supply can lead to
Cross power-supply management system and processor 180 be logically contiguous, thus by power-supply management system realize management charging, electric discharge and
The functions such as power managed.Power supply 190 can also include one or more direct current or AC power, recharging system, electricity
The random component such as source failure detector circuit, power supply changeover device or inverter, power supply status indicator.
Although not shown, terminal device 400 can also include camera, bluetooth module etc., will not be repeated here.Specifically exist
In the present embodiment, the display unit of terminal device is touch-screen display, and terminal device also includes memory, the memory
Also include one or more than one program, and be configured to by one or more than one processor 180 performs described one
Individual or more than one program bag contains face identification method and the shown implementations of Fig. 2 for being used for performing that embodiment illustrated in fig. 1 is provided
The face identification method that example is provided.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can be by hardware
To complete, the hardware of correlation can also be instructed to complete by program, described program can be stored in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and
Within principle, any modifications, equivalent substitutions and improvements made etc. should be included within the scope of the present invention.