Method and device for image processing
AssigneeGuangdong Oppo Mobile Telecommunications Corp., Ltd.
InventorsDan OUYANG, Guohui Tan
Life of this patent
Estimating the term…
Abstract
A method for image processing includes the following actions. After n frames of first images shot by a main camera are acquired and an auxiliary image shot by an auxiliary camera is acquired, synthetic noise reduction is performed on the n frames of first images to obtain a frame of main image. Depth information of the main image is further calculated according to the main image and the auxiliary image. Therefore, blurring processing is performed on the main image according to the depth information of the main image to obtain a required second image.
Claims20
A method for image processing, comprising:
- acquiring n frames of first images by a main camera, and acquiring an auxiliary image by an auxiliary camera, wherein n is a natural number more than or equal to 2, the n frames of first images comprise a frame of basic frame image and the auxiliary image shot by the auxiliary camera and the basic frame image shot by the main camera are synchronously shot;
- performing synthetic noise reduction on the n frames of first images to obtain a frame of main image;
- calculating depth information of the main image according to the main image and the auxiliary image;
- and
- performing blurring processing on the main image according to the depth information of the main image to obtain a required second image.
A device for image processing, comprising a processor and a memory storing instructions;
- the instructions, when executed by the processor, causing the processor to perform a method for image processing;
- the method comprising:
- acquiring n frames of first images by a main camera, and acquiring an auxiliary image by an auxiliary camera, wherein n is a natural number more than or equal to 2, the n frames of first images comprise a frame of basic frame image and the auxiliary image shot by the auxiliary camera and the basic frame image shot by the main camera are synchronously shot;
- performing synthetic noise reduction on the n frames of first images to obtain a frame of main image;
- calculating depth information of the main image according to the main image and the auxiliary image;
- and
- performing blurring processing on the main image according to the depth information of the main image to obtain a required second image.
A non-transitory computer-readable storage medium, on which a computer program is stored, wherein the computer program is executed by a computer to implement a method for image processing;
- the method comprising:
- acquiring n frames of first images by a main camera, and acquiring an auxiliary image by an auxiliary camera, wherein n is a natural number more than or equal to 2, the n frames of first images comprise a frame of basic frame image and the auxiliary image shot by the auxiliary camera and the basic frame image shot by the main camera are synchronously shot;
- performing synthetic noise reduction on the n frames of first images to obtain a frame of main image;
- calculating depth information of the main image according to the main image and the auxiliary image;
- and
- performing blurring processing on the main image according to the depth information of the main image to obtain a required second image.
Dependencies are inferred from the claim text.