Image processing method and electronic device
A technology of image processing and electronic equipment, which is applied in the field of image processing, can solve problems such as poor experience, inaccurate focus adjustment, and inability to adjust the focus conveniently and freely, achieving the effect of convenient and free focus, convenient and free adjustment, and improving user experience
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0065] figure 1 It is a flow chart of the image processing method provided in Embodiment 1 of the present application.
[0066] refer to figure 1 As shown, the image processing method provided in the embodiment of the present application is applied to an electronic device with an image acquisition module, and the image acquisition module includes an imaging module and a focus adjustment unit. The image processing method provided in the embodiment of the application includes:
[0067] Step S11: Extracting a first image region corresponding to the first subject from the first preview image acquired by the image acquisition module.
[0068] In the embodiment of the present application, the first image area may be the focus area or other areas outside the focus area. The first preview image can be used to determine whether the focus needs to be adjusted. The first subject can be the person being photographed. At this time, the first image area can be the whole body of the person...
Embodiment 2
[0079] figure 2 It is a flow chart of the image processing method provided in Embodiment 2 of the present application.
[0080] refer to figure 2 As shown, the image processing method provided in the embodiment of the present application includes:
[0081] Step S21: Extracting a first image area corresponding to the first subject from the first preview image acquired by the image acquisition module.
[0082] Step S22: Generate a depth map corresponding to the first preview image, the pixels in the depth map correspond to the pixels in the first preview image one by one, and the depth map includes each pixel The depth information of the distance from the image acquisition module.
[0083] While generating the first preview image, a depth map corresponding to the first preview image is generated. The depth map and the first preview image are based on the same shooting environment, shooting scene and shooting progress, and are completely synchronized and corresponding to the...
Embodiment 3
[0090] image 3 It is a flow chart of the image processing method provided in Embodiment 3 of the present application.
[0091] refer to image 3 As shown, the image processing method provided in the embodiment of the present application includes:
[0092] Step S31: Extracting a first image area corresponding to the first subject from the first preview image acquired by the image acquisition module.
[0093] Step S32: acquiring depth information of each pixel in the first image area.
[0094] Step S33: Detect the change value of the depth information, and judge whether the change value meets the first preset condition.
[0095] Step S34: If the change value meets the first preset condition, when the change value is a positive change value, make the focus adjustment unit in the image acquisition module according to the change value of the preset depth information and The corresponding relationship of the focal length adjustment value, increasing the focal length of the imag...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 