WO2016165488A1 - Photo processing method and device - Google Patents

Photo processing method and device Download PDF

Info

Publication number
WO2016165488A1
WO2016165488A1 PCT/CN2016/074340 CN2016074340W WO2016165488A1 WO 2016165488 A1 WO2016165488 A1 WO 2016165488A1 CN 2016074340 W CN2016074340 W CN 2016074340W WO 2016165488 A1 WO2016165488 A1 WO 2016165488A1
Authority
WO
WIPO (PCT)
Prior art keywords
photo
focus
camera
photos
sub
Prior art date
Application number
PCT/CN2016/074340
Other languages
French (fr)
Chinese (zh)
Inventor
张晓亮
杨毅
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016165488A1 publication Critical patent/WO2016165488A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/95Computational photography systems, e.g. light-field imaging systems
    • H04N23/958Computational photography systems, e.g. light-field imaging systems for extended depth of field imaging
    • H04N23/959Computational photography systems, e.g. light-field imaging systems for extended depth of field imaging by adjusting depth of field during image capture, e.g. maximising or setting range based on scene characteristics

Definitions

  • the present invention relates to the field of communications, and in particular to a photo processing method and apparatus.
  • the camera one of which is the main camera, one is the sub camera, the main camera is used to take photos, the sub camera is used to record the depth of field, and the photo can be refocused after taking the picture.
  • the main camera only takes one photo, and the sub camera records the depth of field, so after the shooting is completed, the photo can be refocused according to the depth information. Since the main camera only takes one photo, when the photo is refocused according to the depth of field information after the shooting is completed, the reselected focus cannot be displayed to the best state, so the desired one cannot be obtained according to the user's wishes.
  • the photos that is, the photos obtained are not ideal, such as bright areas may be overexposed, or dark areas are underexposed, and the ability to display details is poor.
  • the embodiment of the invention provides a photo processing method and device, so as to at least solve the problem that the photo processing in the related art is defective.
  • a photo processing method includes: photographing a scene at different positions in a framing range by a main camera and a sub camera, wherein the main camera is used to photograph the different positions. N photos of the scene, the sub camera is used to obtain depth information of the photo in the framing range, wherein N is greater than or equal to 2; determining a photo corresponding to the focus from the N photos according to the selected focus; The corresponding photo and the depth of field information are combined to process the photo.
  • photographing the scenes at different positions in the framing range by the main camera and the sub camera includes: focusing, by the main camera, the scenes at different positions in the framing range, and adjusting the aperture to take N photos, wherein The N photos are a group of photos having the same feature; the photo is taken by the sub camera, and the depth information of the photo is obtained according to the degree of clarity of the scene in the photo taken by the sub camera.
  • focusing on the scene at different positions in the framing range by the main camera, and adjusting the aperture Taking N photos includes automatically adjusting the aperture size according to the brightness information around the focus position or adjusting the brightness of the picture area by a predetermined algorithm to take N pictures.
  • synthesizing the photo by the photo corresponding to the focus and the depth of field information comprises: using a photo corresponding to the focus as a negative film, and taking a photo taken by the sub camera as a top film, and overlaying the upper film on the photo On the negative film, the focus of the upper part is buckled, and the image belonging to different depth of field information around the focus is blurred.
  • the method further includes: displaying the synthesized photo.
  • a photo processing apparatus including: a photographing module configured to photograph a scene at different positions in a framing range by using a main camera and a sub camera, wherein the main camera is used Taking N photos of the scenes at the different positions, the sub-camera is used to obtain depth information of the photos in the framing range, wherein N is greater than or equal to 2; the determining module is set to be from the N sheets according to the selected focus The photo corresponding to the focus is determined in the photo; the synthesis processing module is configured to synthesize the photo by the photo corresponding to the focus and the depth information.
  • the photographing module includes: a focusing unit configured to focus on a scene at different positions in the framing range by the main camera, and adjust an aperture to take N photos, wherein the N photos have the same a set of photos of the feature; an obtaining unit configured to take a photo by the sub camera, and obtain depth information of the photo according to a degree of clarity of the scene in the photo taken by the sub camera.
  • the focusing unit includes: a focus shooting subunit configured to automatically adjust the aperture size according to the brightness information around the focus position or adjust the brightness of the photographed picture area to capture N photos by using a predetermined algorithm.
  • the compositing processing module includes: a compositing processing unit configured to set a photo corresponding to the focus as a negative film, a photo taken by the sub camera as a top film, and a top film over the negative film, At the focus of the slice, a map is drawn, and the images belonging to different depth information positions around the focus are blurred and blurred.
  • the device further includes: a display module configured to display the synthesized photo.
  • the scenes at different positions in the framing range are photographed by the main camera and the sub-camera, wherein the main camera is used to take N photos of the scenes at the different positions, and the sub-camera is used for Obtaining depth information of a photo in the framing range, wherein N is greater than or equal to 2; determining a photo corresponding to the focus from the N photos according to the selected focus; synthesizing the photo by the photo corresponding to the focus and the depth information
  • N is greater than or equal to 2
  • the problem solves the problem that the photo processing in the related art is defective, and the photo can be synthesized according to the focus determined by the user, thereby improving the user experience.
  • FIG. 1 is a flow chart of a photo processing method according to an embodiment of the present invention.
  • FIG. 2 is a block diagram of a photo processing apparatus according to an embodiment of the present invention.
  • FIG. 3 is a block diagram 1 of a photo processing apparatus in accordance with a preferred embodiment of the present invention.
  • FIG. 4 is a block diagram 2 of a photo processing apparatus in accordance with a preferred embodiment of the present invention.
  • FIG. 5 is a block diagram 3 of a photo processing apparatus in accordance with a preferred embodiment of the present invention.
  • FIG. 6 is a block diagram 4 of a photo processing apparatus in accordance with a preferred embodiment of the present invention.
  • FIG. 7 is a flowchart of a method for realizing first focusing and then focusing using a dual camera according to an embodiment of the present invention
  • FIG. 8 is a schematic diagram of photographs taken at different distances from a camera according to an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of photo composition in accordance with an embodiment of the present invention.
  • FIG. 1 is a flowchart of a photo processing method according to an embodiment of the present invention. As shown in FIG.
  • Step S102 taking a picture of a scene at different positions in the framing range by using the main camera and the sub-camera, wherein the main camera is used to capture N photos of the scene at the different positions, and the sub-camera is used to obtain the depth of field of the photo in the framing range.
  • N is greater than or equal to 2;
  • Step S104 determining a photo corresponding to the focus from the N photos according to the selected focus
  • Step S106 synthesizing the photo by the photo corresponding to the focus and the depth information.
  • the main camera and the sub camera are used to take photos of different positions in the framing range, wherein the main camera is used to take N photos of the scenes at different positions, and the sub camera is used to obtain photos in the framing range.
  • Depth of field information wherein N is greater than or equal to 2; determining a photo corresponding to the focus from the N photos according to the selected focus; synthesizing the photo by the photo corresponding to the focus and the depth information, and solving the photo processing in the related art
  • the photos can be synthesized according to the focus determined by the user, thereby improving the user experience.
  • the photographing of the scenes at different positions in the framing range by the main camera and the sub-camera may include: focusing the scenes at different positions in the framing range by the main camera, and adjusting the aperture to take N photos, wherein the The N photos are a group of photos having the same feature; the photo is taken by the sub camera, and the depth information of the photo is obtained according to the clarity of the scene in the photo taken by the sub camera.
  • focusing the scene at different positions in the framing range by the main camera, and adjusting the aperture to take N photos may include automatically adjusting the aperture size according to the brightness information around the focus position or adjusting the brightness of the photographed picture area by using a predetermined algorithm. N photos.
  • the synthesizing the photo by the photo corresponding to the focus and the depth of field information may include: taking a photo corresponding to the focus as a negative film, using a photo taken by the sub camera as a top film, and overlaying the upper film on the negative film, The image of the focus of the upper part is buckled, and the image belonging to different depth information positions around the focus is blurred.
  • the synthesized photo is displayed.
  • FIG. 2 is a block diagram of a photo processing apparatus according to an embodiment of the present invention. As shown in FIG. 2, the photographing module 22, the determining module 24, and the synthesizing processing module 26 are provided. Briefly describe each module.
  • the photographing module 22 is configured to photograph the scenes at different positions in the framing range by the main camera and the sub-camera, wherein the main camera is used to take N photos of the scenes at different positions, and the sub-camera is used to obtain the framing range The depth of field information of the photo, where N is greater than or equal to 2;
  • a determining module 24 configured to determine a photo corresponding to the focus from the N photos according to the selected focus
  • the composition processing module 26 is configured to synthesize the photo by the photo corresponding to the focus and the depth information.
  • the photographing module 22 includes:
  • the focusing unit 32 is configured to focus the scenes at different positions in the framing range by the main camera, and adjust the aperture to take N photos, wherein the N photos are a group of photos having the same feature;
  • the obtaining unit 34 is configured to take a photo by the sub camera, and obtain depth information of the photo according to the degree of clarity of the scene in the photo taken by the sub camera.
  • the focusing unit 32 includes:
  • the focus shooting sub-unit 42 is configured to automatically adjust the aperture size according to the brightness information around the focus position or to adjust the brightness of the photographed picture area by a predetermined algorithm to take N pictures.
  • FIG. 5 is a block diagram 3 of a photo processing apparatus according to a preferred embodiment of the present invention. As shown in FIG. 5, the synthesizing processing module 26 includes:
  • the compositing processing unit 52 is configured to set a photo corresponding to the focus as a negative film, and the photo taken by the sub camera is used as a top film, and the upper film is overlaid on the negative film, and the focus of the upper film is buckled, and the focus is surrounded by Images of different depth of field information positions are blurred and blurred.
  • FIG. 6 is a block diagram 4 of a photo processing apparatus according to a preferred embodiment of the present invention. As shown in FIG. 6, the apparatus further includes:
  • the display module 62 is arranged to display the synthesized photo.
  • each of the above modules may be implemented by software or hardware.
  • the foregoing modules may be implemented by, but not limited to, the foregoing modules are located in different processors in any combination, for example, each of the foregoing. Modules are all located in the same processor; or each of the above modules is located in a different processor.
  • the embodiment of the invention provides a device for realizing first focusing and then focusing by using a dual camera, and realizing different aperture size automatic adjustment according to different focus positions.
  • the device may include a dual camera, including a main camera and a sub camera, a main camera camera module, a sub camera depth calculation module, a focus image selection module, a photo display synthesis module, a display module, etc., and the functions of the modules are performed by the camera module described above. 22.
  • the determination module 24 and the synthesis processing module 26 are implemented together, and each module is further described below.
  • the main camera is used for taking photos, the main camera captures pixels with high pixels, and can automatically focus, the processor automatically adjusts the aperture size according to the brightness information around the focus position or uses an algorithm to adjust the brightness of the photographed picture area;
  • the sub camera is used to calculate the depth of field.
  • the sub camera is not high in shooting pixels, the shooting speed is fast, and auto focus is not available. It can quickly calculate the depth of field of different scenes.
  • the main camera camera module divides the shooting area into different sub-areas. For example, the shooting scene is displayed on the display screen, and the display area is divided into five areas, including upper left, upper right, lower left, lower right, and middle. In five areas, after autofocusing and adjusting the aperture of the scene in the sub-area, multiple photos are taken, and the photographed photos are saved as an associated set of pictures in the storage area of the terminal device.
  • a sub camera depth calculation module calculates depth field data of different scenes taken, and stores the photographed photos and the calculated depth of field data in a storage area of the terminal device;
  • the focus image selection module after the user selects to refocus an area of a certain photo, the photo taken after the auto focus and the aperture is adjusted in a group of photos taken by the main camera;
  • the photo display synthesizing module the photo selected by the above-mentioned focus image selection module taken by the main camera is a negative film, the photo taken by the sub camera is a top film, the buckle image at the focus of the upper film is transparent, and the image around the focus is at a different depth of field position. Do blurring and blurring, the farther away from the focus of the scene, the higher the degree of blurring;
  • the display module displays the image displayed by the photo display synthesis module and is displayed on the display.
  • FIG. 7 is a flowchart of a method for realizing first focusing and then focusing by using a dual camera according to an embodiment of the present invention, as shown in FIG. :
  • Step S702 the main camera and the sub camera start shooting, and the main camera automatically focuses on the scenes at different positions and adjusts the aperture to take a picture, and takes multiple photos to form a group of photos having the same characteristics, and the photos automatically generate a group of related photos.
  • the sub-camera takes a photo, and forms the depth of field data of the scene according to the clarity of the scene in the photo;
  • Step S704 the user selects to refocus the photographed photo, selects a position to refocus, and the focus image selection module retrieves a photo corresponding to the refocus position;
  • Step S706 the photo display synthesis module takes the photo captured by the focus image selection module as a negative film, the photo taken by the sub camera is a top film, and the upper film covers the negative film, and the buckle image becomes transparent at the focus of the upper film, and the focus is surrounded by different depth of field.
  • the image of the position is blurred and blurred, and the farther away from the depth of field of the focus scene, the higher the degree of blurring, the more the photo will be
  • the display module is supplied for display.
  • FIG. 8 is a schematic diagram of photographs taken at different distances from the camera according to an embodiment of the present invention. As shown in FIG. 8 , the main cameras are respectively opposite to the center. The three trees were photographed in focus, and three photos were generated. The three photos were generated as follows: focus on the distant tree, the middle and near trees are dotted with dashed lines, and only the distant trees are in focus; The middle tree is in focus, and the distant and near trees are dotted with dashed lines, only the central trees are in focus; the near trees are in focus, and the far and middle trees are dotted with dashed lines, and only the nearby trees are in focus.
  • FIG. 9 is a schematic diagram of photo composition according to an embodiment of the present invention.
  • the left image is a photograph taken by the main camera
  • the right image is the top data generated by the sub camera photographing, and the two images are superimposed, and the main camera photo is taken.
  • the photo data of the sub camera is the upper film
  • the upper film covers the negative film
  • the upper film cuts the focus area
  • the scene around the blank area is blurred to form image data for focusing the near tree
  • the synthesized image is synthesized.
  • the image is displayed on the display.
  • multiple photos are continuously taken, different photos are selected as the focus of focusing, and a good exposure is automatically obtained by different apertures, or a better brightness is obtained by using an algorithm, and multiple photos taken can be taken.
  • the details of the scenes at multiple focal points are obtained.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the foregoing embodiments of the present invention can be applied to the field of communications, and solve the problem that the photo processing in the related art is flawed, and can synthesize the photos according to the focus determined by the user, thereby improving the user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Image Processing (AREA)
  • Automatic Focus Adjustment (AREA)

