A kind of certificate photo automatic shooting method and device

文档序号:1775518 发布日期:2019-12-03 浏览:20次 中文

阅读说明:本技术 一种证件照自动拍摄方法及装置 (A kind of certificate photo automatic shooting method and device ) 是由 杨子宸 李小波 于 2019-09-11 设计创作,主要内容包括:本申请公开一种证件照自动拍摄方法及装置。所述方法包括监测被拍摄者身高;根据被拍摄者身高调整拍摄装置的拍摄高度;拍摄装置的左右屏幕同步播放动态画面,分别捕捉被拍摄者左右眼球的动线位置,锁定两眼球位置;动态调整屏幕画面,引导被拍摄者迁移视觉焦点,修正眼球位置和面部形态,并实时检测被拍摄者的眼球位置和面部形态,当检测到被拍摄者眼球位置和面部形态符合拍照规则时进行拍照;抠取拍摄照片中的人像,将人像与预选背景进行融合,并将融合后的图像剪切为证件照自动排版输出。本申请的证件照拍摄方法,被拍摄者只要站立或正坐在拍摄装置面前,然后直视拍摄装置屏幕上的动态画面即可实现拍照,而且照片中呈现的眼神自然表情微笑。(The application discloses a kind of certificate photo automatic shooting method and device.The method includes monitoring the person's of being taken height;The shooting height of filming apparatus is adjusted according to the person's of being taken height;The left and right screen synch of filming apparatus plays dynamic menu, captures the moving-wire position of the person of being taken or so eyeball respectively, locks two eyeball positions;Dynamic adjustment screen-picture, the person of being taken is guided to migrate visual focus, eyeball position and facial shape, and the eyeball position and facial shape of the real-time detection person of being taken are corrected, is taken pictures when detecting that the person's of being taken eyeball position and facial shape meet and take pictures rule;The portrait in shooting photo is taken, portrait is merged with pre-selection background, and is the output of certificate photo Automatic Typesetting by fused image cut.The certificate photo image pickup method of the application, as long as the person of being taken stands or is just sitting in face of filming apparatus, the expression in the eyes nature expression that the dynamic menu then looked at straight on filming apparatus screen, which can be realized, takes pictures, and present in photo is smiled.)

1. a kind of certificate photo automatic shooting method characterized by comprising

Monitor the person's of being taken height;

The shooting height of filming apparatus is adjusted according to the person's of being taken height;

The left and right screen synch of filming apparatus plays dynamic menu, captures the moving-wire position of the person of being taken or so eyeball, lock respectively Fixed two eyeball positions;

Dynamic adjustment screen-picture, the guidance person of being taken migrate visual focus, correct eyeball position and facial shape, and examine in real time The eyeball position and facial shape for surveying the person of being taken, when detecting that the person's of being taken eyeball position and facial shape meet rule of taking pictures Shi Jinhang takes pictures;

The portrait in shooting photo is taken, portrait is merged with pre-selection background, and be certificate by fused image cut It is exported according to Automatic Typesetting.

2. certificate photo automatic shooting method as described in claim 1, which is characterized in that setting height passes at the top of filming apparatus Ground weight sensor is arranged, when ground weight sensor in sensor in the fixation erect-position region that height sensor can monitor It detects that the person of being taken stands behind detectable fixation erect-position region, shooting signal will be started and be sent to filming apparatus, clapped It takes the photograph device and Human Height is monitored by height sensor.

3. certificate photo automatic shooting method as described in claim 1, which is characterized in that the eyeball position of the real-time detection person of being taken Set and facial shape, when detect the person's of being taken eyeball position and facial shape meet take pictures rule when, starting is continuously taken pictures mould Formula shoots several photos, therefrom chooses a photo and executes green curtain and scratch and schemes.

4. certificate photo automatic shooting method as claimed in claim 3, which is characterized in that chosen from several photos of shooting Photo specifically includes:

The photo that all shootings are presented on a display screen chooses it by touch screen by the person of being taken, and by being taken Person selects the certificate photo size of the background colour needed and needs, and the photo of the person's of being taken selection is then carried out green curtain and scratches figure;

Or, training the image selection machine mould for selecting optimal photo in advance inside filming apparatus, examined existing Beautiful big data is learnt using neural network algorithm, the machine mould for being best suitable for modern aesthetic is obtained, by the several of shooting It opens photo to input in the machine mould, chooses the green curtain of optimal photo progress and scratch and scheme.

5. certificate photo automatic shooting method as described in claim 1, which is characterized in that the left and right screen synch of filming apparatus is broadcast Dynamic menu is put, following sub-step is specifically included:

Dynamic menu is organized, the dynamic menu organized is converted into sequence frame, and press the dynamic sequential saving sequence frame of picture;

The number for needing the virtual view rendered is set and exports the resolution ratio of more mesh sequence frames;

Image segmentation parameter is set, present frame figure is split as by left and right two-way image according to image segmentation parameter;

The visual range of left and right road image, the basis in the visual range of left and right road image are set according to the distance between two screens The number for the virtual view that the needs of setting render carries out the rendering of virtual view.

6. certificate photo automatic shooting method as described in claim 1, which is characterized in that capture the dynamic of the person of being taken or so eyeball Line position locks two eyeball positions, specifically includes following sub-step:

The left and right screen of filming apparatus obtains the left and right face image for the person of being taken respectively, converts the image into gray level image, then Carry out binaryzation;

The ROI image for intercepting ocular in the face image of left and right carries out corrosion reflation operation to ROI image, then again to corrosion Image after expansion removes dryness processing;

Eyeball position is extracted in image after removing dryness.

7. certificate photo automatic shooting method as described in claim 1, which is characterized in that dynamic adjustment screen-picture guides quilt Photographer migrates visual focus, corrects eyeball position and facial shape, specifically includes following sub-step:

The center position of picture to be played and the region of picture to be played are determined according to the eyeball position of positioning;

The position of active area is adjusted according to eyeball position, attract eyeball migration;

Size, color and the brightness of active area are adjusted, visual focus is dispersed;

Play dynamic smile expression, guidance face is looked natural smile.

8. certificate photo automatic shooting method as described in claim 1, which is characterized in that by fused image cut be certificate According to, specifically: the square 1 centered on face nose is obtained based on face recognition algorithms, 1 amplification of square is obtained for 2.5 times To square 2, using square 2 as one-by-one inch photograph head portrait size, mask is carried out to square 2 with certificate one-by-one inch photograph standard and cuts processing, Retain the image in effective coverage, obtains certificate one-by-one inch photograph.

9. a kind of certificate photo automatic shooting device, which is characterized in that the photographing region surrounded including shell and shell;It is taken the photograph described Fixed erect-position region and shot region are divided in the domain of shadow zone, ground weight sensor are set on fixed erect-position region, for examining Whether have be taken person entrance, green curtain is arranged in the inner surface of outer cover of shot region face, places dress of taking pictures in shot region if surveying It sets;

The camera arrangement includes that controller, two pieces of display screens, height sensor, capture apparatus, photography luminaire component and photo are beaten Printing apparatus, controller connect two pieces of display screens, height sensor, capture apparatus, photography luminaire component and photo-printing apparatus, height Sensor and photography luminaire component are arranged at the top of camera arrangement, and the spacing that two pieces of display screens are arranged is matched with human eye distance, two Capture apparatus is arranged in the intermediate of block display screen.

10. a kind of certificate photo automatic shooting device, which is characterized in that including height measurement module, height adjustment module, dynamic picture Face playing module, dynamic menu adjustment module, shooting module, certificate photo output module and print module;

Height measurement module, for detecting the person's of being taken height;

The shooting of height adjustment module, the person's of being taken height adjustment filming apparatus for being measured according to height measurement module is high Degree;

Dynamic menu playing module plays dynamic menu simultaneously by the left and right screen of filming apparatus, it is left to capture the person of being taken respectively The moving-wire position of right eye ball locks two eyeball positions;

Dynamic menu adjusts module, and for dynamically adjusting screen-picture, the guidance person of being taken migrates visual focus, corrects eyeball position It sets;

Shooting module, in the eyeball position and facial shape of the real-time detection person of being taken, when detecting the person's of being taken eyeball position Meet with facial shape and takes pictures when taking pictures rule;

Certificate photo output module merges portrait with pre-selection background, and will fusion for taking the portrait in shooting photo Image cut afterwards is certificate photo;

Print module, the certificate photo automatic Typeset and Print output for that will shear.

Technical field

This application involves portrait technical field more particularly to a kind of certificate photo automatic shooting methods and device.

Background technique

During existing portrait, the especially shooting of certificate photo is typically necessary and Background is arranged in advance, so It is taken pictures afterwards by cameraman.

It is increasing with the demand of taking pictures, also occur the methods of some automatic shooting certificate photos now, usually first One alignment box is set, then user adjusts face to just can be carried out shooting in alignment box, this is resulted in shooting process, The person of being taken is in passive state shooting always, cannot be in a kind of optimal shooting state, and man-machine interaction experience is poor.

In addition, clapping certificate photograph to the more demanding of photo, but in shooting process, the eyeball of people is not necessarily seen to photograph Camera causes eyeball moving-wire unintelligible, and face contour can not be adapted to according to the profile of people and adjust.Based on drawbacks described above, originally Application is come into being.

Summary of the invention

This application provides a kind of certificate photo automatic shooting methods, comprising:

Monitor the person's of being taken height;

The shooting height of filming apparatus is adjusted according to the person's of being taken height;

The left and right screen synch of filming apparatus plays dynamic menu, captures the moving-wire position of the person of being taken or so eyeball respectively It sets, locks two eyeball positions;

Dynamic adjustment screen-picture, the guidance person of being taken migrate visual focus, correct eyeball position and facial shape, and real When detect the person of being taken eyeball position and facial shape, take pictures when detecting that the person's of being taken eyeball position and facial shape meet It takes pictures when regular;

The portrait in shooting photo is taken, portrait is merged with pre-selection background, and be by fused image cut The output of certificate photo Automatic Typesetting.

Certificate photo automatic shooting method as described above, wherein height sensor is set at the top of filming apparatus, in height Ground weight sensor is set in the fixation erect-position region that sensor can monitor, when ground, weight sensor, which is detected, is taken Person stands behind detectable fixation erect-position region, will start shooting signal and is sent to filming apparatus, filming apparatus passes through height It spends sensor and monitors Human Height.

Certificate photo automatic shooting method as described above, wherein the eyeball position of the real-time detection person of being taken and facial shape State, when detect the person's of being taken eyeball position and facial shape meet take pictures rule when, start continuous photographing mode, shoot several Photo is opened, a photo is therefrom chosen and executes green curtain and scratch and scheme.

Certificate photo automatic shooting method as described above, wherein photo is chosen from several photos of shooting, it is specific to wrap It includes:

The photo that all shootings are presented on a display screen chooses it by touch screen by the person of being taken, and by quilt Photographer selects the certificate photo size of the background colour needed and needs, and the photo of the person's of being taken selection is then carried out green curtain and is scratched Figure;

Or, train the image selection machine mould for selecting optimal photo in advance inside filming apparatus, it will be existing Aesthetic conceptions big data learnt using neural network algorithm, the machine mould for being best suitable for modern aesthetic is obtained, by shooting Several photos input in the machine mould, choose an optimal photo and carry out the stingy figure of green curtain.

Certificate photo automatic shooting method as described above, wherein the left and right screen synch of filming apparatus plays dynamic menu, Specifically include following sub-step:

Dynamic menu is organized, the dynamic menu organized is converted into sequence frame, and save sequence by the dynamic sequential of picture Column frame;

The number for needing the virtual view rendered is set and exports the resolution ratio of more mesh sequence frames;

Image segmentation parameter is set, present frame figure is split as by left and right two-way image according to image segmentation parameter;

The visual range of left and right road image is set according to the distance between two screens, in the visual range of left and right road image The number of the virtual view rendered according to the needs of setting carries out the rendering of virtual view.

Certificate photo automatic shooting method as described above, wherein capture the moving-wire position of the person of being taken or so eyeball, locking Two eyeball positions specifically include following sub-step:

The left and right screen of filming apparatus obtains the left and right face image for the person of being taken respectively, converts the image into gray level image, Then binaryzation is carried out;

The ROI image for intercepting ocular in the face image of left and right carries out corrosion reflation operation to ROI image, then to corruption Image after erosion reflation removes dryness processing;

Eyeball position is extracted in image after removing dryness.

Certificate photo automatic shooting method as described above, wherein dynamic adjustment screen-picture, the guidance person of being taken migrate view Feel focus, correct eyeball position and facial shape, specifically include following sub-step:

The center position of picture to be played and the region of picture to be played are determined according to the eyeball position of positioning;

The position of active area is adjusted according to eyeball position, attract eyeball migration;

Size, color and the brightness of active area are adjusted, visual focus is dispersed;

Play dynamic smile expression, guidance face is looked natural smile.

Certificate photo automatic shooting method as described above, wherein it by fused image cut is certificate photo, specifically: The square 1 centered on face nose is obtained based on face recognition algorithms, 1 2.5 times of amplification of square is obtained into square 2, Using square 2 as one-by-one inch photograph head portrait size, mask is carried out to square 2 with certificate one-by-one inch photograph standard and cuts processing, retains effective district Image in domain obtains certificate one-by-one inch photograph.

The application also provides a kind of certificate photo automatic shooting device, the photographing region surrounded including shell and shell;Institute It states and divides fixed erect-position region and shot region in photographing region, ground weight sensor is set on fixed erect-position region, is used In having detected whether the person's of being taken entrance, green curtain is set in the inner surface of outer cover of shot region face, places and claps in shot region According to device;

The camera arrangement includes controller, two pieces of display screens, height sensor, capture apparatus, photography luminaire component and photograph Piece printing device, controller connect two pieces of display screens, height sensor, capture apparatus, photography luminaire component and photo-printing apparatus, Height sensor and photography luminaire component are arranged at the top of camera arrangement, and the spacing that two pieces of display screens are arranged is matched with human eye distance, In two pieces of the intermediate of display screen, capture apparatus is set.

The application also provides a kind of certificate photo automatic shooting device, including height measurement module, height adjustment module, dynamic Picture playing module, dynamic menu adjustment module, shooting module, certificate photo output module and print module;

Height measurement module, for detecting the person's of being taken height;

Height adjustment module, the shooting of the person's of being taken height adjustment filming apparatus for being measured according to height measurement module Highly;

Dynamic menu playing module plays dynamic menu simultaneously by the left and right screen of filming apparatus, captures be taken respectively The moving-wire position of person or so eyeball locks two eyeball positions;

Dynamic menu adjusts module, and for dynamically adjusting screen-picture, the guidance person of being taken migrates visual focus, corrects eye Ball position;

Shooting module, in the eyeball position and facial shape of the real-time detection person of being taken, when detecting the person's of being taken eyeball Position and facial shape meet takes pictures when taking pictures rule;

Certificate photo output module merges portrait with pre-selection background, and will for taking the portrait in shooting photo Fused image cut is certificate photo;

Print module, the certificate photo automatic Typeset and Print output for that will shear.

What the application realized has the beneficial effect that: using the certificate photo automatic shooting method of the application, can guarantee quilt Photographer does not need the person's of being taken autonomous operation in the case where looking natural can be realized automatic shooting certificate photo, and be taken As long as person stands or is just sitting in face of filming apparatus, the dynamic menu then looked at straight on filming apparatus screen, which can be realized, takes pictures, The whole process person of being taken is as that can be rapidly completed unconsciously take pictures in its natural state, and in photo in viewing TV The expression in the eyes nature expression of presentation is smiled.

Detailed description of the invention

In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The some embodiments recorded in invention can also be obtained according to these attached drawings other for those of ordinary skill in the art Attached drawing.

Fig. 1 is the certificate photo automatic shooting method flow chart that the embodiment of the present application one provides;

Fig. 2 is locked out the processing schematic of eyeball position;

Fig. 3 is the trail change schematic diagram of screen-picture;

Fig. 4 is certificate photo automatic shooting device schematic diagram.

Specific embodiment

With reference to the attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete Ground description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on the present invention In embodiment, those skilled in the art's every other embodiment obtained without making creative work, all Belong to the scope of protection of the invention.

14页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:成像模组、电子设备、图像处理方法和存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类