WO2019105260A1 - Depth of field obtaining method, apparatus and device - Google Patents
Depth of field obtaining method, apparatus and device Download PDFInfo
- Publication number
- WO2019105260A1 WO2019105260A1 PCT/CN2018/116474 CN2018116474W WO2019105260A1 WO 2019105260 A1 WO2019105260 A1 WO 2019105260A1 CN 2018116474 W CN2018116474 W CN 2018116474W WO 2019105260 A1 WO2019105260 A1 WO 2019105260A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- image
- information
- sub
- candidate
- main
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/50—Depth or shape recovery
- G06T7/55—Depth or shape recovery from multiple images
-
- 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/95—Computational photography systems, e.g. light-field imaging systems
- H04N23/951—Computational photography systems, e.g. light-field imaging systems by using two or more images to influence resolution, frame rate or aspect ratio
Definitions
- the present application relates to the field of image processing technologies, and in particular, to a method, device, and device for acquiring depth of field.
- terminal devices such as smart phones widely use a dual camera system to calculate the depth of field by two images acquired simultaneously by two cameras, for example, by the difference in position of pixels in the same position in the two images in the image. , calculate the depth of field information of the captured scene.
- the depth of field information is directly calculated according to the two images simultaneously captured by the two cameras.
- the difference between the two images of the calculated depth of field is large, the two images are in the same position in the scene for shooting. Pixels are less, etc., resulting in low depth of field calculation accuracy.
- the present application provides a method, a device and a device for acquiring a depth of field, so as to solve the technical problem that the two images of the image depth information are calculated to be inaccurate due to a large gap in the prior art.
- the embodiment of the present application provides a depth of field acquisition method, including: acquiring a multi-frame main image captured by a main camera and a multi-frame sub-image captured by a sub-camera, and obtaining the highest resolution according to the definition of the main image and each sub-picture of each frame.
- a reference main image comparing the sharpness of the remaining main images other than the reference main image and the sharpness of each sub-image with the sharpness of the reference main image, detecting whether there is a preset screening threshold a candidate primary image and a candidate secondary image; if it is detected that at least one frame of the candidate primary image and at least one frame of the candidate secondary image are present, acquiring the reference primary image, each frame candidate primary image, and each frame candidate secondary image Image information, determining a first target main image and a first target sub image; and acquiring depth information according to the first target main image and the first target sub image.
- a depth of field acquisition apparatus including: a first acquisition module, configured to acquire a multi-frame main image captured by a main camera and a multi-frame sub-image captured by a sub-camera, and a second acquisition module, configured to a frame main image and a sharpness of each sub-picture, obtaining a reference main image with the highest definition; a detecting module for setting the sharpness of the remaining main image except the reference main image and the sharpness of each sub-picture Comparing with the definition of the reference main image, detecting whether there is a candidate main image and a candidate sub-image satisfying a preset screening threshold; and a third obtaining module, configured to detect that at least one frame of the candidate main image exists and at least And acquiring the reference main image, the candidate main image of each frame, and the image information of each candidate sub-image, determining the first target main image and the first target sub-image; and the fourth acquiring module, Depth information is obtained according to the first target main image and the first target sub image.
- a further embodiment of the present application provides an acquisition device, including a memory and a processor, wherein the memory stores an acquirer readable instruction, and when the instruction is executed by the processor, the processor executes the application.
- the memory stores an acquirer readable instruction, and when the instruction is executed by the processor, the processor executes the application.
- a further embodiment of the present application provides a non-transitory machine readable storage medium, on which an acquirer program is stored, and when the processor program is executed by the processor, the depth of field acquisition method according to the above embodiment of the present application is implemented.
- FIG. 1 is a schematic diagram of a principle of triangulation according to an embodiment of the present application.
- FIG. 2 is a schematic diagram of a process of calculating a depth of field by a dual camera according to an embodiment of the present application
- FIG. 3 is a flowchart of a depth of field acquisition method according to an embodiment of the present application.
- FIG. 4(a) is a schematic diagram of a scene of a depth of field acquisition method according to an embodiment of the present application.
- 4(b) is a schematic diagram of a scene of a depth of field acquisition method according to another embodiment of the present application.
- FIG. 5 is a schematic structural diagram of a depth of field acquiring apparatus according to an embodiment of the present application.
- FIG. 6 is a schematic diagram of an image processing circuit in accordance with one embodiment of the present application.
- the method, device and device for acquiring the depth of field according to the embodiment of the present application are described below with reference to the accompanying drawings.
- the depth of field acquisition method in the embodiment of the present application is applicable to a hardware device having a dual camera, such as a mobile phone, a tablet computer, a personal digital assistant, a wearable device, and the like, and the wearable device may be a smart bracelet, a smart watch, smart glasses, or the like.
- the dual camera system calculates the depth of field through the main image and the sub image.
- the principle of acquiring the depth of field by the dual camera will be described below with reference to the accompanying drawings:
- the human eye distinguishes the depth of field mainly by relying on binocular vision to distinguish the depth of field.
- This is the same as the principle of dual camera resolution depth of field, mainly based on the principle of triangular ranging as shown in Figure 1, based on Figure 1,
- the imaged object is drawn, as well as the positions of the two cameras O R and O T , and the focal planes of the two cameras.
- the focal plane is at a distance f from the plane of the two cameras, and two at the focal plane.
- the camera performs imaging to obtain two captured images.
- P and P' are the positions of the same object in different captured images, respectively.
- the distance from the P point to the left boundary of the captured image is X R
- the distance from the P′ point to the left boundary of the captured image is X T .
- O R and O T are two cameras respectively, and the two cameras are on the same plane with a distance B.
- the distance Z between the object in Figure 1 and the plane of the two cameras has the following relationship:
- d is the difference in distance between the positions of the same object in different captured images. Since B and f are constant values, the distance Z of the object can be determined according to d.
- a map of different point differences is calculated by the main image acquired by the main camera and the sub-image obtained by the sub-camera, which is represented by a disparity map, which is the same on the two graphs.
- FIG. 3 is a flowchart of a method for acquiring a depth of field according to an embodiment of the present application. As shown in FIG. 3, the method includes:
- Step 101 Acquire a multi-frame main image captured by the main camera and a multi-frame sub-image captured by the sub-camera.
- Step 102 Acquire a reference main image with the highest definition according to the definition of the main image and the sub-image of each frame.
- the sharpness of the image refers to the degree of clarity of the edge of the image, including the distinction between the lines of the image, that is, the resolution of the image point or the fineness of the texture of the subtle layer.
- the higher the resolution the material of the scene.
- the resolution of the point or the fineness of the texture of the subtle layer is higher.
- the finer the performance of the material point the higher the definition.
- the definition also includes whether the contour of the edge of the line is clear, that is, the degree of the virtual boundary of the contour of the image, the common sharpness. It means that the essence is the variation width of the gradient density of the hierarchical boundary. If the variation width is small, the boundary is clear. Conversely, if the variation width is large, the boundary is faint, and the definition also includes the degree of clarity between the small levels, especially the contrast between the small layers. Or is the slight contrast clear?
- the multi-frame main image captured by the main camera and the multi-frame sub-image captured by the sub-camera are acquired, and the definition of the main image and the sub-image of each frame is calculated, and the reference master with the highest definition is obtained.
- the image is used to make the reference main image as a reference, and the image with high definition is screened out as an image for further calculating the depth of field.
- Step 103 Compare the sharpness of the remaining main images except the reference main image and the sharpness of each sub-image with the sharpness of the reference main image, and detect whether there are candidate main images and candidate pairs that satisfy the preset screening threshold. image.
- the preset screening threshold is used to filter the main image and the sub-image with higher definition sharpness than the reference main image. For example, if the preset screening threshold is 80%, the preset screening threshold may be used to filter out An image that meets the definition of the resolution of the main image by more than 80%. Specifically, comparing the sharpness of the remaining main image and the sharpness of the sub-image with the sharpness of the reference main image, and detecting whether there is a candidate main image satisfying the preset screening threshold based on the reference main image with higher definition And the candidate sub-image to determine whether there is a main image and a sub-image with higher definition.
- the determination of the candidate main image and the candidate sub-image is performed based on the sharpness of the reference image, and the photographing ability of the terminal device in the current scene is considered, and the flexibility of filtering out the candidate main image and the candidate sub-image is improved.
- Step 104 If it is detected that there is at least one frame candidate main image and at least one frame candidate sub-image, calculate image information of the reference main image, each frame candidate main image, and each frame candidate sub-image, and determine the first target main image and the first A target secondary image.
- Step 105 Calculate depth information according to the first target main image and the first target sub image.
- the candidate main image and the candidate sub-image calculate the depth of field, which will improve the efficiency and accuracy of depth of field calculation.
- image information of the main image and the candidate sub-image of each frame wherein the image information includes, but is not limited to, image sharpness, brightness, AWB (Automatic White Balance), etc., which affect the depth of field calculation, and further Determining a first target main image and a first target sub image, for example, acquiring a first target main image and a first target sub image whose image difference satisfies a preset condition, according to the first target main image and the first target sub image Obtaining the depth of field information, thereby ensuring that the calculation of the depth of field information is more accurate, so that the final imaging effect is better.
- image sharpness brightness
- AWB Automatic White Balance
- the preset condition is related to the specific information included in the image information and the camera hardware capability and the photographing environment of the terminal device.
- the preset condition set under the scene in which the image information includes image sharpness and brightness may be a reference.
- the image information difference between the main image, the candidate main image per frame, and the candidate sub-image per frame is 10%, and the preset conditions set under the scene in which the image information includes image sharpness may be a reference main image, a candidate main image per frame, and each The image information difference of the frame candidate sub-image is 15%.
- the acquired image information is one type of information, for example, all of the image brightness.
- the image information of the reference main image and the candidate main image of each frame is sequentially compared with the image information of each candidate sub-image, and the two images with the smallest difference of the image information are acquired as the first target main image.
- Image and first sub image are sequentially compared with the image information of each candidate sub-image, and the two images with the smallest difference of the image information are acquired as the first target main image.
- the image information is brightness information
- the main camera and the sub-camera are simultaneously photographed, and a 4-frame main image and a 4-frame sub-image are acquired, wherein the main image is 4 frames in accordance with the shooting order.
- the numbers are 11, 12, 13 and 14, respectively, and the number of sub-images of 4 frames is 21, 22, 23 and 24, respectively, wherein the reference main image with the highest definition is 11, and the candidate main images are 12 and 13, respectively.
- Images, candidate secondary images are 22 and 24, respectively.
- the image brightness of the reference main image and the candidate main image of each frame is sequentially compared with the image brightness of each candidate sub-image, and the two image images with the smallest image brightness difference are obtained as the first target main image 12 and the first target sub image. 22, whereby the depth of field information is calculated based on the first target main image 12 and the first target sub image 22, and the final imaging effect is better according to the depth information.
- the acquired image information is a plurality of types of information including, for example, image brightness, image white balance value, and image sharpness.
- a weighting factor corresponding to each type of information is obtained, and the weighting value corresponding to the weighting factor may be calibrated by the system, or may be calibrated by the user according to the needs of the scene, and the reference main image and each frame candidate may be referred to.
- Each type of image information of the main image is sequentially compared with each type of image information of each candidate sub-image, and information difference of each type of image information between each two frames of images is obtained, according to information of various types of image information between each two frames of images.
- the difference and the weighting factor corresponding to each type of information acquire the information difference corresponding to each two frames of images, and the two frames with the smallest information difference are the first target main image and the first target sub image.
- the main camera and the sub-camera are simultaneously photographed, and 4 is acquired.
- a frame main image and a 4-frame sub-image wherein the numbers of the main frames of the four frames in the order of shooting are 11, 12, 13, and 14, respectively, and the numbers of the sub-images of the four frames are 21, 22, 23, and 24, respectively,
- the highest reference main image is 11, the candidate main images are 12 and 13, respectively, and the candidate sub-images are 22 and 24, respectively.
- the image brightness, AWB, and SOF of the reference main image and each candidate candidate main image are sequentially compared with the image brightness of each candidate sub-image, respectively, and image brightness, AWB, and SOF of the reference main image 11 and the candidate sub-image 22 are acquired.
- the information difference b5, the information difference b6 between the candidate main image 13 and the candidate sub-image 24, and further, the two frames obtained with the smallest information difference are the first target main image 12 and the first target sub-image 22, thereby, according to the first target
- the main image 12 and the first target sub-image 22 are more accurate in calculating the depth of field information, and the final imaging effect is better according to the depth information.
- the specific type of image information may be determined by one or more of the captured scene information and the shooting mode. For example, if the brightness of the scene information is poor, the multi-frame main image is captured. And the sub-picture quality is poor, and determining the first target main image and the first target sub-image for calculating the depth of field based on only one type of image information may not be highly reliable, and therefore, various types of image information need to be considered to determine the first target.
- the main image and the first target sub-image for example, the brightness of the light in the scene information is good, and the quality of the multi-frame main image and the sub-image captured is high, and the first target main image for calculating the depth of field is determined only according to one type of image information.
- the first target sub-image is highly reliable, and thus, in order to improve image processing efficiency, one type of image information may be considered to determine the first target main image and the first target sub-image.
- the current shooting mode is night scene shooting
- the requirement for brightness information is high, and the brightness of the light is poor, and the quality of the multi-frame main image and the sub-image taken is poor, and only the first of the calculated depth of field is determined according to one type of image information.
- the target main image and the first target sub image may not be highly reliable. Therefore, it is necessary to consider various types of image information to determine the first target main image and the first target sub image, and, for example, in the highlight shooting mode, The problem that is easily caused is overexposure. Therefore, in order to improve image processing efficiency, one type of AWB information can be considered to determine the first target main image and the first target sub image.
- the captured scene information is detected, and/or the shooting mode, and further, the image information type to be acquired is determined according to the scene information, and/or the shooting mode, for example, the scene information may be pre-stored. And/or, the correspondence between the shooting mode and the image information type, and further, after learning the current scene information, and/or the shooting mode, querying the corresponding relationship, and acquiring the corresponding image information type.
- the implementation manner of determining the type of the image information by using the scene information or the shooting mode alone includes the implementation of determining the type of the image information by using the scene information and the shooting mode at the same time.
- the reference main image with higher definition is Obtaining a frame image of the depth information, acquiring the reference main image and the image information of each sub image, and comparing, obtaining a second target sub image whose image information difference satisfies a preset condition, wherein the second target sub image is a reference main image The closest one sub-picture, and further, the depth information is obtained with the reference main image and the second target sub-image.
- the depth of field acquisition method of the embodiment of the present application by taking a multi-frame main and sub-image, selects a set of pictures whose main image has good definition and high definition of the main and sub-images, and the image information is as close as possible, for calculating Depth of field and final imaging, which makes the depth of field calculation more accurate, while at the same time ensuring image clarity and better final imaging.
- the depth of field acquisition method of the embodiment of the present application acquires a multi-frame main image captured by a main camera and a multi-frame sub-image captured by a sub-camera, and calculates the definition of the main image and each sub-picture of each frame to obtain the definition.
- the highest reference main image comparing the sharpness of the remaining main images with the sharpness of each sub-image and the sharpness of the reference main image, detecting whether there is a candidate main image and a candidate sub-image satisfying the preset screening threshold, if the detection
- Obtaining that at least one frame candidate main image and at least one frame candidate sub image exist acquiring image information of the reference main image, each frame candidate main image, and each frame candidate sub image, and determining the first target main image and the first target sub image, Further, depth information is acquired based on the first target main image and the first target sub image. Thereby, the quality and consistency between the images for acquiring the depth information are ensured, and the accuracy of the depth of field and the imaging effect are improved.
- FIG. 5 is a schematic structural diagram of a depth of field acquisition device according to an embodiment of the present application.
- the depth of field information acquisition device includes a first acquisition module. 100.
- the first obtaining module 100 is configured to acquire a multi-frame main image captured by the main camera and a multi-frame sub-image captured by the sub-camera.
- the second obtaining module 200 is configured to obtain a reference main image with the highest definition according to the definition of each frame main image and each sub-picture.
- the detecting module 300 is configured to compare the sharpness of the remaining main images except the reference main image and the sharpness of each sub-image with the sharpness of the reference main image, and detect whether there is a candidate main image that satisfies the preset screening threshold. And candidate secondary images.
- the third obtaining module 400 is configured to acquire image information of the reference main image, each frame candidate main image, and each frame candidate sub-image when detecting that at least one frame candidate main image and at least one frame candidate sub-image exist.
- the determining module 500 is configured to determine the first target primary image and the first target secondary image.
- the fourth obtaining module 600 is configured to obtain depth information according to the first target main image and the first target sub image.
- the second obtaining module 200 is specifically configured to sequentially compare the image information of the reference main image and the candidate main image with each frame candidate The image information of the image is compared, and two frames of images having the smallest difference in image information are acquired as the first target main image and the first target sub image.
- the fourth obtaining module 600 is configured to obtain depth information according to the first target main image and the first target sub image.
- the third obtaining module 400 is further configured to: satisfy a difference between the image information in the multi-frame sub-image and the image information of the reference main image when detecting that the candidate main image or the candidate sub-image is not present.
- the sub-picture of the preset condition is used as the second target sub-picture.
- the fourth obtaining module 600 is further configured to obtain depth information according to the reference main image and the second target sub image.
- each module in the above-mentioned depth of field acquisition device is for illustrative purposes only. In other embodiments, the depth of field acquisition device may be divided into different modules as needed to complete all or part of the functions of the depth of field acquisition device.
- the depth of field acquisition device of the embodiment of the present application acquires a multi-frame main image captured by a main camera and a multi-frame sub-image captured by a sub-camera, and calculates the definition of the main image and each sub-picture of each frame to obtain the definition.
- the highest reference main image comparing the sharpness of the remaining main images with the sharpness of each sub-image and the sharpness of the reference main image, detecting whether there is a candidate main image and a candidate sub-image satisfying the preset screening threshold, if the detection Obtaining that at least one frame candidate primary image and at least one frame candidate secondary image are present, then acquiring the reference primary image, each frame candidate primary image, and the image information of each frame candidate secondary image to determine the first target primary image and the first target secondary image, and further And acquiring depth information according to the first target main image and the first target sub image.
- the present application further provides a computer device, wherein the computer device is any device including a memory including a storage computer program and a processor running the computer program, for example, a smart phone, a personal computer, or the like.
- the above computer device includes an image processing circuit, and the image processing circuit may be implemented by hardware and/or software components, and may include various processing units defining an ISP (Image Signal Processing) pipeline.
- Figure 6 is a schematic illustration of an image processing circuit in one embodiment. As shown in FIG. 6, for convenience of explanation, only various aspects of the image processing technique related to the embodiment of the present application are shown.
- the image processing circuit includes an ISP processor 640 and a control logic 650.
- the image data captured by imaging device 610 is first processed by ISP processor 640, which analyzes the image data to capture image statistical information that can be used to determine and/or control one or more control parameters of imaging device 610.
- the imaging device 610 (camera) may include a camera having one or more lenses 612 and an image sensor 614, wherein the imaging device 610 includes two sets of cameras for implementing the background blurring method of the present application, wherein, with continued reference to FIG.
- Imaging device 610 can simultaneously capture scene images based on a primary camera and a secondary camera
- image sensor 614 can include a color filter array (such as a Bayer filter), and image sensor 614 can acquire light intensity captured by each imaging pixel of image sensor 614 and Wavelength information and a set of raw image data that can be processed by ISP processor 640.
- Sensor 620 can provide raw image data to ISP processor 640 based on sensor 620 interface type, wherein ISP processor 640 can be based on raw image data acquired by image sensor 614 in the main camera provided by sensor 620 and image sensor in the secondary camera
- the original image data acquired by 614 calculates depth information and the like.
- the sensor 620 interface may utilize a SMIA (Standard Mobile Imaging Architecture) interface, other serial or parallel camera interfaces, or a combination of the above.
- SMIA Standard Mobile Imaging Architecture
- the ISP processor 640 processes the raw image data pixel by pixel in a variety of formats.
- each image pixel can have a bit depth of 8, 10, 12, or 14 bits, and the ISP processor 640 can perform one or more image processing operations on the raw image data, collecting statistical information about the image data. Among them, image processing operations can be performed with the same or different bit depth precision.
- ISP processor 640 can also receive pixel data from image memory 630. For example, raw pixel data is sent from the sensor 620 interface to image memory 630, which is then provided to ISP processor 640 for processing.
- Image memory 630 can be part of a memory device, a storage device, or a separate dedicated memory within an electronic device, and can include DMA (Direct Memory Access) features.
- DMA Direct Memory Access
- ISP processor 640 can perform one or more image processing operations, such as time domain filtering.
- the processed image data can be sent to image memory 630 for additional processing before being displayed.
- the ISP processor 640 receives the processed data from the image memory 630 and performs image data processing in the original domain and in the RGB and YCbCr color spaces.
- the processed image data can be output to display 670 for viewing by a user and/or further processed by a graphics engine or GPU (Graphics Processing Unit). Additionally, the output of ISP processor 640 can also be sent to image memory 630, and display 670 can read image data from image memory 630.
- image memory 630 can be configured to implement one or more frame buffers.
- ISP processor 640 can be sent to encoder/decoder 660 to encode/decode image data.
- the encoded image data can be saved and decompressed before being displayed on the display 670 device.
- Encoder/decoder 660 can be implemented by a CPU or GPU or coprocessor.
- the statistics determined by the ISP processor 640 can be sent to the control logic 650 unit.
- the statistics may include image sensor 614 statistics such as auto exposure, auto white balance, auto focus, flicker detection, black level compensation, lens 612 shading correction, and the like.
- Control logic 650 can include a processor and/or a microcontroller that executes one or more routines (such as firmware) that can determine control parameters and control of imaging device 610 based on received statistical data. parameter.
- the control parameters may include sensor 620 control parameters (eg, gain, integration time for exposure control), camera flash control parameters, lens 612 control parameters (eg, focus or zoom focal length), or a combination of these parameters.
- the ISP control parameters may include gain levels and color correction matrices for automatic white balance and color adjustment (eg, during RGB processing), as well as lens 612 shading correction parameters.
- Depth of field information is acquired based on the first target main image and the first target sub image.
- the present application also proposes a non-transitory computer readable storage medium that enables execution of the depth of field acquisition method as described in the above embodiments when instructions in the storage medium are executed by the processor.
- first and second are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated.
- features defining “first” or “second” may include at least one of the features, either explicitly or implicitly.
- the meaning of "a plurality” is at least two, such as two, three, etc., unless specifically defined otherwise.
- a "computer-readable medium” can be any apparatus that can contain, store, communicate, propagate, or transport a program for use in an instruction execution system, apparatus, or device, or in conjunction with the instruction execution system, apparatus, or device.
- computer readable media include the following: electrical connections (electronic devices) having one or more wires, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM).
- the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may be optically scanned, for example by paper or other medium, followed by editing, interpretation or, if appropriate, other suitable The method is processed to obtain the program electronically and then stored in computer memory.
- portions of the application can be implemented in hardware, software, firmware, or a combination thereof.
- multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system.
- a suitable instruction execution system For example, if implemented in hardware and in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: discrete with logic gates for implementing logic functions on data signals Logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), and the like.
- each functional unit in each embodiment of the present application may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module.
- the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
- the integrated modules, if implemented in the form of software functional modules and sold or used as stand-alone products, may also be stored in a computer readable storage medium.
- the above mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like. While the embodiments of the present application have been shown and described above, it is understood that the above-described embodiments are illustrative and are not to be construed as limiting the scope of the present application. The embodiments are subject to variations, modifications, substitutions and variations.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
- Image Processing (AREA)
Abstract
The present invention provides a depth of field obtaining method, apparatus and device. The method comprises: obtaining multiple main image frames captured by a main camera and multiple auxiliary image frames captured by an auxiliary camera, and obtaining a main reference image having the highest sharpness according to the sharpness of each main image frame and each auxiliary image frame; comparing the sharpness of main images other than the main reference image and the sharpness of each auxiliary image frame with the sharpness of the main reference image to detect whether candidate main images and candidate auxiliary images that satisfy a preset screening threshold exist; if yes, obtaining image information of the main reference image, each candidate main image frame, and each candidate auxiliary image frame to determine a first target main image and a first target auxiliary image; and obtaining depth of field information according to the first target main image and the first target auxiliary image. Hence, the quality and consistency of images from which depth of field information is obtained are ensured, and the precision of the depth of field and imaging effect are improved.
Description
相关申请的交叉引用Cross-reference to related applications
本申请要求广东欧珀移动通信有限公司于2017年11月30日提交的、申请名称为“景深获取方法、装置及设备”的、中国专利申请号“201711243742.7”的优先权。This application claims the priority of the Chinese patent application number "201711243742.7" filed on November 30, 2017 by Guangdong Opal Mobile Communications Co., Ltd., which is entitled "Deep Depth Acquisition Method, Apparatus and Equipment".
本申请涉及图像处理技术领域,尤其涉及一种景深获取方法、装置及设备。The present application relates to the field of image processing technologies, and in particular, to a method, device, and device for acquiring depth of field.
目前,智能手机等终端设备广泛使用了双摄像头系统,通过两个摄像头同时获取的两幅图像来计算景深,比如,通过两幅图像中的针对拍摄的场景中同一个位置的像素点的位置差异,计算出拍摄的场景的景深信息。At present, terminal devices such as smart phones widely use a dual camera system to calculate the depth of field by two images acquired simultaneously by two cameras, for example, by the difference in position of pixels in the same position in the two images in the image. , calculate the depth of field information of the captured scene.
相关技术中,直接根据两个摄像头同时拍摄出的两幅图像进行景深信息的计算,当计算景深的两张图像差异较大时,则会导致两张图像中针对拍摄的场景中同一个位置的像素点较少等,从而导致景深计算准确率低。In the related art, the depth of field information is directly calculated according to the two images simultaneously captured by the two cameras. When the difference between the two images of the calculated depth of field is large, the two images are in the same position in the scene for shooting. Pixels are less, etc., resulting in low depth of field calculation accuracy.
申请内容Application content
本申请提供一种景深获取方法、装置及设备,以解决现有技术中,计算图像景深信息的两张图像由于差距较大,而导致景深计算不准确的技术问题。The present application provides a method, a device and a device for acquiring a depth of field, so as to solve the technical problem that the two images of the image depth information are calculated to be inaccurate due to a large gap in the prior art.
本申请实施例提供一种景深获取方法,包括:获取主摄像头拍摄的多帧主图像以及副摄像头拍摄的多帧副图像,根据每帧主图像和每帧副图像的清晰度,获取清晰度最高的参考主图像;将除所述参考主图像之外的其余主图像的清晰度和每帧副图像的清晰度与所述参考主图像的清晰度进行比较,检测是否存在满足预设筛选阈值的候选主图像和候选副图像;若检测获知存在至少一帧所述候选主图像和至少一帧所述候选副图像,则获取所述参考主图像、每帧候选主图像以及每帧候选副图像的图像信息,确定第一目标主图像和第一目标副图像;根据所述第一目标主图像和所述第一目标副图像获取景深信息。The embodiment of the present application provides a depth of field acquisition method, including: acquiring a multi-frame main image captured by a main camera and a multi-frame sub-image captured by a sub-camera, and obtaining the highest resolution according to the definition of the main image and each sub-picture of each frame. a reference main image; comparing the sharpness of the remaining main images other than the reference main image and the sharpness of each sub-image with the sharpness of the reference main image, detecting whether there is a preset screening threshold a candidate primary image and a candidate secondary image; if it is detected that at least one frame of the candidate primary image and at least one frame of the candidate secondary image are present, acquiring the reference primary image, each frame candidate primary image, and each frame candidate secondary image Image information, determining a first target main image and a first target sub image; and acquiring depth information according to the first target main image and the first target sub image.
本申请另一实施例提供一种景深获取装置,包括:第一获取模块,用于获取主摄像头拍摄的多帧主图像以及副摄像头拍摄的多帧副图像,第二获取模块,用于根据每帧主图像和每帧副图像的清晰度,获取清晰度最高的参考主图像;检测模块,用于将除所述参考主 图像之外的其余主图像的清晰度和每帧副图像的清晰度与所述参考主图像的清晰度进行比较,检测是否存在满足预设筛选阈值的候选主图像和候选副图像;第三获取模块,用于在检测获知存在至少一帧所述候选主图像和至少一帧所述候选副图像时,获取所述参考主图像、每帧候选主图像以及每帧候选副图像的图像信息,确定第一目标主图像和第一目标副图像;第四获取模块,用于根据所述第一目标主图像和所述第一目标副图像获取景深信息。Another embodiment of the present invention provides a depth of field acquisition apparatus, including: a first acquisition module, configured to acquire a multi-frame main image captured by a main camera and a multi-frame sub-image captured by a sub-camera, and a second acquisition module, configured to a frame main image and a sharpness of each sub-picture, obtaining a reference main image with the highest definition; a detecting module for setting the sharpness of the remaining main image except the reference main image and the sharpness of each sub-picture Comparing with the definition of the reference main image, detecting whether there is a candidate main image and a candidate sub-image satisfying a preset screening threshold; and a third obtaining module, configured to detect that at least one frame of the candidate main image exists and at least And acquiring the reference main image, the candidate main image of each frame, and the image information of each candidate sub-image, determining the first target main image and the first target sub-image; and the fourth acquiring module, Depth information is obtained according to the first target main image and the first target sub image.
本申请又一实施例提供一种获取机设备,包括存储器及处理器,所述存储器中储存有获取机可读指令,所述指令被所述处理器执行时,使得所述处理器执行本申请上述实施例所述的景深获取方法。A further embodiment of the present application provides an acquisition device, including a memory and a processor, wherein the memory stores an acquirer readable instruction, and when the instruction is executed by the processor, the processor executes the application. The depth of field acquisition method described in the above embodiment.
本申请还一实施例提供一种非临时性获取机可读存储介质,其上存储有获取机程序,该获取机程序被处理器执行时实现如本申请上述实施例所述的景深获取方法。A further embodiment of the present application provides a non-transitory machine readable storage medium, on which an acquirer program is stored, and when the processor program is executed by the processor, the depth of field acquisition method according to the above embodiment of the present application is implemented.
本申请实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present application may include the following beneficial effects:
获取主摄像头拍摄的多帧主图像以及副摄像头拍摄的多帧副图像,计算每帧主图像和每帧副图像的清晰度,获取清晰度最高的参考主图像,将其余主图像的清晰度和每帧副图像的清晰度与参考主图像的清晰度进行比较,检测是否存在满足预设筛选阈值的候选主图像和候选副图像,若检测获知存在至少一帧候选主图像和至少一帧候选副图像,则获取参考主图像、每帧候选主图像以及每帧候选副图像的图像信息,确定第一目标主图像和第一目标副图像,进而,根据第一目标主图像和第一目标副图像获取景深信息。由此,保证了获取景深信息的图像之间的质量和一致性,提高了景深的精确率以及成像效果。Acquiring the multi-frame main image captured by the main camera and the multi-frame sub-image captured by the sub-camera, calculating the definition of the main image and each sub-picture of each frame, obtaining the reference main image with the highest definition, and the clarity of the remaining main images and Comparing the sharpness of each sub-picture with the sharpness of the reference main image, detecting whether there is a candidate main image and a candidate sub-image satisfying the preset screening threshold, if the detection is that at least one frame candidate main image and at least one frame candidate pair are present And acquiring image information of the reference main image, each candidate main image, and each candidate sub-image, determining the first target main image and the first target sub image, and further, according to the first target main image and the first target sub image Get depth of field information. Thereby, the quality and consistency between the images for acquiring the depth information are ensured, and the accuracy of the depth of field and the imaging effect are improved.
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the embodiments will be briefly described below. Obviously, the drawings in the following description are some embodiments of the present application. Those skilled in the art can also obtain other drawings based on these drawings without paying any creative work.
图1是根据本申请一个实施例的三角测距原理示意图;1 is a schematic diagram of a principle of triangulation according to an embodiment of the present application;
图2是根据本申请一个实施例的双摄像头计算景深的过程示意图;2 is a schematic diagram of a process of calculating a depth of field by a dual camera according to an embodiment of the present application;
图3是根据本申请一个实施例的景深获取方法的流程图;3 is a flowchart of a depth of field acquisition method according to an embodiment of the present application;
图4(a)是根据本申请一个实施例的景深获取方法的场景示意图;4(a) is a schematic diagram of a scene of a depth of field acquisition method according to an embodiment of the present application;
图4(b)是根据本申请另一个实施例的景深获取方法的场景示意图;4(b) is a schematic diagram of a scene of a depth of field acquisition method according to another embodiment of the present application;
图5是根据本申请一个实施例的景深获取装置的结构示意图;以及FIG. 5 is a schematic structural diagram of a depth of field acquiring apparatus according to an embodiment of the present application;
图6是根据本申请一个实施例的图像处理电路的示意图。6 is a schematic diagram of an image processing circuit in accordance with one embodiment of the present application.
下面详细描述本申请的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本申请,而不能理解为对本申请的限制。The embodiments of the present application are described in detail below, and the examples of the embodiments are illustrated in the drawings, wherein the same or similar reference numerals are used to refer to the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are intended to be illustrative, and are not to be construed as limiting.
下面参考附图描述本申请实施例的景深获取方法、装置及设备。其中,本申请实施例的景深获取方法适用于手机、平板电脑、个人数字助理、穿戴式设备等具有双摄像头的硬件设备,该穿戴式设备可以是智能手环、智能手表、智能眼镜等。The method, device and device for acquiring the depth of field according to the embodiment of the present application are described below with reference to the accompanying drawings. The depth of field acquisition method in the embodiment of the present application is applicable to a hardware device having a dual camera, such as a mobile phone, a tablet computer, a personal digital assistant, a wearable device, and the like, and the wearable device may be a smart bracelet, a smart watch, smart glasses, or the like.
应当理解的是,双摄像头系统通过主图像和副图像计算景深,为了更加清楚的描述双摄像头如何获取景深信息,下面参考附图说明双摄像头获取景深的原理:It should be understood that the dual camera system calculates the depth of field through the main image and the sub image. In order to more clearly describe how the dual camera acquires the depth of field information, the principle of acquiring the depth of field by the dual camera will be described below with reference to the accompanying drawings:
在实际应用中,人眼分辩景深主要是依靠双目视觉分辨景深,这与双摄像头分辨景深的原理一样,主要是依靠如图1所示的三角测距的原理实现的,基于图1中,在实际空间中,画出了成像对象,以及两个摄像头所在位置O
R和O
T,以及两个摄像头的焦平面,焦平面距离两个摄像头所在平面的距离为f,在焦平面位置两个摄像头进行成像,从而得到两张拍摄图像。
In practical applications, the human eye distinguishes the depth of field mainly by relying on binocular vision to distinguish the depth of field. This is the same as the principle of dual camera resolution depth of field, mainly based on the principle of triangular ranging as shown in Figure 1, based on Figure 1, In the actual space, the imaged object is drawn, as well as the positions of the two cameras O R and O T , and the focal planes of the two cameras. The focal plane is at a distance f from the plane of the two cameras, and two at the focal plane. The camera performs imaging to obtain two captured images.
其中,P和P’分别是同一对象在不同拍摄图像中的位置。其中,P点距离所在拍摄图像的左侧边界的距离为X
R,P’点距离所在拍摄图像的左侧边界的距离为X
T。O
R和O
T分别为两个摄像头,这两个摄像头在同一平面,距离为B。
Among them, P and P' are the positions of the same object in different captured images, respectively. The distance from the P point to the left boundary of the captured image is X R , and the distance from the P′ point to the left boundary of the captured image is X T . O R and O T are two cameras respectively, and the two cameras are on the same plane with a distance B.
基于三角测距原理,图1中的对象与两个摄像头所在平面之间的距离Z,具有如下关系:
Based on the principle of triangulation, the distance Z between the object in Figure 1 and the plane of the two cameras has the following relationship:
基于此,可以推得
其中,d为同一对象在不同拍摄图像中的位置之间的距离差。由于B、f为定值,因此,根据d可以确定出对象的距离Z。
Based on this, you can push Where d is the difference in distance between the positions of the same object in different captured images. Since B and f are constant values, the distance Z of the object can be determined according to d.
当然,除了三角测距法,也可以采用其他的方式来计算主图像的景深,比如,主摄像头和副摄像头针对同一个场景拍照时,场景中的物体距离摄像头的距离与主摄像头和副摄像头成像的位移差、姿势差等成比例关系,因此,在本申请的一个实施例中,可以根据这种比例关系获取上述距离Z。Of course, in addition to the triangulation method, other methods can be used to calculate the depth of field of the main image. For example, when the main camera and the sub camera are photographed for the same scene, the distance between the object in the scene and the camera is imaged by the main camera and the sub camera. The displacement difference, the posture difference, and the like are proportional, and therefore, in one embodiment of the present application, the above-described distance Z can be obtained according to such a proportional relationship.
举例而言,如图2所示,通过主摄像头获取的主图像以及副摄像头获取的副图像,计算出不同点差异的图,这里用视差图表示,这个图上表示的是两张图上相同点的位移差异,但是由于三角定位中的位移差异和Z成正比,因此很多时候视差图表就直接被用作景深图。For example, as shown in FIG. 2, a map of different point differences is calculated by the main image acquired by the main camera and the sub-image obtained by the sub-camera, which is represented by a disparity map, which is the same on the two graphs. The difference in displacement of the points, but since the difference in displacement in the triangulation is proportional to Z, many times the parallax chart is directly used as the depth of field map.
基于以上分析可知,双摄像头获取景深时,需要获取同一对象在不同拍摄图像中的位置,因此,如果获取景深信息的双摄像头的两张图像较为接近,则会提高景深获取的效率和准确率。Based on the above analysis, when the dual camera acquires the depth of field, it is necessary to acquire the position of the same object in different captured images. Therefore, if the two images of the dual cameras that acquire the depth information are relatively close, the efficiency and accuracy of the depth of field acquisition are improved.
图3是根据本申请一个实施例的景深获取方法的流程图,如图3所示,该方法包括:FIG. 3 is a flowchart of a method for acquiring a depth of field according to an embodiment of the present application. As shown in FIG. 3, the method includes:
步骤101,获取主摄像头拍摄的多帧主图像以及副摄像头拍摄的多帧副图像。Step 101: Acquire a multi-frame main image captured by the main camera and a multi-frame sub-image captured by the sub-camera.
步骤102,根据每帧主图像和每帧副图像的清晰度,获取清晰度最高的参考主图像。Step 102: Acquire a reference main image with the highest definition according to the definition of the main image and the sub-image of each frame.
其中,图像的清晰度是指图像轮廓边缘的清晰程度,包括分辨出图像线条间的区别,即图像层次对景物质点的分辨率或细微层次质感的精细程度,其分辨率越高,景物质点的分辨率或者细微层次质感的精细程度越高,景物质点表现的愈细致,清晰度越高,清晰度还包括衡量线条边缘轮廓是否清晰,即图像层次轮廓边界的虚实程度,常用锐度表示,其实质是层次边界渐变密度的变化宽度,若变化宽度小,则边界清晰,反之,变化宽度大则边界发虚,清晰度还包括细小层次间的清晰程度,尤其是细小层次间的明暗对比或细微反差是否清晰。Among them, the sharpness of the image refers to the degree of clarity of the edge of the image, including the distinction between the lines of the image, that is, the resolution of the image point or the fineness of the texture of the subtle layer. The higher the resolution, the material of the scene. The resolution of the point or the fineness of the texture of the subtle layer is higher. The finer the performance of the material point, the higher the definition. The definition also includes whether the contour of the edge of the line is clear, that is, the degree of the virtual boundary of the contour of the image, the common sharpness. It means that the essence is the variation width of the gradient density of the hierarchical boundary. If the variation width is small, the boundary is clear. Conversely, if the variation width is large, the boundary is faint, and the definition also includes the degree of clarity between the small levels, especially the contrast between the small layers. Or is the slight contrast clear?
也就是说,图像的清晰度越高,图像的边缘细节等越容易区分,噪点越少,根据图像进行景深计算的效率和准确度越高。That is to say, the higher the sharpness of the image, the easier it is to distinguish the edge details of the image, and the less the noise, the higher the efficiency and accuracy of the depth of field calculation according to the image.
具体而言,在本实施例中,获取主摄像头拍摄的多帧主图像以及副摄像头拍摄的多帧副图像,计算每帧主图像和每帧副图像的清晰度,获取清晰度最高的参考主图像,以便于将该参考主图像作为参考,尽量筛选出清晰度高的图像作为进一步计算景深的图像。Specifically, in the embodiment, the multi-frame main image captured by the main camera and the multi-frame sub-image captured by the sub-camera are acquired, and the definition of the main image and the sub-image of each frame is calculated, and the reference master with the highest definition is obtained. The image is used to make the reference main image as a reference, and the image with high definition is screened out as an image for further calculating the depth of field.
步骤103,将除参考主图像之外的其余主图像的清晰度和每帧副图像的清晰度与参考主图像的清晰度进行比较,检测是否存在满足预设筛选阈值的候选主图像和候选副图像。Step 103: Compare the sharpness of the remaining main images except the reference main image and the sharpness of each sub-image with the sharpness of the reference main image, and detect whether there are candidate main images and candidate pairs that satisfy the preset screening threshold. image.
其中,预设筛选阈值用于筛选出清晰度相对于参考主图像的清晰度较高的主图像和副图像,比如,该预设筛选阈值为80%,则可以通过该预设筛选阈值筛选出符合清晰度达到参考主图像的清晰度80%以上的图像。具体地,将其余主图像的清晰度和副图像的清晰度与参考主图像的清晰度进行比较,以清晰度较高的参考主图像为基准,检测是否存在满足预设筛选阈值的候选主图像和候选副图像,以确定出是否具有清晰度较高的主图像和副图像。由此,基于参考图像的清晰度进行候选主图像和候选副图像的确定,考量了当前场景下终端设备的拍照能力,提高了筛选出候选主图像和候选副图像的灵活性。The preset screening threshold is used to filter the main image and the sub-image with higher definition sharpness than the reference main image. For example, if the preset screening threshold is 80%, the preset screening threshold may be used to filter out An image that meets the definition of the resolution of the main image by more than 80%. Specifically, comparing the sharpness of the remaining main image and the sharpness of the sub-image with the sharpness of the reference main image, and detecting whether there is a candidate main image satisfying the preset screening threshold based on the reference main image with higher definition And the candidate sub-image to determine whether there is a main image and a sub-image with higher definition. Thereby, the determination of the candidate main image and the candidate sub-image is performed based on the sharpness of the reference image, and the photographing ability of the terminal device in the current scene is considered, and the flexibility of filtering out the candidate main image and the candidate sub-image is improved.
步骤104,若检测获知存在至少一帧候选主图像和至少一帧候选副图像,则计算参考主图像、每帧候选主图像以及每帧候选副图像的图像信息,确定第一目标主图像和第一目标副图像。Step 104: If it is detected that there is at least one frame candidate main image and at least one frame candidate sub-image, calculate image information of the reference main image, each frame candidate main image, and each frame candidate sub-image, and determine the first target main image and the first A target secondary image.
步骤105,根据第一目标主图像和第一目标副图像计算景深信息。Step 105: Calculate depth information according to the first target main image and the first target sub image.
具体地,在本申请的一个实施例中,若检测获知存在至少一帧候选主图像和至少一帧候选副图像,则表明存在清晰度较高的主图像和副图像,如果使用清晰度较高的候选主图像和候选副图像计算景深,则会提高景深计算效率和准确度。Specifically, in an embodiment of the present application, if it is detected that there is at least one frame candidate main image and at least one frame candidate sub-image, it indicates that there is a main image and a sub-image with higher definition, if the definition is higher The candidate main image and the candidate sub-image calculate the depth of field, which will improve the efficiency and accuracy of depth of field calculation.
在实际执行过程中,计算景深的主图像和副图像越接近,计算景深时的干扰越小,计算得到的景深更加准确,因此,在本申请的实施例中,获取参考主图像、每帧候选主图像 以及每帧候选副图像的图像信息并进行比较,其中,该图像信息包括但不限于图像清晰度、亮度、AWB(Automatic white balance,自动白平衡)等对景深计算有影响的信息,进而,确定出第一目标主图像和第一目标副图像,比如,获取图像差异满足预设条件的第一目标主图像和第一目标副图像,以根据第一目标主图像和第一目标副图像获取景深信息,由此,保证了景深信息的计算更加准确,使得最终的成像效果较好。In the actual execution process, the closer the main image and the sub-image of the depth of field are calculated, the smaller the interference when calculating the depth of field, and the calculated depth of field is more accurate. Therefore, in the embodiment of the present application, the reference main image and each frame candidate are acquired. And comparing image information of the main image and the candidate sub-image of each frame, wherein the image information includes, but is not limited to, image sharpness, brightness, AWB (Automatic White Balance), etc., which affect the depth of field calculation, and further Determining a first target main image and a first target sub image, for example, acquiring a first target main image and a first target sub image whose image difference satisfies a preset condition, according to the first target main image and the first target sub image Obtaining the depth of field information, thereby ensuring that the calculation of the depth of field information is more accurate, so that the final imaging effect is better.
其中,上述预设条件与图像信息包含的具体信息和终端设备的拍照硬件能力和拍照环境有关,终端设备包含的具体信息越丰富、终端设备的拍照硬件能力越差以及拍照环境光线越不足,则预设条件越宽松,对应的图像差异的值大,比如,在同样的终端设备的拍照硬件能力和拍照环境下,针对图像信息包含图像清晰度和亮度的场景下设置的预设条件可能为参考主图像、每帧候选主图像以及每帧候选副图像的图像信息差异为10%,针对图像信息包含图像清晰度的场景下设置的预设条件可能为参考主图像、每帧候选主图像以及每帧候选副图像的图像信息差异为15%。The preset condition is related to the specific information included in the image information and the camera hardware capability and the photographing environment of the terminal device. The richer the specific information included in the terminal device, the worse the camera hardware capability of the terminal device, and the less the light of the photographing environment, The more relaxed the preset condition is, the larger the value of the corresponding image difference is. For example, under the camera hardware capability and the photographing environment of the same terminal device, the preset condition set under the scene in which the image information includes image sharpness and brightness may be a reference. The image information difference between the main image, the candidate main image per frame, and the candidate sub-image per frame is 10%, and the preset conditions set under the scene in which the image information includes image sharpness may be a reference main image, a candidate main image per frame, and each The image information difference of the frame candidate sub-image is 15%.
为了更加清楚的说明,如何判断参考主图像、每帧候选主图像以及每帧候选副图像的图像信息的图像信息差异是否满足预设条件,下面分别以图像信息差异包含一种类型的信息和多种类型的信息为例进行说明:For a clearer explanation, how to judge whether the difference between the image information of the reference main image, the candidate main image of each frame, and the image information of each candidate sub-image satisfies a preset condition, and the following information content includes a type of information and The types of information are described as an example:
第一种示例,在该示例下,获取的图像信息为一种类型的信息,比如,均为图像亮度。In the first example, in this example, the acquired image information is one type of information, for example, all of the image brightness.
具体而言,在本示例中,将参考主图像和每帧候选主图像的图像信息依次与每帧候选副图像的图像信息进行比较,获取图像信息差值最小的两帧图像为第一目标主图像和第一副图像。Specifically, in this example, the image information of the reference main image and the candidate main image of each frame is sequentially compared with the image information of each candidate sub-image, and the two images with the smallest difference of the image information are acquired as the first target main image. Image and first sub image.
举例而言,当图像信息为亮度信息时,如图4(a)所示,主摄像头和副摄像头同时拍摄,获取4帧主图像和4帧副图像,其中,按照拍摄顺序4帧主图像的编号分别为11、12、13和14,4帧副图像的编号分别为21、22、23和24,其中,清晰度最高的参考主图像为11,候选主图像分别为12和13,候选副图像,候选副图像分别为22和24。将参考主图像和每帧候选主图像的图像亮度依次与每帧候选副图像的图像亮度进行比较,获取到图像亮度差值最小的两帧图像为第一目标主图像12和第一目标副图像22,由此,根据第一目标主图像12和第一目标副图像22计算景深信息较为准确,根据该景深信息最终成像的效果较好。For example, when the image information is brightness information, as shown in FIG. 4( a ), the main camera and the sub-camera are simultaneously photographed, and a 4-frame main image and a 4-frame sub-image are acquired, wherein the main image is 4 frames in accordance with the shooting order. The numbers are 11, 12, 13 and 14, respectively, and the number of sub-images of 4 frames is 21, 22, 23 and 24, respectively, wherein the reference main image with the highest definition is 11, and the candidate main images are 12 and 13, respectively. Images, candidate secondary images are 22 and 24, respectively. The image brightness of the reference main image and the candidate main image of each frame is sequentially compared with the image brightness of each candidate sub-image, and the two image images with the smallest image brightness difference are obtained as the first target main image 12 and the first target sub image. 22, whereby the depth of field information is calculated based on the first target main image 12 and the first target sub image 22, and the final imaging effect is better according to the depth information.
第二种示例,在该示例下,获取的图像信息为多种类型的信息,比如,包括图像亮度、图像白平衡值和图像清晰度。In the second example, in this example, the acquired image information is a plurality of types of information including, for example, image brightness, image white balance value, and image sharpness.
具体而言,在本示例中,获取与每种类型信息对应的权重因子,该权重因子对应的权重值可以由系统标定,也可以由用户根据场景的需要标定,将参考主图像和每帧候选主图像的每类图像信息依次与每帧候选副图像的每类图像信息进行比较,获取每两帧图像之间 各类图像信息的信息差,根据每两帧图像之间各类图像信息的信息差以及与每种类型信息对应的权重因子,获取每两帧图像对应的信息差,获取信息差最小的两帧为第一目标主图像和第一目标副图像。Specifically, in this example, a weighting factor corresponding to each type of information is obtained, and the weighting value corresponding to the weighting factor may be calibrated by the system, or may be calibrated by the user according to the needs of the scene, and the reference main image and each frame candidate may be referred to. Each type of image information of the main image is sequentially compared with each type of image information of each candidate sub-image, and information difference of each type of image information between each two frames of images is obtained, according to information of various types of image information between each two frames of images. The difference and the weighting factor corresponding to each type of information acquire the information difference corresponding to each two frames of images, and the two frames with the smallest information difference are the first target main image and the first target sub image.
举例而言,当图像信息为图像亮度、AWB和SOF,且对应的权重因子分别为50%,20%和30%,如图4(b)所示,主摄像头和副摄像头同时拍摄,获取4帧主图像和4帧副图像,其中,按照拍摄顺序4帧主图像的编号分别为11、12、13和14,4帧副图像的编号分别为21、22、23和24,其中,清晰度最高的参考主图像为11,候选主图像分别为12和13,候选副图像,候选副图像分别为22和24。将参考主图像和每帧候选主图像的图像亮度、AWB和SOF分别依次与每帧候选副图像的图像亮度进行比较,获取到参考主图像11的图像亮度、AWB和SOF与候选副图像22的信息差分别为a1、a2、a3,则获取到参考主图像11与候选副图像22的信息差b1=a1*50%+a2*20%+a*30%,依次类推,分别获取到参考主图像11与候选副图像24的信息差b2,候选主图像12与候选副图像22的信息差b3,候选主图像12与候选副图像24的信息差b4,候选主图像13与候选副图像22的信息差b5,候选主图像13与候选副图像24的信息差b6,进而,获取到信息差最小的两帧为第一目标主图像12和第一目标副图像22,由此,根据第一目标主图像12和第一目标副图像22计算景深信息较为准确,根据该景深信息最终成像的效果较好。For example, when the image information is image brightness, AWB, and SOF, and the corresponding weight factors are 50%, 20%, and 30%, respectively, as shown in FIG. 4(b), the main camera and the sub-camera are simultaneously photographed, and 4 is acquired. a frame main image and a 4-frame sub-image, wherein the numbers of the main frames of the four frames in the order of shooting are 11, 12, 13, and 14, respectively, and the numbers of the sub-images of the four frames are 21, 22, 23, and 24, respectively, The highest reference main image is 11, the candidate main images are 12 and 13, respectively, and the candidate sub-images are 22 and 24, respectively. The image brightness, AWB, and SOF of the reference main image and each candidate candidate main image are sequentially compared with the image brightness of each candidate sub-image, respectively, and image brightness, AWB, and SOF of the reference main image 11 and the candidate sub-image 22 are acquired. The information difference is a1, a2, and a3, respectively, and the information difference b1=a1*50%+a2*20%+a*30% of the reference main image 11 and the candidate sub-image 22 is acquired, and so on, respectively, and the reference main is obtained. The information difference b2 between the image 11 and the candidate sub-image 24, the information difference b3 between the candidate main image 12 and the candidate sub-image 22, the information difference b4 between the candidate main image 12 and the candidate sub-image 24, and the candidate main image 13 and the candidate sub-image 22 The information difference b5, the information difference b6 between the candidate main image 13 and the candidate sub-image 24, and further, the two frames obtained with the smallest information difference are the first target main image 12 and the first target sub-image 22, thereby, according to the first target The main image 12 and the first target sub-image 22 are more accurate in calculating the depth of field information, and the final imaging effect is better according to the depth information.
基于以上示例,需要说明的是,图像信息的具体类型可以由拍摄的场景信息和拍摄模式中的一种或多种而定,比如,场景信息中光线亮度较差,则拍摄的多帧主图像和副图像质量较差,仅仅根据一种图像信息确定计算景深的第一目标主图像和第一目标副图像,可能可靠性不高,因而,需要考量多种类型的图像信息来确定第一目标主图像和第一目标副图像,又比如,场景信息中光线亮度较好,则拍摄的多帧主图像和副图像质量较高,仅仅根据一种图像信息确定计算景深的第一目标主图像和第一目标副图像可靠性较高,因而,为了提高图像处理效率,可以考量一种类型的图像信息来确定第一目标主图像和第一目标副图像。Based on the above examples, it should be noted that the specific type of image information may be determined by one or more of the captured scene information and the shooting mode. For example, if the brightness of the scene information is poor, the multi-frame main image is captured. And the sub-picture quality is poor, and determining the first target main image and the first target sub-image for calculating the depth of field based on only one type of image information may not be highly reliable, and therefore, various types of image information need to be considered to determine the first target. The main image and the first target sub-image, for example, the brightness of the light in the scene information is good, and the quality of the multi-frame main image and the sub-image captured is high, and the first target main image for calculating the depth of field is determined only according to one type of image information. The first target sub-image is highly reliable, and thus, in order to improve image processing efficiency, one type of image information may be considered to determine the first target main image and the first target sub-image.
又比如,当前拍摄模式为夜景拍摄,则对亮度信息的要求较高,光线亮度较差,则拍摄的多帧主图像和副图像质量较差,仅仅根据一种图像信息确定计算景深的第一目标主图像和第一目标副图像,可能可靠性不高,因而,需要考量多种类型的图像信息来确定第一目标主图像和第一目标副图像,又比如,强光拍摄模式下,最容易导致的问题是过曝,因而,为了提高图像处理效率,可以考量一种类型的AWB信息来确定第一目标主图像和第一目标副图像。For example, if the current shooting mode is night scene shooting, the requirement for brightness information is high, and the brightness of the light is poor, and the quality of the multi-frame main image and the sub-image taken is poor, and only the first of the calculated depth of field is determined according to one type of image information. The target main image and the first target sub image may not be highly reliable. Therefore, it is necessary to consider various types of image information to determine the first target main image and the first target sub image, and, for example, in the highlight shooting mode, The problem that is easily caused is overexposure. Therefore, in order to improve image processing efficiency, one type of AWB information can be considered to determine the first target main image and the first target sub image.
具体而言,在本示例中,检测拍摄的场景信息,和/或,拍摄模式,进而,根据场景信息,和/或,拍摄模式确定待获取的图像信息类型,比如,可以预先存储场景信息,和/或, 拍摄模式与图像信息类型的对应关系,进而,在获知当前场景信息,和/或,拍摄模式后,查询该对应关系,获取到对应的图像信息类型。Specifically, in this example, the captured scene information is detected, and/or the shooting mode, and further, the image information type to be acquired is determined according to the scene information, and/or the shooting mode, for example, the scene information may be pre-stored. And/or, the correspondence between the shooting mode and the image information type, and further, after learning the current scene information, and/or the shooting mode, querying the corresponding relationship, and acquiring the corresponding image information type.
其中,需要强调的是,上述实施例中,包括单独采用场景信息或拍摄模式确定图像信息的类型的实现方式,也包括同时采用场景信息和拍摄模式确定图像信息的类型的实现方式。It should be emphasized that, in the above embodiment, the implementation manner of determining the type of the image information by using the scene information or the shooting mode alone includes the implementation of determining the type of the image information by using the scene information and the shooting mode at the same time.
在本申请的一个实施例中,如果检测获知不存在候选主图像或候选副图像,即其余主图像和幅图像的清晰度可能均比较低,此时,以清晰度较高的参考主图像为获取景深信息的一帧图像,获取参考主图像以及每帧副图像的图像信息并进行比较,获取图像信息差异满足预设条件的第二目标副图像,该第二目标副图像为与参考主图像最为接近的一帧副图像,进而,以该参考主图像和第二目标副图像获取景深信息。In an embodiment of the present application, if the detection knows that there is no candidate main image or candidate sub-image, that is, the resolutions of the remaining main image and the image may be relatively low, and at this time, the reference main image with higher definition is Obtaining a frame image of the depth information, acquiring the reference main image and the image information of each sub image, and comparing, obtaining a second target sub image whose image information difference satisfies a preset condition, wherein the second target sub image is a reference main image The closest one sub-picture, and further, the depth information is obtained with the reference main image and the second target sub-image.
由此,本申请实施例的景深获取方法,通过拍摄多帧主、副图像,从中挑选主图像清晰度好且主、副图像清晰度较高且图像信息尽量接近的一组图片,用来计算景深及最终成像,这样可使景深计算更加准确,同时又能保证成像清晰度,最终的成像效果更好。Therefore, the depth of field acquisition method of the embodiment of the present application, by taking a multi-frame main and sub-image, selects a set of pictures whose main image has good definition and high definition of the main and sub-images, and the image information is as close as possible, for calculating Depth of field and final imaging, which makes the depth of field calculation more accurate, while at the same time ensuring image clarity and better final imaging.
综上所述,本申请实施例的景深获取方法,获取主摄像头拍摄的多帧主图像以及副摄像头拍摄的多帧副图像,计算每帧主图像和每帧副图像的清晰度,获取清晰度最高的参考主图像,将其余主图像的清晰度和每帧副图像的清晰度与参考主图像的清晰度进行比较,检测是否存在满足预设筛选阈值的候选主图像和候选副图像,若检测获知存在至少一帧候选主图像和至少一帧候选副图像,则获取参考主图像、每帧候选主图像以及每帧候选副图像的图像信息,确定第一目标主图像和第一目标副图像,进而,根据第一目标主图像和第一目标副图像获取景深信息。由此,保证了获取景深信息的图像之间的质量和一致性,提高了景深的精确率以及成像效果。In summary, the depth of field acquisition method of the embodiment of the present application acquires a multi-frame main image captured by a main camera and a multi-frame sub-image captured by a sub-camera, and calculates the definition of the main image and each sub-picture of each frame to obtain the definition. The highest reference main image, comparing the sharpness of the remaining main images with the sharpness of each sub-image and the sharpness of the reference main image, detecting whether there is a candidate main image and a candidate sub-image satisfying the preset screening threshold, if the detection Obtaining that at least one frame candidate main image and at least one frame candidate sub image exist, acquiring image information of the reference main image, each frame candidate main image, and each frame candidate sub image, and determining the first target main image and the first target sub image, Further, depth information is acquired based on the first target main image and the first target sub image. Thereby, the quality and consistency between the images for acquiring the depth information are ensured, and the accuracy of the depth of field and the imaging effect are improved.
为了实现上述实施例,本申请还提出了一种景深获取装置,图5是根据本申请一个实施例的景深获取装置的结构示意图,如图5所示,该景深信息获取装置包括第一获取模块100、第二获取模块200、检测模块300、第三获取模块400和确定模块500和第四获取模块600。In order to implement the above embodiment, the present application also provides a depth of field acquisition device. FIG. 5 is a schematic structural diagram of a depth of field acquisition device according to an embodiment of the present application. As shown in FIG. 5, the depth of field information acquisition device includes a first acquisition module. 100. The second obtaining module 200, the detecting module 300, the third obtaining module 400, and the determining module 500 and the fourth obtaining module 600.
其中,第一获取模块100,用于获取主摄像头拍摄的多帧主图像以及副摄像头拍摄的多帧副图像。The first obtaining module 100 is configured to acquire a multi-frame main image captured by the main camera and a multi-frame sub-image captured by the sub-camera.
第二获取模块200,用于根据每帧主图像和每帧副图像的清晰度,获取清晰度最高的参考主图像。The second obtaining module 200 is configured to obtain a reference main image with the highest definition according to the definition of each frame main image and each sub-picture.
检测模块300,用于将除参考主图像之外的其余主图像的清晰度和每帧副图像的清晰度与参考主图像的清晰度进行比较,检测是否存在满足预设筛选阈值的候选主图像和候选 副图像。The detecting module 300 is configured to compare the sharpness of the remaining main images except the reference main image and the sharpness of each sub-image with the sharpness of the reference main image, and detect whether there is a candidate main image that satisfies the preset screening threshold. And candidate secondary images.
第三获取模块400,用于在检测获知存在至少一帧候选主图像和至少一帧候选副图像时,获取参考主图像、每帧候选主图像以及每帧候选副图像的图像信息。The third obtaining module 400 is configured to acquire image information of the reference main image, each frame candidate main image, and each frame candidate sub-image when detecting that at least one frame candidate main image and at least one frame candidate sub-image exist.
确定模块500,用于确定第一目标主图像和第一目标副图像。The determining module 500 is configured to determine the first target primary image and the first target secondary image.
第四获取模块600,用于根据第一目标主图像和第一目标副图像获取景深信息。The fourth obtaining module 600 is configured to obtain depth information according to the first target main image and the first target sub image.
其中,在本申请的一个实施例中,当获取的图像信息为一种类型信息时,第二获取模块200具体用于将参考主图像和每帧候选主图像的图像信息依次与每帧候选副图像的图像信息进行比较,获取图像信息差值最小的两帧图像为第一目标主图像和第一目标副图像。In an embodiment of the present application, when the acquired image information is one type of information, the second obtaining module 200 is specifically configured to sequentially compare the image information of the reference main image and the candidate main image with each frame candidate The image information of the image is compared, and two frames of images having the smallest difference in image information are acquired as the first target main image and the first target sub image.
第四获取模块600,用于根据第一目标主图像和第一目标副图像获取景深信息。The fourth obtaining module 600 is configured to obtain depth information according to the first target main image and the first target sub image.
在本申请的一个实施例中,第三获取模块400,还用于在检测获知不存在候选主图像或候选副图像时,将多帧副图像中图像信息与参考主图像的图像信息的差异满足预设条件的副图像作为第二目标副图像。In an embodiment of the present application, the third obtaining module 400 is further configured to: satisfy a difference between the image information in the multi-frame sub-image and the image information of the reference main image when detecting that the candidate main image or the candidate sub-image is not present. The sub-picture of the preset condition is used as the second target sub-picture.
第四获取模块600,还用于根据参考主图像和第二目标副图像获取景深信息。The fourth obtaining module 600 is further configured to obtain depth information according to the reference main image and the second target sub image.
需要说明的是,前述对方法实施例的描述,也适用于本申请实施例的装置,其实现原理类似,在此不再赘述。It should be noted that the foregoing description of the method embodiment is also applicable to the device in the embodiment of the present application, and the implementation principle is similar, and details are not described herein again.
上述景深获取装置中各个模块的划分仅用于举例说明,在其他实施例中,可将景深获取装置按照需要划分为不同的模块,以完成上述景深获取装置的全部或部分功能。The division of each module in the above-mentioned depth of field acquisition device is for illustrative purposes only. In other embodiments, the depth of field acquisition device may be divided into different modules as needed to complete all or part of the functions of the depth of field acquisition device.
综上所述,本申请实施例的景深获取装置,获取主摄像头拍摄的多帧主图像以及副摄像头拍摄的多帧副图像,计算每帧主图像和每帧副图像的清晰度,获取清晰度最高的参考主图像,将其余主图像的清晰度和每帧副图像的清晰度与参考主图像的清晰度进行比较,检测是否存在满足预设筛选阈值的候选主图像和候选副图像,若检测获知存在至少一帧候选主图像和至少一帧候选副图像,则获取参考主图像、每帧候选主图像以及每帧候选副图像的图像信息确定第一目标主图像和第一目标副图像,进而,根据第一目标主图像和第一目标副图像获取景深信息。由此,保证了获取景深信息的图像之间的质量和一致性,提高了景深的精确率以及成像效果。In summary, the depth of field acquisition device of the embodiment of the present application acquires a multi-frame main image captured by a main camera and a multi-frame sub-image captured by a sub-camera, and calculates the definition of the main image and each sub-picture of each frame to obtain the definition. The highest reference main image, comparing the sharpness of the remaining main images with the sharpness of each sub-image and the sharpness of the reference main image, detecting whether there is a candidate main image and a candidate sub-image satisfying the preset screening threshold, if the detection Obtaining that at least one frame candidate primary image and at least one frame candidate secondary image are present, then acquiring the reference primary image, each frame candidate primary image, and the image information of each frame candidate secondary image to determine the first target primary image and the first target secondary image, and further And acquiring depth information according to the first target main image and the first target sub image. Thereby, the quality and consistency between the images for acquiring the depth information are ensured, and the accuracy of the depth of field and the imaging effect are improved.
为了实现上述实施例,本申请还提出了一种计算机设备,其中,计算机设备为包括包含存储计算机程序的存储器及运行计算机程序的处理器的任意设备,比如,可以为智能手机、个人电脑等,上述计算机设备中包括图像处理电路,图像处理电路可以利用硬件和/或软件组件实现,可包括定义ISP(Image Signal Processing,图像信号处理)管线的各种处理单元。图6为一个实施例中图像处理电路的示意图。如图6所示,为便于说明,仅示出与本申请实施例相关的图像处理技术的各个方面。In order to implement the above embodiments, the present application further provides a computer device, wherein the computer device is any device including a memory including a storage computer program and a processor running the computer program, for example, a smart phone, a personal computer, or the like. The above computer device includes an image processing circuit, and the image processing circuit may be implemented by hardware and/or software components, and may include various processing units defining an ISP (Image Signal Processing) pipeline. Figure 6 is a schematic illustration of an image processing circuit in one embodiment. As shown in FIG. 6, for convenience of explanation, only various aspects of the image processing technique related to the embodiment of the present application are shown.
如图6所示,图像处理电路包括ISP处理器640和控制逻辑器650。成像设备610捕捉的图像数据首先由ISP处理器640处理,ISP处理器640对图像数据进行分析以捕捉可用于确定和/或成像设备610的一个或多个控制参数的图像统计信息。成像设备610(照相机)可包括具有一个或多个透镜612和图像传感器614的摄像头,其中,为了实施本申请的背景虚化处理方法,成像设备610包含两组摄像头,其中,继续参照图6,成像设备610可基于主摄像头和副摄像头同时拍摄场景图像,图像传感器614可包括色彩滤镜阵列(如Bayer滤镜),图像传感器614可获取用图像传感器614的每个成像像素捕捉的光强度和波长信息,并提供可由ISP处理器640处理的一组原始图像数据。传感器620可基于传感器620接口类型把原始图像数据提供给ISP处理器640,其中,ISP处理器640可基于传感器620提供的主摄像头中的图像传感器614获取的原始图像数据和副摄像头中的图像传感器614获取的原始图像数据计算景深信息等。传感器620接口可以利用SMIA(Standard Mobile Imaging Architecture,标准移动成像架构)接口、其它串行或并行摄像头接口或上述接口的组合。As shown in FIG. 6, the image processing circuit includes an ISP processor 640 and a control logic 650. The image data captured by imaging device 610 is first processed by ISP processor 640, which analyzes the image data to capture image statistical information that can be used to determine and/or control one or more control parameters of imaging device 610. The imaging device 610 (camera) may include a camera having one or more lenses 612 and an image sensor 614, wherein the imaging device 610 includes two sets of cameras for implementing the background blurring method of the present application, wherein, with continued reference to FIG. 6, Imaging device 610 can simultaneously capture scene images based on a primary camera and a secondary camera, image sensor 614 can include a color filter array (such as a Bayer filter), and image sensor 614 can acquire light intensity captured by each imaging pixel of image sensor 614 and Wavelength information and a set of raw image data that can be processed by ISP processor 640. Sensor 620 can provide raw image data to ISP processor 640 based on sensor 620 interface type, wherein ISP processor 640 can be based on raw image data acquired by image sensor 614 in the main camera provided by sensor 620 and image sensor in the secondary camera The original image data acquired by 614 calculates depth information and the like. The sensor 620 interface may utilize a SMIA (Standard Mobile Imaging Architecture) interface, other serial or parallel camera interfaces, or a combination of the above.
ISP处理器640按多种格式逐个像素地处理原始图像数据。例如,每个图像像素可具有8、10、12或14比特的位深度,ISP处理器640可对原始图像数据进行一个或多个图像处理操作、收集关于图像数据的统计信息。其中,图像处理操作可按相同或不同的位深度精度进行。The ISP processor 640 processes the raw image data pixel by pixel in a variety of formats. For example, each image pixel can have a bit depth of 8, 10, 12, or 14 bits, and the ISP processor 640 can perform one or more image processing operations on the raw image data, collecting statistical information about the image data. Among them, image processing operations can be performed with the same or different bit depth precision.
ISP处理器640还可从图像存储器630接收像素数据。例如,从传感器620接口将原始像素数据发送给图像存储器630,图像存储器630中的原始像素数据再提供给ISP处理器640以供处理。图像存储器630可为存储器装置的一部分、存储设备、或电子设备内的独立的专用存储器,并可包括DMA(Direct Memory Access,直接直接存储器存取)特征。 ISP processor 640 can also receive pixel data from image memory 630. For example, raw pixel data is sent from the sensor 620 interface to image memory 630, which is then provided to ISP processor 640 for processing. Image memory 630 can be part of a memory device, a storage device, or a separate dedicated memory within an electronic device, and can include DMA (Direct Memory Access) features.
当接收到来自传感器620接口或来自图像存储器630的原始图像数据时,ISP处理器640可进行一个或多个图像处理操作,如时域滤波。处理后的图像数据可发送给图像存储器630,以便在被显示之前进行另外的处理。ISP处理器640从图像存储器630接收处理数据,并对所述处理数据进行原始域中以及RGB和YCbCr颜色空间中的图像数据处理。处理后的图像数据可输出给显示器670,以供用户观看和/或由图形引擎或GPU(Graphics Processing Unit,图形处理器)进一步处理。此外,ISP处理器640的输出还可发送给图像存储器630,且显示器670可从图像存储器630读取图像数据。在一个实施例中,图像存储器630可被配置为实现一个或多个帧缓冲器。此外,ISP处理器640的输出可发送给编码器/解码器660,以便编码/解码图像数据。编码的图像数据可被保存,并在显示于显示器670设备上之前解压缩。编码器/解码器660可由CPU或GPU或协处理器实现。When receiving raw image data from the sensor 620 interface or from image memory 630, ISP processor 640 can perform one or more image processing operations, such as time domain filtering. The processed image data can be sent to image memory 630 for additional processing before being displayed. The ISP processor 640 receives the processed data from the image memory 630 and performs image data processing in the original domain and in the RGB and YCbCr color spaces. The processed image data can be output to display 670 for viewing by a user and/or further processed by a graphics engine or GPU (Graphics Processing Unit). Additionally, the output of ISP processor 640 can also be sent to image memory 630, and display 670 can read image data from image memory 630. In one embodiment, image memory 630 can be configured to implement one or more frame buffers. Additionally, the output of ISP processor 640 can be sent to encoder/decoder 660 to encode/decode image data. The encoded image data can be saved and decompressed before being displayed on the display 670 device. Encoder/decoder 660 can be implemented by a CPU or GPU or coprocessor.
ISP处理器640确定的统计数据可发送给控制逻辑器650单元。例如,统计数据可包括自动曝光、自动白平衡、自动聚焦、闪烁检测、黑电平补偿、透镜612阴影校正等图像传 感器614统计信息。控制逻辑器650可包括执行一个或多个例程(如固件)的处理器和/或微控制器,一个或多个例程可根据接收的统计数据,确定成像设备610的控制参数以及的控制参数。例如,控制参数可包括传感器620控制参数(例如增益、曝光控制的积分时间)、照相机闪光控制参数、透镜612控制参数(例如聚焦或变焦用焦距)、或这些参数的组合。ISP控制参数可包括用于自动白平衡和颜色调整(例如,在RGB处理期间)的增益水平和色彩校正矩阵,以及透镜612阴影校正参数。The statistics determined by the ISP processor 640 can be sent to the control logic 650 unit. For example, the statistics may include image sensor 614 statistics such as auto exposure, auto white balance, auto focus, flicker detection, black level compensation, lens 612 shading correction, and the like. Control logic 650 can include a processor and/or a microcontroller that executes one or more routines (such as firmware) that can determine control parameters and control of imaging device 610 based on received statistical data. parameter. For example, the control parameters may include sensor 620 control parameters (eg, gain, integration time for exposure control), camera flash control parameters, lens 612 control parameters (eg, focus or zoom focal length), or a combination of these parameters. The ISP control parameters may include gain levels and color correction matrices for automatic white balance and color adjustment (eg, during RGB processing), as well as lens 612 shading correction parameters.
以下为运用图6中图像处理技术实现景深获取方法的步骤:The following are the steps to implement the depth of field acquisition method using the image processing technique in Figure 6:
获取主摄像头拍摄的多帧主图像以及副摄像头拍摄的多帧副图像;Acquiring a multi-frame main image captured by the main camera and a multi-frame sub-image captured by the sub-camera;
根据每帧主图像和每帧副图像的清晰度,获取清晰度最高的参考主图像;Obtaining the highest-resolution reference main image according to the definition of the main image of each frame and the sub-image of each frame;
将除所述参考主图像之外的其余主图像的清晰度和每帧副图像的清晰度与所述参考主图像的清晰度进行比较,检测是否存在满足预设筛选阈值的候选主图像和候选副图像;Comparing the sharpness of the remaining main images other than the reference main image and the sharpness of each sub-picture with the sharpness of the reference main image, detecting whether there are candidate main images and candidates satisfying the preset screening threshold Secondary image
若检测获知存在至少一帧所述候选主图像和至少一帧所述候选副图像,则获取所述参考主图像、每帧候选主图像以及每帧候选副图像的图像信息,确定第一目标主图像和第一目标副图像;If it is detected that there are at least one frame of the candidate main image and at least one frame of the candidate sub-image, acquiring the reference main image, each frame candidate main image, and image information of each frame candidate sub-image, determining the first target main An image and a first target sub-image;
根据所述第一目标主图像和所述第一目标副图像获取景深信息。Depth of field information is acquired based on the first target main image and the first target sub image.
为了实现上述实施例,本申请还提出一种非临时性计算机可读存储介质,当存储介质中的指令由处理器被执行时,使得能够执行如上述实施例描述的景深获取方法。In order to implement the above embodiments, the present application also proposes a non-transitory computer readable storage medium that enables execution of the depth of field acquisition method as described in the above embodiments when instructions in the storage medium are executed by the processor.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of the present specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" and the like means a specific feature described in connection with the embodiment or example. A structure, material or feature is included in at least one embodiment or example of the application. In the present specification, the schematic representation of the above terms is not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in a suitable manner in any one or more embodiments or examples. In addition, various embodiments or examples described in the specification, as well as features of various embodiments or examples, may be combined and combined.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本申请的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。Moreover, the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, features defining "first" or "second" may include at least one of the features, either explicitly or implicitly. In the description of the present application, the meaning of "a plurality" is at least two, such as two, three, etc., unless specifically defined otherwise.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现定制逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分, 并且本申请的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本申请的实施例所属技术领域的技术人员所理解。Any process or method description in the flowcharts or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a custom logic function or process. And the scope of the preferred embodiments of the present application includes additional implementations, in which the functions may be performed in a substantially simultaneous manner or in an opposite order depending on the functions involved, in the order shown or discussed. It will be understood by those skilled in the art to which the embodiments of the present application pertain.
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。The logic and/or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be embodied in any computer readable medium, Used in conjunction with, or in conjunction with, an instruction execution system, apparatus, or device (eg, a computer-based system, a system including a processor, or other system that can fetch instructions and execute instructions from an instruction execution system, apparatus, or device) Or use with equipment. For the purposes of this specification, a "computer-readable medium" can be any apparatus that can contain, store, communicate, propagate, or transport a program for use in an instruction execution system, apparatus, or device, or in conjunction with the instruction execution system, apparatus, or device. More specific examples (non-exhaustive list) of computer readable media include the following: electrical connections (electronic devices) having one or more wires, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM). In addition, the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may be optically scanned, for example by paper or other medium, followed by editing, interpretation or, if appropriate, other suitable The method is processed to obtain the program electronically and then stored in computer memory.
应当理解,本申请的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。如,如果用硬件来实现和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that portions of the application can be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware and in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: discrete with logic gates for implementing logic functions on data signals Logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), and the like.
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art can understand that all or part of the steps carried by the method of implementing the above embodiments can be completed by a program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, one or a combination of the steps of the method embodiments is included.
此外,在本申请各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. The integrated modules, if implemented in the form of software functional modules and sold or used as stand-alone products, may also be stored in a computer readable storage medium.
上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本申请的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本申请的限制, 本领域的普通技术人员在本申请的范围内可以对上述实施例进行变化、修改、替换和变型。The above mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like. While the embodiments of the present application have been shown and described above, it is understood that the above-described embodiments are illustrative and are not to be construed as limiting the scope of the present application. The embodiments are subject to variations, modifications, substitutions and variations.
Claims (15)
- 一种景深获取方法,其特征在于,包括:A depth of field acquisition method, comprising:获取主摄像头拍摄的多帧主图像以及副摄像头拍摄的多帧副图像;Acquiring a multi-frame main image captured by the main camera and a multi-frame sub-image captured by the sub-camera;根据每帧主图像和每帧副图像的清晰度,获取清晰度最高的参考主图像;Obtaining the highest-resolution reference main image according to the definition of the main image of each frame and the sub-image of each frame;将除所述参考主图像之外的其余主图像的清晰度和每帧副图像的清晰度与所述参考主图像的清晰度进行比较,检测是否存在满足预设筛选阈值的候选主图像和候选副图像;Comparing the sharpness of the remaining main images other than the reference main image and the sharpness of each sub-picture with the sharpness of the reference main image, detecting whether there are candidate main images and candidates satisfying the preset screening threshold Secondary image若检测获知存在至少一帧所述候选主图像和至少一帧所述候选副图像,则根据所述参考主图像、每帧候选主图像以及每帧候选副图像的图像信息,If it is detected that there are at least one frame of the candidate main image and at least one frame of the candidate sub-image, according to the reference main image, each frame candidate main image, and image information of each frame candidate sub-image,确定第一目标主图像和第一目标副图像;Determining a first target main image and a first target sub image;根据所述第一目标主图像和所述第一目标副图像获取景深信息。Depth of field information is acquired based on the first target main image and the first target sub image.
- 如权利要求1所述的方法,其特征在于,所述根据所述第一目标主图像和所述第一目标副图像获取景深信息,包括:The method of claim 1, wherein the obtaining the depth of field information according to the first target main image and the first target sub image comprises:获取同一个拍摄对象在所述第一目标主图像和所述第一目标副图像中的像素点;Obtaining pixel points of the same photographic subject in the first target main image and the first target sub image;获取所述像素点的位移差异;Obtaining a difference in displacement of the pixel points;基于所述位移差异确定所述景深信息。The depth of field information is determined based on the displacement difference.
- 如权利要求1所述的方法,其特征在于,在所述检测是否存在满足预设筛选阈值的候选主图像和候选副图像之后,还包括:The method according to claim 1, wherein after the detecting whether there is a candidate main image and a candidate sub-image satisfying a preset screening threshold, the method further comprises:若检测获知不存在所述候选主图像或所述候选副图像,则将所述多帧副图像中图像信息与所述参考主图像的图像信息的差异满足预设条件的副图像作为第二目标副图像;If the detection is that the candidate main image or the candidate sub image is not present, the sub image in which the difference between the image information in the multi-frame sub-image and the image information of the reference main image satisfies a preset condition is used as the second target Secondary image根据所述参考主图像和所述第二目标副图像获取景深信息。Depth of field information is obtained based on the reference main image and the second target sub image.
- 如权利要求1-3任一所述的方法,其特征在于,当获取的图像信息为一种类型信息时,其中,所述类型信息包括图像亮度,或,图像白平衡值,或,图像分辨率,The method according to any one of claims 1 to 3, wherein when the acquired image information is a type information, wherein the type information includes image brightness, or image white balance value, or image resolution rate,所述获取所述参考主图像、每帧候选主图像以及每帧候选副图像的图像信息并进行比较,获取图像信息差异满足预设条件的第一目标主图像和第一目标副图像,包括:Acquiring and comparing the image information of the reference main image, the candidate main image, and the candidate sub-image of each frame, and acquiring the first target main image and the first target sub-image, where the image information difference meets the preset condition, including:将所述参考主图像和每帧候选主图像的图像信息依次与每帧候选副图像的图像信息进行比较,获取图像信息差值最小的两帧图像为第一目标主图像和第一目标副图像。Comparing the reference main image and the image information of each candidate candidate main image to the image information of each candidate sub-image in sequence, and acquiring two frames of images having the smallest difference of the image information as the first target main image and the first target sub image .
- 如权利要求1-4任一所述的方法,其特征在于,当获取的图像信息为多种类型信息时,The method according to any one of claims 1 to 4, wherein when the acquired image information is a plurality of types of information,所述获取所述图像信息的图像信息差异,确定所述图像信息差异满足预设条件的第一目标主图像和第一目标副图像,包括:And acquiring the image information difference of the image information, and determining the first target main image and the first target sub image that meet the preset condition by the image information difference, including:获取与每种类型信息对应的权重因子;Obtaining a weighting factor corresponding to each type of information;将所述参考主图像和每帧候选主图像的每类图像信息依次与每帧候选副图像的每类图像信息进行比较,获取每两帧图像之间各类图像信息的信息差;And comparing each type of image information of the reference main image and each candidate candidate main image to each type of image information of each candidate sub-image, and acquiring information difference of each type of image information between each two frames of images;根据每两帧图像之间各类图像信息的信息差以及与每种类型信息对应的权重因子,获取每两帧图像对应的信息差,获取信息差最小的两帧为第一目标主图像和第一目标副图像。According to the information difference of each type of image information between each two frames of images and the weighting factor corresponding to each type of information, the information difference corresponding to each two frames of images is obtained, and the two frames with the smallest information difference are obtained as the first target main image and the first A target secondary image.
- 如权利要求1-5任一所述的方法,其特征在于,还包括:The method of any of claims 1-5, further comprising:检测拍摄的场景信息,和/或,拍摄模式;Detecting scene information of the shooting, and/or shooting mode;根据所述场景信息,和/或拍摄模式确定待获取的所述图像信息的类型。Determining the type of the image information to be acquired according to the scene information, and/or the shooting mode.
- 一种景深获取装置,其特征在于,包括:A depth of field acquiring device, comprising:第一获取模块,用于获取主摄像头拍摄的多帧主图像以及副摄像头拍摄的多帧副图像;a first acquiring module, configured to acquire a multi-frame main image captured by the main camera and a multi-frame sub-image captured by the sub-camera;第二获取模块,用于根据每帧主图像和每帧副图像的清晰度,获取清晰度最高的参考主图像;a second acquiring module, configured to obtain a reference main image with the highest definition according to the definition of the main image of each frame and the sub-image of each frame;检测模块,用于将除所述参考主图像之外的其余主图像的清晰度和每帧副图像的清晰度与所述参考主图像的清晰度进行比较,检测是否存在满足预设筛选阈值的候选主图像和候选副图像;a detecting module, configured to compare the sharpness of the remaining main images except the reference main image and the sharpness of each sub-image with the sharpness of the reference main image, and detect whether there is a preset screening threshold a candidate primary image and a candidate secondary image;第三获取模块,用于在检测获知存在至少一帧所述候选主图像和至少一帧所述候选副图像时,获取所述参考主图像、每帧候选主图像以及每帧候选副图像的图像信息;a third acquiring module, configured to acquire an image of the reference main image, each frame candidate main image, and each candidate sub-image when detecting that at least one frame of the candidate main image and at least one frame of the candidate sub-image are detected information;确定模块,用于获确定第一目标主图像和第一目标副图像;a determining module, configured to determine the first target primary image and the first target secondary image;第四获取模块,用于根据所述第一目标主图像和所述第一目标副图像获取景深信息。And a fourth acquiring module, configured to acquire depth information according to the first target main image and the first target secondary image.
- 如权利要求7所述的装置,其特征在于,The device of claim 7 wherein:所述第三获取模块,还用于在检测获知不存在所述候选主图像或所述候选副图像时,将所述多帧副图像中图像信息与所述参考主图像的图像信息的差异满足预设条件的副图像作为第二目标副图像;The third obtaining module is further configured to: when detecting that the candidate main image or the candidate sub-image is not present, the difference between the image information in the multi-frame sub-image and the image information of the reference main image is satisfied a secondary image of a preset condition as a second target secondary image;所述第四获取模块,还用于根据所述参考主图像和所述第二目标副图像获取景深信息。The fourth acquiring module is further configured to acquire depth information according to the reference main image and the second target sub image.
- 如权利要求7或8所述的装置,其特征在于,当获取的图像信息为一种类型信息时,其中,所述类型信息包括图像亮度,或,图像白平衡值,或,图像分辨率,The apparatus according to claim 7 or 8, wherein when the acquired image information is a type information, wherein the type information includes image brightness, or image white balance value, or image resolution,所述第二获取模块具体用于:The second acquiring module is specifically configured to:将所述参考主图像和每帧候选主图像的图像信息依次与每帧候选副图像的图像信息进行比较,获取图像信息差值最小的两帧图像为第一目标主图像和第一目标副图像。Comparing the reference main image and the image information of each candidate candidate main image to the image information of each candidate sub-image in sequence, and acquiring two frames of images having the smallest difference of the image information as the first target main image and the first target sub image .
- 如权利要求7-9任一所述的装置,其特征在于,当获取的图像信息为多种类型信息时,所述确定模块,包括:The device according to any one of claims 7-9, wherein when the acquired image information is a plurality of types of information, the determining module comprises:确定单元,用于获取与每种类型信息对应的权重因子;a determining unit, configured to acquire a weighting factor corresponding to each type of information;第一获取单元,用于将所述参考主图像和每帧候选主图像的每类图像信息依次与每帧 候选副图像的每类图像信息进行比较,获取每两帧图像之间各类图像信息的信息差;a first acquiring unit, configured to compare each type of image information of the reference main image and each candidate candidate main image with each type of image information of each candidate sub-image, and obtain various types of image information between each two frames of images. Poor information;第二获取单元,用于根据每两帧图像之间各类图像信息的信息差以及与每种类型信息对应的权重因子,获取每两帧图像对应的信息差,获取信息差最小的两帧为第一目标主图像和第一目标副图像。a second acquiring unit, configured to acquire, according to information difference of each type of image information between each two frames of images and a weighting factor corresponding to each type of information, information difference corresponding to each two frames of images, and obtain two frames with the smallest information difference as The first target main image and the first target sub image.
- 如权利要求7-10任一所述的装置,其特征在于,A device according to any of claims 7-10, wherein所述检测模块,还用于检测拍摄的场景信息,和/或,拍摄模式;The detecting module is further configured to detect captured scene information, and/or a shooting mode;所述确定模块,还用于根据所述场景信息,和/或拍摄模式确定待获取的所述图像信息的类型。The determining module is further configured to determine, according to the scene information, and/or a shooting mode, a type of the image information to be acquired.
- 一种获取机设备,其特征在于,包括存储器、处理器及存储在存储器上并可在处理器上运行的获取机程序,所述处理器执行所述程序时,实现如权利要求1-5中任一所述的景深获取方法。An acquisition machine device, comprising: a memory, a processor, and an acquirer program stored on the memory and operable on the processor, wherein when the processor executes the program, the implementation is as claimed in claims 1-5 Any of the depth of field acquisition methods described.
- 一种获取机可读存储介质,其上存储有获取机程序,其特征在于,该程序被处理器执行时实现如权利要求1-5中任一所述的景深获取方法。An acquisition machine readable storage medium having stored thereon an acquisition program, wherein the program is executed by a processor to implement the depth of field acquisition method according to any one of claims 1-5.
- 一种图像处理电路,其特征在于,包括:ISP处理器,其中,所述ISP处理器包括:具有图像传感器的主摄像头和副摄像头,所述ISP处理器,用于通过所述图像传感器的接口获取所述主摄像头拍摄的多帧主图像以及所述副摄像头拍摄的多帧副图像,根据每帧主图像和每帧副图像的清晰度,获取清晰度最高的参考主图像,将除所述参考主图像之外的其余主图像的清晰度和每帧副图像的清晰度与所述参考主图像的清晰度进行比较,检测是否存在满足预设筛选阈值的候选主图像和候选副图像,若检测获知存在至少一帧所述候选主图像和至少一帧所述候选副图像,则根据所述参考主图像、每帧候选主图像以及每帧候选副图像的图像信息,确定第一目标主图像和第一目标副图像,根据所述第一目标主图像和所述第一目标副图像获取景深信息。An image processing circuit, comprising: an ISP processor, wherein the ISP processor comprises: a main camera and a sub camera having an image sensor, the ISP processor, and an interface through the image sensor Acquiring the multi-frame main image captured by the main camera and the multi-frame sub-image captured by the sub-camera, and obtaining the reference main image with the highest definition according to the definition of the main image and the sub-image of each frame, Comparing the sharpness of the remaining main images other than the main image and the sharpness of each sub-image with the sharpness of the reference main image, detecting whether there is a candidate main image and a candidate sub-image satisfying the preset screening threshold, if Determining that there is at least one frame of the candidate main image and at least one frame of the candidate sub-image, determining the first target main image according to the reference main image, each frame candidate main image, and image information of each frame candidate sub-image And the first target sub image, and acquiring the depth information according to the first target main image and the first target sub image.
- 如权利要求14所述的图像处理电路,其特征在于,所述ISP处理器,具体用于:The image processing circuit according to claim 14, wherein the ISP processor is specifically configured to:获取同一个拍摄对象在所述第一目标主图像和所述第一目标副图像中的像素点;Obtaining pixel points of the same photographic subject in the first target main image and the first target sub image;获取所述像素点的位移差异;Obtaining a difference in displacement of the pixel points;基于所述位移差异确定所述景深信息。The depth of field information is determined based on the displacement difference.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711243742.7A CN108053438B (en) | 2017-11-30 | 2017-11-30 | Depth of field acquisition method, device and equipment |
CN201711243742.7 | 2017-11-30 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019105260A1 true WO2019105260A1 (en) | 2019-06-06 |
Family
ID=62121752
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2018/116474 WO2019105260A1 (en) | 2017-11-30 | 2018-11-20 | Depth of field obtaining method, apparatus and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108053438B (en) |
WO (1) | WO2019105260A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113936258A (en) * | 2021-10-15 | 2022-01-14 | 北京百度网讯科技有限公司 | Image processing method, image processing device, electronic equipment and storage medium |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108053438B (en) * | 2017-11-30 | 2020-03-06 | Oppo广东移动通信有限公司 | Depth of field acquisition method, device and equipment |
CN108900766A (en) * | 2018-06-15 | 2018-11-27 | 北京华捷艾米科技有限公司 | A kind of panorama camera of the automatic enhancement device of panoramic picture and method and the application device |
CN109754439B (en) * | 2019-01-17 | 2023-07-21 | Oppo广东移动通信有限公司 | Calibration method, calibration device, electronic equipment and medium |
CN110310515B (en) * | 2019-04-23 | 2020-11-03 | 绍兴越元科技有限公司 | On-site information identification feedback system |
CN115829911A (en) * | 2022-07-22 | 2023-03-21 | 宁德时代新能源科技股份有限公司 | Method, apparatus and computer storage medium for detecting imaging consistency of a system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103763477A (en) * | 2014-02-21 | 2014-04-30 | 上海果壳电子有限公司 | Double-camera after-shooting focusing imaging device and method |
US20160019681A1 (en) * | 2014-07-17 | 2016-01-21 | Asustek Computer Inc. | Image processing method and electronic device using the same |
CN106851124A (en) * | 2017-03-09 | 2017-06-13 | 广东欧珀移动通信有限公司 | Image processing method, processing unit and electronic installation based on the depth of field |
CN108053438A (en) * | 2017-11-30 | 2018-05-18 | 广东欧珀移动通信有限公司 | Depth of field acquisition methods, device and equipment |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
SE518050C2 (en) * | 2000-12-22 | 2002-08-20 | Afsenius Sven Aake | Camera that combines sharply focused parts from various exposures to a final image |
CN106550184B (en) * | 2015-09-18 | 2020-04-03 | 中兴通讯股份有限公司 | Photo processing method and device |
CN105957053B (en) * | 2016-04-19 | 2019-01-01 | 深圳创维-Rgb电子有限公司 | Two dimensional image depth of field generation method and device |
CN106954020B (en) * | 2017-02-28 | 2019-10-15 | 努比亚技术有限公司 | A kind of image processing method and terminal |
-
2017
- 2017-11-30 CN CN201711243742.7A patent/CN108053438B/en active Active
-
2018
- 2018-11-20 WO PCT/CN2018/116474 patent/WO2019105260A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103763477A (en) * | 2014-02-21 | 2014-04-30 | 上海果壳电子有限公司 | Double-camera after-shooting focusing imaging device and method |
US20160019681A1 (en) * | 2014-07-17 | 2016-01-21 | Asustek Computer Inc. | Image processing method and electronic device using the same |
CN106851124A (en) * | 2017-03-09 | 2017-06-13 | 广东欧珀移动通信有限公司 | Image processing method, processing unit and electronic installation based on the depth of field |
CN108053438A (en) * | 2017-11-30 | 2018-05-18 | 广东欧珀移动通信有限公司 | Depth of field acquisition methods, device and equipment |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113936258A (en) * | 2021-10-15 | 2022-01-14 | 北京百度网讯科技有限公司 | Image processing method, image processing device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108053438B (en) | 2020-03-06 |
CN108053438A (en) | 2018-05-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102278776B1 (en) | Image processing method, apparatus, and apparatus | |
US10757312B2 (en) | Method for image-processing and mobile terminal using dual cameras | |
US10878539B2 (en) | Image-processing method, apparatus and device | |
WO2019105262A1 (en) | Background blur processing method, apparatus, and device | |
WO2019105260A1 (en) | Depth of field obtaining method, apparatus and device | |
EP3480784B1 (en) | Image processing method, and device | |
KR102306283B1 (en) | Image processing method and device | |
WO2019109805A1 (en) | Method and device for processing image | |
CN107481186B (en) | Image processing method, image processing device, computer-readable storage medium and computer equipment | |
WO2019105254A1 (en) | Background blur processing method, apparatus and device | |
WO2019105261A1 (en) | Background blurring method and apparatus, and device | |
JP6999802B2 (en) | Methods and equipment for double camera-based imaging | |
CN107704798B (en) | Image blurring method and device, computer readable storage medium and computer device | |
CN109685853B (en) | Image processing method, image processing device, electronic equipment and computer readable storage medium | |
CN107872631B (en) | Image shooting method and device based on double cameras and mobile terminal | |
WO2019019890A1 (en) | Image processing method, computer equipment, and computer-readable storage medium |
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: 18883333 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: 18883333 Country of ref document: EP Kind code of ref document: A1 |