Abstract

Disclosed are a photo processing method and device, said method comprising: photographing scene objects at different positions within the viewfinding range by means of a primary camera and a secondary camera, wherein the primary camera is used for taking a number N of photographs of the scene objects at different positions, and the secondary camera is used for obtaining depth of field information of the photographs within the viewfinding range, N being greater than or equal to 2; determining from the N photographs, according to a selected focal point, a photograph corresponding to said focal point; performing synthesis processing on the photograph by means of the photograph corresponding to the focal point as well as said depth of field information; thus the problem in the related art of deficiencies in photograph processing is solved, and a photograph may be synthesized according to a focal point determined by a user, improving user experience.

Description

照片处理方法及装置Photo processing method and device 技术领域Technical field
本发明涉及通信领域,具体而言,涉及一种照片处理方法及装置。The present invention relates to the field of communications, and in particular to a photo processing method and apparatus.
背景技术Background technique
双摄像头手机越来越多,目前双摄像头手机有两种应用场景,一种是相同像素数的两个摄像头,可以拍摄后合成更高像素数的照片,另一种是不同像素数的两个摄像头,其中一个是主摄像头,一个是副摄像头,主摄像头用来拍摄照片,副摄像头用来记录景深,实现拍照后可以重新对焦。这两种方式,一种提升了照片的细腻程度,一种增加了拍照的趣味性。There are more and more dual camera phones. At present, there are two application scenarios for the dual camera phone. One is the same camera with two cameras, which can be combined to take a higher number of pixels, and the other is two different pixels. The camera, one of which is the main camera, one is the sub camera, the main camera is used to take photos, the sub camera is used to record the depth of field, and the photo can be refocused after taking the picture. These two methods, one enhances the delicateness of the photo, and one increases the fun of taking pictures.
在拍照的过程中,我们对焦到明亮的天空时,天空中云彩的细节就可以比较好地拍摄出来,但是会让周围其他的环境成像质量比较暗,如果对焦到周围比较暗的地方,天空中云彩的细节就拍摄不到,这是由于成像的算法中会自动调节。In the process of taking pictures, when we focus on the bright sky, the details of the clouds in the sky can be better shot, but the image quality of other surrounding environments will be darker. If we focus on the darker places around, in the sky. The details of the cloud are not captured, which is due to the automatic adjustment of the imaging algorithm.
现有技术中,双摄像头手机拍照时,主摄像头只会拍一副照片,副摄像头记录景深,因此在拍摄完成之后,根据景深信息可以对照片做重新对焦的操作。由于主摄像头只拍一副照片,因此在拍摄完成之后,根据景深信息可以对照片做重新对焦的时候,重新选择的焦点并不能显示到最好的状态,故不能按照用户的意愿得到想要的照片,即得到的照片并不理想,比如亮的地方可能过度曝光,或者暗的地方曝光不足,显示细节能力比较差。In the prior art, when the dual camera phone is photographed, the main camera only takes one photo, and the sub camera records the depth of field, so after the shooting is completed, the photo can be refocused according to the depth information. Since the main camera only takes one photo, when the photo is refocused according to the depth of field information after the shooting is completed, the reselected focus cannot be displayed to the best state, so the desired one cannot be obtained according to the user's wishes. The photos, that is, the photos obtained are not ideal, such as bright areas may be overexposed, or dark areas are underexposed, and the ability to display details is poor.
针对相关技术中照片处理存在缺陷的问题,还未提出有效的解决方案。In view of the problem that the photo processing in the related art is defective, an effective solution has not been proposed.
发明内容Summary of the invention
本发明实施例提供了一种照片处理方法及装置,以至少解决相关技术中照片处理存在缺陷的问题。The embodiment of the invention provides a photo processing method and device, so as to at least solve the problem that the photo processing in the related art is defective.
根据本发明实施例的一个方面,提供了一种照片处理方法,包括:通过主摄像头和副摄像头对取景范围内不同位置的景物进行拍照,其中,所述主摄像头用于拍摄所述不同位置的景物的N张照片,所述副摄像头用于获得取景范围内照片的景深信息,其中,N大于或等于2;根据选择的焦点从所述N张照片中确定所述焦点对应的照片;通过焦点对应的照片和所述景深信息对照片进行合成处理。According to an aspect of an embodiment of the present invention, a photo processing method includes: photographing a scene at different positions in a framing range by a main camera and a sub camera, wherein the main camera is used to photograph the different positions. N photos of the scene, the sub camera is used to obtain depth information of the photo in the framing range, wherein N is greater than or equal to 2; determining a photo corresponding to the focus from the N photos according to the selected focus; The corresponding photo and the depth of field information are combined to process the photo.
进一步地,通过主摄像头和副摄像头对所述取景范围内不同位置的景物进行拍照包括:通过所述主摄像头对所述取景范围内不同位置的景物进行对焦,并调整光圈拍摄N张照片,其中,所述N张照片是具有相同特征的一组照片;通过所述副摄像头拍摄照片,根据所述副摄像头拍摄的照片中景物的清晰程度获得照片的景深信息。Further, photographing the scenes at different positions in the framing range by the main camera and the sub camera includes: focusing, by the main camera, the scenes at different positions in the framing range, and adjusting the aperture to take N photos, wherein The N photos are a group of photos having the same feature; the photo is taken by the sub camera, and the depth information of the photo is obtained according to the degree of clarity of the scene in the photo taken by the sub camera.
进一步地,通过所述主摄像头对所述取景范围内不同位置的景物进行对焦,并调整光圈 拍摄N张照片包括:根据对焦位置周围亮度信息自动调节光圈大小或者利用预定算法调节拍照图片区域的亮度拍摄N张照片。Further, focusing on the scene at different positions in the framing range by the main camera, and adjusting the aperture Taking N photos includes automatically adjusting the aperture size according to the brightness information around the focus position or adjusting the brightness of the picture area by a predetermined algorithm to take N pictures.
进一步地,通过所述焦点对应的照片和所述景深信息对照片进行合成处理包括:将所述焦点对应的照片作为底片,通过所述副摄像头拍摄的照片作为上片,将上片覆盖在所述底片上,将上片焦点处进行扣图,将焦点处周围属于不同景深信息位置的图像做虚化模糊处理。Further, synthesizing the photo by the photo corresponding to the focus and the depth of field information comprises: using a photo corresponding to the focus as a negative film, and taking a photo taken by the sub camera as a top film, and overlaying the upper film on the photo On the negative film, the focus of the upper part is buckled, and the image belonging to different depth of field information around the focus is blurred.
进一步地,在通过焦点对应的照片和所述景深信息对照片进行合成处理之后,所述方法还包括:将合成后的照片进行显示。Further, after the photo is synthesized by the photo corresponding to the focus and the depth information, the method further includes: displaying the synthesized photo.
根据本发明实施例的另一方面,还提供了一种照片处理装置,包括:拍照模块,设置为通过主摄像头和副摄像头对取景范围内不同位置的景物进行拍照,其中,所述主摄像头用于拍摄所述不同位置的景物的N张照片,所述副摄像头用于获得取景范围内照片的景深信息,其中,N大于或等于2;确定模块,设置为根据选择的焦点从所述N张照片中确定所述焦点对应的照片;合成处理模块,设置为通过焦点对应的照片和所述景深信息对照片进行合成处理。According to another aspect of the present invention, a photo processing apparatus is further provided, including: a photographing module configured to photograph a scene at different positions in a framing range by using a main camera and a sub camera, wherein the main camera is used Taking N photos of the scenes at the different positions, the sub-camera is used to obtain depth information of the photos in the framing range, wherein N is greater than or equal to 2; the determining module is set to be from the N sheets according to the selected focus The photo corresponding to the focus is determined in the photo; the synthesis processing module is configured to synthesize the photo by the photo corresponding to the focus and the depth information.
进一步地,所述拍照模块包括:对焦单元,设置为通过所述主摄像头对所述取景范围内不同位置的景物进行对焦,并调整光圈拍摄N张照片,其中,所述N张照片是具有相同特征的一组照片;获得单元,设置为通过所述副摄像头拍摄照片,根据所述副摄像头拍摄的照片中景物的清晰程度获得照片的景深信息。Further, the photographing module includes: a focusing unit configured to focus on a scene at different positions in the framing range by the main camera, and adjust an aperture to take N photos, wherein the N photos have the same a set of photos of the feature; an obtaining unit configured to take a photo by the sub camera, and obtain depth information of the photo according to a degree of clarity of the scene in the photo taken by the sub camera.
进一步地,所述对焦单元包括:对焦拍摄子单元,设置为根据对焦位置周围亮度信息自动调节光圈大小或者利用预定算法调节拍照图片区域的亮度拍摄N张照片。Further, the focusing unit includes: a focus shooting subunit configured to automatically adjust the aperture size according to the brightness information around the focus position or adjust the brightness of the photographed picture area to capture N photos by using a predetermined algorithm.
进一步地,所述合成处理模块包括:合成处理单元,设置为将所述焦点对应的照片作为底片,通过所述副摄像头拍摄的照片作为上片,将上片覆盖在所述底片上,将上片焦点处进行扣图,将焦点处周围属于不同景深信息位置的图像做虚化模糊处理。Further, the compositing processing module includes: a compositing processing unit configured to set a photo corresponding to the focus as a negative film, a photo taken by the sub camera as a top film, and a top film over the negative film, At the focus of the slice, a map is drawn, and the images belonging to different depth information positions around the focus are blurred and blurred.
进一步地,所述装置还包括:显示模块,设置为将合成后的照片进行显示。Further, the device further includes: a display module configured to display the synthesized photo.
通过本发明实施例,采用通过主摄像头和副摄像头对取景范围内不同位置的景物进行拍照,其中,所述主摄像头用于拍摄所述不同位置的景物的N张照片,所述副摄像头用于获得取景范围内照片的景深信息,其中,N大于或等于2;根据选择的焦点从所述N张照片中确定所述焦点对应的照片;通过焦点对应的照片和所述景深信息对照片进行合成处理,解决了相关技术中照片处理存在缺陷的问题,能够根据用户确定的焦点对照片进行合成,提高了用户体验。According to the embodiment of the present invention, the scenes at different positions in the framing range are photographed by the main camera and the sub-camera, wherein the main camera is used to take N photos of the scenes at the different positions, and the sub-camera is used for Obtaining depth information of a photo in the framing range, wherein N is greater than or equal to 2; determining a photo corresponding to the focus from the N photos according to the selected focus; synthesizing the photo by the photo corresponding to the focus and the depth information The problem solves the problem that the photo processing in the related art is defective, and the photo can be synthesized according to the focus determined by the user, thereby improving the user experience.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是根据本发明实施例的照片处理方法的流程图; 1 is a flow chart of a photo processing method according to an embodiment of the present invention;
图2是根据本发明实施例的照片处理装置的框图;2 is a block diagram of a photo processing apparatus according to an embodiment of the present invention;
图3是根据本发明优选实施例的照片处理装置的框图一;Figure 3 is a block diagram 1 of a photo processing apparatus in accordance with a preferred embodiment of the present invention;
图4是根据本发明优选实施例的照片处理装置的框图二;4 is a block diagram 2 of a photo processing apparatus in accordance with a preferred embodiment of the present invention;
图5是根据本发明优选实施例的照片处理装置的框图三;Figure 5 is a block diagram 3 of a photo processing apparatus in accordance with a preferred embodiment of the present invention;
图6是根据本发明优选实施例的照片处理装置的框图四;Figure 6 is a block diagram 4 of a photo processing apparatus in accordance with a preferred embodiment of the present invention;
图7是根据本发明实施例的利用双摄像头实现先拍照后对焦的方法的流程图;7 is a flowchart of a method for realizing first focusing and then focusing using a dual camera according to an embodiment of the present invention;
图8是根据本发明实施例的拍摄距离摄像头远近距离不同的照片的示意图;8 is a schematic diagram of photographs taken at different distances from a camera according to an embodiment of the present invention;
图9是根据本发明实施例的照片合成的示意图。9 is a schematic diagram of photo composition in accordance with an embodiment of the present invention.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
本发明实施例提供了一种照片处理方法,图1是根据本发明实施例的照片处理方法的流程图,如图1所示,包括:An embodiment of the present invention provides a photo processing method. FIG. 1 is a flowchart of a photo processing method according to an embodiment of the present invention. As shown in FIG.
步骤S102,通过主摄像头和副摄像头对取景范围内不同位置的景物进行拍照,其中,该主摄像头用于拍摄该不同位置的景物的N张照片,该副摄像头用于获得取景范围内照片的景深信息,其中,N大于或等于2;Step S102, taking a picture of a scene at different positions in the framing range by using the main camera and the sub-camera, wherein the main camera is used to capture N photos of the scene at the different positions, and the sub-camera is used to obtain the depth of field of the photo in the framing range. Information, where N is greater than or equal to 2;
步骤S104,根据选择的焦点从该N张照片中确定该焦点对应的照片;Step S104, determining a photo corresponding to the focus from the N photos according to the selected focus;
步骤S106,通过焦点对应的照片和该景深信息对照片进行合成处理。Step S106, synthesizing the photo by the photo corresponding to the focus and the depth information.
通过上述步骤,通过主摄像头和副摄像头对取景范围内不同位置的景物进行拍照,其中,该主摄像头用于拍摄该不同位置的景物的N张照片,该副摄像头用于获得取景范围内照片的景深信息,其中,N大于或等于2;根据选择的焦点从该N张照片中确定该焦点对应的照片;通过焦点对应的照片和该景深信息对照片进行合成处理,解决了相关技术中照片处理存在缺陷的问题,能够根据用户确定的焦点对照片进行合成,提高了用户体验。Through the above steps, the main camera and the sub camera are used to take photos of different positions in the framing range, wherein the main camera is used to take N photos of the scenes at different positions, and the sub camera is used to obtain photos in the framing range. Depth of field information, wherein N is greater than or equal to 2; determining a photo corresponding to the focus from the N photos according to the selected focus; synthesizing the photo by the photo corresponding to the focus and the depth information, and solving the photo processing in the related art There is a problem of defects, and the photos can be synthesized according to the focus determined by the user, thereby improving the user experience.
进一步地,通过主摄像头和副摄像头对该取景范围内不同位置的景物进行拍照可以包括:通过该主摄像头对该取景范围内不同位置的景物进行对焦,并调整光圈拍摄N张照片,其中,该N张照片是具有相同特征的一组照片;通过该副摄像头拍摄照片,根据该副摄像头拍摄的照片中景物的清晰程度获得照片的景深信息。Further, the photographing of the scenes at different positions in the framing range by the main camera and the sub-camera may include: focusing the scenes at different positions in the framing range by the main camera, and adjusting the aperture to take N photos, wherein the The N photos are a group of photos having the same feature; the photo is taken by the sub camera, and the depth information of the photo is obtained according to the clarity of the scene in the photo taken by the sub camera.
进一步地,通过该主摄像头对该取景范围内不同位置的景物进行对焦,并调整光圈拍摄N张照片可以包括:根据对焦位置周围亮度信息自动调节光圈大小或者利用预定算法调节拍照图片区域的亮度拍摄N张照片。 Further, focusing the scene at different positions in the framing range by the main camera, and adjusting the aperture to take N photos may include automatically adjusting the aperture size according to the brightness information around the focus position or adjusting the brightness of the photographed picture area by using a predetermined algorithm. N photos.
进一步地,通过该焦点对应的照片和该景深信息对照片进行合成处理可以包括:将该焦点对应的照片作为底片,通过该副摄像头拍摄的照片作为上片,将上片覆盖在该底片上,将上片焦点处进行扣图,将焦点处周围属于不同景深信息位置的图像做虚化模糊处理。Further, the synthesizing the photo by the photo corresponding to the focus and the depth of field information may include: taking a photo corresponding to the focus as a negative film, using a photo taken by the sub camera as a top film, and overlaying the upper film on the negative film, The image of the focus of the upper part is buckled, and the image belonging to different depth information positions around the focus is blurred.
进一步地,在通过焦点对应的照片和该景深信息对照片进行合成处理之后,将合成后的照片进行显示。Further, after the photo is synthesized by the photo corresponding to the focus and the depth information, the synthesized photo is displayed.
本发明实施例还提供了一种照片处理装置,图2是根据本发明实施例的照片处理装置的框图,如图2所示,包括拍照模块22、确定模块24和合成处理模块26,下面对各个模块进行简要说明。The embodiment of the present invention further provides a photo processing apparatus. FIG. 2 is a block diagram of a photo processing apparatus according to an embodiment of the present invention. As shown in FIG. 2, the photographing module 22, the determining module 24, and the synthesizing processing module 26 are provided. Briefly describe each module.
拍照模块22,设置为通过主摄像头和副摄像头对取景范围内不同位置的景物进行拍照,其中,该主摄像头用于拍摄该不同位置的景物的N张照片,该副摄像头用于获得取景范围内照片的景深信息,其中,N大于或等于2;The photographing module 22 is configured to photograph the scenes at different positions in the framing range by the main camera and the sub-camera, wherein the main camera is used to take N photos of the scenes at different positions, and the sub-camera is used to obtain the framing range The depth of field information of the photo, where N is greater than or equal to 2;
确定模块24,设置为根据选择的焦点从该N张照片中确定该焦点对应的照片;a determining module 24, configured to determine a photo corresponding to the focus from the N photos according to the selected focus;
合成处理模块26,设置为通过焦点对应的照片和该景深信息对照片进行合成处理。The composition processing module 26 is configured to synthesize the photo by the photo corresponding to the focus and the depth information.
图3是根据本发明优选实施例的照片处理装置的框图一,如图3所示,拍照模块22包括:3 is a block diagram of a photo processing apparatus according to a preferred embodiment of the present invention. As shown in FIG. 3, the photographing module 22 includes:
对焦单元32,设置为通过该主摄像头对该取景范围内不同位置的景物进行对焦,并调整光圈拍摄N张照片,其中,该N张照片是具有相同特征的一组照片;The focusing unit 32 is configured to focus the scenes at different positions in the framing range by the main camera, and adjust the aperture to take N photos, wherein the N photos are a group of photos having the same feature;
获得单元34,设置为通过该副摄像头拍摄照片,根据该副摄像头拍摄的照片中景物的清晰程度获得照片的景深信息。The obtaining unit 34 is configured to take a photo by the sub camera, and obtain depth information of the photo according to the degree of clarity of the scene in the photo taken by the sub camera.
图4是根据本发明优选实施例的照片处理装置的框图二,如图4所示,对焦单元32包括:4 is a block diagram 2 of a photo processing apparatus according to a preferred embodiment of the present invention. As shown in FIG. 4, the focusing unit 32 includes:
对焦拍摄子单元42,设置为根据对焦位置周围亮度信息自动调节光圈大小或者利用预定算法调节拍照图片区域的亮度拍摄N张照片。The focus shooting sub-unit 42 is configured to automatically adjust the aperture size according to the brightness information around the focus position or to adjust the brightness of the photographed picture area by a predetermined algorithm to take N pictures.
图5是根据本发明优选实施例的照片处理装置的框图三,如图5所示,合成处理模块26包括:FIG. 5 is a block diagram 3 of a photo processing apparatus according to a preferred embodiment of the present invention. As shown in FIG. 5, the synthesizing processing module 26 includes:
合成处理单元52,设置为将该焦点对应的照片作为底片,通过该副摄像头拍摄的照片作为上片,将上片覆盖在该底片上,将上片焦点处进行扣图,将焦点处周围属于不同景深信息位置的图像做虚化模糊处理。The compositing processing unit 52 is configured to set a photo corresponding to the focus as a negative film, and the photo taken by the sub camera is used as a top film, and the upper film is overlaid on the negative film, and the focus of the upper film is buckled, and the focus is surrounded by Images of different depth of field information positions are blurred and blurred.
图6是根据本发明优选实施例的照片处理装置的框图四,如图6所示,该装置还包括:FIG. 6 is a block diagram 4 of a photo processing apparatus according to a preferred embodiment of the present invention. As shown in FIG. 6, the apparatus further includes:
显示模块62,设置为将合成后的照片进行显示。The display module 62 is arranged to display the synthesized photo.
需要说明的是,上述的各个模块可以通过软件或硬件实现,对于后者,可以通过以下方式实现,但不限于此,上述各个模块以任意组合的方式位于不同的处理器中,例如,上述各个模块均位于同一处理器中;或者上述的各个模块分别位于不同的处理器中。 It should be noted that each of the above modules may be implemented by software or hardware. For the latter, the foregoing modules may be implemented by, but not limited to, the foregoing modules are located in different processors in any combination, for example, each of the foregoing. Modules are all located in the same processor; or each of the above modules is located in a different processor.
下面结合具体实施例对本发明实施例进行进一步说明。The embodiments of the present invention are further described below in conjunction with specific embodiments.
本发明实施例提供了一种利用双摄像头实现先拍照后对焦的装置,根据焦点位置的不同实现不同的光圈大小自动调节。其中,该装置可以包括双摄像头,包括主摄像头和副摄像头,主摄像头拍照模块,副摄像头景深计算模块,焦点图像选择模块,照片显示合成模块,显示模块等,这些模块的功能由上述的拍照模块22、确定模块24和合成处理模块26一起实现,下面对各个模块进行进一步说明。The embodiment of the invention provides a device for realizing first focusing and then focusing by using a dual camera, and realizing different aperture size automatic adjustment according to different focus positions. The device may include a dual camera, including a main camera and a sub camera, a main camera camera module, a sub camera depth calculation module, a focus image selection module, a photo display synthesis module, a display module, etc., and the functions of the modules are performed by the camera module described above. 22. The determination module 24 and the synthesis processing module 26 are implemented together, and each module is further described below.
主摄像头用于拍摄照片,主摄像头拍摄像素高,可以自动对焦,处理器根据焦点位置周围亮度信息自动调节光圈大小或者利用算法调节拍照图片区域的亮度;The main camera is used for taking photos, the main camera captures pixels with high pixels, and can automatically focus, the processor automatically adjusts the aperture size according to the brightness information around the focus position or uses an algorithm to adjust the brightness of the photographed picture area;
副摄像头用于计算景深,副摄像头拍摄像素不高,拍摄速度快,不可自动对焦,可以快速计算不同景物的景深;The sub camera is used to calculate the depth of field. The sub camera is not high in shooting pixels, the shooting speed is fast, and auto focus is not available. It can quickly calculate the depth of field of different scenes.
主摄像头拍照模块,将拍摄区域分为分作不同的子区域,如将拍摄景物在显示屏上的显示,将显示区内分作五个区域,包括左上,右上,左下,右下,中间这五个区域,对子区域内的景物进行自动对焦和调节光圈后,拍摄多幅照片,将拍摄的照片作为相关联的一组图片保存在终端装置的存储区域。The main camera camera module divides the shooting area into different sub-areas. For example, the shooting scene is displayed on the display screen, and the display area is divided into five areas, including upper left, upper right, lower left, lower right, and middle. In five areas, after autofocusing and adjusting the aperture of the scene in the sub-area, multiple photos are taken, and the photographed photos are saved as an associated set of pictures in the storage area of the terminal device.
副摄像头景深计算模块,计算拍摄的不同景物的景深数据,将拍摄的照片和计算获得的景深数据保存在终端装置的存储区域;a sub camera depth calculation module calculates depth field data of different scenes taken, and stores the photographed photos and the calculated depth of field data in a storage area of the terminal device;
焦点图像选择模块,用户选择对某个照片某个区域重新对焦后,调取主摄像头拍摄的一组照片中对于此处自动对焦和调节光圈后拍摄的那幅照片;The focus image selection module, after the user selects to refocus an area of a certain photo, the photo taken after the auto focus and the aperture is adjusted in a group of photos taken by the main camera;
照片显示合成模块,以主摄像头拍摄的上述焦点图像选择模块选择的照片为底片,将副摄像头拍摄的照片为上片,将上片焦点处扣图变透明,焦点处周围属于不同景深位置的图像做虚化模糊处理,距离焦点景物景深越远的地方虚化模糊程度越高;The photo display synthesizing module, the photo selected by the above-mentioned focus image selection module taken by the main camera is a negative film, the photo taken by the sub camera is a top film, the buckle image at the focus of the upper film is transparent, and the image around the focus is at a different depth of field position. Do blurring and blurring, the farther away from the focus of the scene, the higher the degree of blurring;
显示模块,显示照片显示合成模块提供的图像,在显示屏上显示。The display module displays the image displayed by the photo display synthesis module and is displayed on the display.
本发明实施例还提供了一种利用双摄像头实现先拍照后对焦的方法,图7是根据本发明实施例的利用双摄像头实现先拍照后对焦的方法的流程图,如图7所示,包括:The embodiment of the present invention further provides a method for realizing first focusing and then focusing by using a dual camera. FIG. 7 is a flowchart of a method for realizing first focusing and then focusing by using a dual camera according to an embodiment of the present invention, as shown in FIG. :
步骤S702,主摄像头和副摄像头启动拍摄,主摄像头自动对不同位置的景物进行对焦和调整光圈进行拍照,拍摄多张照片,形成具有相同特征的一组照片,这些照片自动生成一组相关照片,通过每个照片的编号识别,如20180520-a,20180520-b,20180520-c,20180520-d,存储在存储单元;副摄像头拍摄照片,根据照片中景物的清晰程度形成景物的景深数据;Step S702, the main camera and the sub camera start shooting, and the main camera automatically focuses on the scenes at different positions and adjusts the aperture to take a picture, and takes multiple photos to form a group of photos having the same characteristics, and the photos automatically generate a group of related photos. By the number identification of each photo, such as 20180520-a, 20180520-b, 20180520-c, 20180520-d, stored in the storage unit; the sub-camera takes a photo, and forms the depth of field data of the scene according to the clarity of the scene in the photo;
步骤S704,用户选择对拍摄的照片重新对焦,选择重新对焦的位置,焦点图像选择模块调取重新对焦位置相对应的照片;Step S704, the user selects to refocus the photographed photo, selects a position to refocus, and the focus image selection module retrieves a photo corresponding to the refocus position;
步骤S706,照片显示合成模块将焦点图像选择模块调取的照片为底片,副摄像头拍摄的照片为上片,上片覆盖在底片上,上片焦点处扣图变透明,焦点处周围属于不同景深位置的图像做虚化模糊处理,距离焦点景物景深越远的地方虚化模糊程度越高,将合成后的照片提 供给显示模块进行显示。Step S706, the photo display synthesis module takes the photo captured by the focus image selection module as a negative film, the photo taken by the sub camera is a top film, and the upper film covers the negative film, and the buckle image becomes transparent at the focus of the upper film, and the focus is surrounded by different depth of field. The image of the position is blurred and blurred, and the farther away from the depth of field of the focus scene, the higher the degree of blurring, the more the photo will be The display module is supplied for display.
下面以距离摄像头远近距离不同的三个树为例进行进一步说明,图8是根据本发明实施例的拍摄距离摄像头远近距离不同的照片的示意图,如图8所示,主摄像头分别对远,中,近三棵树分别进行对焦拍摄,生成三张照片,生成的三张照片分别如下:对远处树进行对焦,中部和近处的树用虚线表示拍摄模糊,只有远处树木对焦清晰;对中部树进行对焦,远部和近处的树用虚线表示拍摄模糊,只有中部树木对焦清晰;对近处树进行对焦,远部和中部的树用虚线表示拍摄模糊,只有近处树木对焦清晰。In the following, the three trees having different distances from the camera are taken as an example for further description. FIG. 8 is a schematic diagram of photographs taken at different distances from the camera according to an embodiment of the present invention. As shown in FIG. 8 , the main cameras are respectively opposite to the center. The three trees were photographed in focus, and three photos were generated. The three photos were generated as follows: focus on the distant tree, the middle and near trees are dotted with dashed lines, and only the distant trees are in focus; The middle tree is in focus, and the distant and near trees are dotted with dashed lines, only the central trees are in focus; the near trees are in focus, and the far and middle trees are dotted with dashed lines, and only the nearby trees are in focus.
图9是根据本发明实施例的照片合成的示意图,如图9所示,左图为主摄像头拍摄照片,右图为副摄像头拍摄照片生成的上片数据,将两幅图片叠加,主摄像头照片为底片,副摄像头照片数据为上片,上片覆盖住底片,上片裁空对焦区域,并将裁空区域周围景物进行虚化,形成对近处树木进行对焦的图像数据,将合成后的图像在显示屏上进行显示。FIG. 9 is a schematic diagram of photo composition according to an embodiment of the present invention. As shown in FIG. 9 , the left image is a photograph taken by the main camera, and the right image is the top data generated by the sub camera photographing, and the two images are superimposed, and the main camera photo is taken. For the negative film, the photo data of the sub camera is the upper film, the upper film covers the negative film, the upper film cuts the focus area, and the scene around the blank area is blurred to form image data for focusing the near tree, and the synthesized image is synthesized. The image is displayed on the display.
本发明实施例通过连续拍摄多张照片,不同的照片选择不同亮度地方作为对焦的焦点,通过不同光圈自动获得较好的曝光量,或者利用算法获得较好的亮度,拍摄的多张照片就可以获得多个焦点处景象的细节,拍摄照片完成后,当用户重新选择照片中某个位置为焦点时,就可以调用相应照片,再利用副摄像头获得的景深信息,合成周围虚化的照片。In the embodiment of the present invention, multiple photos are continuously taken, different photos are selected as the focus of focusing, and a good exposure is automatically obtained by different apertures, or a better brightness is obtained by using an algorithm, and multiple photos taken can be taken. The details of the scenes at multiple focal points are obtained. When the photograph is completed, when the user reselects a certain position in the photo as the focus, the corresponding photo can be called, and then the depth information obtained by the sub camera is used to synthesize the surrounding blurred photos.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
上述的本发明实施例,可以应用于通讯领域,解决了相关技术中照片处理存在缺陷的问题,能够根据用户确定的焦点对照片进行合成,提高了用户体验。 The foregoing embodiments of the present invention can be applied to the field of communications, and solve the problem that the photo processing in the related art is flawed, and can synthesize the photos according to the focus determined by the user, thereby improving the user experience.

