WO2015180609A1 - 一种实现自动拍摄的方法、装置及计算机存储介质 - Google Patents
一种实现自动拍摄的方法、装置及计算机存储介质 Download PDFInfo
- Publication number
- WO2015180609A1 WO2015180609A1 PCT/CN2015/079734 CN2015079734W WO2015180609A1 WO 2015180609 A1 WO2015180609 A1 WO 2015180609A1 CN 2015079734 W CN2015079734 W CN 2015079734W WO 2015180609 A1 WO2015180609 A1 WO 2015180609A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- shooting
- current depth
- preset
- condition
- field option
- 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.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/64—Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
Definitions
- the present invention relates to the field of digital imaging technologies, and in particular, to a method, an apparatus, and a computer storage medium for implementing automatic shooting.
- the face recognition function can be turned on during the preview of the framing, and the user is prompted when the face is detected to help the user take a clear picture.
- this technology can help users to take clear pictures, but the position of the face changes slightly, it will affect the change of focal length. Although it can be manually focused, this operation is very cumbersome, and if the effect is not appropriate, each time All need to be re-photographed, affecting the user experience.
- the embodiments of the present invention are directed to a method, an apparatus, and a computer storage medium for implementing automatic shooting to solve the problem that the prior art is cumbersome in the shooting process and affects the user experience.
- an embodiment of the present invention provides a method for implementing automatic shooting, the method comprising the steps of: displaying a framing preview of a subject; determining a current depth of field option; and viewing the person in the framing preview Face recognition and tracking; when recognizing a face, judge Whether the shooting condition reaches the preset condition of the current depth of field option; if the shooting condition reaches the preset condition, the focal length is locked and continuous shooting is started.
- determining whether the shooting condition meets a preset condition of the current depth of field option comprises: calculating an area of the area occupied by the recognized face; determining whether the proportion of the area in the framing preview is Matches the preset ratio in the current depth of field option; if the preset ratio is met, confirm that the shooting conditions meet the preset conditions of the current depth of field option.
- determining whether the shooting condition reaches a preset condition of the current depth of field option comprises: calculating a distance of the lens from the object according to the recognized face; determining whether the distance meets a preset in the current depth of field option The distance; if the preset distance is met, it is confirmed that the shooting condition reaches the preset condition of the current depth of field option.
- the method further includes: if the shooting condition does not reach a preset condition of the current depth of field option, prompting the user to adjust the lens and The distance between the subjects being photographed.
- the method further includes: displaying a picture obtained by the continuous shooting, prompting the user to select a satisfactory picture; and saving the selected picture after the user makes a selection.
- the method before the determining the current depth of field option, the method further includes: setting a current depth of field option according to the user's selection.
- an embodiment of the present invention provides an apparatus for implementing automatic shooting, the apparatus comprising: a display unit configured to display a framing preview of a subject; and a processing unit configured to be in the display unit When the framing preview is displayed, the current depth of field option is determined; the recognition unit is configured to identify and track the face in the framing preview when the display unit displays the framing preview; the processing unit is further configured to When the recognition unit recognizes the human face, it is determined whether the shooting condition reaches a condition preset by the current depth of field option; and the shooting unit is configured to lock the focal length and start when the processing unit determines that the shooting condition reaches a preset condition Continuous shooting.
- the processing unit is further configured to calculate an area of the area occupied by the recognized face, and determine whether the proportion of the area in the framing preview meets a preset ratio in the current depth of field option. And when the ratio meets the preset ratio, it is confirmed that the shooting condition reaches the preset condition of the current depth of field option.
- the processing unit is further configured to calculate a distance of the lens from the object according to the recognized face, determine whether the distance meets a preset distance in the current depth of field option, and match the distance When the preset distance is described, confirm that the shooting conditions reach the preset conditions of the current depth of field option.
- the processing unit is further configured to prompt the user to adjust a distance between the lens and the object to be photographed when determining that the shooting condition does not reach a condition preset by the current depth of field option.
- the display unit is further configured to: after the shooting unit starts continuous shooting, display a picture acquired by the continuous shooting, prompting the user to select a satisfactory picture; and the processing unit is further configured to: after the user selects, Save the selected picture.
- the processing unit is further configured to set a current depth of field option according to a user's selection.
- an embodiment of the present invention provides a computer storage medium in which a computer program is stored, the computer program for performing the above-described method for realizing automatic shooting.
- the method, device and computer storage medium for realizing automatic shooting can identify the face in the framing preview, and then determine whether the current shooting condition is satisfied according to the user's selection of the depth of field option and the recognized face.
- the preset condition of the current depth of field option if it is satisfied, automatically locks the focal length, starts continuous shooting, and takes a set of pictures for the user to select. If not, the user can be prompted to make corresponding adjustments. Therefore, the user can obtain an image with an ideal shooting effect without repeated focusing, and the operation is very convenient, which improves the user experience.
- FIG. 1 is a schematic block diagram of an apparatus for implementing automatic shooting according to an embodiment of the present invention
- Figure 2 is a schematic view of depth of field
- FIG. 3 is a flowchart of a method for implementing automatic shooting according to an embodiment of the present invention
- FIG. 4 is a flowchart of another method for implementing automatic shooting according to an embodiment of the present invention.
- an embodiment of the present invention provides an apparatus for implementing automatic shooting, where the apparatus includes:
- the display unit 101 is configured to display a framing preview of the subject.
- the processing unit 102 is configured to determine a current depth of field option when the display unit 101 displays the framing preview.
- the current depth of field option can be set by the processing unit 102 according to the user's selection.
- the depth of field option may include at least: foreground depth, medium depth of field or deep depth of field, which is selected by the user through the menu when the camera is turned on, or through the menu when the framing preview is performed.
- the recognition unit 103 is configured to recognize and track the face in the framing preview when the display unit 101 displays the framing preview.
- the processing unit 102 is further configured to determine, when the recognition unit 103 recognizes a human face, whether the shooting condition reaches a condition preset by the current depth of field option. Specifically, the processing unit 102 determines whether the current shooting condition reaches a condition preset by the current depth of field option.
- FIG. 2 is a schematic diagram of depth of field, wherein
- ⁇ is the allowable circle diameter
- f is the lens focal length
- F is the shooting aperture value of the lens
- L is the shooting distance
- the depth of field is related to the lens using aperture, lens focal length, shooting distance, and image quality requirements (expressed as the size of the allowable circle of confusion).
- the processing unit 102 determines whether the shooting condition reaches the preset condition of the current depth of field option, the processing unit 102 can adopt two methods:
- the first method is to calculate an area of the area occupied by the recognized face, and determine whether the proportion of the area in the framing preview meets a preset ratio in the current depth of field option, and the ratio meets the preset When setting the scale, confirm that the shooting conditions reach the preset conditions of the current depth of field option;
- Method 2 according to the recognized face, after recognizing the face, tracking the face and simultaneously calculating the distance of the lens from the object by using the focusing algorithm, and determining whether the distance meets the preset distance in the current depth of field option, and When the distance meets the preset distance, it is confirmed that the shooting condition reaches a condition preset by the current depth of field option.
- the lens can be driven to move by controlling the motor. Firstly, the motor drives the lens to move a large displacement to obtain two images. Then, the two images are compared frame by frame to calculate the sharpness value, and then the quadratic parabola is used to calculate. The corresponding motor position at the maximum sharpness can also be calculated 2 to 3 times to calculate the quasi-focal position more accurately. At this time, the second displacement is much smaller than the first displacement, usually only the first 1/3 to 1/4 of the time; then calculate the distance of the lens from the subject based on the position of the focus.
- the processing unit 102 determines that the shooting condition does not reach the preset condition of the current depth of field option, the user may be prompted to adjust the distance between the lens and the object until the shooting condition reaches the current shooting condition. Depth of field options preset conditions.
- the apparatus may further include: a photographing unit 104 configured to lock the focal length and initiate continuous shooting when the processing unit 102 determines that the photographing condition reaches a preset condition.
- the display unit 101 may be further configured to display a picture acquired by the continuous shooting to prompt the user to select a satisfactory picture, and the processing unit 102 is further configured to save after the user makes a selection. Selected picture. At this time, the unselected pictures can be deleted directly to save storage space.
- the device for realizing automatic shooting in this embodiment can identify the face in the framing preview by using the recognition unit, and then determine whether the current shooting condition satisfies the current depth of field option according to the user's selection of the depth of field option and the recognized face.
- the preset condition if it is satisfied, automatically locks the focal length, starts continuous shooting, and takes a set of pictures for the user to select. If not, the user can be prompted to make corresponding adjustments. Therefore, the user can obtain an image with an ideal shooting effect without repeated focusing, and the operation is very convenient, which improves the user experience.
- the display unit 101, the processing unit 102, the identification unit 103, and the photographing unit 104 may each be implemented by the apparatus for implementing automatic photographing or the central processing unit of the device to which the apparatus for realizing automatic photographing belongs (CPU, Central Processing) Unit), Micro Processor Unit (MPU), Digital Signal Processor (DSP), or Field Programmable Gate Array (FPGA).
- CPU Central Processing
- MPU Micro Processor Unit
- DSP Digital Signal Processor
- FPGA Field Programmable Gate Array
- the present invention provides a method for realizing automatic shooting based on the above embodiments.
- the method for implementing automatic shooting mainly includes the following processes:
- the framing preview of the subject can be displayed by the display unit in the device that realizes automatic shooting.
- the current depth of field option can be determined by a processing unit in the device that implements automatic photography.
- the current depth of field option can be set according to the user's choice, including: foreground depth, medium depth of field, or deep depth of field.
- the face in the framing preview can be identified and tracked by an identification unit in the device that implements automatic shooting.
- the processing unit in the device that realizes automatic shooting determines whether the shooting condition reaches the condition preset by the current depth of field option.
- determining whether the shooting condition meets the preset condition of the current depth of field option may be performed in the following two ways:
- Method 1 Calculate the area of the area occupied by the recognized face
- the shooting condition reaches the preset condition of the current depth of field option.
- Method 2 Calculate the distance of the lens from the object according to the recognized face
- the shooting condition reaches the preset condition of the current depth of field option.
- the shooting unit in the device that realizes automatic shooting locks the focal length and starts continuous shooting.
- the method for realizing automatic shooting in this embodiment can be performed on a face in a framing preview Identifying, according to the user's selection of the depth of field option and the recognized face, whether the current shooting condition satisfies the condition of the current depth of field option preset, and if so, automatically locks the focal length, starts continuous shooting, and takes a group of pictures. . Therefore, the user can obtain an image with an ideal shooting effect without repeated focusing, and the operation is very convenient, which improves the user experience.
- the embodiment of the present invention further describes a computer storage medium, wherein the computer storage medium stores a computer program for performing the method for realizing automatic shooting shown in FIG. 3 in the embodiment of the present invention.
- the present invention provides another method for realizing automatic shooting based on the above two embodiments.
- the method is exemplified by a device for automatically shooting set on a mobile terminal, and the method for implementing automatic shooting mainly includes the following processes:
- the user after the user turns on the rear camera, the user selects a shallow depth of field option through the menu.
- the rear camera When the user selects the shallow depth of field option, the rear camera needs to be closer to the subject to obtain a shallow depth of field effect.
- the distance of the subject from the rear camera is determined by the size of the area occupied by the face in the framing.
- the preset condition of the shallow depth of field option is the proportion of the area of the face in the framing preview. Because the depth of field is a range value, the preset condition is also a range value, and the specific value is set according to the configuration of the rear camera.
- step S405 determining whether the proportion of the area in the framing preview meets the preset ratio in the current depth of field option, if yes, step S407 is performed, otherwise step S406 is performed;
- the method for realizing automatic shooting in this embodiment can identify the face in the framing preview, and then determine whether the current shooting condition satisfies the current depth of field option preset according to the user's selection of the depth of field option and the recognized face.
- the condition if it is satisfied, automatically locks the focal length, starts continuous shooting, and takes a set of pictures for the user to select. If not, the user can be prompted to adjust the shooting distance accordingly. Therefore, the user can obtain an image with an ideal shooting effect without repeated focusing, and the operation is very convenient, which improves the user experience.
- embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
- the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
- the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
- These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
- the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
- a framing preview of the object to be photographed is displayed; a current depth of field option is determined; a face in the framing preview is identified and tracked; and when a face is recognized, whether the shooting condition reaches the current depth of field option is determined.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
- Indication In Cameras, And Counting Of Exposures (AREA)
Abstract
公开了一种实现自动拍摄的方法、装置及计算机存储介质:其中,所述方法包括,显示被拍摄对象的取景预览;确定当前的景深选项;对所述取景预览中的人脸进行识别及追踪;当识别到人脸时,判断拍摄条件是否达到当前的景深选项预设的条件;若所述拍摄条件达到预设的条件,则锁定焦距并启动连拍。
Description
本发明涉及数字成像技术领域,尤其涉及一种实现自动拍摄的方法、装置及计算机存储介质。
随着数字相机的发展,图像拍摄已经在日常生活中得到了普及和应用,人们已经习惯于随时拍下各类图片或影像。在拍摄过程中,通过调整相机的参数,可以拍摄出不同效果的图片或影像。但是对于普通用户来讲,由于不具备专业的拍摄知识,难以通过调整相机的参数获取理想的拍摄效果。
现有技术可在取景预览时开启人脸识别功能,当检测到人脸时给用户以提示,以帮助用户拍摄出清晰的图片。这种技术虽可帮助用户拍摄出清晰的图片,但是人脸的位置稍有变化,就会影响焦距的变化,虽然可以手动进行对焦,但这种操作十分繁琐,而且如果效果不合适,每次都需要重新进行拍摄,影响了用户的使用体验。
发明内容
有鉴于此,本发明实施例期望提供一种实现自动拍摄的方法、装置及计算机存储介质,以解决现有技术在拍摄过程中操作繁琐,影响用户使用体验的问题。
为达到上述目的,本发明解决上述技术问题所采用的技术方案如下:
根据本发明的一个方面,本发明实施例提供了一种实现自动拍摄的方法,所述方法包括如下步骤:显示被拍摄对象的取景预览;确定当前的景深选项;对所述取景预览中的人脸进行识别及追踪;当识别到人脸时,判
断拍摄条件是否达到当前的景深选项预设的条件;若所述拍摄条件达到预设的条件,则锁定焦距并启动连拍。
可选地,所述判断拍摄条件是否达到当前的景深选项预设的条件,包括:计算识别到的人脸所占的区域的面积;判断所述面积在所述取景预览中所占的比例是否符合当前景深选项中预设的比例;若符合所述预设的比例,则确认拍摄条件达到当前的景深选项预设的条件。
可选地,所述判断拍摄条件是否达到当前的景深选项预设的条件,包括:根据识别到的人脸,计算镜头距离被拍摄对象的距离;判断所述距离是否符合当前景深选项中预设的距离;若符合所述预设的距离,则确认拍摄条件达到当前的景深选项预设的条件。
可选地,所述判断拍摄条件是否达到当前的景深选项预设的条件之后,所述方法还包括:若所述拍摄条件未达到当前的景深选项预设的条件,提示用户调整所述镜头与被拍摄对象之间的距离。
可选地,所述锁定焦距并启动连拍之后,所述方法还包括:显示连拍获取的图片,提示用户选择满意的图片;在用户进行选择之后,保存被选择的图片。
可选地,所述确定当前的景深选项之前,所述方法还包括:根据用户的选择设置当前的景深选项。
根据本发明的另一个方面,本发明实施例提供了一种实现自动拍摄的装置,所述装置包括:显示单元,配置为显示被拍摄对象的取景预览;处理单元,配置为在所述显示单元显示取景预览时,确定当前的景深选项;识别单元,配置为在所述显示单元显示取景预览时,对所述取景预览中的人脸进行识别及追踪;所述处理单元,还配置为在所述识别单元识别到人脸时,判断拍摄条件是否达到当前的景深选项预设的条件;拍摄单元,配置为在所述处理单元判断所述拍摄条件达到预设的条件时,锁定焦距并启
动连拍。
可选地,所述处理单元,还配置为计算识别到的人脸所占的区域的面积,判断所述面积在所述取景预览中所占的比例是否符合当前景深选项中预设的比例,并在所述比例符合所述预设的比例时,确认拍摄条件达到当前的景深选项预设的条件。
可选地,所述处理单元,还配置为根据识别到的人脸,计算镜头距离被拍摄对象的距离,判断所述距离是否符合当前景深选项中预设的距离,并在所述距离符合所述预设的距离时,确认拍摄条件达到当前的景深选项预设的条件。
可选地,所述处理单元,还配置为在判断所述拍摄条件未达到当前的景深选项预设的条件时,提示用户调整所述镜头与被拍摄对象之间的距离。
可选地,所述显示单元,还配置为在所述拍摄单元启动连拍之后,显示连拍获取的图片,提示用户选择满意的图片;所述处理单元,还配置为在用户进行选择之后,保存被选择的图片。
可选地,所述处理单元,还配置为根据用户的选择设置当前的景深选项。
根据本发明的另一个方面,本发明实施例提供了一种计算机存储介质,所述计算机存储介质中存储有计算机程序,所述计算机程序用于执行以上所述的实现自动拍摄的方法。
本发明的一种实现自动拍摄的方法、装置及计算机存储介质,可以通过对取景预览中的人脸进行识别,再根据用户对景深选项的选择及识别到的人脸确定当前的拍摄条件是否满足了当前的景深选项预设的条件,如果满足,则自动锁定焦距,启动连拍,拍摄出一组图片供用户选择,如果不满足,则可以提示用户进行相应的调整。因此,用户不需反复对焦,便可获取具有理想的拍摄效果的图片,操作十分方便,提升了用户的使用体验。
图1为本发明实施例提供的一种实现自动拍摄的装置的模块示意图;
图2为景深示意图;
图3为本发明实施例提供的一种实现自动拍摄的方法的流程图;
图4为本发明实施例提供的另一种实现自动拍摄的方法的流程图。
为了使本发明所要解决的技术问题、技术方案及有益效果更加清楚、明白,以下结合附图和实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
请参阅图1,本发明实施例提供了一种实现自动拍摄的装置,该装置包括:
显示单元101,配置为显示被拍摄对象的取景预览。
处理单元102,配置为在所述显示单元101显示取景预览时,确定当前的景深选项。具体的,当前的景深选项可以由处理单元102根据用户的选择进行设置。其中,景深选项至少可以包括:前景深、中景深或深景深,由用户在开启摄像头时通过菜单选择,或在进行取景预览时通过菜单选择。
识别单元103,配置为在所述显示单元101显示取景预览时,对所述取景预览中的人脸进行识别及追踪。
此时处理单元102,还配置为在所述识别单元103识别到人脸时,判断拍摄条件是否达到当前的景深选项预设的条件。具体的,处理单元102判断当前的拍摄条件是否达到当前的景深选项预设的条件。
具体的,在焦点前后各有一个容许弥散圆,这两个弥散圆之间的距离就叫景深。请参阅图2,图2为景深示意图,其中,
δ为容许弥散圆直径,f为镜头焦距,F为镜头的拍摄光圈值,L为对拍摄距离。
由上述景深的计算公式可以看出,景深与镜头使用光圈、镜头焦距、拍摄距离以及对像质的要求(表现为对容许弥散圆的大小)有关。
因此,处理单元102在判断拍摄条件是否达到当前的景深选项预设的条件时,可以采用两种方式:
方式一、计算识别到的人脸所占的区域的面积,判断所述面积在所述取景预览中所占的比例是否符合当前景深选项中预设的比例,并在所述比例符合所述预设的比例时,确认拍摄条件达到当前的景深选项预设的条件;
方式二、根据识别到的人脸,识别到人脸后,对人脸追踪并同时利用对焦算法计算镜头距离被拍摄对象的距离,判断所述距离是否符合当前景深选项中预设的距离,并在所述距离符合所述预设的距离时,确认拍摄条件达到当前的景深选项预设的条件。
在实现对焦时,可以通过控制马达驱动镜头移动,首先控制马达驱动镜头移动较大的位移,获取两幅画面;然后,逐帧比较两幅画面,计算出清晰度值,然后用二次抛物线计算出清晰度最大时对应的马达位置,也可以进行2至3次这些操作更精确地计算出准焦位置,此时第二次的位移要比第一次的位移小得多,通常只有第一次的1/3至1/4;再根据准焦位置计算出镜头距离被拍摄对象的距离。
在实际应用中,如果处理单元102判断所述拍摄条件未达到当前的景深选项预设的条件时,还可以提示用户调整所述镜头与被拍摄对象之间的距离,直至使拍摄条件达到当前的景深选项预设的条件。
该装置还可以包括:拍摄单元104,配置为在所述处理单元102判断所述拍摄条件达到预设的条件时,锁定焦距并启动连拍。
在实际应用中,当拍摄单元104启动连拍之后,显示单元101还可配置为显示连拍获取的图片,以提示用户选择满意的图片,处理单元102,还配置为在用户进行选择之后,保存被选择的图片。此时,未被选择的图片,可以直接删除以节省存储空间。
本实施例的实现自动拍摄的装置,可以利用识别单元对取景预览中的人脸进行识别,再根据用户对景深选项的选择及识别到的人脸确定当前的拍摄条件是否满足了当前的景深选项预设的条件,如果满足,则自动锁定焦距,启动连拍,拍摄出一组图片供用户选择,如果不满足,则可以提示用户进行相应的调整。因此,用户不需反复对焦,便可获取具有理想的拍摄效果的图片,操作十分方便,提升了用户的使用体验。
在实际应用中,所述显示单元101、处理单元102、识别单元103以及拍摄单元104均可由所述实现自动拍摄的装置或所述实现自动拍摄的装置所属设备的中央处理器(CPU,Central Processing Unit)、微处理器(MPU,Micro Processor Unit)、数字信号处理器(DSP,Digital Signal Processor)、或现场可编程门阵列(FPGA,Field Programmable Gate Array)实现。
本发明在上述实施例的基础上,提供了一种实现自动拍摄的方法,请参阅图3,所述实现自动拍摄的方法主要包括以下流程:
S301、显示被拍摄对象的取景预览;
具体的,可以由实现自动拍摄的装置中的显示单元显示被拍摄对象的取景预览。
S302、确定当前的景深选项;
具体的,可以由实现自动拍摄的装置中的处理单元确定当前的景深选项。
具体的,当前的景深选项可根据用户的选择进行设置,该景深选项包括:前景深、中景深或深景深。
S303、对所述取景预览中的人脸进行识别及追踪;
具体的,可以由实现自动拍摄的装置中的识别单元对所述取景预览中的人脸进行识别及追踪。
S304、当识别到人脸时,判断拍摄条件是否达到当前的景深选项预设的条件;
具体的,当实现自动拍摄的装置中的识别单元识别到人脸时,由实现自动拍摄的装置中的处理单元判断拍摄条件是否达到当前的景深选项预设的条件。
具体的,判断拍摄条件是否达到当前的景深选项预设的条件,可通过如下两种方式进行:
方式一、计算识别到的人脸所占的区域的面积;
判断所述面积在所述取景预览中所占的比例是否符合当前景深选项中预设的比例;
若符合所述预设的比例,则确认拍摄条件达到当前的景深选项预设的条件。
方式二、根据识别到的人脸,计算镜头距离被拍摄对象的距离;
判断所述距离是否符合当前景深选项中预设的距离;
若符合所述预设的距离,则确认拍摄条件达到当前的景深选项预设的条件。
S305、若所述拍摄条件达到预设的条件,则锁定焦距并启动连拍。
具体的,若所述拍摄条件达到预设的条件,则由实现自动拍摄的装置中的拍摄单元锁定焦距并启动连拍。
本实施例的实现自动拍摄的方法,可以通过对取景预览中的人脸进行
识别,再根据用户对景深选项的选择及识别到的人脸确定当前的拍摄条件是否满足了当前的景深选项预设的条件,如果满足,则自动锁定焦距,启动连拍,拍摄出一组图片。因此,用户不需反复对焦,便可获取具有理想的拍摄效果的图片,操作十分方便,提升了用户的使用体验。
相应地,本发明实施例还记载一种计算机存储介质,所述计算机存储介质中存储有计算机程序,所述计算机程序用于执行本发明实施例中图3所示的实现自动拍摄的方法。
请参阅图4,本发明在上述两个实施例的基础上,还提供了另一种实现自动拍摄的方法。该方法以设置在移动终端上的自动拍摄的装置为例,该实现自动拍摄的方法主要包括以下流程:
S401、在移动终端的后置摄像头被开启时,根据用户的选择,将当前的景深选项设置为浅景深选项;
具体的,本实施例中,用户在开启后置摄像头之后,通过菜单选择浅景深选项。
当用户选择了浅景深选项时,后置摄像头需要距离被拍摄对象较近才会获得浅景深的效果。本实施例中利用人脸在取景中所占的面积的大小判断被拍摄对象距离后置摄像头的距离,此时浅景深选项预设的条件即是人脸的面积在取景预览中所占的比例,因为景深是一个范围值,因此该预设的条件也是一个范围值,具体的取值根据后置摄像头的配置进行设置。
S402、显示当前的取景预览;
S403、识别取景预览中的人脸;
S404、计算识别到的人脸所占的区域的面积;
S405、判断所述面积在所述取景预览中所占的比例是否符合当前景深选项中预设的比例,若满足,执行步骤S407,否则执行步骤S406;
S406,提示用户调整后置摄像头与被拍摄对象之间的距离,并执行步
骤S402;
S407、锁定焦距并启动连拍;
S408、显示连拍获取的图片,提示用户选择满意的图片;
S409、根据用户的选择,保存被选择的图片,并删除未被选择的图片。
需要说明的是,在实际应用中,即使被拍摄对象处于非静止状态的场景,如拍摄自行车比赛中的选手,运动的小孩子,同样通过本方案能得到更加优秀的照片。并且对于中景深选项及深景深选项,其原理与本实施例相同,此处不再赘述。
本实施例的实现自动拍摄的方法,可以通过对取景预览中的人脸进行识别,再根据用户对景深选项的选择及识别到的人脸确定当前的拍摄条件是否满足了当前的景深选项预设的条件,如果满足,则自动锁定焦距,启动连拍,拍摄出一组图片供用户选择,如果不满足,则可以提示用户对拍摄距离进行相应的调整。因此,用户不需反复对焦,便可获取具有理想的拍摄效果的图片,操作十分方便,提升了用户的使用体验。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的预警装置以产生一个机器,使得通过计算机或其他可编程数据处理设备的预警装置执行的指令产生用于
实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
以上参照附图说明了本发明的可选实施例,并非因此局限本发明的权利范围。本领域技术人员不脱离本发明的范围和实质内所作的任何修改、等同替换和改进,均应在本发明的权利范围之内。
本发明实施例中,显示被拍摄对象的取景预览;确定当前的景深选项;对所述取景预览中的人脸进行识别及追踪;当识别到人脸时,判断拍摄条件是否达到当前的景深选项预设的条件;若所述拍摄条件达到预设的条件,则锁定焦距并启动连拍;如此,用户不需反复对焦,便可获取具有理想的拍摄效果的图片,操作十分方便,提升了用户的使用体验。
Claims (13)
- 一种实现自动拍摄的方法,所述方法包括:显示被拍摄对象的取景预览;确定当前的景深选项;对所述取景预览中的人脸进行识别及追踪;当识别到人脸时,判断拍摄条件是否达到当前的景深选项预设的条件;若所述拍摄条件达到预设的条件,则锁定焦距并启动连拍。
- 根据权利要求1所述的方法,其中,所述判断拍摄条件是否达到当前的景深选项预设的条件,包括:计算识别到的人脸所占的区域的面积;判断所述面积在所述取景预览中所占的比例是否符合当前景深选项中预设的比例;若符合所述预设的比例,则确认拍摄条件达到当前的景深选项预设的条件。
- 根据权利要求1所述的方法,其中,所述判断拍摄条件是否达到当前的景深选项预设的条件,包括:根据识别到的人脸,计算镜头距离被拍摄对象的距离;判断所述距离是否符合当前景深选项中预设的距离;若符合所述预设的距离,则确认拍摄条件达到当前的景深选项预设的条件。
- 根据权利要求1至3任一项所述的方法,其中,所述判断拍摄条件是否达到当前的景深选项预设的条件之后,所述方法还包括:若所述拍摄条件未达到当前的景深选项预设的条件,提示用户调整所述镜头与被拍摄对象之间的距离。
- 根据权利要求4所述的方法,其中,所述锁定焦距并启动连拍之后, 所述方法还包括:显示连拍获取的图片,提示用户选择满意的图片;在用户进行选择之后,保存被选择的图片。
- 根据权利要求4所述的方法,其中,所述确定当前的景深选项之前,所述方法还包括;根据用户的选择设置当前的景深选项。
- 一种实现自动拍摄的装置,所述装置包括:显示单元,配置为显示被拍摄对象的取景预览;处理单元,配置为在所述显示单元显示取景预览时,确定当前的景深选项;识别单元,配置为在所述显示单元显示取景预览时,对所述取景预览中的人脸进行识别及追踪;所述处理单元,还配置为在所述识别单元识别到人脸时,判断拍摄条件是否达到当前的景深选项预设的条件;拍摄单元,配置为在所述处理单元判断所述拍摄条件达到预设的条件时,锁定焦距并启动连拍。
- 根据权利要求7所述的装置,其中,所述处理单元,还配置为计算识别到的人脸所占的区域的面积,判断所述面积在所述取景预览中所占的比例是否符合当前景深选项中预设的比例,并在所述比例符合所述预设的比例时,确认拍摄条件达到当前的景深选项预设的条件。
- 根据权利要求7所述的装置,其中,所述处理单元,根据识别到的人脸,计算镜头距离被拍摄对象的距离,判断所述距离是否符合当前景深选项中预设的距离,并在所述距离符合所述预设的距离时,确认拍摄条件达到当前的景深选项预设的条件。
- 根据权利要求7至9任一项所述的装置,其中,所述处理单元, 还配置为在判断所述拍摄条件未达到当前的景深选项预设的条件时,提示用户调整所述镜头与被拍摄对象之间的距离。
- 根据权利要求10所述的装置,其中,所述显示单元,还配置为在所述拍摄单元启动连拍之后,显示连拍获取的图片,提示用户选择满意的图片;所述处理单元,还配置为在用户进行选择之后,保存被选择的图片。
- 根据权利要求10所述的装置,其中,所述处理单元,还配置为根据用户的选择设置当前的景深选项。
- 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1至6任一项所述的方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410240106.9A CN104125395A (zh) | 2014-05-30 | 2014-05-30 | 一种实现自动拍摄的方法及装置 |
| CN201410240106.9 | 2014-05-30 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2015180609A1 true WO2015180609A1 (zh) | 2015-12-03 |
Family
ID=51770647
Family Applications (2)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2015/077462 Ceased WO2015180548A1 (zh) | 2014-05-30 | 2015-04-25 | 一种实现自动拍摄的方法及装置 |
| PCT/CN2015/079734 Ceased WO2015180609A1 (zh) | 2014-05-30 | 2015-05-25 | 一种实现自动拍摄的方法、装置及计算机存储介质 |
Family Applications Before (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2015/077462 Ceased WO2015180548A1 (zh) | 2014-05-30 | 2015-04-25 | 一种实现自动拍摄的方法及装置 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN104125395A (zh) |
| WO (2) | WO2015180548A1 (zh) |
Families Citing this family (33)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104125395A (zh) * | 2014-05-30 | 2014-10-29 | 深圳市中兴移动通信有限公司 | 一种实现自动拍摄的方法及装置 |
| CN104506770A (zh) * | 2014-12-11 | 2015-04-08 | 小米科技有限责任公司 | 拍摄图像的方法及装置 |
| CN104660904A (zh) * | 2015-03-04 | 2015-05-27 | 深圳市欧珀通信软件有限公司 | 拍摄主体识别方法及装置 |
| CN104639839B (zh) * | 2015-03-16 | 2017-09-19 | 广东欧珀移动通信有限公司 | 拍摄方法及装置 |
| CN104853088A (zh) * | 2015-04-09 | 2015-08-19 | 来安县新元机电设备设计有限公司 | 一种移动终端拍照时快速对焦的方法及移动终端 |
| CN104917959A (zh) * | 2015-05-19 | 2015-09-16 | 广东欧珀移动通信有限公司 | 一种拍照方法及终端 |
| CN104902190A (zh) * | 2015-06-24 | 2015-09-09 | 联想(北京)有限公司 | 控制方法、摄像装置及电子设备 |
| CN104883506B9 (zh) * | 2015-06-26 | 2021-09-03 | 重庆智韬信息技术中心 | 基于人脸识别技术实现的自助拍摄方法 |
| CN104994297B (zh) * | 2015-07-09 | 2019-01-08 | 厦门美图之家科技有限公司 | 全景拍照的对焦测光锁定方法和系统 |
| CN106713726B (zh) * | 2015-07-14 | 2019-11-29 | 无锡天脉聚源传媒科技有限公司 | 一种识别拍摄方式的方法和装置 |
| CN104994300A (zh) * | 2015-07-20 | 2015-10-21 | 魅族科技(中国)有限公司 | 一种拍照方法及终端 |
| CN105007426A (zh) * | 2015-07-27 | 2015-10-28 | 厦门美图之家科技有限公司 | 一种基于人脸识别的对焦方法和对焦系统 |
| CN105187719A (zh) * | 2015-08-21 | 2015-12-23 | 深圳市金立通信设备有限公司 | 一种拍摄方法及终端 |
| CN105187722B (zh) * | 2015-09-15 | 2018-12-21 | 努比亚技术有限公司 | 景深调节方法、装置及终端 |
| CN105208289A (zh) * | 2015-10-27 | 2015-12-30 | 广东欧珀移动通信有限公司 | 移动终端的拍摄控制方法、装置和移动终端 |
| CN105516609A (zh) * | 2016-01-29 | 2016-04-20 | 广东欧珀移动通信有限公司 | 拍照方法及装置 |
| CN105959563B (zh) * | 2016-06-14 | 2020-02-07 | 北京小米移动软件有限公司 | 图像存储方法和图像存储装置 |
| CN106447728A (zh) * | 2016-08-29 | 2017-02-22 | 华为技术有限公司 | 一种调整扫描状态的方法及装置 |
| CN106375665A (zh) * | 2016-09-23 | 2017-02-01 | 深圳市金立通信设备有限公司 | 一种拍照方法及终端 |
| CN107302658B (zh) * | 2017-06-16 | 2019-08-02 | Oppo广东移动通信有限公司 | 实现人脸清晰的对焦方法、装置和计算机设备 |
| CN107995422B (zh) * | 2017-11-30 | 2020-01-10 | Oppo广东移动通信有限公司 | 图像拍摄方法和装置、计算机设备、计算机可读存储介质 |
| CN107911616A (zh) * | 2017-12-26 | 2018-04-13 | Tcl移动通信科技(宁波)有限公司 | 一种摄像头自动调焦方法、存储设备及移动终端 |
| CN108737718B (zh) * | 2018-03-21 | 2020-10-16 | 北京猎户星空科技有限公司 | 拍摄方法、装置和智能设备 |
| CN109286720A (zh) * | 2018-08-01 | 2019-01-29 | 维沃移动通信有限公司 | 一种多屏幕移动终端的主屏幕选择方法及装置 |
| CN108989687A (zh) * | 2018-09-07 | 2018-12-11 | 北京小米移动软件有限公司 | 摄像头对焦方法及装置 |
| CN110163615A (zh) * | 2019-05-24 | 2019-08-23 | 北京三快在线科技有限公司 | 刷脸支付的方法、装置、设备及存储介质 |
| CN112653830B (zh) * | 2019-10-12 | 2022-10-18 | 广东小天才科技有限公司 | 合影拍摄实现方法、可穿戴设备、计算机设备和存储介质 |
| WO2021114976A1 (en) * | 2019-12-09 | 2021-06-17 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Method and system for capturing sequence of images |
| CN113509265A (zh) * | 2021-04-01 | 2021-10-19 | 上海复拓知达医疗科技有限公司 | 一种动态位置识别提示系统及其方法 |
| CN113873146B (zh) * | 2021-09-10 | 2025-01-10 | 维沃移动通信(杭州)有限公司 | 拍摄方法、装置和电子设备 |
| CN115174803A (zh) * | 2022-06-20 | 2022-10-11 | 平安银行股份有限公司 | 自动拍照方法及相关设备 |
| CN115714894A (zh) * | 2022-11-15 | 2023-02-24 | 安徽宝信信息科技有限公司 | 一种自动识别位置的图像追踪一体机 |
| CN116132791A (zh) * | 2023-03-10 | 2023-05-16 | 创视微电子(成都)有限公司 | 一种获取多运动物体多景深清晰图像的方法及装置 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2012132277A1 (ja) * | 2011-03-28 | 2012-10-04 | パナソニック株式会社 | 撮影装置およびライブビュー画像表示方法 |
| CN103391361A (zh) * | 2013-07-05 | 2013-11-13 | 中科创达软件股份有限公司 | 一种智能终端自拍构图自动提醒方法及装置 |
| US20140002712A1 (en) * | 2012-06-28 | 2014-01-02 | International Business Machines Corporation | Depth of Focus in Digital Imaging Systems |
| CN104125395A (zh) * | 2014-05-30 | 2014-10-29 | 深圳市中兴移动通信有限公司 | 一种实现自动拍摄的方法及装置 |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP5004726B2 (ja) * | 2007-09-05 | 2012-08-22 | キヤノン株式会社 | 撮像装置、レンズユニットおよび制御方法 |
| CN101877764B (zh) * | 2009-04-29 | 2012-05-30 | 鸿富锦精密工业(深圳)有限公司 | 拍摄系统及使用该拍摄系统进行辅助构图的方法 |
| CN102338972A (zh) * | 2010-07-21 | 2012-02-01 | 华晶科技股份有限公司 | 多人脸区块辅助对焦的方法 |
| CN102917232B (zh) * | 2012-10-23 | 2014-12-24 | 深圳创维-Rgb电子有限公司 | 基于人脸识别的3d显示自适应调节方法和装置 |
| CN102984454B (zh) * | 2012-11-15 | 2015-08-19 | 广东欧珀移动通信有限公司 | 一种自动调节相机焦距的系统、方法和手机 |
-
2014
- 2014-05-30 CN CN201410240106.9A patent/CN104125395A/zh active Pending
-
2015
- 2015-04-25 WO PCT/CN2015/077462 patent/WO2015180548A1/zh not_active Ceased
- 2015-05-25 WO PCT/CN2015/079734 patent/WO2015180609A1/zh not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2012132277A1 (ja) * | 2011-03-28 | 2012-10-04 | パナソニック株式会社 | 撮影装置およびライブビュー画像表示方法 |
| US20140002712A1 (en) * | 2012-06-28 | 2014-01-02 | International Business Machines Corporation | Depth of Focus in Digital Imaging Systems |
| CN103391361A (zh) * | 2013-07-05 | 2013-11-13 | 中科创达软件股份有限公司 | 一种智能终端自拍构图自动提醒方法及装置 |
| CN104125395A (zh) * | 2014-05-30 | 2014-10-29 | 深圳市中兴移动通信有限公司 | 一种实现自动拍摄的方法及装置 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN104125395A (zh) | 2014-10-29 |
| WO2015180548A1 (zh) | 2015-12-03 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2015180548A1 (zh) | 一种实现自动拍摄的方法及装置 | |
| US9521311B2 (en) | Quick automatic focusing method and image acquisition apparatus | |
| JP6101397B2 (ja) | 写真出力方法および装置 | |
| US9313419B2 (en) | Image processing apparatus and image pickup apparatus where image processing is applied using an acquired depth map | |
| WO2018228467A1 (zh) | 图像曝光方法、装置、摄像设备及存储介质 | |
| JP6184189B2 (ja) | 被写体検出装置およびその制御方法、撮像装置、被写体検出装置の制御プログラムおよび記憶媒体 | |
| JP5278564B2 (ja) | 撮像装置 | |
| CN105554389B (zh) | 拍摄方法及装置 | |
| TW200815892A (en) | Imaging apparatus, imaging apparatus control method, and computer program | |
| TW200822715A (en) | Imaging apparatus, control method of imaging apparatus, and computer program | |
| CN103179348A (zh) | 一种移动终端的拍摄方法、系统及移动终端 | |
| WO2017008353A1 (zh) | 一种拍摄方法及用户终端 | |
| CN108702457B (zh) | 用于自动图像校正的方法、装置和计算机可读存储媒体 | |
| CN107465877B (zh) | 跟踪对焦方法及装置和相关介质产品 | |
| US11190670B2 (en) | Method and a system for processing images based a tracked subject | |
| WO2019104569A1 (zh) | 一种对焦方法、设备及可读存储介质 | |
| WO2016184131A1 (zh) | 基于双摄像头拍摄图像的方法、装置及计算机存储介质 | |
| CN107645628B (zh) | 一种信息处理方法及装置 | |
| JP2016012846A (ja) | 撮像装置、その制御方法、および制御プログラム | |
| CN113170050A (zh) | 图像获取方法、电子设备和可移动设备 | |
| CN114244999B (zh) | 自动对焦的方法、装置、摄像设备及存储介质 | |
| CN105068360A (zh) | 连续拍照方法和系统 | |
| EP2958308A1 (en) | Method for taking a self-portrait | |
| CN111726531A (zh) | 图像拍摄方法、处理方法、装置、电子设备及存储介质 | |
| JP2014068281A (ja) | 撮像装置 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 15799877 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 04/05/2017) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 15799877 Country of ref document: EP Kind code of ref document: A1 |
