A method, device and mobile terminal for distinguishing foreground and background areas of images
A technology of foreground area and area, which is applied in the direction of image communication, color TV parts, TV system parts, etc., can solve the problem of being unable to distinguish front and back foreground areas, and achieve the effect of fast response and small amount of calculation
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0025] figure 1 It is a schematic flowchart of a method for distinguishing the foreground and foreground areas of an image provided in Embodiment 1 of the present invention. The method can be executed by a device for distinguishing the foreground and foreground areas of an image, wherein the device can be implemented by software and / or hardware, and can generally be integrated in a mobile in the terminal. Such as figure 1 As shown, the method includes:
[0026] Step 101, when it is detected that the event of distinguishing the foreground and foreground areas of the image is triggered, control the screen to perform supplementary light.
[0027] Exemplarily, the mobile terminal in this embodiment may specifically be a terminal device configured with a display screen, such as a mobile phone, a tablet computer, and a digital camera.
[0028] Exemplarily, detecting that the event of distinguishing the foreground and foreground areas of the image is triggered specifically refers ...
Embodiment 2
[0040] figure 2 It is a schematic flow chart of a method for distinguishing the foreground and foreground areas of an image provided by Embodiment 2 of the present invention. This embodiment is optimized on the basis of the above embodiments. In this embodiment, the step "according to the brightness of each region The high-low relationship to determine the foreground area and the background area" is optimized as follows: determine the brightness value of each area; sort the areas according to the high-low relationship of the brightness values of each area; determine the area with the highest brightness value as the foreground area, and determine the remaining areas for the background area.
[0041] Correspondingly, the method of this embodiment includes the following steps:
[0042] Step 201, when it is detected that the event of distinguishing the foreground and foreground areas of the image is triggered, control the screen to perform supplementary light.
[0043] Step 2...
Embodiment 3
[0055] image 3 It is a schematic flowchart of a method for distinguishing the foreground and foreground areas of an image provided by Embodiment 3 of the present invention. This embodiment is optimized on the basis of the above-mentioned embodiments. In this embodiment, a step is added at the end: making the background area Blur and generate a photo from the processed image.
[0056] Correspondingly, the method of this embodiment includes the following steps:
[0057] Step 301 , when it is detected that the event of distinguishing the foreground and foreground areas of the image is triggered, control the screen to perform supplementary light.
[0058] Step 302, controlling the camera to capture images during the process of screen fill light.
[0059] Step 303, acquire brightness data of the image, and divide the image into regions according to the brightness data.
[0060] Step 304, determine the brightness value of each region, and sort the regions according to the relati...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


