Image processing method and device, electronic equipment and storage medium

By acquiring preview images in the camera device and judging the light transmission phenomenon, the image brightness of the photosensitive element is reduced or the exposure parameters are adjusted, thus solving the impact of light transmission phenomenon on image quality and achieving better imaging results.

CN116261048BActive Publication Date: 2026-07-10BEIJING XIAOMI MOBILE SOFTWARE CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING XIAOMI MOBILE SOFTWARE CO LTD
Filing Date
2021-12-09
Publication Date
2026-07-10

AI Technical Summary

Technical Problem

In existing technologies, the impact of light transmission on the imaging effect of camera devices has not been effectively avoided, resulting in a decrease in image quality.

Method used

By acquiring a preview image of the camera device, it is determined whether the subject is subject to light transmission. If light transmission is detected, the image brightness value of the photosensitive element is reduced or the exposure parameters are adjusted to avoid the effect of light transmission on the imaging effect.

Benefits of technology

This effectively avoids the negative impact of light transmission on imaging effects and improves the imaging quality of the camera device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116261048B_ABST
    Figure CN116261048B_ABST
Patent Text Reader

Abstract

The present disclosure provides an image processing method and device, electronic equipment and storage medium. The method comprises: acquiring a preview image captured by a camera; determining whether a light transmission phenomenon occurs in a shooting object in a scene based on the preview image; and reducing an image brightness value of an original output image of a photosensitive element in the camera if the light transmission phenomenon occurs in the shooting object. Through the present disclosure, the influence of the light transmission phenomenon of the shooting object on the imaging effect can be effectively avoided during the imaging process of the camera, thereby effectively improving the imaging effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of electronic equipment technology, and in particular to an image processing method, apparatus, electronic device and storage medium. Background Technology

[0002] When light strikes the surface of a transparent or translucent material, some of it is reflected, some is absorbed, and some can pass through. This phenomenon is called light transmission. In the process of imaging with a camera device, there may be serious problems with light transmission.

[0003] In related technologies, based on the bracketing exposure angle, the camera device is controlled to output two frames of exposure data, one long exposure and one short exposure. Then, they are synthesized by hardware or algorithms into a single frame of exposure data to solve the light transmission problem.

[0004] This approach is not very effective in solving the light transmission problem, has limited application scenarios, and cannot effectively avoid the impact of light transmission phenomena caused by the subject on the imaging effect. Summary of the Invention

[0005] This disclosure aims to at least partially address one of the technical problems in the related art.

[0006] Therefore, the purpose of this disclosure is to provide an image processing method, apparatus, electronic device, storage medium, and computer program product that can effectively avoid the influence of light transmission phenomena caused by the subject on the imaging effect during the imaging process of a camera device, thereby effectively improving the imaging effect.

[0007] The image processing method proposed in the first aspect of this disclosure includes: acquiring a preview image captured by a camera device; determining, based on the preview image, whether a subject in the scene exhibits light transmission; and if the subject exhibits light transmission, reducing the image brightness value of the original output image of the photosensitive element in the camera device.

[0008] The image processing method proposed in the first aspect of this disclosure acquires a preview image captured by a camera device, and based on the preview image, determines whether the object in the scene exhibits light transmission. If the object exhibits light transmission, the brightness value of the original output image of the photosensitive element in the camera device is reduced. Since the brightness value of the original output image of the photosensitive element in the camera device is reduced during the imaging process, the object in the image is prevented from being overexposed, thereby effectively avoiding the impact of light transmission on the imaging effect and thus effectively improving the imaging effect.

[0009] The image processing apparatus according to the second aspect of this disclosure includes: an acquisition module for acquiring a preview image captured by a camera device; a judgment module for judging whether a shooting object in the scene produces light transmission phenomenon based on the preview image; and a first processing module for reducing the image brightness value of the original output image of the photosensitive element in the camera device when the shooting object produces light transmission phenomenon.

[0010] The image processing apparatus proposed in the second aspect of this disclosure acquires a preview image captured by a camera device, and determines whether the object in the scene is subject to light transmission based on the preview image. If the object is subject to light transmission, the brightness value of the original output image of the photosensitive element in the camera device is reduced. Since the brightness value of the original output image of the photosensitive element in the camera device is reduced during the imaging process, the object in the image is avoided from being overexposed, thereby effectively avoiding the impact of the light transmission phenomenon on the imaging effect and thus effectively improving the imaging effect.

[0011] According to a third aspect of this disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform an image processing method according to an embodiment of the first aspect of this disclosure.

[0012] According to a fourth aspect of this disclosure, a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform an image processing method according to an embodiment of the first aspect of this disclosure is provided.

[0013] According to a fifth aspect of this disclosure, a computer program product is provided, including a computer program that, when executed by a processor, implements the image processing method of the first aspect of this disclosure.

[0014] Additional aspects and advantages of this disclosure will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this disclosure. Attached Figure Description

[0015] The above and / or additional aspects and advantages of this disclosure will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, in which:

[0016] Figure 1 This is a schematic flowchart of an image processing method proposed in an embodiment of the present disclosure;

[0017] Figure 2 This is a schematic flowchart of an image processing method proposed in another embodiment of this disclosure;

[0018] Figure 3 This is a schematic flowchart of an image processing method proposed in another embodiment of this disclosure;

[0019] Figure 4 This is a schematic flowchart of an image processing method proposed in another embodiment of this disclosure;

[0020] Figure 5 This is a schematic flowchart of an image processing method proposed in another embodiment of this disclosure;

[0021] Figure 6 This is a schematic flowchart of an image processing method proposed in another embodiment of this disclosure;

[0022] Figure 7 This is a schematic diagram of the structure of an image processing apparatus according to an embodiment of the present disclosure;

[0023] Figure 8 This is a schematic diagram of the structure of an image processing apparatus according to another embodiment of the present disclosure;

[0024] Figure 9 A block diagram of an exemplary electronic device suitable for implementing embodiments of the present disclosure is shown. Detailed Implementation

[0025] Embodiments of this disclosure are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are used only to explain this disclosure, and should not be construed as limiting this disclosure. Rather, embodiments of this disclosure include all variations, modifications, and equivalents falling within the spirit and scope of the appended claims.

[0026] Figure 1 This is a schematic flowchart of an image processing method proposed in an embodiment of the present disclosure.

[0027] It should be noted that the execution subject of the image processing method in this embodiment is an image processing device, which can be implemented by software and / or hardware. The device can be configured in an electronic device, such as a mobile phone, wearable device, television, portable computer or other terminal with camera function, and there is no limitation thereto.

[0028] The camera device includes a photosensitive element, which can be understood as an image sensor capable of sensing light. The photosensitive element is used to assist the camera device in imaging. The camera device can be, for example, an under-display camera device under a display screen, or a camera module with image capture or video recording functions included in an electronic device, etc., without limitation.

[0029] like Figure 1 As shown, the image processing method includes:

[0030] S101: Acquire a preview image captured by the camera device.

[0031] It should be noted that the preview images of the subjects captured in the embodiments of this disclosure are all captured after authorization by the relevant users, and the process complies with the provisions of relevant laws and regulations and does not violate public order and good morals.

[0032] The person or object photographed by the camera device can be referred to as the subject of the photograph. The subject of the photograph can be a specified person or object with the same characteristics, such as a human face, or a car, wheel, etc. There are no restrictions on this. The image containing the subject of the photograph captured by the camera device before the image is captured can be referred to as a preview image. A partial image containing the subject of the photograph can be extracted from the preview image. There are no restrictions on this.

[0033] In this embodiment of the disclosure, a preview image captured by a camera device is obtained. The camera device may be a collection of one or more camera modules. Different camera modules may use one or more photosensitive elements of the same or different types. The photosensitive elements can sense the light in the scene where the subject is located and perform exposure to assist the camera device in capturing a preview image of the subject.

[0034] In this embodiment of the disclosure, capturing a preview image of the subject can be done by capturing an instantaneous image of the scene in which the subject is located and generating image data, or by capturing images of the scene in which the subject is located over a period of time and generating video data, extracting data frames at time points from the video data, or by capturing images of the scene in which the subject is located over a period of time according to an algorithm, and using the algorithm to integrate the images over a period of time into one or more image data. There are no restrictions on this.

[0035] In this embodiment of the disclosure, the central processing unit in the electronic device can acquire the preview image captured by the camera device, and then analyze the preview image to determine whether the subject being photographed exhibits light transmission phenomenon, as detailed in subsequent embodiments.

[0036] S102: Based on the preview image, determine whether the subject in the scene exhibits light transmission.

[0037] When light strikes the surface of a transparent or translucent material, part of it is reflected, part is absorbed, and part can pass through. The phenomenon that light waves deviate from the geometric optical propagation law when they encounter transparent or translucent materials can be called light transmission.

[0038] The light transmission phenomenon in this embodiment can refer to the phenomenon of excessive brightness in local areas when light passes through the object being photographed and is imaged onto the camera device, and passes through transparent or translucent materials.

[0039] In this embodiment, the display screen corresponding to the under-display camera device, the protective material of the camera device (such as a protective case), or the lens of the camera device can all be transparent or semi-transparent materials. Therefore, when the camera device captures a preview image of the subject, the subject may exhibit light transmission, which can lead to poor imaging results. Thus, when acquiring the preview image captured by the camera device, this embodiment can trigger a determination based on the preview image to determine whether the subject in the preview image exhibits light transmission. When light transmission is detected, corresponding compensation measures can be taken in a timely manner. Furthermore, since the detection is based on whether the subject exhibits light transmission, it is not limited by the shooting scene and can be applied to various shooting scenarios, thus exhibiting good applicability.

[0040] In this embodiment of the disclosure, the imaging effect of the preview image can be combined with image recognition to determine whether the subject has light transmission phenomenon. Alternatively, the image features of the preview image (e.g., the exposure characteristics of the normal image and the exposure characteristics of the image with light transmission phenomenon) can be used to determine whether light transmission phenomenon has occurred. There are no limitations on this.

[0041] S103: If light transmission occurs in the subject being photographed, the image brightness value of the original output image of the photosensitive element in the camera device is reduced.

[0042] The image output by the photosensitive element when sensing ambient light to assist the camera device in imaging can be referred to as the raw output image.

[0043] In this embodiment of the present disclosure, when the subject of the photograph exhibits light transmission, the image brightness value of the original output image of the photosensitive element in the camera device can be reduced to avoid the original output image being too bright or the subject in the image being incomplete.

[0044] In this embodiment of the present disclosure, reducing the image brightness value of the original output image of the photosensitive element can be achieved by, during the shooting process, when it is determined that light transmission occurs in the subject being photographed, changing the exposure time and exposure compensation value of the imaging device according to the degree of light transmission, thereby reducing the image brightness value of the original output image of the photosensitive element; alternatively, it can be achieved by using digital image processing methods to reduce the image brightness value of the original output image of the photosensitive element according to the characteristics of the original output image after imaging is completed; or any other possible method can be used to reduce the image brightness value of the original output image of the photosensitive element, without limitation.

[0045] In this embodiment, by acquiring a preview image captured by the camera device, it is determined whether the subject in the scene exhibits light transmission. If the subject exhibits light transmission, the brightness value of the original output image of the photosensitive element in the camera device is reduced. Since the brightness value of the output image of the photosensitive element is reduced during the imaging process of the camera device, the subject in the image is not overexposed, thus effectively avoiding the impact of light transmission on the imaging effect and thus effectively improving the imaging effect.

[0046] Figure 2 This is a schematic flowchart of an image processing method proposed in another embodiment of this disclosure.

[0047] like Figure 2 As shown, the image processing method includes:

[0048] S201: Acquire a preview image captured by the camera device.

[0049] For a detailed description of S201, please refer to the above embodiments, which will not be repeated here.

[0050] S202: Determine the exposure information of the subjects in the scene based on the preview image.

[0051] Information related to exposure when photographing a subject can be called exposure information, which can include the amount of exposure, exposure time, exposure compensation, and other information related to the subject.

[0052] In this embodiment of the disclosure, the subject is photographed in different scenarios, so that the subject can have the same or different exposure information. Camera devices with different specifications and parameters can also correspond to the same or different exposure information. Different exposure information can cause light transmission phenomena of different degrees. Therefore, the exposure information of the subject in the scene can be determined, and the exposure information can be used to help determine whether the subject produces light transmission phenomena.

[0053] In this embodiment of the disclosure, the exposure information of the subject in the scene is determined based on the preview image. This can be done by determining the exposure information based on information such as brightness information in the preview image, or by recording information such as exposure time and sensitivity set by the camera device during the shooting process as the exposure information, or by using any other possible implementation method to determine the exposure information, without any limitation.

[0054] S203: Based on the exposure information, determine whether the subject exhibits light transmission.

[0055] In this embodiment of the disclosure, determining whether the subject exhibits light transmission based on exposure information can be achieved by using a pre-trained judgment model, inputting the exposure information into the judgment model to determine whether the subject exhibits light transmission, setting a threshold for the corresponding data in the exposure information, and determining whether the subject exhibits light transmission based on whether the corresponding data in the exposure information exceeds the threshold, or by using image recognition technology to identify the preview image corresponding to the exposure information and determining whether the subject exhibits light transmission based on the features of the preview image. There are no limitations on this method.

[0056] S204: If light transmission occurs in the subject being photographed, reduce the image brightness value of the original output image from the photosensitive element in the camera device.

[0057] For a detailed description of S204, please refer to the above embodiments, which will not be repeated here.

[0058] In this embodiment, by acquiring a preview image captured by the camera device, the exposure information of the subject in the scene is determined based on the preview image. Based on the exposure information, it is determined whether the subject exhibits light transmission. If light transmission is observed, the brightness value of the original output image from the photosensitive element in the camera device is reduced. Since reducing the brightness value of the output image from the photosensitive element during the imaging process avoids overexposure of the subject, it effectively prevents the impact of light transmission on the imaging effect, thereby significantly improving the imaging quality. Because the determination of light transmission based on exposure information effectively improves the detection accuracy of light transmission phenomena.

[0059] Figure 3 This is a schematic flowchart of an image processing method proposed in another embodiment of this disclosure.

[0060] like Figure 3 As shown, the image processing method includes:

[0061] S301: Acquire a preview image captured by the camera device.

[0062] S302: Based on the preview image, determine whether the subject in the scene exhibits light transmission.

[0063] For a detailed description of S301-S302, please refer to the above embodiments, which will not be repeated here.

[0064] S303: If light transmission occurs in the subject being photographed, the image brightness value of the original output image of the image sensor in the camera device is reduced.

[0065] In this embodiment of the disclosure, the image brightness value of the original output image of the photosensitive element can be reduced by decreasing the exposure time of the photosensitive element.

[0066] In this embodiment of the disclosure, when reducing the exposure time of the photosensitive element, the light information received by the photosensitive element can be determined, and an exposure algorithm can be used to calculate the appropriate exposure time. Alternatively, the light information of the scene where the subject is located can be detected in advance (such as light intensity, light duration, etc.), and the corresponding exposure time can be determined based on the light information of the scene where the subject is located, combined with artificial intelligence and image processing. Alternatively, any other possible method can be used to reduce the exposure time of the photosensitive element, and there are no restrictions on this.

[0067] Optionally, in reducing the exposure time of the photosensitive element in this embodiment of the present disclosure, the initial exposure time of the photosensitive element may be determined, and based on the light transmission phenomenon, first transmitted light information may be determined. A target exposure time corresponding to the first transmitted light information may be determined. If the target exposure time is less than the initial exposure time, the initial exposure time of the photosensitive element may be adjusted to the target exposure time. The photosensitive element may then be controlled to perform photosensitive imaging of the subject based on the target exposure time. Since the initial exposure time is adjusted in conjunction with the first transmitted light information related to the light transmission phenomenon, the transmitted light information most suitable for the light transmission phenomenon can be determined. The target exposure time is then determined in conjunction with this transmitted light information, thereby effectively improving the accuracy of the target exposure time determination. This allows the determination of the target exposure time to effectively adapt to actual light transmission conditions and also supports adaptive adjustments to the exposure time for different shooting scenarios, effectively meeting the needs of different shooting scenarios.

[0068] The preset exposure time of the photosensitive element can be called the initial exposure time. The initial exposure time can be the exposure time corresponding to the photosensitive element under ideal conditions, or it can be a fixed exposure time set for the photosensitive element in response to manual configuration instructions. There is no restriction on this.

[0069] The light information received by the photosensitive element and transmitted through a transparent or semi-transparent material can be referred to as the first transmitted light information. The first transmitted light information can be the light from the scene where the subject is located, which is transmitted and reaches the light information generated by the photosensitive element, or it can be the light information received by the photosensitive element that includes the exposure time. There is no limitation on this.

[0070] The exposure time of the photosensitive element determined based on the first transmitted light information can be called the target exposure time. The target exposure time can be less than the initial exposure time. This target exposure time can be used to describe the exposure time that best matches the first transmitted light information in the light transmission phenomenon. This best-matched exposure time can be obtained in advance through light experiment calibration. When the photosensitive element is controlled to perform photosensitive imaging on the subject based on the target exposure time, the imaging effect can be avoided from being affected by the light transmission phenomenon, and a better imaging effect can be achieved without limitation.

[0071] In this embodiment of the present disclosure, the first transmitted light information can be determined based on the light information of the scene where the subject is located, and then the target exposure time adapted to the photosensitive element in the scene where the first transmitted light information is located can be determined. The initial exposure time of the photosensitive element is adjusted to the target exposure time corresponding to the scene where the subject is located, and the photosensitive element is controlled to perform photosensitive imaging of the subject based on the target exposure time. Thus, by shortening the exposure time, the image brightness value of the image output by the photosensitive element under the light transmission phenomenon can be effectively reduced, and the incomplete or blurry subject in the image obtained is avoided.

[0072] S304: Determine the brightness compensation value for the original output image.

[0073] In this embodiment of the disclosure, after reducing the exposure time of the photosensitive element and controlling the photosensitive element to output an image based on the reduced exposure time, the original output image can be adaptively compensated for brightness. The value of the brightness compensation can be referred to as the brightness compensation value.

[0074] In this embodiment of the disclosure, the brightness compensation value for the image can be determined based on data such as the exposure difference between the target exposure time and the initial exposure time and the influence value on the image brightness. Alternatively, a standard value for brightness compensation can be set, and the brightness compensation value can be generated based on the difference between the brightness value of the original output image after reducing the image brightness value and the standard value. Alternatively, any other possible method can be used to determine the brightness compensation value for the original output image, and there are no restrictions on this.

[0075] For example, in determining the brightness compensation value for the original output image, the embodiments of this disclosure may also set a corresponding brightness compensation value algorithm, or build an artificial intelligence training model, generate a brightness compensation model after training, and determine the brightness compensation value based on the output value of the model, without any limitation.

[0076] S305: Based on the brightness compensation value, perform image brightness compensation processing on the original output image to obtain the target image.

[0077] In this embodiment of the present disclosure, when compensating the image brightness value of the original output image according to the brightness compensation value, a certain brightness threshold can be set. During the compensation process, when there is an area in the original output image with a brightness value lower than the brightness threshold, the brightness value of that area is compensated. Alternatively, the brightness value of the entire original output image can be uniformly compensated, and there are no restrictions on this.

[0078] In this embodiment, if light transmission occurs during the imaging process of the camera device, the brightness value of the image output by the photosensitive element is reduced to avoid overexposure of the subject in the image. This effectively avoids the impact of light transmission on the imaging effect, thereby significantly improving the imaging quality. By acquiring a preview image captured by the camera device, it is determined whether light transmission occurs in the scene. If light transmission occurs, the brightness value of the original output image of the photosensitive element in the camera device is reduced, and a brightness compensation value is determined for the original output image. Based on the brightness compensation value, the brightness value of the original output image is compensated to obtain the target image. By shortening the exposure time, the brightness value of the image output by the photosensitive element under light transmission conditions can be effectively reduced, preventing incomplete or blurry images of the subject. Because a brightness compensation value is set and the brightness value of the original output image is compensated based on the brightness compensation value, the image after brightness reduction can achieve the required brightness for shooting, effectively improving the imaging effect of the target image.

[0079] Figure 4 This is a schematic flowchart of an image processing method proposed in another embodiment of this disclosure.

[0080] like Figure 4 As shown, the image processing method includes:

[0081] S401: Acquire a preview image captured by the camera device.

[0082] S402: Based on the preview image, determine whether the subject in the scene exhibits light transmission.

[0083] For a detailed description of S401-S402, please refer to the above embodiments, which will not be repeated here.

[0084] S403: If light transmission occurs in the subject being photographed, the exposure compensation value of the image sensor is reduced, and the image sensor outputs an image based on the reduced exposure compensation value.

[0085] In this embodiment of the invention, when light transmission occurs in the subject being photographed, the image brightness value of the image output by the photosensitive element can be reduced by lowering the exposure compensation value of the photosensitive element, without limitation.

[0086] For example, scene light information can be collected through a photosensitive element, and the exposure compensation value corresponding to the light transmission phenomenon can be determined using relevant algorithms. Alternatively, the brightness of the light transmission phenomenon can be collected, and the relevant brightness can be processed using artificial intelligence models or image processing methods to determine the exposure compensation value corresponding to the light transmission phenomenon. There are no restrictions on this.

[0087] Optionally, in reducing the exposure compensation value of the photosensitive element in this embodiment of the present disclosure, an initial exposure compensation value of the photosensitive element may be determined. Based on the light transmission phenomenon, second transmitted light information is determined, and a target exposure compensation value corresponding to the second transmitted light information is determined. If the target exposure compensation value is less than the initial exposure compensation value, the initial exposure compensation value of the photosensitive element is adjusted to the target exposure compensation value. The photosensitive element is controlled to compensate the current exposure based on the target exposure compensation value, and the subject is imaged based on the compensated exposure. Since the initial exposure compensation value is adjusted in conjunction with the second transmitted light information related to the light transmission phenomenon, the target exposure compensation value that best matches the light transmission phenomenon can be determined. The current exposure is then compensated based on this target exposure compensation value, thereby effectively improving the accuracy of the target exposure compensation value determination. This allows the determination of the target exposure compensation value to effectively adapt to the actual light transmission situation and also supports adaptive adjustments to the exposure compensation value for different shooting scenarios, effectively meeting the needs of different shooting scenarios.

[0088] The exposure compensation value of the preview image of the subject that is preset can be called the initial exposure compensation value. The initial exposure compensation value can be the exposure compensation value corresponding to the photosensitive element under ideal conditions, or it can be a fixed exposure compensation value preset in response to the user setting command. There is no restriction on this.

[0089] The light information received by the photosensitive element and transmitted through a transparent or semi-transparent material can be referred to as the second transmitted light information. The second transmitted light information can be the light from the scene where the subject is located that is transmitted and reaches the light generated by the photosensitive element, or it can be the light information received by the photosensitive element that includes the exposure compensation value. There is no limitation on this.

[0090] The exposure compensation value of the photosensitive element determined based on the second transmitted light information can be called the target exposure compensation value. The target exposure compensation value can be less than the initial exposure compensation value. This target exposure compensation value can be used to describe the exposure compensation value that best matches the second transmitted light information in the light transmission phenomenon. This best-matching exposure compensation value can be obtained in advance through optical experiments. When the photosensitive element outputs an image based on the reduced exposure compensation value, the imaging effect can be prevented from being affected by the light transmission phenomenon, achieving a better imaging effect. No restrictions are imposed on this.

[0091] In this embodiment of the present disclosure, the target exposure compensation value is determined by the second transmitted light information, and then the photosensitive element is controlled to compensate the current exposure based on the target exposure compensation value. The subject is then photographed and imaged based on the compensated exposure, and then subsequent steps are triggered.

[0092] S404: Determine the brightness compensation value for the original output image.

[0093] S405: Based on the brightness compensation value, perform image brightness compensation processing on the original output image to obtain the target image.

[0094] For details on S404-S405, please refer to the above embodiments, and they will not be repeated here.

[0095] In this embodiment, if light transmission occurs during the imaging process of the camera device, the image brightness value of the output image from the photosensitive element is reduced to avoid overexposure of the subject in the image. This effectively prevents the light transmission phenomenon from affecting the imaging effect, thereby significantly improving the imaging quality. Since the image brightness value of the output image from the photosensitive element is reduced by lowering the exposure compensation value when light transmission occurs, and the photosensitive element outputs an image based on the reduced exposure compensation value, the method for reducing the image brightness value of the output image from the photosensitive element can be more flexible, supporting applications in various shooting scenarios and improving the flexibility and applicability of the image processing method. Because a brightness compensation value is set and the image brightness value of the original output image is compensated based on the brightness compensation value, the image after brightness reduction can achieve the required brightness for shooting, effectively improving the imaging effect of the target image.

[0096] Figure 5 This is a schematic flowchart of an image processing method proposed in another embodiment of this disclosure.

[0097] like Figure 5 As shown, the image processing method includes:

[0098] S501: Acquire a preview image captured by the camera device.

[0099] For a detailed description of S501, please refer to the above embodiments, which will not be repeated here.

[0100] S502: Determine the initial border area corresponding to the subject in the preview image.

[0101] The area used to describe the features of the subject being photographed can be called the initial border area. The initial border area can be a fixed-shape area, such as a rectangle, triangle or other shapes, or it can be an irregular area that matches the feature contour of the subject being photographed. There are no restrictions on this.

[0102] For example, the initial border area can be set to a rectangle. When the subject is detected as a face, the facial features and other important characteristics are identified to form the initial border area. Alternatively, the initial border area can be set to an irregular shape. When a face is detected, the outline of the face is used as the initial border area.

[0103] In this embodiment of the disclosure, a hardware device with image recognition function can be used to identify the initial border region corresponding to the subject being photographed. Alternatively, an image recognition algorithm or machine vision algorithm can be used to detect the initial border region corresponding to the subject being photographed in the image. Or, an image recognition model trained with artificial intelligence can be used. There are no limitations on this.

[0104] For example, when the subject being photographed is a face, the initial bounding box region corresponding to the face can be obtained using a face detection camera or a face detection (FD) algorithm.

[0105] S503: Expand the initial border area to obtain the target border area, wherein the target border area includes multiple region pixels, and the multiple region pixels correspond to multiple exposure information.

[0106] The border area after the initial border area has been expanded can be called the target border area. The target border area can be an expansion of the initial border area in terms of margin, or it can be an irregular expansion of the initial border area based on the subject being photographed. There are no restrictions on this.

[0107] For example, in a scene where a face is being photographed, if the initial border area is the facial features, an appropriate margin can be added. The margin is then added to the initial border area that includes the facial features to include the entire face, and the resulting new rectangle becomes the target border area. When the initial border area is an irregular shape, the margin setting can also be changed according to the characteristics of the face shape.

[0108] Among them, the multiple pixels to be detected distributed in the target bounding area can be referred to as multiple region pixels, and each of the multiple region pixels has a corresponding multiple exposure information.

[0109] The automatic exposure value preset by the image signal processor for the pixels in a region can be called exposure information. The automatic exposure value can be a numerical value representing the degree of exposure. The exposure information can be a number. The larger the number, the higher the brightness of the corresponding pixel in the region. Alternatively, it can be a number, text, letter, or one or more combinations thereof representing the degree of exposure, without any restrictions.

[0110] For example, you can set the automatic exposure value in the exposure information to "+2, +1, 0, -1, -2", or you can use "high exposure, low exposure" to represent the exposure information.

[0111] In this embodiment of the disclosure, the expansion processing of the initial border area can be performed by setting a fixed increase in the margin to obtain the target border area. Alternatively, an irregularly increased margin can be obtained through image recognition algorithms or machine vision methods to obtain the target border area. Or, any method that can measure the outline of the photographed object can be used to obtain the target border area. There are no restrictions on this.

[0112] In this embodiment of the disclosure, the target border area contains multiple region pixels. Multiple different region pixels can be automatically selected in the target border area, or multiple region pixels can be set at fixed points in the target border area. There is no limitation on this.

[0113] In this embodiment of the disclosure, the number of region pixels can be a fixed number, or the number of region pixels can be adjusted according to the size of the target border region. The distribution of region pixels in the target border region can be an even distribution, or the shooting object in the target border region can be detected, and multiple region pixels can be distributed according to the characteristics of the shooting object. There is no limitation on this.

[0114] For example, in a face-capturing scenario, if the target border area is a rectangular area, then five fixed pixel points can be set in the face area. The positions of these points can be set at fixed locations within the rectangle, and can change proportionally as the rectangle expands or shrinks.

[0115] S504: Count the number of pixels in the region where an auto exposure value greater than the exposure threshold is among multiple auto exposure values.

[0116] The critical value used to represent the brightness level of the automatic exposure value of an image can be called the exposure threshold. This exposure threshold can be a manually set critical value representing the brightness of the image. When the automatic exposure value is greater than the exposure threshold, it can indicate that the brightness of the corresponding pixel is too high, and there is no restriction on this.

[0117] In this embodiment of the disclosure, an exposure threshold can be preset, and the size of the exposure threshold can change with different scenes. Alternatively, an algorithm can be set to determine the size of the exposure threshold according to changes in the scene (such as different light intensity, color tone, etc.), and the exposure threshold can be adaptively adjusted by the algorithm. Alternatively, an artificial intelligence model can be trained to determine the exposure threshold. There are no restrictions on this.

[0118] In this embodiment of the disclosure, the number of pixels in the region to which the automatic exposure value is greater than the exposure threshold among multiple automatic exposure values ​​is counted. The target border region can be treated as a whole region, and the number of pixels in the region where the automatic exposure value is greater than the exposure threshold is counted. Alternatively, the target border region can be divided into multiple sub-regions according to the characteristics of the scene, and the number of pixels in the sub-regions where the automatic exposure value is greater than the exposure threshold is counted in each sub-region. There is no limitation on this.

[0119] S505: Determine whether the subject exhibits light transmission based on the quantity.

[0120] In this embodiment of the disclosure, the presence or absence of light transmission in the subject can be determined based on the number of pixels in the region where the automatic exposure value exceeds the exposure threshold. This determination can be achieved by setting a quantity threshold and determining whether the number exceeds the threshold, or by comparing the number of pixels in the region exceeding a certain exposure threshold with the total number of pixels in all regions, and determining whether the subject exhibits light transmission according to a certain ratio. Alternatively, multiple automatic exposure values ​​corresponding to pixels in multiple regions can be statistically analyzed using charts or tables, and mathematical statistical methods such as median or average can be used to determine whether the subject exhibits light transmission. No limitation is imposed on this method.

[0121] Optionally, in this embodiment of the present disclosure, if the number is greater than the number threshold, it is determined that the object being photographed has produced light transmission phenomenon; if the number is less than or equal to the number threshold, it is determined that the object being photographed has not produced light transmission phenomenon. Since the number threshold is used to determine whether the object being photographed has produced light transmission phenomenon, the accuracy of the result of determining the light transmission phenomenon can be improved, and the objectivity of the camera device in recognizing the light transmission phenomenon can be enhanced.

[0122] In this embodiment of the disclosure, when the number is greater than the number threshold, it means that the brightness of the target border area is too high, and it is determined that the image of the subject has produced light transmission phenomenon. When the number is less than or equal to the number threshold, it means that the brightness of the target border area is suitable, and it is determined that the image of the subject has not produced light transmission phenomenon.

[0123] S506: If light transmission occurs in the subject being photographed, the image brightness value of the image output by the image sensor is reduced.

[0124] S507: Determine the brightness compensation value for the original output image.

[0125] S508: Based on the brightness compensation value, perform image brightness compensation processing on the original output image to obtain the target image.

[0126] The descriptions of S506-S508 can be found in the above embodiments, and will not be repeated here.

[0127] In this embodiment, by acquiring a preview image captured by a camera device, an initial border region corresponding to the subject in the preview image is determined. The initial border region is then expanded to obtain a target border region. The target border region includes multiple region pixels, each corresponding to multiple exposure information. The number of region pixels belonging to automatic exposure values ​​greater than the exposure threshold is counted. Based on this number, it is determined whether the subject exhibits light transmission. If light transmission occurs, the image brightness value of the image output by the photosensitive element is reduced, and a brightness compensation value for the original output image is determined. Based on this brightness compensation value, the image brightness value of the original output image is compensated to obtain the target image. Since the multiple exposure information corresponding to multiple region pixels is determined based on the target border region, the objectivity of determining the exposure information of the target pixel region is improved, and the accuracy of the multiple exposure information in representing the exposure status of the target border region is enhanced. Since the determination of whether the subject exhibits light transmission is based on the number of region pixels belonging to automatic exposure values ​​greater than the exposure threshold, the objectivity and authenticity of the judgment basis are effectively improved, resulting in a more accurate judgment result.

[0128] In summary, when the scene involves a person's face with lighting behind them, the imaging device can achieve the following: Figure 6 As shown, Figure 6 This is a flowchart illustrating an image processing method proposed in another embodiment of this disclosure. The method detects whether the image or data frame captured by the camera device contains facial information. If not, the process ends. If it does, the initial border region where the face is located is obtained, and the exposure information of each pixel in the initial border region is obtained. Then, expansion processing is performed on the initial border region to obtain the target border region. The exposure information of each pixel in the target border region is counted, and the number of pixels in the region with an exposure threshold greater than a certain threshold is determined. If the counted number of pixels is greater than or equal to a certain threshold, it is determined that the light has not penetrated the face, and the process ends. If it is greater, it is determined that the light has penetrated the face, i.e., light transmission occurs. Afterwards, the initial exposure time or initial exposure value of the photosensitive element can be reduced to capture an image, and then brightness compensation can be performed on the image to reduce the impact of light transmission on the final image.

[0129] Figure 7This is a schematic diagram of the structure of an image processing apparatus according to an embodiment of the present disclosure.

[0130] like Figure 7 As shown, the image processing apparatus 70 includes:

[0131] The acquisition module 701 is used to acquire the preview image captured by the camera device;

[0132] The judgment module 702 is used to determine whether the shooting object in the scene produces light transmission phenomenon based on the preview image;

[0133] The first processing module 703 is used to reduce the image brightness value of the image output by the photosensitive element in the camera device when the object being photographed produces light transmission phenomenon.

[0134] In some embodiments of this disclosure, such as Figure 8 As shown, Figure 8 This is a schematic diagram of the structure of an image processing apparatus according to another embodiment of the present disclosure. The determination module 702 is specifically used for:

[0135] Based on the preview image, determine the exposure information of the subjects in the scene;

[0136] Based on the exposure information, determine whether the subject exhibits light transmission.

[0137] In some embodiments of this disclosure, such as Figure 8 As shown, the judgment module 702 is specifically used for:

[0138] Determine the initial border area corresponding to the subject in the preview image;

[0139] The initial border region is expanded to obtain the target border region, which includes multiple region pixels, each corresponding to multiple exposure information.

[0140] Among these, determining whether the subject exhibits light transmission based on exposure information includes:

[0141] Based on multiple exposure information, determine whether the subject exhibits light transmission.

[0142] In some embodiments of this disclosure, such as Figure 8 As shown, the exposure information is the automatic exposure value preset by the image signal processor for the pixels in a region;

[0143] Specifically, the judgment module 702 is used for:

[0144] Count the number of pixels in the region containing auto exposure values ​​greater than the exposure threshold from among multiple auto exposure values;

[0145] Based on the quantity, determine whether the photographed object exhibits light transmission.

[0146] In some embodiments of this disclosure, such as Figure 8 As shown, the judgment module 702 is specifically used for:

[0147] When the number exceeds the number threshold, it is determined that the object being photographed is experiencing light transmission.

[0148] When the number is less than or equal to the number threshold, it is determined that the photographed object does not produce light transmission phenomenon.

[0149] In some embodiments of this disclosure, such as Figure 8 As shown, it also includes:

[0150] The determination module 704 is used to determine a brightness compensation value for the original output image after reducing the image brightness value of the original output image of the photosensitive element in the imaging device if light transmission occurs in the subject being photographed.

[0151] The second processing module 705 is used to compensate the image brightness value of the original output image according to the brightness compensation value to obtain the target image.

[0152] In some embodiments of this disclosure, such as Figure 8 As shown, the first processing module 703 is specifically used for:

[0153] When light transmission occurs in the subject, the exposure time of the image sensor is reduced, and the image sensor outputs an image based on the reduced exposure time; or

[0154] When light transmission occurs in the subject being photographed, the exposure compensation value of the image sensor is reduced, and the image sensor outputs an image based on the reduced exposure compensation value.

[0155] In some embodiments of this disclosure, such as Figure 8 As shown, the first processing module 703 is specifically used for:

[0156] Determine the initial exposure time for the photosensitive element;

[0157] Based on the phenomenon of light transmission, determine the information of the first transmitted ray;

[0158] Determine the target exposure time corresponding to the first transmitted light information, where the target exposure time is less than the initial exposure time;

[0159] Adjust the initial exposure time of the image sensor to the target exposure time;

[0160] The photosensitive element is controlled to capture images of the subject based on the target exposure time.

[0161] In some embodiments of this disclosure, such as Figure 8 As shown, the first processing module 703 is specifically used for:

[0162] Determine the initial exposure compensation value for the image sensor;

[0163] Based on the phenomenon of light transmission, determine the information of the second transmitted ray;

[0164] Determine the target exposure compensation value corresponding to the second transmitted light information, where the target exposure compensation value is less than the initial exposure compensation value;

[0165] Adjust the initial exposure compensation value of the image sensor to the target exposure compensation value;

[0166] The image sensor is controlled to compensate for the current exposure based on the target exposure compensation value;

[0167] The subject is photographed based on the compensated exposure. Figure 8 Figure 8

[0168] With the above Figures 1 to 6 Corresponding to the image processing method provided in the embodiments, this disclosure also provides an image processing apparatus. Since the image processing apparatus provided in the embodiments of this disclosure is similar to the one described above... Figures 1 to 6 The image processing method provided in the embodiments corresponds to the image processing apparatus provided in the embodiments of this disclosure, and will not be described in detail in the embodiments of this disclosure.

[0169] In this embodiment, by acquiring a preview image captured by the camera device, it is determined whether the subject in the scene exhibits light transmission. If the subject exhibits light transmission, the brightness value of the original output image of the photosensitive element in the camera device is reduced. Since the brightness value of the output image of the photosensitive element is reduced during the imaging process of the camera device, the subject in the image is not overexposed, thus effectively avoiding the impact of light transmission on the imaging effect and thus effectively improving the imaging effect.

[0170] To implement the above embodiments, this disclosure also proposes a non-transitory computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the image processing method proposed in the foregoing embodiments of this disclosure.

[0171] To implement the above embodiments, this disclosure also proposes an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the image processing method proposed in the foregoing embodiments of this disclosure.

[0172] To implement the above embodiments, this disclosure also proposes a computer program product that, when executed by an instruction processor, performs the image processing method as described in the foregoing embodiments of this disclosure.

[0173] Figure 9 A block diagram of an exemplary electronic device suitable for implementing embodiments of the present disclosure is shown. Figure 9 The electronic device 12 shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments disclosed herein.

[0174] like Figure 9 As shown, electronic device 12 is represented in the form of a general-purpose computing device. Components of electronic device 12 may include, but are not limited to: one or more processors or processing units 16, system memory 28, and a bus 18 connecting different system components (including system memory 28 and processing unit 16). Bus 18 represents one or more of several bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the various bus architectures. For example, these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the MicroChannel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus.

[0175] Electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by electronic device 12, including volatile and non-volatile media, removable and non-removable media.

[0176] Memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and / or cache memory 32. Electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 34 may be used to read and write non-removable, non-volatile magnetic media (… Figure 9 Not shown; usually referred to as a "hard drive".

[0177] although Figure 9Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk") and an optical disc drive for reading and writing to a removable non-volatile optical disc (e.g., a compact disc read-only memory (CD-ROM), a digital video disc read-only memory (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to bus 18 via one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments of this disclosure.

[0178] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. Program modules 42 typically perform the functions and / or methods described in the embodiments of this disclosure.

[0179] Electronic device 12 can also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), and with one or more devices that enable a user to interact with electronic device 12, and / or with any device that enables electronic device 12 to communicate with one or more other computing devices (e.g., network card, modem, etc.). This communication can be performed via input / output (I / O) interface 22. Furthermore, electronic device 12 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 20. As shown, network adapter 20 communicates with other modules of electronic device 12 via bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0180] The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, such as implementing the image processing method mentioned in the foregoing embodiments.

[0181] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0182] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

[0183] It should be noted that in the description of this disclosure, the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance. Furthermore, in the description of this disclosure, unless otherwise stated, "a plurality of" means two or more.

[0184] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a particular logical function or process, and the scope of preferred embodiments of this disclosure includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the function involved, as will be understood by those skilled in the art to which embodiments of this disclosure pertain.

[0185] It should be understood that various parts of this disclosure can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0186] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.

[0187] Furthermore, the functional units in the various embodiments of this disclosure can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.

[0188] The storage media mentioned above can be read-only memory, disk, or optical disk, etc.

[0189] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this disclosure. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0190] Although embodiments of the present disclosure have been shown and described above, it is to be understood that the above embodiments are exemplary and should not be construed as limiting the present disclosure. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present disclosure.

Claims

1. An image processing method, characterized in that, include: Acquire a preview image captured by the camera device; Based on the preview image, determine the initial border area corresponding to the subject in the preview image; The initial border region is expanded to obtain a target border region, wherein the target border region includes: multiple region pixels, each region pixel corresponding to multiple exposure information, and the exposure information is an automatic exposure value preset by the image signal processor for the region pixels; Count the number of pixels in the region to which the automatic exposure value is greater than the exposure threshold among the multiple automatic exposure values; If the quantity is greater than the quantity threshold, it is determined that the object being photographed is exhibiting light transmission phenomenon; If the object being photographed exhibits the light transmission phenomenon, the image brightness value of the original output image from the photosensitive element in the camera device is reduced.

2. The method as described in claim 1, characterized in that, The method further includes: If the quantity is less than or equal to the quantity threshold, it is determined that the photographed object did not produce the light transmission phenomenon.

3. The method as described in claim 1, characterized in that, After reducing the image brightness value of the original output image of the photosensitive element in the imaging device if the subject being photographed exhibits the light transmission phenomenon, the method further includes: Determine the brightness compensation value for the original output image; The brightness value of the original output image is compensated based on the brightness compensation value to obtain the target image.

4. The method as described in claim 1 or 3, characterized in that, If the object being photographed exhibits the light transmission phenomenon, reducing the image brightness value of the original output image of the photosensitive element in the imaging device includes: If the subject being photographed exhibits the light transmission phenomenon, the exposure time of the photosensitive element is reduced, wherein the photosensitive element outputs an image based on the reduced exposure time; or If the subject being photographed exhibits the light transmission phenomenon, the exposure compensation value of the photosensitive element is reduced, wherein the photosensitive element outputs an image based on the reduced exposure compensation value.

5. The method as described in claim 4, characterized in that, If the photographed object exhibits the light transmission phenomenon, the exposure time of the photosensitive element is reduced, wherein the photosensitive element outputs an image based on the reduced exposure time, including: Determine the initial exposure time of the photosensitive element; Based on the aforementioned light transmission phenomenon, the information of the first transmitted ray is determined; Determine the target exposure time corresponding to the first transmitted light information, wherein the target exposure time is less than the initial exposure time; The initial exposure time of the photosensitive element is adjusted to the target exposure time; The photosensitive element is controlled to perform photosensitive imaging of the subject based on the target exposure time.

6. The method as described in claim 4, characterized in that, If the photographed object exhibits the light transmission phenomenon, the exposure compensation value of the photosensitive element is reduced, wherein the photosensitive element outputs an image based on the reduced exposure compensation value, including: Determine the initial exposure compensation value for the photosensitive element; Based on the aforementioned light transmission phenomenon, the information of the second transmitted ray is determined; Determine the target exposure compensation value corresponding to the second transmitted light information, wherein the target exposure compensation value is less than the initial exposure compensation value; The initial exposure compensation value of the photosensitive element is adjusted to the target exposure compensation value; The photosensitive element is controlled to compensate for the current exposure based on the target exposure compensation value; The subject is photographically imaged based on the compensated exposure.

7. An image processing apparatus, characterized in that, The device includes: The acquisition module is used to acquire preview images captured by the camera device; The judgment module is used to determine the initial border region corresponding to the shooting object in the preview image based on the preview image; expand the initial border region to obtain a target border region, wherein the target border region includes: multiple region pixels, each of the multiple region pixels corresponding to multiple exposure information, the exposure information being an automatic exposure value preset by the image signal processor for the region pixels; count the number of region pixels to which the automatic exposure values ​​greater than an exposure threshold belong among the multiple automatic exposure values; if the number is greater than a number threshold, it is determined that the shooting object has a light transmission phenomenon; The first processing module is used to reduce the image brightness value of the original output image of the photosensitive element in the camera device when the light transmission phenomenon occurs in the subject being photographed.

8. The apparatus as claimed in claim 7, characterized in that, The judgment module is also used for: When the quantity is less than or equal to the quantity threshold, it is determined that the object being photographed has not produced the light transmission phenomenon.

9. The apparatus as claimed in claim 7, characterized in that, Also includes: The determining module is used to determine a brightness compensation value for the original output image after reducing the image brightness value of the original output image of the photosensitive element in the imaging device when the light transmission phenomenon occurs in the subject being photographed. The second processing module is used to compensate the image brightness value of the original output image according to the brightness compensation value to obtain the target image.

10. The apparatus as claimed in claim 7 or 9, characterized in that, The first processing module is specifically used for: When the subject produces the light transmission phenomenon, the exposure time of the photosensitive element is reduced, wherein the photosensitive element outputs an image based on the reduced exposure time; or When the subject being photographed produces the light transmission phenomenon, the exposure compensation value of the photosensitive element is reduced, wherein the photosensitive element outputs an image based on the reduced exposure compensation value.

11. The apparatus as claimed in claim 10, characterized in that, The first processing module is specifically used for: Determine the initial exposure time of the photosensitive element; Based on the aforementioned light transmission phenomenon, the information of the first transmitted ray is determined; Determine the target exposure time corresponding to the first transmitted light information, wherein the target exposure time is less than the initial exposure time; The initial exposure time of the photosensitive element is adjusted to the target exposure time; The photosensitive element is controlled to perform photosensitive imaging of the subject based on the target exposure time.

12. The apparatus as claimed in claim 10, characterized in that, The first processing module is specifically used for: Determine the initial exposure compensation value for the photosensitive element; Based on the aforementioned light transmission phenomenon, the information of the second transmitted ray is determined; Determine the target exposure compensation value corresponding to the second transmitted light information, wherein the target exposure compensation value is less than the initial exposure compensation value; The initial exposure compensation value of the photosensitive element is adjusted to the target exposure compensation value; The photosensitive element is controlled to compensate for the current exposure based on the target exposure compensation value; The subject is photographically imaged based on the compensated exposure.

13. An electronic device, comprising: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6.

14. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-6.