Specific embodiment
In the following description, a large amount of concrete details are given to provide more thorough understanding of the invention.So
And, it will be apparent to one skilled in the art that the embodiment of the present invention can be without the need for one or more of these details
And be carried out.In other examples, in order to avoid obscuring with the embodiment of the present invention, for more well known in the art
Technical characteristic is not described.
It should be appreciated that the present invention can be implemented in different forms, and should not be construed as being limited to what is proposed here
Embodiment.On the contrary, providing these embodiments disclosure will be made thoroughly and complete, and be will fully convey the scope of the invention to
Those skilled in the art.In the accompanying drawings, in order to clear, the size and relative size of part, element etc. may be exaggerated.Ad initio
Identical element is represented to whole same reference numerals.
In order that the object, technical solutions and advantages of the present invention become apparent from, root is described in detail below with reference to accompanying drawings
According to the example embodiment of the present invention.Obviously, described embodiment is only a part of embodiment of the present invention, rather than this
Bright whole embodiments, it should be appreciated that the present invention is not limited by example embodiment described herein.Described in the present invention
The embodiment of the present invention, those skilled in the art's all other embodiment resulting in the case where creative work is not paid
All should fall under the scope of the present invention.
First, with reference to Fig. 1 describing for realizing man face image acquiring method and apparatus according to embodiments of the present invention
Exemplary electronic device 100.
As shown in figure 1, electronic equipment 100 includes one or more processors 102, one or more storage devices 104, defeated
Enter/output device 106, communication interface 108 and one or more image-signal processors (ISP) 110, imageing sensor 114,
Bindiny mechanism's (not shown) interconnection that these components pass through bus system 112 and/or other forms.It should be noted that shown in Fig. 1
The component and structure of electronic equipment 100 is illustrative, and not restrictive, and as needed, the electronic equipment can also
With other assemblies and structure, it is also possible to not including aforesaid members, for example, can include communication interface 108, it is also possible to
Not packet communication interface 108.
The processor 102 typically represent any types or form can processing data or explain and execute instruction place
Reason unit.In general, processor can be CPU (CPU) or hold with data-handling capacity and/or instruction
The processing unit of the other forms of row ability, and other components in the electronic equipment 100 can be controlled to perform expectation
Function.In a particular embodiment, processor 102 can receive the instruction from software application or module.These instructions can be with
Cause the function of one or more example embodiments that processor 102 completes to be described herein and/or illustrate.
The storage device 104 can include one or more computer programs, and the computer program can
With including various forms of computer-readable recording mediums, such as volatile memory and/or nonvolatile memory.It is described easy
The property lost memory can for example include random access memory (RAM) and/or cache memory (cache) etc..It is described non-
Volatile memory can for example include read-only storage (ROM), hard disk, flash memory etc..In the computer-readable recording medium
On can store one or more computer program instructions, processor 102 can run described program instruction, to realize hereafter institute
The client functionality (realized by processor) in the embodiment of the present invention stated and/or other desired functions.In the meter
Various application programs and various data can also be stored in calculation machine readable storage medium storing program for executing, such as application program use and/or
Various data for producing etc..
The input/output device 106 can be that user exports the device of various information for input instruction and to outside,
For example input unit can include one or more in keyboard, mouse, microphone and touch-screen etc..Output device can include
One or more in display, loudspeaker etc..
Communication interface 108 widely represent any types or form can promote exemplary electronic device 100 and one or
The adapter or communication equipment of the communication between multiple optional equipments.For example, communication interface 108 can promote electronic equipment 100
With the communication in front end or accessory electronic device and back-end server or high in the clouds.The example of communication interface 108 is included but is not limited to
Wired network interface (such as NIC), radio network interface (such as wireless network interface card), modem and appoint
What his suitable interface.In one embodiment, communication interface 108 by with the direct-connected offer of the network of such as internet to remote
Journey server/remote front-end equipment it is direct-connected.In a particular embodiment, communication interface 108 by with dedicated network, such as video
The direct-connected offer of the networks such as monitoring network, Skynet system network is to the direct-connected of remote server/remote front-end equipment.Communication interface
108 can also indirectly provide this connection by any other suitable connection.
Image-signal processor (ISP) 110 carries out IMAQ for controlling imageing sensor 114, and adjusts AE (automatically
Exposure) the image matter such as parameter and brightness, contrast, time for exposure such as digital gain, analog gain, BLC, wide dynamic
Amount parameter and other specification, with adjusting image quality, and the output signal based on imageing sensor 114 generates corresponding exposure
Image, and transmitted to processor 102 by the connection unit of such as bus system 112 and carry out subsequent treatment.Meanwhile, picture signal
Processor (ISP) 110 can also receive the order or instruction from processor 102, to be adjusted control to imageing sensor 114
System.Image-signal processor (ISP) 110 can as needed and the quantity of imageing sensor 114 arranges one or more, and
And image-signal processor (ISP) 110 can be integrated with processor 102 etc., on-chip system (SOC) is embodied as, it is also possible to set up
Arrange, and be attached by the such as connection unit of bus system 112 and processor 102.
Imageing sensor 114 can gather or shoot image (such as photo, video of the desired visible light exposure of user
Deng), and captured image is stored in the storage device 104 so that other components are used.Imageing sensor 114
One example is RGB sensors, or RGBW sensors or black and white sensor (can only gather black white image) etc., and it passes through sense
Visible ray is answered to form colour or black white image/video.
Exemplarily, set for realizing the exemplary electron of man face image acquiring method and apparatus according to embodiments of the present invention
Adopt for may be implemented as such as smart mobile phone, panel computer, the IMAQ end of gate control system, the image of preventing road monitoring system
The rear end control process end at collection end, the IMAQ end of safety-protection system and various monitoring, safety-security area etc. or server end or
High in the clouds etc..
Fig. 2 is the indicative flowchart of the man face image acquiring method according to the embodiment of the present invention.Below in conjunction with Fig. 2 pair
Man face image acquiring method according to embodiments of the present invention is described.
As shown in Fig. 2 man face image acquiring method includes disclosed in the embodiment of the present invention:
First, in step s 201, the image of the destination object of imageing sensor collection is obtained, the first image is denoted as.
The image of the destination object of imageing sensor collection, the target pair are obtained by communication unit or connection unit
As being, for example, pedestrian or people to be identified.
In step S202, the image based on the destination object carries out humanoid detection and humanoid segmentation, at least to split
Go out the head of the destination object.
Exemplarily, for example can be using the good humanoid detector of training in advance come in imageing sensor acquired image
In portrait is carried out it is humanoid detection and humanoid segmentation, to be at least partitioned into the head of the destination object, for example, portrait is split
For regions such as head, trunk and four limbs.
Exemplarily, the humanoid detection algorithm such as full convolutional neural networks can be advanced with to instruct on the basis of a large amount of pictures
Humanoid detector is practised, for the single-frame images of input, the good humanoid segmentation of the training in advance can rapidly to right in image
Portrait is split, for example, portrait is divided into into the regions such as head, trunk and four limbs.Additionally, continuous for imageing sensor
The multiple image of collection, after head zone is partitioned in first two field picture, can be based on the previous frame image of current frame image
In head zone position following the trail of the position of the head zone in current frame image in real time.Wherein, the humanoid detection
Can be by the Human detection algorithm based on SVM, or the real-time Human detection algorithm reality based on LBP innovatory algorithms with humanoid segmentation
It is existing.
In step S203, the coordinates regional of the head of destination object described in described image is obtained.
After completing to portrait segmentation in step 202., the position of coordinate and head zone based on image obtains figure
The coordinates regional of the head of destination object as described in.
In step S204, header area of the described image sensor to the destination object is controlled based on the coordinates regional
Domain carries out partial exposure, so that the exposure of the head zone of the destination object meets pre-provisioning request, such as man face image acquiring
The standard of needs.
Wherein, based on the coordinates regional control described image sensor partial exposure is carried out to the destination object so that
The exposure of the head zone of the destination object meets pre-provisioning request and includes:The exposure parameter of described image sensor is adjusted, with
The head zone for making the destination object in second image for being gathered is exposed to needed for predetermined man face image acquiring
The standard wanted.Wherein, the exposure parameter can include at least one in time for exposure, aperture size and exposure ISO.
In one example, the exposure parameter captures shutter speed and candid photograph gain to adjust by adjustment, wherein, institute
State candid photograph shutter speed and the candid photograph gain is calculated according to the following formula:
Shut_cap=shut_video*shut_set/ (shut_video+shut_set) (1)
Gain_cap=gain_video*shut_video/shut_cap (2)
Wherein, to capture shutter speed, gain_cap is candid photograph gain to shut_cap;Shut_video is video recording mould
Shutter speed under formula, gain_video is video gain;Shut_set captures most slow shutter speed for default.
Because when ambient light is weaker or in backlight, the image that optical image sensor is gathered is dark or complete due to portrait
Unlicensed tour guide causes to cannot be used for recognition of face, or causes the increase of man face image acquiring difficulty, man face image acquiring efficiency and hydraulic performance decline,
In order to improve half-light or backlight servant's face image acquiring performance, the coordinate based on the destination object head for being extracted in the present invention
Region control visible light image sensor carries out partial exposure to the head zone of the destination object, so that the destination object
Head zone the standard that needs to man face image acquiring of image exposure.
Exemplary, such as based on destination object head coordinates regional, judges the brightness of the image in the coordinates regional, so
The brightness range that afterwards brightness and recognition of face based on the image in the coordinates regional needs, adjusts the exposure ginseng of imageing sensor
Number, so that the brightness of the image of head zone meets the standard of recognition of face in the image of imageing sensor collection, so as to realize
Preferably recognition of face.
In an example of the invention, when ambient light is weaker or in backlight, the figure that can be based in the coordinates regional
The brightness range that the brightness of picture and recognition of face need, adjusts the exposure parameter of imageing sensor, is adopted with increasing imageing sensor
The brightness of the image of head zone in the image of collection, complies with the standard of recognition of face.
In another example of the present invention, when ambient light is very strong, the image of imageing sensor collection is entirely white, also unfavorable
In recognition of face, the brightness range that now can be needed based on the brightness of the image in the coordinates regional and recognition of face, adjust
The exposure parameter of imageing sensor, with the brightness of the image of head zone in the image for reducing imageing sensor collection, so that its
Meet the standard of recognition of face.
In step S205, the image (being denoted as the second image) of the destination object of Jing partial exposures is gathered, i.e. collection
The image of partial exposure is carried out to obtain the facial image for meeting demand to the head zone of the destination object.
The image of described image sensor collection can also be able to be video for picture.
In one example, when the image of imageing sensor collection is video, can also be for constituting the every of the video
One frame picture carries out Face datection and facial image is extracted.Further, it is also possible to being based on the image of collection carries out recognition of face, face
Attributive analysis etc. is operated.
Exemplarily, can be deployed at man face image acquiring end according to the man face image acquiring method of the present embodiment, example
Such as, in security protection application, the IMAQ end of gate control system can be deployed in;In financial application field, can be deployed in individual
People's end, smart phone, panel computer, personal computer etc..
Alternatively, man face image acquiring method according to embodiments of the present invention is deployed in server end with can also being distributed
At (or high in the clouds) and personal terminal.For example, in financial application field, IMAQ can be carried out in personal terminal, then in clothes
Business device end (or high in the clouds) carries out humanoid detection, humanoid segmentation, coordinates regional acquisition to the image for gathering, and then enters in personal terminal
Row partial exposure and local exposure image are gathered, and finally carry out man face image acquiring extraction and knowledge in server end (or high in the clouds)
Not etc..
According to the man face image acquiring method of the present embodiment, humanoid detection and humanoid point are carried out by the image to gathering
Cut, so as to obtain the coordinates regional of destination object head, being then based on the exposure parameter of coordinates regional regulation sensor is carried out
Partial exposure, so that head image meets the standard of man face image acquiring in the image of destination object.Because exposure area has
Specific aim and position is accurate, it is possible to obtain face exposure image more more preferable than conventional method.That is, by carrying out humanoid detection
So as to be partitioned into head, then partial exposure is done to the head that portrait is partitioned into, solve and examined under current half-light or backlight environment
Do not detect face and a difficult problem for desirable photograph cannot be obtained, and may be equally applicable for solving under intense light conditions, photo turns white
And it is unfavorable for the problem of recognition of face.
Fig. 3 is the more detailed indicative flowchart of the man face image acquiring method according to the embodiment of the present invention.Tie below
Close Fig. 3 to be described in detail man face image acquiring method according to embodiments of the present invention.
As shown in figure 3, man face image acquiring method includes disclosed in the embodiment of the present invention:
First, in step S301, the image of Real-time Collection target area.
Target area is monitored by imageing sensor or video camera, to obtain the image of target area in real time.
The target area can be monitor area, or for carrying out the region of recognition of face, or other regions.
In step s 302, carry out humanoid detection, to judge the target area in the presence or absence of humanoid.
For the image that every width target area is gathered in step S301, humanoid detection is carried out, to judge the target area
With the presence or absence of humanoid in domain.
Exemplarily, for example can be using the good humanoid detector of training in advance come the figure to gathered every width target area
As carrying out humanoid detection, to judge the target area in the presence or absence of humanoid.
Exemplarily, the humanoid detection algorithm such as fast RCNN can be advanced with to train on the basis of a large amount of pictures
Humanoid detector, for the single-frame images of input, the good humanoid detection of the training in advance can be detected rapidly from image
It is humanoid.Additionally, for the multiple image of imageing sensor continuous acquisition, detect in first two field picture it is humanoid after, can be with base
Humanoid position in the previous frame image of current frame image is following the trail of in real time humanoid position in current frame image.
If in step 302, being not detected by humanoid, then return to step S301, continue the image for gathering target area,
And then carry out humanoid detection.That is, humanoid detection is carried out to the next image of target area, to judge target area in whether
Exist humanoid.
If detecting in step 302 humanoid, in step S303, portrait segmentation is carried out.
In step 303, to described image in it is humanoid split, to be at least partitioned into the humanoid head.
That is, to detect in step 302 it is humanoid carry out humanoid segmentation, to be at least partitioned into the humanoid head, example
Such as humanoid it is divided into head, trunk and four limbs region by what is detected in step 302.
Exemplarily, for example can be using the good humanoid dispenser of training in advance come in imageing sensor acquired image
In portrait is split.The humanoid partitioning algorithm such as full convolutional neural networks can be advanced with to instruct on the basis of a large amount of pictures
Humanoid dispenser is practised, for the single-frame images of input, the good humanoid segmentation of the training in advance can rapidly to right in image
Portrait is split, for example, portrait is divided into into the regions such as head, trunk and four limbs.Additionally, continuous for imageing sensor
The multiple image of collection, after head zone is partitioned in first two field picture, can be based on the previous frame image of current frame image
In head zone position following the trail of the position of the head zone in current frame image in real time.
In step s 304, judge the pixel of head zone in described image whether more than given threshold.
Due to realize that recognition of face generally requires the pixel with 100x100 in facial image, so if face
Image pixel is unfavorable for very little, then recognition of face.If the image few to these pixels is also carried out recognition of face, can wave
Take a large amount of computing resources, and affect whole recognition of face efficiency.Therefore, when in step S303, being partitioned into head zone
Afterwards, that is, the quantity of the pixel in the region is obtained or calculates, to judge it whether more than given threshold.The given threshold is used
Recognition of face is may adapt in the expression head image.For example, in an example of the invention, the given threshold is 50.
I.e. when the pixel count of head zone in image is more than 50, the head image is just adapted for recognition of face, if less than 50, then
Represent that head or portrait are too little in image, are not suitable for carrying out face.
If the pixel in step s 304, determining head zone in described image is not more than given threshold, then it is back to
In step S301, and repeat execution step S301~S304, the pixel of head zone no more than sets threshold in described image
Till value.The filtration of the image to partly not being suitable for carrying out recognition of face can be so realized, computing resource is saved, people is improved
The whole efficiency of face image acquiring.
If in step s 304, determining the pixel of head zone in described image more than given threshold, then into step
In S305.
In step S305, the coordinates regional of head in described image is obtained.
After the pixel in step s 304, determining head zone in described image is more than given threshold, then based on image
Coordinate and step S303 in the described humanoid head that is partitioned into, to obtain described image in head coordinates regional.
Within step 306, partial exposure is carried out based on coordinates regional control imageing sensor, so that the header area
The standard that the image exposure in domain needs to man face image acquiring.
Exemplary, such as based on destination object head coordinates regional, judges the brightness of the image in the coordinates regional, so
The brightness range that afterwards brightness and recognition of face based on the image in the coordinates regional needs, adjusts the exposure ginseng of imageing sensor
Number, so that the brightness of head image meets the standard of recognition of face in the image of imageing sensor collection, so as to realize preferably
Recognition of face.The exposure parameter for example includes the parameters such as time for exposure, digital gain, analog gain, BLC, wide dynamic
With the parameter such as brightness, contrast.
In an example of the invention, when ambient light is weaker or in backlight, the figure that can be based in the coordinates regional
The brightness range that the brightness of picture and recognition of face need, adjusts the exposure parameter of imageing sensor, for example, increase the time for exposure, with
Increase the brightness of head image in the image of imageing sensor collection, comply with the standard of recognition of face.The present invention's
In another example, when ambient light is very strong, the image of imageing sensor collection is entirely white, is also unfavorable for recognition of face, now may be used
With the brightness range that the brightness and recognition of face based on the image in the coordinates regional needs, the exposure ginseng of imageing sensor is adjusted
Number, for example, reduce the time for exposure, with the brightness of head image in the image for reducing imageing sensor collection, complies with face
The standard of identification.
Further, it is to be understood that in the present invention so-called partial exposure refers to the head in image is obtained
After coordinates regional, the brightness range that the brightness and recognition of face based on the image in the coordinates regional needs adjusts image sensing
The exposure parameter of device, is exposed to gather image using the exposure parameter when partial exposure is carried out to whole target area,
So that head image meets the standard of recognition of face in the image of collection, the brightness for for example making head image in the image of collection is accorded with
Close the standard of recognition of face.That is, in the present invention partial exposure is referred to based on regional area (such as head zone) in image
Picture quality (such as brightness) adjusting the exposure parameter of imageing sensor, then figure is resurveyed with the exposure parameter
Picture, so that the picture quality of regional area meets the requirements, rather than only localized region exposes or to adjusting imageing sensor
The exposure parameter of regional area.Although other regions are likely to be at overexposure using this local exposure method, but as long as head figure
As the recognition of face that can be used for that meets the requirements, it has simple and fast and the less advantage of amount of calculation.
In step S307, gathering the head zone to the destination object carries out the image of partial exposure.
Further, after the partial exposure image of imageing sensor is obtained, the image of partial exposure can also be entered
Row Face datection, face character analysis, recognition of face etc. are operated.
Exemplary property, for example, can be gathered using the good human-face detector of training in advance in visible light image sensor
Image in locating human face region.For example, can advance with the Face datections such as Ha Er (Haar) algorithm, Adaboost algorithm with
Recognizer trains human-face detector on the basis of a large amount of pictures, and for the single-frame images of input, the training in advance is good
Human-face detector can quickly locate out human face region.Additionally, for the multiframe figure of visible light image sensor continuous acquisition
Picture, after human face region is oriented in first two field picture, can be based on human face region in the previous frame image of current frame image
Position is following the trail of in real time the position of the human face region in current frame image.
After detecting facial image in the image of imageing sensor collection and providing corresponding coordinate, then can be by coordinate
Facial image is plucked out (be commonly called as scratching figure), to obtain facial image.
Exemplarily, the people can be detected from the image of visible light image sensor collection in step S307
The coordinate data of face image position;According to the coordinate data of the destination object, adopt from the visible light image sensor
Take in the image of collection only including the image of the face.As an example, when it is determined that the coordinate of facial image position
After data, can be marked at these coordinates, for example, be labeled as 1, and the position mark outside these coordinates is 0, so as to true
Determine region, profile and pixel of facial image etc., then can use existing figure cutting techniques (for example, Graph Cut algorithms)
The region for being labeled as 1 is taken out, so as to obtain the only image comprising face.
Further, in embodiments of the present invention, the characteristic information of face can be detected/extracted by the Face datection.
So-called characteristic information, the letter that can be used for face or distinguished face to be identified and other faces for referring to
Breath.By taking facial image as an example, so-called characteristic information can exemplarily include such as face overall information, such as shape of face, face
Layout etc., can also include local feature information, and such as mole, freckle, scar etc. can also include face characteristic information, for example
Left ear information (size, shape etc.), auris dextra information (size, shape etc.), left eyebrow information (such as shape, position, length and width etc.),
Right eyebrow information (such as shape, position, length and width etc.), and left eye information (such as shape, position, length and width etc.), right eye information
(such as shape, position, length and width etc.) etc..
Exemplarily, in one embodiment, Sobel operator extractions characteristics algorithm or Gabor characteristic algorithm etc. can be passed through
The characteristic information of facial image is extracted in the image that feature extraction algorithm is obtained from step 307.In another embodiment, can be with
Using the good crucial spot locator of training in advance come locating human face's key point in human face region (such as in eyes, canthus, eyes
The heart, eyebrow, nose, nose, face, the corners of the mouth and face mask etc.).For example, cascade homing method can be advanced with a large amount of
Crucial spot locator is trained on the basis of the face picture of artificial mark.Alternatively, it would however also be possible to employ traditional face is crucial
Independent positioning method, it is based on parametric shape model, according to the appearance features near key point, learns a parameter model,
Iteratively optimize the position of key point when using, finally obtain crucial point coordinates, after crucial point coordinates is obtained, can be based on should
Coordinate carries out a step and obtains key point (such as eyes, canthus, eye center, eyebrow, nose, nose, face, the corners of the mouth and face
Profile etc.) other information, such as size, shape etc. information.
Should be appreciated that the present invention is not limited by the concrete facial image extracting method for adopting and characteristics information extraction method, nothing
By be existing facial image extracting method and characteristics information extraction method or in the future the facial image extracting method of exploitation and
Feature extracting method, in being applied to man face image acquiring method according to embodiments of the present invention, and also should be included in
In protection scope of the present invention.
Exemplarily, can be deployed at man face image acquiring end according to the man face image acquiring method of the present embodiment, example
Such as, in security protection application, the IMAQ end of gate control system can be deployed in;In financial application field, can be deployed in individual
People's end, smart phone, panel computer, personal computer etc..
Alternatively, man face image acquiring method according to embodiments of the present invention is deployed in server end with can also being distributed
At (or high in the clouds) and personal terminal.For example, in financial application field, IMAQ can be carried out in personal terminal, then in clothes
Business device end (or high in the clouds) carries out humanoid detection, humanoid segmentation, coordinates regional acquisition to the image for gathering, and then enters in personal terminal
Row partial exposure and local exposure image are gathered, and finally carry out man face image acquiring extraction and knowledge in server end (or high in the clouds)
Not etc..
According to the man face image acquiring method of the present embodiment, humanoid detection and humanoid point are carried out by the image to gathering
Cut, so as to obtain the coordinates regional of destination object head, being then based on the exposure parameter of coordinates regional regulation sensor is carried out
Partial exposure, so that head image meets the standard of man face image acquiring in the image of destination object.Because exposure area has
Specific aim and position is accurate, it is possible to obtain face exposure image more more preferable than conventional method.That is, by being partitioned into portrait
Head do partial exposure, solve and can't detect face and the difficulty of desirable photograph cannot be obtained under current half-light or backlight environment
Topic, and may be equally applicable for solving under intense light conditions, photo turns white and is unfavorable for the problem of recognition of face.
Further, can also part be unsuitable for carrying out recognition of face according to the man face image acquiring method of the present embodiment
Image filtered, to save computing resource, improve the whole efficiency of man face image acquiring.
In one example, it is above-mentioned the step of carrying out humanoid segmentation based on the first image of the destination object, be based on
The step of result of the humanoid segmentation obtains the coordinates regional of the head of destination object described in described first image is by servicing
Device realizes that control described image sensor based on the coordinates regional carries out partial exposure so that the mesh to the destination object
The step of exposure of the head zone of mark object meets pre-provisioning request is realized by the processor of camera internal.Due to image segmentation,
The steps such as coordinate determination can save the calculation resources of camera itself in server end realization, it is ensured that camera has the computing of abundance
Resource goes to carry out IMAQ.
In another example, the step of first image based on the destination object carries out humanoid segmentation, described
Based on the humanoid segmentation result obtain described first image described in destination object head coordinates regional the step of, with
And it is described based on the coordinates regional control described image sensor partial exposure is carried out to the destination object so that the mesh
The step of exposure of the head zone of mark object meets pre-provisioning request is realized by the processor of camera internal.Due to each step
Realize in camera internal, thus the localization of man face image acquiring can be realized, and then be advantageously implemented the sheet of recognition of face
Groundization.
Fig. 4 is the schematic block diagram of the human face image collecting device according to the embodiment of the present invention.With reference to Fig. 5 pair
Human face image collecting device according to embodiments of the present invention is described.
As shown in figure 4, human face image collecting device 400 according to embodiments of the present invention includes image collection module 410, people
Shape detection module 420, humanoid segmentation module 430, partial exposure module 440 and face detection module 450.In some examples,
Face detection module 450 can not also be included.
Image collection module 410 is used to gather the image of target area by imageing sensor.Image collection module 410 can
With what is stored in the processor 102 in electronic equipment as shown in Figure 1 or the Running storage device 104 of image-signal processor 110
Programmed instruction can perform step S201 and step in man face image acquiring method according to embodiments of the present invention realizing
Rapid S301.In an example of the invention, the operation of processor 102 in the electronic equipment as shown in Figure 1 of image collection module 410 is deposited
The programmed instruction stored in storage device 104 obtains the image of the collection of imageing sensor 114 by communication unit or connection unit.
The image of target area of the humanoid detection module 420 for obtaining to described image acquisition module 410 carries out humanoid
Detection, to judge the target area with the presence or absence of humanoid, if the target area has humanoid, the humanoid detection mould
Block 420 by detected humanoid transmission to it is described it is humanoid segmentation module 430, otherwise then continue to the next target area
Image carry out humanoid detection.Humanoid detection module 420 can be as shown in Figure 1 electronic equipment in processor 102/ or image
The programmed instruction stored in the Running storage device 104 of signalling means 110 can be performed according to embodiments of the present invention realizing
Step S302 in man face image acquiring method.
Humanoid segmentation module 430 is used to carry out humanoid segmentation to the destination object in described image, to be at least partitioned into institute
The head of destination object is stated, and obtains the coordinates regional of the head of the destination object.That is, humanoid segmentation module 430 is to humanoid
Detection module 420 detect it is humanoid split, be for example divided into head, trunk and four limbs region by humanoid, then judge
Whether the quantity of the pixel in the head zone of the destination object is more than given threshold, if the head of the destination object
The quantity of the pixel in region is more than given threshold, then obtain the coordinates regional of the head of the destination object, and will be described
Coordinates regional is sent to the partial exposure module 440;Otherwise then do not obtain the coordinates regional of the head of the destination object.People
Shape splits the processor 102 and/or picture signal device 110 operation storage dress in the electronic equipment that module 430 can be as shown in Figure 1
The programmed instruction stored in 104 is put realizing, and can be performed in man face image acquiring method according to embodiments of the present invention
The step of S202~S203, and step S303~S305.
Partial exposure module 440 is used for the coordinates regional based on the head of the destination object and controls imageing sensor to institute
Stating the head of destination object carries out partial exposure, so that the image exposure of the head zone of the destination object is adopted to facial image
The standard that collection needs.That is, coordinates regional of the partial exposure module 440 based on the head of the destination object adjusts described image and passes
The exposure parameter of sensor, so that the standard that the image exposure of the head zone of the destination object needs to man face image acquiring.
For example, partial exposure control module 440 adjusts the exposure parameter of described image sensor, to increase the head of the destination object
The brightness of the image in region.Again for example, partial exposure control module 440 adjusts the exposure parameter of described image sensor, to drop
The brightness of the image of the head zone of the low destination object.Partial exposure control module 440 can be as shown in Figure 1 electronics set
The programmed instruction stored in processor 102 and/or the Running storage device 104 of picture signal device 110 in standby, and can realizing
Step S204 and S306 in perform man face image acquiring method according to embodiments of the present invention.
Face detection module 450 carries out the image of partial exposure based on the acquired head zone to the destination object
Carry out Face datection man face image acquiring.The head zone to the destination object i.e. from imageing sensor collection carries out local
Face is detected and extracted in the image of exposure, and Face datection man face image acquiring and extracting method are for example described above, and here is no longer
Repeat.
In one example, the human face image collecting device is camera.In another example, the facial image
Harvester includes camera and server, and the camera includes described image acquisition module and the partial exposure module,
The server includes the humanoid segmentation module.
Human face image collecting device of the invention, by the image to gathering humanoid detection and humanoid segmentation are carried out,
So as to obtain the coordinates regional of destination object head, being then based on the exposure parameter of coordinates regional regulation sensor carries out local
Exposure, so that head image meets the standard of man face image acquiring in the image of destination object.It is directed to because exposure area has
Property and position is accurate, it is possible to obtain face exposure image more more preferable than conventional method.That is, the head by being partitioned into portrait
Partial exposure is done in portion, solves and can't detect face and cannot obtain a difficult problem for desirable photograph under current half-light or backlight environment,
And may be equally applicable for solving under intense light conditions, photo turns white and is unfavorable for the problem of recognition of face.
Further, can also part be unsuitable for carrying out recognition of face according to the human face image collecting device of the present embodiment
Image filtered, to save computing resource, improve the whole efficiency of the man face image acquiring for recognition of face.
Fig. 5 is the schematic block diagram of the man face image acquiring equipment according to the embodiment of the present invention.With reference to Fig. 5 pair
Man face image acquiring device systems according to embodiments of the present invention are described.
As shown in figure 5, image detecting apparatus 500 according to embodiments of the present invention include imageing sensor 510, picture signal
Processor 520, storage device 530 and processor 540.
Imageing sensor 510 is used to gather the image of target area.Imageing sensor 510 can be RGB sensors, also may be used
Think black and white sensor.Imageing sensor 510 can gather picture and can also gather video.
Image-signal processor 520 is controlled for imageing sensor 510, and to the letter of the collection of imageing sensor 510
Number processed, to obtain the image or video data of target area.That is, the data of the collection of imageing sensor 510 can be by scheming
Realize as the programmed instruction stored in the Running storage device 540 of signal processor 520, to obtain the picture of target area or regard
Frequency evidence.In an embodiment of the present invention, image-signal processor 520 is additionally operable to run what is stored in the storage device 530
Program code, to perform man face image acquiring method according to embodiments of the present invention in local exposure method corresponding steps,
Or the partial exposure module 440 for realizing in human face image collecting device according to embodiments of the present invention.
The storage device 530 store for realizing man face image acquiring method according to embodiments of the present invention in it is corresponding
The program code of step.
The processor 540 is used to run the program code stored in the storage device 530, to perform according to the present invention
The corresponding steps of the man face image acquiring method of embodiment, and for realizing man face image acquiring according to embodiments of the present invention
Image collection module 410, humanoid detection module 420, humanoid segmentation module 430 and face detection module 450 in device.
In one embodiment, following steps are performed when described program code is run by the processor 540:
Obtain the image of the destination object of imageing sensor collection;
Image based on the destination object carries out humanoid segmentation, to be at least partitioned into the head of the destination object;
Obtain the coordinates regional of the head of destination object described in described image;
Partial exposure is carried out to the head of the destination object based on coordinates regional control imageing sensor, so that institute
The head image for stating destination object is exposed to the standard of man face image acquiring needs;
Gather the image of the partial exposure.
In one example, the man face image acquiring equipment is camera.In another example, the facial image
Collecting device includes camera and server, and the camera includes described image acquisition module and the partial exposure module,
The server includes the humanoid segmentation module.
In one embodiment, processor 540 can be implemented as central processing unit (CPU), wherein, central processing unit
(CPU) image of target area is obtained by imageing sensor 510, then by corresponding program in execution storage device 530
Code, humanoid detection, humanoid segmentation are carried out to described image, to obtain described image in destination object head coordinate area
Domain, then sends the coordinates regional of the head of the destination object to image-signal processor (ISP) 520, picture signal process
Device 520 controls imageing sensor 510 and carries out partial exposure by corresponding program code in execution storage device 530, so that figure
As the head image of destination object in the image of the collection of sensor 510 meets the standard of recognition of face.Subsequently, central processing unit
(CPU) corresponding program in being also based on the partial exposure image of the collection of imageing sensor 510 by performing storage device 530
Code carries out human face detection and recognition.
Exemplarily, image detecting apparatus 500 according to embodiments of the present invention can be implemented with imageing sensor, deposit
The unit or system of reservoir, communication interface/unit and processor.
Image detecting apparatus 500 according to embodiments of the present invention can be deployed in man face image acquiring identifying system, example
Such as, in security protection application, gate control system or preventing road monitoring system can be deployed in;In financial application field, can be with bank, friendship
Easily etc. identity authorization system in.
Additionally, according to embodiments of the present invention, additionally providing a kind of storage medium, program is stored on said storage
Instruction, when described program is instructed and run by computer or processor for performing the man face image acquiring side of the embodiment of the present invention
Method, the corresponding steps of local exposure method, and for realizing human face image collecting device according to embodiments of the present invention, local
Corresponding module/the submodule of exposure module.The storage medium can for example include the storage card of smart phone, panel computer
It is memory unit, the hard disk of personal computer, read-only storage (ROM), Erasable Programmable Read Only Memory EPROM (EPROM), portable
Any combination of formula aacompactadisk read onlyamemory (CD-ROM), USB storage or above-mentioned storage medium.The computer can
Read any combination that storage medium can be one or more computer-readable recording mediums, such as one computer-readable storage
Medium includes the computer-readable program code generated for target object information, another computer-readable recording medium bag
Containing the computer-readable program code for target object information identification.
In one embodiment, the computer program instructions can be realized according to of the invention real when being run by computer
Each functional module in the man face image acquiring square law device of example is applied, and/or can be performed according to embodiments of the present invention
Man face image acquiring method.
In one embodiment, the computer program instructions perform following steps when being run by computer:Obtain figure
As the image of the destination object of sensor collection;Image based on the destination object carries out humanoid segmentation, to be at least partitioned into
The head of the destination object;Obtain the coordinates regional of the head of destination object described in described image;Based on the coordinate area
Domain control imageing sensor carries out partial exposure to the head of the destination object, so that the head image of the destination object exposes
The standard that light needs to man face image acquiring;Gather the image of the partial exposure.
Each module in human face image collecting device according to embodiments of the present invention can be by according to embodiments of the present invention
Man face image acquiring electronic equipment the processor computer program instructions that store in memory of operation realizing, or
The computer instruction that can be stored in the computer-readable recording medium of computer program according to embodiments of the present invention
Realize when being run by computer.
Man face image acquiring method and apparatus according to embodiments of the present invention, image detecting apparatus and storage medium, pass through
Image to gathering carries out humanoid detection and humanoid segmentation, so as to obtain the coordinates regional of destination object head, is then based on this
Coordinates regional adjusts the exposure parameter of sensor and carries out partial exposure, so that head image meets face in the image of destination object
The standard of IMAQ.Because exposure area has specific aim and position is accurate, it is possible to obtain more more preferable than conventional method
Face exposure image.That is, by doing partial exposure to the head that portrait is partitioned into, solve and examined under current half-light or backlight environment
Do not detect face and a difficult problem for desirable photograph cannot be obtained, and may be equally applicable for solving under intense light conditions, photo turns white
And it is unfavorable for the problem of recognition of face.
Although the example embodiment by reference to Description of Drawings here, it should be understood that above-mentioned example embodiment is merely exemplary
, and be not intended to limit the scope of the invention to this.Those of ordinary skill in the art can wherein carry out various changes
And modification, it is made without departing from the scope of the present invention and spirit.All such changes and modifications are intended to be included in claims
Within required the scope of the present invention.
Those of ordinary skill in the art are it is to be appreciated that the list of each example with reference to the embodiments described herein description
Unit and algorithm steps, being capable of being implemented in combination in electronic hardware or computer software and electronic hardware.These functions are actually
Performed with hardware or software mode, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel
Each specific application can be used different methods to realize described function, but this realization it is not considered that exceeding
The scope of the present invention.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, it can be passed through
Its mode is realized.For example, apparatus embodiments described above are only schematic, for example, the division of the unit, and only
Only a kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can be tied
Close or be desirably integrated into another equipment, or some features can be ignored, or do not perform.
In specification mentioned herein, a large amount of details are illustrated.It is to be appreciated, however, that the enforcement of the present invention
Example can be put into practice in the case of without these details.In some instances, known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the present invention and help understand one or more in each inventive aspect, exist
To the present invention exemplary embodiment description in, the present invention each feature be grouped together into sometimes single embodiment, figure,
Or in descriptions thereof.However, the method for the invention should be construed to reflect following intention:It is i.e. claimed
The more features of feature that are expressly recited in each claim of application claims ratio.More precisely, as accordingly
As claims reflect, its inventive point is can be with all features less than certain disclosed single embodiment
Feature is solving corresponding technical problem.Therefore, it then follows thus claims of specific embodiment are expressly incorporated in the tool
Separate embodiments of the body embodiment, wherein each claim as the present invention itself.
It will be understood to those skilled in the art that in addition to mutually exclusive between feature, any combinations pair can be adopted
All features and so disclosed any method disclosed in this specification (including adjoint claim, summary and accompanying drawing)
Or all processes or unit of equipment are combined.Unless expressly stated otherwise, this specification (will including adjoint right
Ask, make a summary and accompanying drawing) disclosed in each feature can, equivalent identical by offer or similar purpose alternative features replacing.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments
In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention
Within the scope of and form different embodiments.For example, in detail in the claims, embodiment required for protection one of arbitrarily
Can in any combination mode using.
The present invention all parts embodiment can be realized with hardware, or with one or more processor operation
Software module realize, or with combinations thereof realization.It will be understood by those of skill in the art that can use in practice
Microprocessor or digital signal processor (DSP) to realize article analytical equipment according to embodiments of the present invention in some moulds
The some or all functions of block.The present invention is also implemented as the part for performing method as described herein or complete
The program of device (for example, computer program and computer program) in portion.Such program for realizing the present invention can be stored
On a computer-readable medium, or can have one or more signal form.Such signal can be from internet
Download on website and obtain, or provide on carrier signal, or provide in any other form.
It should be noted that above-described embodiment the present invention will be described rather than limits the invention, and ability
Field technique personnel can design without departing from the scope of the appended claims alternative embodiment.In the claims,
Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" is not excluded the presence of not
Element listed in the claims or step.Word "a" or "an" before element does not exclude the presence of multiple such
Element.The present invention can come real by means of the hardware for including some different elements and by means of properly programmed computer
It is existing.If in the unit claim for listing equipment for drying, several in these devices can be by same hardware branch
To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and be run after fame
Claim.
The above, the only specific embodiment of the present invention or the explanation to specific embodiment, the protection of the present invention
Scope is not limited thereto, any those familiar with the art the invention discloses technical scope in, can be easily
Expect change or replacement, all should be included within the scope of the present invention.Protection scope of the present invention should be with claim
Protection domain is defined.