Claims (10)

  1. 一种照片处理方法,包括:A photo processing method comprising:
    通过主摄像头和副摄像头对取景范围内不同位置的景物进行拍照,其中,所述主摄像头用于拍摄所述不同位置的景物的N张照片,所述副摄像头用于获得取景范围内照片的景深信息,其中,N大于或等于2;Taking a picture of a scene at different positions in the framing range by the main camera and the sub camera, wherein the main camera is used to capture N photos of the scene at the different positions, and the sub camera is used to obtain the depth of field of the photo in the framing range Information, where N is greater than or equal to 2;
    根据选择的焦点从所述N张照片中确定所述焦点对应的照片;Determining a photo corresponding to the focus from the N photos according to the selected focus;
    通过焦点对应的照片和所述景深信息对照片进行合成处理。The photo is synthesized by the photo corresponding to the focus and the depth information.
  2. 根据权利要求1所述的方法,其中,通过主摄像头和副摄像头对所述取景范围内不同位置的景物进行拍照包括:The method according to claim 1, wherein photographing the scenes at different positions in the framing range by the main camera and the sub-camera comprises:
    通过所述主摄像头对所述取景范围内不同位置的景物进行对焦,并调整光圈拍摄N张照片,其中,所述N张照片是具有相同特征的一组照片;Focusing on the scenes at different positions in the framing range by the main camera, and adjusting the aperture to take N photos, wherein the N photos are a group of photos having the same feature;
    通过所述副摄像头拍摄照片,根据所述副摄像头拍摄的照片中景物的清晰程度获得照片的景深信息。The photo is taken by the sub camera, and the depth information of the photo is obtained according to the degree of clarity of the scene in the photo taken by the sub camera.
  3. 根据权利要求2所述的方法,其中,通过所述主摄像头对所述取景范围内不同位置的景物进行对焦,并调整光圈拍摄N张照片包括:The method according to claim 2, wherein the focusing of the scenes at different positions in the framing range by the main camera and adjusting the aperture to take N photos comprises:
    根据对焦位置周围亮度信息自动调节光圈大小或者利用预定算法调节拍照图片区域的亮度拍摄N张照片。The aperture size is automatically adjusted according to the brightness information around the focus position or the brightness of the photographed picture area is adjusted by a predetermined algorithm to take N pictures.
  4. 根据权利要求1所述的方法,其中,通过所述焦点对应的照片和所述景深信息对照片进行合成处理包括:The method according to claim 1, wherein the synthesizing the photo by the photo corresponding to the focus and the depth of field information comprises:
    将所述焦点对应的照片作为底片,通过所述副摄像头拍摄的照片作为上片,将上片覆盖在所述底片上,将上片焦点处进行扣图,将焦点处周围属于不同景深信息位置的图像做虚化模糊处理。Taking a photo corresponding to the focus as a negative film, taking a photo taken by the sub-camera as a top film, covering the upper film on the negative film, and performing a button image on the focus of the upper film, and the information about the depth of field is different. The image is blurred and blurred.
  5. 根据权利要求1至4中任一项所述的方法,其中,在通过焦点对应的照片和所述景深信息对照片进行合成处理之后,所述方法还包括:The method according to any one of claims 1 to 4, wherein after the photo is synthesized by the photo corresponding to the focus and the depth of field information, the method further comprises:
    将合成后的照片进行显示。The synthesized photo is displayed.
  6. 一种照片处理装置,包括:A photo processing device comprising:
    拍照模块,设置为通过主摄像头和副摄像头对取景范围内不同位置的景物进行拍照,其中,所述主摄像头用于拍摄所述不同位置的景物的N张照片,所述副摄像头用于获得取景范围内照片的景深信息,其中,N大于或等于2;The photographing module is configured to photograph the scenes at different positions in the framing range by the main camera and the sub camera, wherein the main camera is used to take N photos of the scenes at the different positions, and the sub camera is used for obtaining a framing Depth of field information of a range of photos, where N is greater than or equal to 2;
    确定模块,设置为根据选择的焦点从所述N张照片中确定所述焦点对应的照片;a determining module, configured to determine a photo corresponding to the focus from the N photos according to the selected focus;
    合成处理模块,设置为通过焦点对应的照片和所述景深信息对照片进行合成处理。 The synthesis processing module is configured to synthesize the photo by the photo corresponding to the focus and the depth information.
  7. 根据权利要求6所述的装置,其中,所述拍照模块包括:The apparatus according to claim 6, wherein the photographing module comprises:
    对焦单元,设置为通过所述主摄像头对所述取景范围内不同位置的景物进行对焦,并调整光圈拍摄N张照片,其中,所述N张照片是具有相同特征的一组照片;a focusing unit configured to focus on a scene at different positions in the framing range by the main camera, and adjust an aperture to take N photos, wherein the N photos are a group of photos having the same feature;
    获得单元,设置为通过所述副摄像头拍摄照片,根据所述副摄像头拍摄的照片中景物的清晰程度获得照片的景深信息。The obtaining unit is configured to take a photo by the sub camera, and obtain depth information of the photo according to the degree of clarity of the scene in the photo taken by the sub camera.
  8. 根据权利要求7所述的装置,其中,所述对焦单元包括:The apparatus of claim 7, wherein the focusing unit comprises:
    对焦拍摄子单元,设置为根据对焦位置周围亮度信息自动调节光圈大小或者利用预定算法调节拍照图片区域的亮度拍摄N张照片。The focus shooting sub-unit is set to automatically adjust the aperture size according to the brightness information around the focus position or to adjust the brightness of the photographed picture area by a predetermined algorithm to take N photos.
  9. 根据权利要求6所述的装置,其中,所述合成处理模块包括:The apparatus of claim 6 wherein said synthesis processing module comprises:
    合成处理单元,设置为将所述焦点对应的照片作为底片,通过所述副摄像头拍摄的照片作为上片,将上片覆盖在所述底片上,将上片焦点处进行扣图,将焦点处周围属于不同景深信息位置的图像做虚化模糊处理。a synthesis processing unit configured to use a photo corresponding to the focus as a negative film, a photo taken by the sub-camera as a top film, a top cover on the negative film, and a focus image at a focus of the upper film, and a focus point The images surrounding the information positions of different depths of field are blurred and blurred.
  10. 根据权利要求6至9中任一项所述的装置,其中,所述装置还包括:The device according to any one of claims 6 to 9, wherein the device further comprises:
    显示模块,设置为将合成后的照片进行显示。 The display module is set to display the synthesized photo.
