| CPC G06T 5/92 (2024.01) [G06T 3/40 (2013.01); G06T 5/70 (2024.01); G06T 7/194 (2017.01); G06V 40/166 (2022.01); G06T 2207/30201 (2013.01)] | 20 Claims |

|
1. An image exposure adjustment method, comprising:
performing human body detection on a collected image;
in a case where a human body is detected, segmenting the image to determine a foreground region and a background region in the image;
determining a mask image according to the foreground region and the background region; and
determining an exposure weight table according to the mask image, and performing exposure value adjustment on the image according to the exposure weight table;
wherein determining the exposure weight table according to the mask image comprises:
scaling down or scaling up the mask image in equal proportion according to a data size of an image signal processor to obtain a new mask image;
in a case of scaling down the mask image in equal proportion, counting a number of first-type pixel points in each of pixel units in the new mask image, determining a number ratio of the number of first-type pixel points in each of the pixel units to a number of total pixel points in the each of the pixel units, and determining an exposure weight of each of the pixel units according to the number ratio, wherein each of the pixel units comprises at least two pixel points;
in a case of scaling up the mask image in equal proportion, determining an area of first-type pixel points in each of the pixel units in the new mask image, determining an area ratio of the area of first-type pixel points in each of the pixel units to an area of the each of the pixel units, and determining an exposure weight of each of the pixel units according to the area ratio; and
constructing the exposure weight table based on the exposure weight of each of the pixel units.
|