Real-Time Background Blur Preview Using Dual-Camera Depth Calculation
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current image capture technologies cannot preview background blurring effects in real time before taking a photo, as background blurring is typically achieved through post-processing after the image is captured.
Innovation Solution
A dual-camera terminal system that synchronously obtains preview images from different angles, calculates the depth of field for each pixel unit based on phase differences, determines the background area by identifying pixels beyond a specific depth range, and applies blurring processing using a preset coefficient to output a real-time preview image.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Loss of information
If background blurring is implemented by post-processing on a photographed image after photographing is completed, then the background blurring effect can be achieved, but the user cannot preview the background blurring effect with respect to a current scene before photographing is completed
Solution Approach 1:
The patent performs depth of field calculation and background area determination in advance during the preview phase, before the actual photographing is completed. By calculating the depth of field for each pixel unit and determining background areas beforehand, the system enables real-time preview of background blurring effects without sacrificing processing quality
Solution Approach 2:
The patent divides the image into multiple pixel units and calculates depth of field for each pixel unit separately based on phase differences from dual-camera images. This segmentation allows selective blurring of background areas while keeping foreground areas sharp, enabling realistic preview of the final blurring effect
2Ease of operation
If dual-camera module is used to obtain preview images from different angles, then real-time depth of field calculation is enabled, but the device complexity increases
Solution Approach 1:
The dual-camera module serves multiple functions: it captures images from different angles for depth perception, provides phase difference information for depth of field calculation, and enables both preview and final photographing functions. This multi-functionality justifies the increased device complexity by delivering comprehensive imaging capabilities
Solution Approach 2:
The patent uses the phase difference between dual-camera images as an intermediary to calculate depth of field for each pixel unit. This intermediary approach enables real-time depth perception and background blurring preview without requiring complex additional hardware, as the phase difference information from existing dual-camera setup is leveraged
Data Source
AI summary
An image preview method, apparatus, and terminal are disclosed to provide a technical solution in which a background blurring effect with respect to a current scene can be previewed in real time. A terminal device synchronously obtains preview images of a current scene from different angles in a dual-camera photographing preview mode by using a dual-camera module, calculates, in the preview images based on a phase difference generated by a distance and an angle of the dual-camera module, a depth of field of each pixel unit included in a preview image, obtains a foreground depth of field of a preset target area in the preview image, and determines, in the same preview image, an area including all pixel units having a depth of field beyond a range as a background area. The terminal device also performs blurring processing on the background area by using a preset blur coefficient, and outputs an image including the target area and a blurring-processed background area as a real-time preview image of the current scene.