PCT/CN2016/074340 2015-09-18 2016-02-23 Photo processing method and device WO2016165488A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510601086.8A CN106550184B (en) 2015-09-18 2015-09-18 Photo processing method and device
CN201510601086.8 2015-09-18

Publications (1)

Publication Number Publication Date
WO2016165488A1 true WO2016165488A1 (en) 2016-10-20

Family

ID=57127124

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/074340 WO2016165488A1 (en) 2015-09-18 2016-02-23 Photo processing method and device

Country Status (2)

Country Link
CN (1) CN106550184B (en)
WO (1) WO2016165488A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106911894A (en) * 2017-02-27 2017-06-30 努比亚技术有限公司 Image-pickup method and mobile terminal
CN108616687A (en) * 2018-03-23 2018-10-02 维沃移动通信有限公司 A kind of photographic method, device and mobile terminal
EP3493519A1 (en) * 2017-11-30 2019-06-05 Guangdong Oppo Mobile Telecommunications Corp., Ltd Method and device for dual-camera-based imaging and storage medium
CN110767145A (en) * 2019-10-24 2020-02-07 武汉天马微电子有限公司 Display device and driving method thereof
CN111209782A (en) * 2018-11-22 2020-05-29 中国银联股份有限公司 Method and system for identifying abnormal lamp of machine room equipment
CN114025100A (en) * 2021-11-30 2022-02-08 维沃移动通信有限公司 Shooting method, shooting device, electronic equipment and readable storage medium

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109246362B (en) * 2017-04-28 2021-03-16 中兴通讯股份有限公司 Image processing method and mobile terminal
CN107635093A (en) * 2017-09-18 2018-01-26 维沃移动通信有限公司 A kind of image processing method, mobile terminal and computer-readable recording medium
CN107948520A (en) * 2017-11-30 2018-04-20 广东欧珀移动通信有限公司 Image processing method and device
CN108053438B (en) * 2017-11-30 2020-03-06 Oppo广东移动通信有限公司 Depth of field acquisition method, device and equipment
CN108111749B (en) * 2017-12-06 2020-02-14 Oppo广东移动通信有限公司 Image processing method and device
TWI690898B (en) * 2018-11-26 2020-04-11 緯創資通股份有限公司 Image synthesizing method
JP6833801B2 (en) * 2018-12-26 2021-02-24 キヤノン株式会社 Imaging equipment, imaging methods, programs and recording media
CN112083864A (en) * 2020-09-18 2020-12-15 深圳铂睿智恒科技有限公司 Method, device and equipment for processing object to be deleted
CN112235507A (en) * 2020-10-14 2021-01-15 电子科技大学 Image processing system and method for realizing controllable depth of field in mobile terminal
CN112532881B (en) * 2020-11-26 2022-07-05 维沃移动通信有限公司 Image processing method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102801910A (en) * 2011-05-27 2012-11-28 三洋电机株式会社 Image sensing device
US20140232900A1 (en) * 2011-10-11 2014-08-21 Sony Ericsson Mobile Communications Ab Light sensitive, low height, and high dynamic range camera
CN104349063A (en) * 2014-10-27 2015-02-11 东莞宇龙通信科技有限公司 Method, device and terminal for controlling camera shooting
CN104780313A (en) * 2015-03-26 2015-07-15 广东欧珀移动通信有限公司 Image processing method and mobile terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5725975B2 (en) * 2011-05-27 2015-05-27 キヤノン株式会社 Imaging apparatus and imaging method
TWI533257B (en) * 2013-07-09 2016-05-11 宏達國際電子股份有限公司 Image capturing apparatus and method for obtaining depth information of field thereof
CN104104869A (en) * 2014-06-25 2014-10-15 华为技术有限公司 Photographing method and device and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102801910A (en) * 2011-05-27 2012-11-28 三洋电机株式会社 Image sensing device
US20140232900A1 (en) * 2011-10-11 2014-08-21 Sony Ericsson Mobile Communications Ab Light sensitive, low height, and high dynamic range camera
CN104349063A (en) * 2014-10-27 2015-02-11 东莞宇龙通信科技有限公司 Method, device and terminal for controlling camera shooting
CN104780313A (en) * 2015-03-26 2015-07-15 广东欧珀移动通信有限公司 Image processing method and mobile terminal

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106911894A (en) * 2017-02-27 2017-06-30 努比亚技术有限公司 Image-pickup method and mobile terminal
EP3493519A1 (en) * 2017-11-30 2019-06-05 Guangdong Oppo Mobile Telecommunications Corp., Ltd Method and device for dual-camera-based imaging and storage medium
US10616459B2 (en) 2017-11-30 2020-04-07 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method and device for dual-camera-based imaging and storage medium
CN108616687A (en) * 2018-03-23 2018-10-02 维沃移动通信有限公司 A kind of photographic method, device and mobile terminal
CN111209782A (en) * 2018-11-22 2020-05-29 中国银联股份有限公司 Method and system for identifying abnormal lamp of machine room equipment
CN111209782B (en) * 2018-11-22 2024-04-16 中国银联股份有限公司 Recognition method and recognition system for abnormal lamp of equipment in machine room
CN110767145A (en) * 2019-10-24 2020-02-07 武汉天马微电子有限公司 Display device and driving method thereof
CN110767145B (en) * 2019-10-24 2022-07-26 武汉天马微电子有限公司 Display device and driving method thereof
CN114025100A (en) * 2021-11-30 2022-02-08 维沃移动通信有限公司 Shooting method, shooting device, electronic equipment and readable storage medium
CN114025100B (en) * 2021-11-30 2024-04-05 维沃移动通信有限公司 Shooting method, shooting device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN106550184B (en) 2020-04-03
CN106550184A (en) 2017-03-29

Similar Documents

Publication Publication Date Title
WO2016165488A1 (en) Photo processing method and device
JP6263623B2 (en) Image generation method and dual lens apparatus
JP6101397B2 (en) Photo output method and apparatus
JP4497211B2 (en) Imaging apparatus, imaging method, and program
CN102957871A (en) Field depth processing method for shot image of mobile terminal
US20170094155A1 (en) Mobile terminal and photographing method therefor
JPH0380676A (en) Electronic pan focus device
WO2015192547A1 (en) Method for taking three-dimensional picture based on mobile terminal, and mobile terminal
US20120092515A1 (en) Digital image processing apparatus and digital image processing method capable of obtaining sensibility-based image
CN107749944A (en) A kind of image pickup method and device
KR20160124874A (en) Mobile terminal and shooting method thereof
WO2015149525A1 (en) Photographing method and photographic device
JP2016096487A (en) Imaging system
WO2017000664A1 (en) Photographing method and apparatus
WO2017036273A1 (en) Imaging method and apparatus
CN102158648A (en) Image capturing device and image processing method
CN111385461B (en) Panoramic shooting method and device, camera and mobile terminal
WO2018010411A1 (en) Photographing method and terminal
JP2022103020A (en) Photographing method and device, terminal, and storage medium
KR102022892B1 (en) Apparatus and method for processing image of mobile terminal comprising camera
WO2016123850A1 (en) Photographing control method for terminal, and terminal
JP2015204470A (en) Imaging apparatus, control method thereof, and program
CN106878606B (en) Image generation method based on electronic equipment and electronic equipment
WO2016202073A1 (en) Image processing method and apparatus
WO2021051304A1 (en) Shutter speed adjustment and safe shutter calibration methods, portable device and unmanned aerial vehicle

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: 16779463

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16779463

Country of ref document: EP

Kind code of ref document: A1