A method for blurring the background of an image, a mobile terminal and a computer-readable storage medium
A technology of background blurring and mobile terminals, applied in the field of communication, can solve problems such as inconsistency in the background blurring effect of real-time preview images
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
no. 1 example
[0039] The first embodiment of the present invention discloses a method for blurring the background of an image. The image background blurring method can be applied to a mobile terminal configured with a single camera. like figure 1 As shown, it is a flow chart of the image background blurring method according to the first embodiment of the present invention. The method specifically includes the following processes:
[0040] Step 101: Acquire a first preview image.
[0041] The preview image may be a preview image in camera mode, or a preview image in camera mode.
[0042] Step 102: If there is a human body area in the first preview image, sequentially perform first encoding and first decoding processing on the first preview image, and output a first foreground feature plane and a first background feature plane.
[0043] Specifically, extract the features of the first preview image through the first encoding (Encoder) network, and then perform upsampling and decoding proce...
no. 2 example
[0060] The second embodiment of the present invention discloses a method for blurring the background of an image. The image background blurring method can be applied to a mobile terminal configured with a single camera. like figure 2 As shown, it is a flow chart of the image background blurring method according to the second embodiment of the present invention. The method specifically includes the following processes:
[0061] Step 201: Acquire a first preview image.
[0062] The preview image may be a preview image in camera mode, or a preview image in camera mode.
[0063] Step 202: If there is a human body area in the first preview image, obtain a first bounding box of the face area in the first preview image.
[0064] The face area can be identified through the face recognition method, so as to obtain the first bounding box of the face area in the first preview image. General, such as image 3 As shown in (a), the first bounding box is a rectangular box.
[0065] S...
no. 3 example
[0152] The third embodiment of the present invention discloses a mobile terminal, which can realize the details of the methods in the above embodiments and achieve the same effect. The mobile terminal is a mobile terminal configured with a single camera. like Figure 9 As shown, the mobile terminal 900 specifically includes the following structure:
[0153] The first obtaining module 901 is configured to obtain a first preview image.
[0154] The first output module 902 is configured to sequentially perform first encoding and first decoding processing on the first preview image if there is a human body area in the first preview image, and output a first foreground feature plane and a first background feature plane.
[0155] The first generation module 903 is configured to perform background blurring processing on the first preview image according to the first foreground feature plane and the first background feature plane to generate a second preview image.
[0156] The sec...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


