CN109729268A - A kind of face image pickup method, device, equipment and medium - Google Patents

A kind of face image pickup method, device, equipment and medium Download PDF

Info

Publication number
CN109729268A
CN109729268A CN201811602998.7A CN201811602998A CN109729268A CN 109729268 A CN109729268 A CN 109729268A CN 201811602998 A CN201811602998 A CN 201811602998A CN 109729268 A CN109729268 A CN 109729268A
Authority
CN
China
Prior art keywords
face
target image
camera unit
image
main face
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811602998.7A
Other languages
Chinese (zh)
Other versions
CN109729268B (en
Inventor
张征
周一帆
廖军
杨培凯
许江
石晶
詹志海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Lanchuang Information Technology Co Ltd
Original Assignee
Wuhan Lanchuang Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Lanchuang Information Technology Co Ltd filed Critical Wuhan Lanchuang Information Technology Co Ltd
Priority to CN201811602998.7A priority Critical patent/CN109729268B/en
Publication of CN109729268A publication Critical patent/CN109729268A/en
Application granted granted Critical
Publication of CN109729268B publication Critical patent/CN109729268B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of face image pickup method, device, electronic equipment and medium, method includes: to obtain target image, and the main face in recognition target image by camera unit;If identifying main face, it is determined that main position of the face on target image;And according to the position, the camera unit movement is controlled, so that the imaging of the main face is located at the middle part of the image of camera unit shooting;If not identifying face in the target image, start reset timing, the camera unit continues to obtain image during resetting timing;If not identifying face in the image obtained in the first preset duration after resetting timing and starting, controls the camera unit and be reset to initial position.The present invention solves the camera unit on self-service machine in the prior art, and often existing face information leaks the technical issues of acquiring.The technical effect for realizing the acquisition quality for improving main face and leakage being avoided to acquire.

Description

A kind of face image pickup method, device, equipment and medium
Technical field
The present invention relates to field of computer technology more particularly to a kind of face image pickup method, device, equipment and media.
Background technique
Currently, miscellaneous self-service machine enters the work and life of people with the fast development of Internet technology, It brings great convenience and efficiently.For example, the ATM of bank, the self-help inquiry apparatus of hospital, airport automatic printing Boarding card machine or hotel self-service machine etc..
And for security consideration, these self-service machines or self-aid system often with camera unit, to acquire the people of user Face information, is docked with the Ministry of Public Security or service provider.However in actual use, due to the height differences of different users, The not difference in height of homologous ray self-service machine, the use stance of different user habit difference etc., frequently can lead to part face cannot It is collected.
As it can be seen that the camera unit on existing self-service machine often there is technical issues that face information leakage.
Summary of the invention
The embodiment of the present application solves by providing a kind of face image pickup method, device, equipment and medium or part solves Often existing face information leaks the technical issues of acquiring to camera unit on existing self-service machine.
In a first aspect, providing a kind of face image pickup method, comprising:
Target image is obtained by camera unit, and identifies the main face in the target image;
If identifying main face, it is determined that position of the main face on the target image;And according to institute Rheme is set, and the camera unit movement is controlled, so that the imaging of the main face is located at the image of camera unit shooting Middle part;
If not identifying face in the target image, start reset timing, the camera unit is resetting meter When during continue obtain image;If do not had in the image obtained in the first preset duration after resetting timing and starting It identifies face, then controls the camera unit and be reset to initial position.
Optionally, the main face in the identification target image, comprising: identify the people in the target image Face;If identifying multiple faces in the target image, obtain in the multiple face, each face is in the target figure Location parameter and dimensional parameters as in;According to the location parameter and the dimensional parameters, determined from the multiple face Main face out.
Optionally, the location parameter be corresponding face central point away from the distance of the central point of the target image, Or the location parameter is the default sign value in corresponding face locating region in the target image;The dimensional parameters For corresponding face, the area in shared region or the dimensional parameters are corresponding face described on the target image The horizontal width in shared region on target image.
Optionally, described according to the location parameter and the dimensional parameters, it is determined from the multiple face main Face, comprising: the dimensional parameters for calculating each face subtract the difference of the location parameter, maximum with the difference Face as the main face;Alternatively, calculating the dimensional parameters of each face divided by the location parameter Ratio, using the maximum face of the ratio as the main face;Alternatively, according to the location parameter determine it is described everyone Region locating for face, using the maximum face of dimensional parameters in default center region as the main face.
Optionally, described according to the position, it is mobile to control the camera unit, comprising: exist according to the main face Position in the target image determines main face target area locating in the target image, wherein described Target image is default to be divided into multiple regions;According to the corresponding moving direction in the preset target area and moving distance control The camera unit is mobile;Alternatively, the position according to the main face in the target image, determines the main face With the relative positional relationship at the center of the target image;It is mobile to control the camera unit for relationship depending on that relative position; Alternatively, the position according to the main face in the target image, in conjunction with the main face in preceding image or rear image In position, determine the mobile trend of the position of the main face;The camera unit is controlled according to the mobile trend to move It is dynamic;Wherein, the preceding image is the image that the camera unit obtains before obtaining the target image, and the rear image is The image that the camera unit obtains after obtaining the target image.
Optionally, the control camera unit is reset to initial position, comprising: control unit, which is sent, resets message extremely Serial ports, and reset control function is opened to monitor whether to receive serial ports response of camera unit after the completion of reset, wherein it is described Control unit and the camera unit pass through the serial communication;If receiving the serial ports response, the reset is closed Monitoring function;If being not received by the serial ports response sending in the second preset duration after the reset message, weigh It sends out described and resets message to serial ports.
Second aspect provides a kind of face filming apparatus, comprising:
Module is obtained, for obtaining target image by camera unit, and identifies the main face in the target image;
Control module, if for identifying main face, it is determined that the main face is on the target image Position;And according to the position, it is mobile to control the camera unit, so that the imaging of the main face is located at the camera shooting list The middle part of the image of member shooting;
Reseting module, if starting reset timing, the camera shooting for not identifying face in the target image Unit continues to obtain image during resetting timing;If obtained in the first preset duration after resetting timing and starting Face is not identified in image, then controls the camera unit and is reset to initial position.
Optionally, the acquisition module is also used to: identifying the face in the target image;If in the target image It identifies multiple faces, then obtains in the multiple face, location parameter and size of each face in the target image Parameter;According to the location parameter and the dimensional parameters, main face is determined from the multiple face.
The third aspect, provides a kind of electronic equipment, including memory, processor and storage on a memory and can handled The computer program run on device, the processor realize first aspect any method when executing described program.
Fourth aspect provides a kind of computer readable storage medium, is stored thereon with computer program, and the program is processed First aspect any method is realized when device executes.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
Face image pickup method, device, equipment and medium provided by the embodiments of the present application, in the target figure that camera unit obtains After identifying main face as in, according to the position of main face, the camera unit movement is controlled, so that the main face Imaging be located at the camera unit shooting image the more awake destination locations in middle part, improve the acquisition quality of main face, Avoid face leakage acquisition.Further, if not identifying face in target image, start reset timing, if resetting Timing start after the first preset duration in be not picked up by face, then control the camera unit and be reset to initial position, It is moved to and is defied capture to the position of face to avoid camera unit, further avoid face leakage acquisition.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, for this For the those of ordinary skill of field, without creative efforts, it can also be obtained according to these attached drawings others Attached drawing.
Fig. 1 is the flow chart of face image pickup method in the embodiment of the present application;
Fig. 2 is the structural schematic diagram of face filming apparatus in the embodiment of the present application;
Fig. 3 is the structural schematic diagram of electronic equipment in the embodiment of the present application;
Fig. 4 is the structural schematic diagram of computer readable storage medium in the embodiment of the present application.
Specific embodiment
The embodiment of the present application solves by providing a kind of face image pickup method, device, equipment and medium or part solves Face information existing for camera unit on existing self-service machine is easy the technical issues of leakage acquisition.It realizes and improves main face Acquisition quality and the technical effect for avoiding leakage from acquiring.
The technical solution of the embodiment of the present application is in order to solve the above technical problems, general thought is as follows:
Target image is obtained by camera unit, and identifies the main face in the target image;
If identifying main face, it is determined that position of the main face on the target image;And according to institute Rheme is set, and the camera unit movement is controlled, so that the imaging of the main face is located at the image of camera unit shooting Middle part;
If not identifying face in the target image, start reset timing, the camera unit is resetting meter When during continue obtain image;If do not had in the image obtained in the first preset duration after resetting timing and starting It identifies face, then controls the camera unit and be reset to initial position.
Specifically, after identifying main face in the target image that camera unit obtains, according to the position of main face It sets, controls the camera unit movement, so that the imaging of the main face is located in the image of camera unit shooting The more awake destination locations in portion, improve the acquisition quality of main face, also avoid face leakage acquisition.Further, if in target image It does not identify face, then starts reset timing, if do not shot in the first preset duration after resetting timing and starting It to face, then controls the camera unit and is reset to initial position, be moved to defy capture to avoid camera unit and arrive face Position further avoids face leakage acquisition.
In order to better understand the above technical scheme, in conjunction with appended figures and specific embodiments to upper Technical solution is stated to be described in detail.
Embodiment one
As shown in Figure 1, present embodiments providing a kind of face image pickup method, comprising:
Step S101 obtains target image by camera unit, and identifies the main face in the target image;
Step S102, if identifying main face, it is determined that position of the main face on the target image; And according to the position, it is mobile to control the camera unit, so that the imaging of the main face is located at camera unit bat The middle part for the image taken the photograph;
Step S103 starts reset timing, the camera unit if not identifying face in the target image Continue to obtain image during resetting timing;If the image obtained in the first preset duration after resetting timing and starting In do not identify face, then control the camera unit and be reset to initial position.
It should be noted that method provided in this embodiment can be applied to the face shooting of the camera unit on self-service machine Control also can be applied to the camera unit face shooting control on the communication equipments such as computer, mobile phone, can also be applied to monitoring The face of the camera unit of system shoots control, and this is not restricted.
The system that this method is applied to includes: camera unit and control unit, and camera unit obtains image for shooting, control Unit processed for identification face in image, carry out the identification of main face and control the movement of camera unit.Wherein, camera unit The independent placement that can be communicated can be separated with control unit, be also desirably integrated into one device, this is not restricted.
In the following, the specific implementation step of camera unit control method provided in this embodiment is discussed in detail in conjunction with Fig. 1:
Step S101 obtains target image by camera unit, and identifies the main face in the target image.
In the specific implementation process, camera unit can be continuously in image taking state, be also possible to pass by setting Sensor detect someone close to when enter back into shooting state.After camera unit takes target image, target image is passed through into string Control unit is defeated by oral instructions, which can be chip or single-chip microcontroller etc..In control unit analysis and recognition target image Face.
Wherein, in order to avoid the communication between camera unit and control unit is broken down, camera shooting can be opened each It carries out serial ports before unit to shake hands, i.e., the program in camera unit and control unit do a carrying out shake communication, it is ensured that program and control Communication between unit processed is unimpeded, and program sends a request message to serial ports every time, can all receive the response from serial ports Message.
Wherein, control unit can use face recognition technology to the identification of face.It can specifically be calculated using deep learning Method or Feature Correspondence Algorithm etc. carry out recognition of face.By taking deep learning algorithm as an example, depth learning technology can be used from view Portrait characteristic point is extracted in frequency and photo, carries out analysis founding mathematical models, i.e. face characteristic using the principle of biostatistics Template.Using the image surface of built skin detection and the people of measured carry out signature analysis, according to the result of analysis come A similarity value is provided, best match skin detection is finally searched, and identifies the face in image or video.
In the embodiment of the present application, identify that main face includes two kinds of situations, it is this one is only identifying a face Situation can be using that face for identifying as main face.Another kind is to identify multiple faces, then needs to carry out main The determination of face, specific determination process may is that if identifying multiple faces in the target image, obtain the multiple In face, location parameter and dimensional parameters of each face in the target image;According to the location parameter and the ruler Very little parameter determines main face from the multiple face.
Wherein, the location parameter and dimensional parameters of the face identified from target image can be there are many setting methods.
For example: the location parameter of face can for the people's face central point away from the central point of the target image away from From;Or location parameter can be the default sign value in the people's face locating region in the target image, i.e., in advance to difference Region different numerical value is set as sign value, the size of the sign value and the region according at a distance from target image center at just Correlation etc..The dimensional parameters of face are the face area in shared region or size ginseng on the target image Number is the horizontal width etc. in the face shared region on the target image.
In above-mentioned example, the location parameter of face is positively correlated with face according at a distance from target image center, is being embodied In the process, it may be set to be inverse correlation, for example, location parameter is the central point of the face away from the central point of the target image Distance inverse, this is not restricted.In the above example, the size of the dimensional parameters of face and face on target image It is positively correlated, may be set to be inverse correlation, for example, the dimensional parameters of face are the face shared region on the target image Area inverse, this is not restricted, also will not enumerate.
In the specific implementation process, the physical significance of location parameter and dimensional parameters is not identical and/or photographed scene not Together, the method for the main face of corresponding determination is not also identical, but overall thinking is: face closer to the center of target image, Then the face be chosen as main face chance it is bigger;The size that face occupies on target image is bigger, then the face is selected Based on want the chance of face bigger.I.e. selection is closer to target image center, and larger-sized people is occupied on target image Face is as main face.
In the following, being positively correlated with the location parameter of face and face according at a distance from target image center, and the size ginseng of face It counts and face is in case where the size on target image is positively correlated, the method for enumerating three kinds of main faces of determination:
The first, the dimensional parameters for calculating each face subtract the difference of location parameter, with the maximum face of the difference As the main face.
Realized by subtraction face size shared on target image be the positive correlation of main face really Determine factor, face is on target image according to the negatively correlated determination factor for wanting face based on the position of picture centre.
For example, it is assumed that identify that face A and face B, location parameter are distance of the face according to target image center, ruler Very little parameter is the transverse width in face shared region on target image.Wherein, the location parameter of face A is 2cm, face B's Location parameter is 1.5cm, and the dimensional parameters of face A are 4, and the dimensional parameters of face B are 2, then wants face based on face A, because It is greater than 2-1.5 for 4-2.
If being had using the maximum face quantity of the calculated difference of this method multiple, can be set wherein in The heart or size it is maximum based on want face.
Second, calculate the dimensional parameters of each face divided by the ratio of the location parameter, most with the ratio Big face is as the main face.
Realized by division calculation face size shared on target image be the positive correlation of main face really Determine factor, face is on target image according to the negatively correlated determination factor for wanting face based on the position of picture centre.
For example, it is assumed that identify that face A and face B, location parameter are distance of the face according to target image center, ruler Very little parameter is the transverse width in face shared region on target image.Wherein, the location parameter of face A is 2cm, face B's Location parameter is 1.5cm, and the dimensional parameters of face A are 4, and the dimensional parameters of face B are 2, then wants face based on face A, because It is greater than 2/1.5 for 4/2.
If being had using the maximum face quantity of the calculated ratio of this method multiple, can be set wherein in The heart or size it is maximum based on want face.
The third, according to the location parameter determine each face locating for region, be located at default center region The maximum face of interior dimensional parameters is as the main face.
A central area is preset, the people in central area is first determined according to the location parameter of each face Face, then using the maximum face of dimensional parameters in default center region as the main face.Pass through predeterminable area Method realize that face size shared on target image is the positively related determining factor of main face, face is in target According to the negatively correlated determination factor for wanting face based on the position of picture centre on image.
For example, it is assumed that preset central area is to identify face A, face B and people according to the region in the 4cm of center Face C, location parameter are distance of the face according to target image center, and dimensional parameters are the cross in face shared region on target image To width.Wherein, the location parameter of face A is 2cm, and the location parameter of face B is 3cm, and the location parameter of face C is 5cm.People The dimensional parameters of face A are 2, and the dimensional parameters of face B are 4, and the dimensional parameters of face C are 3, then are determined according to location parameter Face in heart district domain is face A and face B, face is wanted based on face B, because its dimensional parameters is bigger.
Certainly, in the specific implementation process, according to the location parameter and the dimensional parameters, main face is determined Mode be not limited to above-mentioned three kinds, this is not restricted, also will not enumerate.
Step S102, if identifying main face, it is determined that position of the main face on the target image; And according to the position, it is mobile to control the camera unit, so that the imaging of the main face is located at camera unit bat The middle part for the image taken the photograph.
Specifically, it can be the control camera unit and be moved to target position, so that in the camera unit in institute In the image for stating target position acquisition, the main face is located at center, with the main face of protrusion, improves it and acquires matter Amount.
In the specific implementation process, the position according to the main face in the target image controls camera unit Mobile method can there are many, be set forth below for three kinds:
The first, subregion.
The i.e. first position according to the main face in the target image, determines the main face in the target Locating target area in image, wherein the target image is default to be divided into multiple regions, further according to the preset target It is mobile that the corresponding moving direction in region and moving distance control the camera unit.
For example, the height of camera unit captured image can be subjected to five equal parts in advance, if main head portrait The central point of position occupy the position of the centre 1/5th of target image, then determines that user's head portrait is placed in the middle, camera is not required to It moves;If the central point of head portrait occupy 2/5ths regions of upside, determine that head portrait is on the upper side, camera needs adjust upward Angle, program send up-regulation message to serial ports, up-regulation distance with its locating for region according to being positively correlated at a distance from central area;Together Sample, if central point, for 2/5ths regions of downside, camera needs to adjust the angle downwards, and program sends to serial ports and lowers Message, lower distance with its locating for region according at a distance from central area at inverse correlation.
Second, by the relative positional relationship away from center.
The i.e. first position according to the main face in the target image, determines the main face and the target It is mobile to control the camera unit further according to the relative positional relationship for the relative positional relationship at the center of image.
Specifically, after target image being got with camera unit, the institute of the main face in target image is identified The center of display area, using picture centre as starting point, main face center is terminal, obtains vector, raw according to the vector At control instruction, it is mobile by direction shown in vector to control camera.
The third, more pictures determine shift position.
That is first position according to the main face in the target image, in conjunction with the main face in preceding image or Position in image afterwards determines the mobile trend of the position of the main face;The camera shooting is controlled according to the mobile trend Unit is mobile;Wherein, the preceding image is the image that the camera unit obtains before obtaining the target image, after described Image is the image that the camera unit obtains after obtaining the target image.
I.e. camera unit also captures other images before or after target image, successive at any time according to main face Mobile trend of the sequence in the image of camera unit shooting is mobile to control camera.As an example it is assumed that main face exists It is located at below image in the preceding image shot before camera unit, as user walks close to, position in the target image is opposite Position in preceding image moves up, then can control camera unit and move up therewith, in case face removes coverage.That is people Face is successive at any time, moves up in the image of camera unit shooting, then, control camera unit is mobile to adapt to face upwards Trend.
Certainly, in the specific implementation process, the mobile mode of control camera unit is not limited to above-mentioned three kinds, does not limit herein System, also will not enumerate.
Step S103 starts reset timing, the camera unit if not identifying face in the target image Continue to obtain image during resetting timing;If the image obtained in the first preset duration after resetting timing and starting In do not identify face, then control the camera unit and be reset to initial position.
Specifically, reset function can also be set to avoid camera unit from being moved to the position of certain offset normal range (NR) Afterwards, face cannot normally be captured.Wherein, the reset of step S103 and step S102 do not have the limitation of sequencing relationship.
If not identifying face in the target image of camera unit shooting, start reset timing, it is described to take the photograph As unit continues during resetting timing to obtain image, if obtained in the first preset duration after resetting timing and opening Face is not identified in image, then controls the camera unit and is reset to initial position.
The specific control camera unit is reset to initial position, comprising: control unit sends reset message and extremely goes here and there Mouthful, and reset control function is opened to monitor whether to receive serial ports response of camera unit after the completion of reset, wherein the control Unit processed and the camera unit pass through the serial communication;If receiving the serial ports response, the reset prison is closed Control function;If being not received by the serial ports response sending in the second preset duration after the reset message, retransmit The reset message is to serial ports.
For example, if not having face in the target image of camera unit shooting, camera unit does not need to move, Reset control starts timing simultaneously.If face is still not detected in 60s, camera unit is resetted, i.e., is sent out to serial ports Reset message is sent, after having sent message, waits the i.e. serial ports response of returned packet of serial ports, if receiving returned packet, characterization is multiple Position is completed, if the waiting time is more than 10s, can be retransmitted primary reset message and be completed to reset operation.
Based on the same inventive concept, this application provides the corresponding device of the method for embodiment one, detailed in Example two.
Embodiment two
The present embodiment provides a kind of face filming apparatus, as shown in Figure 2, comprising:
Module 201 is obtained, for obtaining target image by camera unit, and identifies the main people in the target image Face;
Control module 202, if for identifying main face, it is determined that the main face is on the target image Position;And according to the position, the camera unit movement is controlled, so that the imaging of the main face is located at the camera shooting The middle part of the image of unit photographs;
Reseting module 203, it is described if starting reset timing for not identifying face in the target image Camera unit continues to obtain image during resetting timing;If obtained in the first preset duration after resetting timing and starting Face is not identified in the image taken, then controls the camera unit and is reset to initial position.
In the embodiment of the present application, the acquisition module 201 is also used to:
Identify the face in the target image;
If identifying multiple faces in the target image, obtain in the multiple face, each face is described Location parameter and dimensional parameters in target image;
According to the location parameter and the dimensional parameters, main face is determined from the multiple face.
Since the device that the present embodiment is introduced is device used by method in implementation the embodiment of the present application one, so base The method described in the embodiment of the present application one, those skilled in the art can understand the specific of the device of the present embodiment Embodiment and its various change form, so how to realize the method in the embodiment of the present application no longer for the device at this It is discussed in detail.As long as those skilled in the art implement device used by the method in the embodiment of the present application one, belong to The range to be protected of the application.
Based on the same inventive concept, this application provides the corresponding apparatus embodiments of embodiment one, detailed in Example three.
Embodiment three
The present embodiment provides a kind of electronic equipment, as shown in figure 3, including memory 310, processor 320 and being stored in On reservoir 310 and the computer program 311 that can run on the processor 320, processor 320 execute real when computer program 311 Existing following steps:
Target image is obtained by camera unit, and identifies the main face in the target image;
If identifying main face, it is determined that position of the main face on the target image;And according to institute Rheme is set, and the camera unit movement is controlled, so that the imaging of the main face is located at the image of camera unit shooting Middle part;
If not identifying face in the target image, start reset timing, the camera unit is resetting meter When during continue obtain image;If do not had in the image obtained in the first preset duration after resetting timing and starting It identifies face, then controls the camera unit and be reset to initial position.
In the specific implementation process, it when processor 320 executes computer program 311, may be implemented any in embodiment one Embodiment.
Since the electronic equipment that the present embodiment is introduced is equipment used by method in implementation the embodiment of the present application one, therefore And based on method described in the embodiment of the present application one, the electronics that those skilled in the art can understand the present embodiment is set Standby specific embodiment and its various change form, so how to realize the embodiment of the present application for the electronic equipment herein In method be no longer discussed in detail.As long as those skilled in the art implement to set used by the method in the embodiment of the present application It is standby, belong to the range to be protected of the application.
Based on the same inventive concept, this application provides the corresponding storage medium of embodiment one, detailed in Example four.
Example IV
The present embodiment provides a kind of computer readable storage mediums 400, as shown in figure 4, being stored thereon with computer program 411, which performs the steps of when being executed by processor
Target image is obtained by camera unit, and identifies the main face in the target image;
If identifying main face, it is determined that position of the main face on the target image;And according to institute Rheme is set, and the camera unit movement is controlled, so that the imaging of the main face is located at the image of camera unit shooting Middle part;
If not identifying face in the target image, start reset timing, the camera unit is resetting meter When during continue obtain image;If do not had in the image obtained in the first preset duration after resetting timing and starting It identifies face, then controls the camera unit and be reset to initial position.
In the specific implementation process, it when which is executed by processor, may be implemented any in embodiment one Embodiment.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (10)

1. a kind of face image pickup method characterized by comprising
Target image is obtained by camera unit, and identifies the main face in the target image;
If identifying main face, it is determined that position of the main face on the target image;And according to institute's rheme It sets, controls the camera unit movement, so that the imaging of the main face is located in the image of camera unit shooting Portion;
If not identifying face in the target image, start reset timing, the camera unit is resetting timing Continue to obtain image in the process;If do not identified in the image obtained in the first preset duration after resetting timing and starting Face out then controls the camera unit and is reset to initial position.
2. the method as described in claim 1, which is characterized in that the main face in the identification target image, comprising:
Identify the face in the target image;
If identifying multiple faces in the target image, obtain in the multiple face, each face is in the target Location parameter and dimensional parameters in image;
According to the location parameter and the dimensional parameters, main face is determined from the multiple face.
3. method according to claim 2, it is characterised in that:
The location parameter is the central point of corresponding face away from the distance of the central point of the target image or the position Parameter is the default sign value in corresponding face locating region in the target image;
The dimensional parameters are that corresponding the face area in shared region or dimensional parameters on the target image are The horizontal width in corresponding face shared region on the target image.
4. method according to claim 2, which is characterized in that it is described according to the location parameter and the dimensional parameters, from Main face is determined in the multiple face, comprising:
The dimensional parameters for calculating each face subtract the difference of the location parameter, with the maximum face of the difference As the main face;Alternatively,
The dimensional parameters of each face are calculated divided by the ratio of the location parameter, with the maximum face of the ratio As the main face;Alternatively,
According to the location parameter determine each face locating for region, be located at default center region in dimensional parameters Maximum face is as the main face.
5. the method as described in claim 1, which is characterized in that it is described that the camera unit movement is controlled according to the position, Include:
According to position of the main face in the target image, main face institute in the target image is determined The target area at place, wherein the target image is default to be divided into multiple regions;It is corresponding according to the preset target area It is mobile that moving direction and moving distance control the camera unit;Alternatively,
According to position of the main face in the target image, determine in the main face and the target image The relative positional relationship of the heart;It is mobile to control the camera unit for relationship depending on that relative position;Alternatively,
According to position of the main face in the target image, in conjunction with the main face in preceding image or rear image Position, determine the mobile trend of the position of the main face;It is mobile that the camera unit is controlled according to the mobile trend; Wherein, the preceding image is the image that the camera unit obtains before obtaining the target image, and the rear image is institute State the image that camera unit obtains after obtaining the target image.
6. the method as described in claim 1, which is characterized in that the control camera unit is reset to initial position, wraps It includes:
Control unit, which is sent, resets message to serial ports, and opens reset control function and resetted with monitoring whether to receive camera unit Serial ports response after the completion, wherein described control unit and the camera unit pass through the serial communication;
If receiving the serial ports response, the reset control function is closed;
If being not received by the serial ports response in the second preset duration after the reset message sending, described in repeating transmission Message is resetted to serial ports.
7. a kind of face filming apparatus characterized by comprising
Module is obtained, for obtaining target image by camera unit, and identifies the main face in the target image;
Control module, if for identifying main face, it is determined that position of the main face on the target image; And according to the position, it is mobile to control the camera unit, so that the imaging of the main face is located at camera unit bat The middle part for the image taken the photograph;
Reseting module, if starting reset timing, the camera unit for not identifying face in the target image Continue to obtain image during resetting timing;If the image obtained in the first preset duration after resetting timing and starting In do not identify face, then control the camera unit and be reset to initial position.
8. device as claimed in claim 7, which is characterized in that the acquisition module is also used to:
Identify the face in the target image;
If identifying multiple faces in the target image, obtain in the multiple face, each face is in the target Location parameter and dimensional parameters in image;
According to the location parameter and the dimensional parameters, main face is determined from the multiple face.
9. a kind of electronic equipment including memory, processor and stores the calculating that can be run on a memory and on a processor Machine program, which is characterized in that the processor realizes claim 1-6 any method when executing described program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor Claim 1-6 any method is realized when execution.
CN201811602998.7A 2018-12-26 2018-12-26 Face shooting method, device, equipment and medium Active CN109729268B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811602998.7A CN109729268B (en) 2018-12-26 2018-12-26 Face shooting method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811602998.7A CN109729268B (en) 2018-12-26 2018-12-26 Face shooting method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN109729268A true CN109729268A (en) 2019-05-07
CN109729268B CN109729268B (en) 2021-03-02

Family

ID=66297284

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811602998.7A Active CN109729268B (en) 2018-12-26 2018-12-26 Face shooting method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN109729268B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110245561A (en) * 2019-05-09 2019-09-17 深圳市锐明技术股份有限公司 A kind of face identification method and device
CN111083377A (en) * 2019-12-30 2020-04-28 维沃移动通信有限公司 Shooting method and electronic equipment
CN115171197A (en) * 2022-09-01 2022-10-11 广州市森锐科技股份有限公司 High-precision image information identification method, system, equipment and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102625036A (en) * 2011-01-25 2012-08-01 株式会社尼康 Image processing apparatus, image capturing apparatus and recording medium
CN103501411A (en) * 2013-10-09 2014-01-08 中科创达软件股份有限公司 Image shooting method and system
CN103607537A (en) * 2013-10-31 2014-02-26 北京智谷睿拓技术服务有限公司 Control method of camera and the camera
CN103905733A (en) * 2014-04-02 2014-07-02 哈尔滨工业大学深圳研究生院 Method and system for conducting real-time tracking on faces by monocular camera
CN105554391A (en) * 2015-12-31 2016-05-04 广州广电运通金融电子股份有限公司 Camera control method and device and financial equipment terminal
CN105654512A (en) * 2015-12-29 2016-06-08 深圳羚羊微服机器人科技有限公司 Target tracking method and device
CN105898136A (en) * 2015-11-17 2016-08-24 乐视致新电子科技(天津)有限公司 Camera angle adjustment method, system and television
CN106713773A (en) * 2017-03-31 2017-05-24 联想(北京)有限公司 Shooting control method and electronic device
CN107257440A (en) * 2017-07-31 2017-10-17 深圳回收宝科技有限公司 It is a kind of to detect method, equipment and storage medium that video tracking is shot
CN107563979A (en) * 2017-08-31 2018-01-09 广东欧珀移动通信有限公司 Image processing method, device, computer-readable recording medium and computer equipment
CN108024065A (en) * 2017-12-28 2018-05-11 努比亚技术有限公司 A kind of method of terminal taking, terminal and computer-readable recording medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102625036A (en) * 2011-01-25 2012-08-01 株式会社尼康 Image processing apparatus, image capturing apparatus and recording medium
CN103501411A (en) * 2013-10-09 2014-01-08 中科创达软件股份有限公司 Image shooting method and system
CN103607537A (en) * 2013-10-31 2014-02-26 北京智谷睿拓技术服务有限公司 Control method of camera and the camera
CN103905733A (en) * 2014-04-02 2014-07-02 哈尔滨工业大学深圳研究生院 Method and system for conducting real-time tracking on faces by monocular camera
CN105898136A (en) * 2015-11-17 2016-08-24 乐视致新电子科技(天津)有限公司 Camera angle adjustment method, system and television
CN105654512A (en) * 2015-12-29 2016-06-08 深圳羚羊微服机器人科技有限公司 Target tracking method and device
CN105554391A (en) * 2015-12-31 2016-05-04 广州广电运通金融电子股份有限公司 Camera control method and device and financial equipment terminal
CN106713773A (en) * 2017-03-31 2017-05-24 联想(北京)有限公司 Shooting control method and electronic device
CN107257440A (en) * 2017-07-31 2017-10-17 深圳回收宝科技有限公司 It is a kind of to detect method, equipment and storage medium that video tracking is shot
CN107563979A (en) * 2017-08-31 2018-01-09 广东欧珀移动通信有限公司 Image processing method, device, computer-readable recording medium and computer equipment
CN108024065A (en) * 2017-12-28 2018-05-11 努比亚技术有限公司 A kind of method of terminal taking, terminal and computer-readable recording medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110245561A (en) * 2019-05-09 2019-09-17 深圳市锐明技术股份有限公司 A kind of face identification method and device
CN110245561B (en) * 2019-05-09 2021-11-09 深圳市锐明技术股份有限公司 Face recognition method and device
CN111083377A (en) * 2019-12-30 2020-04-28 维沃移动通信有限公司 Shooting method and electronic equipment
CN115171197A (en) * 2022-09-01 2022-10-11 广州市森锐科技股份有限公司 High-precision image information identification method, system, equipment and storage medium

Also Published As

Publication number Publication date
CN109729268B (en) 2021-03-02

Similar Documents

Publication Publication Date Title
CN106920279B (en) Three-dimensional map construction method and device
CN108141543B (en) Systems, methods, and media for tracking entities
US7554575B2 (en) Fast imaging system calibration
CN104969538B (en) Manage the mobile augmented reality of closed area
US9025859B2 (en) Inertial sensor aided instant autofocus
CN109729268A (en) A kind of face image pickup method, device, equipment and medium
US9727298B2 (en) Device and method for allocating data based on an arrangement of elements in an image
CN107438173A (en) Video process apparatus, method for processing video frequency and storage medium
TW201011696A (en) Information registering device for detection, target sensing device, electronic equipment, control method of information registering device for detection, control method of target sensing device, information registering device for detection control progr
EP2880627A1 (en) Localisation and mapping
EP2604032A1 (en) Autofocus for stereoscopic camera
CN105120169B (en) A kind of information processing method and electronic equipment
CN109639896A (en) Block object detecting method, device, storage medium and mobile terminal
CN114419073B (en) Motion blur generation method and device and terminal equipment
RU2016117966A (en) PORTABLE DEVICE AND METHOD FOR ESTABLISHING THE AUTHENTICITY OF MARKING
CN105872363A (en) Adjustingmethod and adjusting device of human face focusing definition
CN110472460A (en) Face image processing process and device
CN108154466A (en) Image processing method and device
CN112749613A (en) Video data processing method and device, computer equipment and storage medium
CN109788193A (en) A kind of camera unit control method, device, equipment and medium
CN107209556A (en) For to capturing object relative to the system and method that the depth image of the interaction of interactive flat is handled
CN106506932A (en) The acquisition methods and device of image
CN109068118B (en) Baseline distance adjusting method and device of double-camera module and double-camera module
CN103873755B (en) Jump portrait system and method
CN104063041B (en) A kind of information processing method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant