CN116261048A - Image processing method, device, electronic equipment and storage medium - Google Patents

Image processing method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116261048A
CN116261048A CN202111501532.XA CN202111501532A CN116261048A CN 116261048 A CN116261048 A CN 116261048A CN 202111501532 A CN202111501532 A CN 202111501532A CN 116261048 A CN116261048 A CN 116261048A
Authority
CN
China
Prior art keywords
exposure
image
light transmission
photosensitive element
transmission phenomenon
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111501532.XA
Other languages
Chinese (zh)
Inventor
王波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202111501532.XA priority Critical patent/CN116261048A/en
Publication of CN116261048A publication Critical patent/CN116261048A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Studio Devices (AREA)

Abstract

The disclosure provides an image processing method, an image processing device, an electronic device and a storage medium, wherein the method comprises the following steps: acquiring a preview image captured by a camera device; judging whether a shooting object in a scene generates a light transmission phenomenon or not based on the preview image; if the subject generates a light transmission phenomenon, the image brightness value of the original output image of the photosensitive element in the image pickup device is lowered. Through the method and the device, in the process of shooting imaging by the camera, the influence of light transmission phenomenon generated by a shooting object on the imaging effect can be effectively avoided, so that the imaging effect is effectively improved.

Description

Image processing method, device, electronic equipment and storage medium
Technical Field
The disclosure relates to the technical field of electronic equipment, and in particular relates to an image processing method, an image processing device, electronic equipment and a storage medium.
Background
When light is incident on the surface of a transparent or translucent material, a portion is reflected, a portion is absorbed, and a portion is transmitted through, a phenomenon called light transmission, and there may be a serious light transmission problem during photographing imaging by an image pickup device.
In the related art, based on the exposure angle, the image pickup device is controlled to output two frames of exposure data of long exposure and short exposure, and then the two frames of exposure data are synthesized by hardware or an algorithm to be synthesized into one frame of exposure data so as to solve the light transmission problem.
In this way, the light transmission problem has poor solving effect, the application scene is single, and the influence of the light transmission phenomenon generated by the shooting object on the imaging effect cannot be effectively avoided.
Disclosure of Invention
The present disclosure aims to solve, at least to some extent, one of the technical problems in the related art.
Therefore, an object of the present disclosure is to provide an image processing method, an image processing apparatus, an electronic device, a storage medium, and a computer program product, which can effectively avoid the influence of light transmission phenomenon generated by a shooting object on an imaging effect in the process of shooting an image by an image capturing device, so as to effectively improve the imaging effect.
An image processing method provided by an embodiment of a first aspect of the present disclosure includes: acquiring a preview image captured by a camera device; judging whether a shooting object in a scene generates a light transmission phenomenon or not based on the preview image; if the subject generates a light transmission phenomenon, the image brightness value of the original output image of the photosensitive element in the image pickup device is lowered.
According to the image processing method provided by the embodiment of the first aspect of the disclosure, by acquiring the preview image captured by the image capturing device, based on the preview image, whether the shooting object in the scene generates a light transmission phenomenon is judged, if the shooting object generates the light transmission phenomenon, the image brightness value of the original output image of the photosensitive element in the image capturing device is reduced, and in the process of shooting and imaging by the image capturing device, if the shooting object generates the light transmission phenomenon, the image brightness value of the original output image of the photosensitive element in the image capturing device is reduced, so that overexposure of the shooting object in the image is avoided, and therefore the influence of the light transmission phenomenon generated by the shooting object on the imaging effect can be effectively avoided, and the imaging effect is effectively improved.
An image processing apparatus according to an embodiment of a second aspect of the present disclosure includes: the acquisition module is used for acquiring the preview image captured by the camera device; the judging module is used for judging whether the shooting object in the scene generates a light transmission phenomenon or not based on the preview image; the first processing module is used for reducing the image brightness value of the original output image of the photosensitive element in the image pickup device when the shooting object generates a light transmission phenomenon.
According to the image processing device provided by the embodiment of the second aspect of the disclosure, by acquiring the preview image captured by the image capturing device, based on the preview image, whether the shooting object in the scene generates a light transmission phenomenon is judged, if the shooting object generates the light transmission phenomenon, the image brightness value of the original output image of the photosensitive element in the image capturing device is reduced, and in the process of shooting and imaging by the image capturing device, if the shooting object generates the light transmission phenomenon, the image brightness value of the original output image of the photosensitive element in the image capturing device is reduced, so that overexposure of the shooting object in the image is avoided, and therefore, the influence of the light transmission phenomenon generated by the shooting object on the imaging effect can be effectively avoided, and the imaging effect is effectively improved.
According to a third aspect of the present disclosure, there is provided an electronic device comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the image processing method of the first aspect embodiment of the present disclosure.
According to a fourth aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute an image processing method of an embodiment of the first aspect of the present disclosure.
According to a fifth aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements an image processing method of an embodiment of the first aspect of the present disclosure.
Additional aspects and advantages of the 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 the disclosure.
Drawings
The foregoing and/or additional aspects and advantages of the present disclosure will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
FIG. 1 is a flow chart of an image processing method according to an embodiment of the disclosure;
FIG. 2 is a flow chart of an image processing method according to another embodiment of the present disclosure;
FIG. 3 is a flow chart illustrating an image processing method according to another embodiment of the present disclosure;
fig. 4 is a flowchart of an image processing method according to another embodiment of the present disclosure;
FIG. 5 is a flow chart of an image processing method according to another embodiment of the present disclosure;
FIG. 6 is a flow chart of an image processing method according to another embodiment of the present disclosure;
fig. 7 is a schematic structural view of an image processing apparatus according to an embodiment of the present disclosure;
fig. 8 is a schematic structural view of an image processing apparatus according to another embodiment of the present disclosure;
fig. 9 illustrates a block diagram of an exemplary electronic device suitable for use in implementing embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are exemplary only for explaining the present disclosure and are not to be construed as limiting the present disclosure. On the contrary, the embodiments of the disclosure include all alternatives, modifications, and equivalents as may be included within the spirit and scope of the appended claims.
Fig. 1 is a flowchart of an image processing method according to an embodiment of the disclosure.
It should be noted that, the main execution body of the image processing method in this embodiment is an image processing apparatus, and the apparatus may be implemented in software and/or hardware, and the apparatus may be configured in an electronic device, and the electronic device may be, for example, a terminal with an image capturing function, such as a mobile phone, a wearable device, a television, or a portable computer, which is not limited thereto.
The image pickup device includes a photosensitive element, which may be understood as an image sensor capable of sensing light, and the photosensitive element is used for assisting the image pickup device to perform imaging, and the image pickup device may be, for example, an under-screen image pickup device under a display screen, or may be an image pickup module having an image capturing or video recording function in an electronic device, which is not limited thereto.
As shown in fig. 1, the image processing method includes:
s101: and acquiring a preview image captured by the camera device.
It should be noted that, in the embodiment of the present disclosure, the preview images of the shooting objects are captured after the authorization of the related user, and the process of capturing the preview images accords with the rules of the related laws and regulations, and does not violate the public welcome.
The person or object photographed by the photographing device may be referred to as a photographing object, and the photographing object may be a specified person or object having the same characteristics, for example, a face, or may be a car, a wheel, or the like, which is not limited thereto, wherein an image including the photographing object captured by the photographing device before photographing and imaging may be referred to as a preview image, and a partial image including the photographing object may be extracted from the preview image.
In the embodiment of the disclosure, a preview image captured by a camera device is obtained, the camera device may be a set of one or more camera modules, different camera modules may use one or more photosensitive elements of the same or different types, and light rays in a scene where a shooting object is located may be sensed through the photosensitive elements to perform exposure, so as to assist the camera device to capture the preview image of the shooting object.
In the embodiment of the disclosure, capturing a preview image of a shooting object may be capturing an instant image of a scene where the shooting object is located and generating picture data, or capturing an image of a period of time where the shooting object is located and generating video data, extracting a data frame of a time point according to the video data, or capturing an image of a period of time where the shooting object is located according to an algorithm, and integrating the image of a period of time into one or more picture data by using the algorithm, which is not limited.
In the embodiments of the present disclosure, a preview image captured by an image capturing device may be acquired by a central processor in an electronic apparatus, and then analyzed to determine whether or not a light transmission phenomenon occurs in a subject to be photographed therein, specifically, see the subsequent embodiments.
S102: based on the preview image, it is determined whether or not a light transmission phenomenon occurs in a photographic subject in the scene.
Wherein when light is incident on the surface of a transparent or translucent material, a portion is reflected, a portion is absorbed, and a portion is transmitted through, the phenomenon of the light wave encountering the transparent or translucent material, which deviates from the law of geometrical optical propagation, may be referred to as light transmission phenomenon.
The light transmission phenomenon in the embodiments of the present disclosure may refer to a phenomenon that a local area where light passes through a transparent or semitransparent material is excessively bright when the light is imaged to an image pickup device through a photographing object.
The display screen corresponding to the under-screen camera device, or a protective material (such as a protective shell) of the camera device, or a lens of the camera device, etc. may be transparent or semitransparent material, so that when a preview image of a shooting object is captured based on the camera device, the shooting object may generate a light transmission phenomenon, and an imaging effect of the camera device may be poor at this time.
In the embodiment of the disclosure, the image recognition method may be used in combination with the imaging effect of the preview image to determine whether the shot object generates the light transmission phenomenon, or may also determine whether the light transmission phenomenon is generated according to the image characteristics of the preview image (for example, the characteristics of the exposure degree of the normal image and the exposure degree of the image generating the light transmission phenomenon are identified, etc.), which is not limited.
S103: if the subject generates a light transmission phenomenon, the image brightness value of the original output image of the photosensitive element in the image pickup device is lowered.
The image output when the imaging device is assisted by the photosensitive element sensing the ambient light can be referred to as an original output image.
In the embodiment of the disclosure, when the photographed object generates the light transmission phenomenon, the image brightness value of the original output image of the photosensitive element in the image pickup device can be reduced, so as to avoid the over-brightness of the original output image or the incomplete photographed object in the imaged image.
In the embodiment of the disclosure, the image brightness value of the original output image of the photosensitive element may be reduced by changing the exposure time and the exposure compensation value of the image capturing device according to the light transmission degree when determining that the light transmission phenomenon generated by the shooting object occurs in the shooting process, or may be reduced by using a digital image processing mode according to the characteristics of the original output image when imaging is completed, or may be reduced by using any other possible mode, which is not limited.
In this embodiment, whether the shot object in the scene generates the light transmission phenomenon is determined based on the preview image by acquiring the preview image captured by the image capturing device, if the shot object generates the light transmission phenomenon, the image brightness value of the original output image of the photosensitive element in the image capturing device is reduced, and in the process of capturing and imaging by the image capturing device, if the shot object generates the light transmission phenomenon, the image brightness value of the output image of the photosensitive element is reduced, so that overexposure of the shot object in the image is avoided, and therefore, the influence of the light transmission phenomenon generated by the shot object on the imaging effect is effectively avoided, and the imaging effect is effectively improved.
Fig. 2 is a flowchart of an image processing method according to another embodiment of the present disclosure.
As shown in fig. 2, the image processing method includes:
s201: and acquiring a preview image captured by the camera device.
The description of S201 may be specifically referred to the above embodiments, and will not be repeated here.
S202: exposure information of a shooting object in a scene is determined according to the preview image.
The information related to the exposure condition when the subject is photographed may be referred to as exposure information, and the exposure information may be information such as exposure amount, exposure time, exposure compensation, etc. when the subject is photographed.
In the embodiment of the disclosure, the shooting objects are shot under different scenes, so that the shooting objects can have the same or different exposure information, the shooting devices with different specifications and parameters can also correspond to the same or different exposure information, and different exposure information can cause different degrees of light perspective phenomenon, so that the exposure information of the shooting objects in the scenes can be determined, and whether the shooting objects generate the light transmission phenomenon can be determined in an auxiliary manner according to the exposure information.
In the embodiment of the disclosure, the exposure information of the shooting object in the scene may be determined according to the preview image, or the exposure information may be determined according to information such as brightness information in the preview image, or information such as exposure time and sensitivity set by the image capturing device in the shooting process may be recorded as the exposure information, or any other possible implementation manner may be used to determine the exposure information, which is not limited.
S203: and judging whether the shot object generates a light transmission phenomenon or not according to the exposure information.
In the embodiment of the disclosure, whether the shot object generates the light transmission phenomenon may be determined according to the exposure information, by using a pre-trained determination model, and inputting the exposure information into the determination model to determine whether the shot object generates the light transmission phenomenon, or by setting a threshold value of corresponding data in the exposure information, and determining whether the shot object generates the light transmission phenomenon according to whether the corresponding data in the exposure information exceeds the threshold value, or by identifying a preview image corresponding to the exposure information through an image identification technology, and determining whether the shot object generates the light transmission phenomenon according to the characteristics of the preview image, which is not limited.
S204: if the subject generates a light transmission phenomenon, the image brightness value of the original output image of the photosensitive element in the image pickup device is lowered.
The description of S204 may be specifically referred to the above embodiments, and will not be repeated here.
In this embodiment, by acquiring a preview image captured by the image capturing device, determining exposure information of a shooting object in a scene according to the preview image, and determining whether the shooting object generates a light transmission phenomenon according to the exposure information, if the shooting object generates the light transmission phenomenon, then reducing an image brightness value of an original output image of a photosensitive element in the image capturing device, and if the shooting object generates the light transmission phenomenon in the process of shooting imaging by the image capturing device, reducing the image brightness value of the output image of the photosensitive element, thereby avoiding overexposure of the shooting object in the image, and effectively avoiding the influence of the light transmission phenomenon generated by the shooting object on the imaging effect, so as to effectively improve the imaging effect. Because whether the shot object generates the light transmission phenomenon or not is judged according to the exposure information, the detection accuracy of the light transmission phenomenon can be effectively improved.
Fig. 3 is a flowchart of an image processing method according to another embodiment of the present disclosure.
As shown in fig. 3, the image processing method includes:
s301: and acquiring a preview image captured by the camera device.
S302: based on the preview image, it is determined whether or not a light transmission phenomenon occurs in a photographic subject in the scene.
The descriptions of S301 to S302 may be specifically referred to the above embodiments, and are not repeated herein.
S303: if the subject generates a light transmission phenomenon, the image brightness value of the original output image of the photosensitive element in the image pickup device is lowered.
In the embodiment of the disclosure, the reduction of the image brightness value of the original output image of the photosensitive element can be realized by reducing the exposure time of the photosensitive element.
In the embodiment of the disclosure, when the exposure time of the photosensitive element is reduced, the exposure time of the photosensitive element may be determined, and the adapted exposure time may be obtained by calculating using an exposure algorithm, or the exposure time of the photosensitive element may be reduced by detecting the light information (such as illumination intensity, illumination time, etc.) of the scene where the shooting object is located in advance, or by determining the corresponding exposure time according to the light information of the scene where the shooting object is located in combination with modes such as artificial intelligence and image processing, or by adopting any other possible modes, which is not limited.
Optionally, when the exposure time of the photosensitive element is reduced, the embodiment of the disclosure may determine the initial exposure time of the photosensitive element, determine the first transmitted light information according to the light transmission phenomenon, determine the target exposure time corresponding to the first transmitted light information, adjust the initial exposure time of the photosensitive element to be the target exposure time, control the photosensitive element to perform photosensitive imaging on the shooting object based on the target exposure time, and because the initial exposure time is adjusted by combining 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, and the target exposure time is determined by combining the transmitted light information, thereby effectively improving the accuracy of determining the target exposure time, enabling the determination of the target exposure time to be effectively suitable for the actual light transmission situation, and also supporting the adaptive adjustment of the exposure time under different shooting scenes, and effectively meeting the requirements of different shooting scenes.
The preset exposure time of the photosensitive element may be referred to as an initial exposure time, where the initial exposure time may be an exposure time corresponding to the photosensitive element in an ideal state, or may be a fixed exposure time set for the photosensitive element in response to a manual configuration instruction, which is not limited.
The light information received by the photosensitive element and transmitted through the transparent or semitransparent material may be referred to as first transmitted light information, where the first transmitted light information may be light transmitted through a scene where the shooting object is located, so as to reach the light information generated by the photosensitive element, or may also be light information received by the photosensitive element and including light information corresponding to exposure time, which is not limited.
The exposure time of the photosensitive element determined according to the first transmitted light information may be referred to as a target exposure time, where the target exposure time may be smaller than the initial exposure time, and the target exposure time may be used to describe an exposure time most adapted to the first transmitted light information in the light transmission phenomenon, where the most adapted exposure time may be obtained by calibrating in advance through a light experiment, and when the photosensitive element is controlled to perform photosensitive imaging on a photographic object based on the target exposure time, the imaging effect may be prevented from being affected by the light transmission phenomenon, and a better imaging effect is achieved without limitation.
In the embodiment of the disclosure, the first transmitted light information can be determined according to the light information of the scene where the shooting object is located, so that the target exposure time adapted to the photosensitive element under the scene where the first transmitted light information is located is determined, the initial exposure time of the photosensitive element is adjusted to the target exposure time corresponding to the scene where the shooting object is located, and the photosensitive element is controlled to perform photosensitive imaging on the shooting object based on the target exposure time, so that the image brightness value of the output image of the photosensitive element under the light transmission phenomenon can be effectively reduced by shortening the exposure time, and incomplete or blurred imaging of the shooting object in the imaged image is avoided.
S304: a brightness compensation value for the original output image is determined.
The embodiments of the present disclosure may adaptively perform brightness compensation on an original output image after reducing an exposure time of a photosensitive element and controlling the photosensitive element to output the image based on the reduced exposure time, and a value of the brightness compensation may be referred to as a brightness compensation value.
In the embodiment of the disclosure, the brightness compensation value for the image may be determined according to the exposure difference between the target exposure time and the initial exposure time, the influence value of the brightness of the image, or a standard value of brightness compensation may be set, and the brightness compensation value may be generated according to the difference between the brightness value of the original output image after the brightness value of the image is reduced and the standard value, or any other possible manner may be adopted to determine the brightness compensation value for the original output image, which is not limited.
For example, when determining the brightness compensation value for the original output image, the embodiment of the disclosure may further set a corresponding brightness compensation value algorithm, or may build an artificial intelligent training model, generate the brightness compensation model through training, and determine the brightness compensation value according to the output value of the model, which is not limited.
S305: and carrying out compensation processing on the image brightness value of the original output image according to the brightness compensation value to obtain a target image.
In the embodiment of the disclosure, when the image brightness value of the original output image is compensated according to the brightness compensation value, a certain brightness threshold value may be set, and in the compensation process, when an area with the brightness value lower than the brightness threshold value exists in the original output image, the brightness value of the area is compensated, or the brightness value of the whole original output image may be uniformly compensated, which is not limited.
In this embodiment, in the process of photographing and imaging by the image pickup device, if the light transmission phenomenon generated by the photographing object, the image brightness value of the output image of the photosensitive element is reduced, so as to avoid overexposure of the photographing object in the image, thereby effectively avoiding the influence of the light transmission phenomenon generated by the photographing object on the imaging effect, and effectively improving the imaging effect. The method comprises the steps of acquiring a preview image captured by an image pickup device, judging whether a shot object in a scene generates a light transmission phenomenon or not based on the preview image, if the shot object generates the light transmission phenomenon, reducing the image brightness value of an original output image of a photosensitive element in the image pickup device, determining the brightness compensation value for the original output image, carrying out compensation processing on the image brightness value of the original output image according to the brightness compensation value to obtain a target image, and effectively reducing the image brightness value of the output image of the photosensitive element under the light transmission phenomenon by shortening exposure time so as to avoid incomplete or fuzzy imaging of the shot object in the obtained image. Because the brightness compensation value is set, and the image brightness value of the original output image is compensated according to the brightness compensation value, the image with reduced image brightness can reach the brightness required by shooting, and the imaging effect of the target image is effectively improved.
Fig. 4 is a flowchart of an image processing method according to another embodiment of the present disclosure.
As shown in fig. 4, the image processing method includes:
s401: and acquiring a preview image captured by the camera device.
S402: based on the preview image, it is determined whether or not a light transmission phenomenon occurs in a photographic subject in the scene.
The descriptions of S401 to S402 may be specifically referred to the above embodiments, and are not repeated herein.
S403: if the photographing object generates a light transmission phenomenon, an exposure compensation value of the photosensitive element is lowered, wherein the photosensitive element outputs an image based on the lowered exposure compensation value.
When the shooting object generates the light transmission phenomenon, the embodiment of the disclosure can reduce the image brightness value of the output image of the photosensitive element by reducing the exposure compensation value of the photosensitive element, which is not limited.
For example, the light information of the scene may be collected by the photosensitive element, and the exposure compensation value corresponding to the light transmission phenomenon may be determined by using a correlation algorithm, or the related light situation may be processed by collecting the light situation related to the light transmission phenomenon, and an artificial intelligent model, an image processing method, or the like may be used to determine the exposure compensation value corresponding to the light transmission phenomenon, which is not limited.
Optionally, when the exposure compensation value of the photosensitive element is reduced, the embodiment of the disclosure may determine an initial exposure compensation value of the photosensitive element, determine second transmission light information according to the light transmission phenomenon, determine a target exposure compensation value corresponding to the second transmission light information, adjust the initial exposure compensation value of the photosensitive element to be the target exposure compensation value, control the photosensitive element to perform compensation processing on the current exposure based on the target exposure compensation value, perform photosensitive imaging on a shooting object based on the compensated exposure, and adjust the initial exposure compensation value by combining the second transmission light information related to the light transmission phenomenon, so as to determine a target exposure compensation value most suitable for the light transmission phenomenon, and perform compensation processing on the current exposure by combining the target exposure compensation value, thereby effectively improving the accuracy of determining the target exposure compensation value, effectively adapting to the actual light transmission situation, and also supporting adaptive adjustment on the exposure compensation value under different shooting scenes, and effectively meeting the requirements of different shooting scenes.
The preset exposure compensation value of the preview image of the shooting object may be referred to as an initial exposure compensation value, where the initial exposure compensation value may be an exposure compensation value corresponding to a photosensitive component in an ideal state, or may be a fixed exposure compensation value preset according to a user setting instruction in response to the user setting instruction, which is not limited.
The light information received by the photosensitive element and transmitted through the transparent or semitransparent material may be referred to as second transmitted light information, where the second transmitted light information may be light transmitted through a scene where the shooting object is located to reach the light information generated by the photosensitive element, or may also be light information received by the photosensitive element and including light information corresponding to an exposure compensation value, which is not limited.
The exposure compensation value of the photosensitive element determined according to the second transmission light information may be referred to as a target exposure compensation value, where the target exposure compensation value may be smaller than an initial exposure compensation value, and the target exposure compensation value may be used to describe an exposure compensation value most adapted to the second transmission light information in the light transmission phenomenon, where the most adapted exposure compensation value may be obtained by calibrating through a light experiment in advance, and when the photosensitive element is controlled to output an image based on the reduced exposure compensation value, the imaging effect may be prevented from being affected by the light transmission phenomenon, and a better imaging effect may be achieved. No limitation is imposed on this
In the embodiment of the disclosure, a target exposure compensation value is determined through the second transmitted light information, then the photosensitive element is controlled to perform compensation processing on the current exposure based on the target exposure compensation value, the photographic object is subjected to photosensitive imaging based on the compensated exposure, and then the subsequent steps are triggered.
S404: a brightness compensation value for the original output image is determined.
S405: and carrying out compensation processing on the image brightness value of the original output image according to the brightness compensation value to obtain a target image.
The descriptions of S404-S405 may be specifically referred to the above embodiments, and are not repeated here.
In this embodiment, in the process of photographing and imaging by the image pickup device, if the light transmission phenomenon generated by the photographing object, the image brightness value of the output image of the photosensitive element is reduced, so as to avoid overexposure of the photographing object in the image, thereby effectively avoiding the influence of the light transmission phenomenon generated by the photographing object on the imaging effect, and effectively improving the imaging effect. When the shot object generates the light transmission phenomenon, the image brightness value of the output image of the photosensitive element is reduced in a mode of reducing the exposure compensation value of the photosensitive element, wherein the photosensitive element outputs the image based on the reduced exposure compensation value, so that the selection of the implementation mode for reducing the image brightness value of the output image of the photosensitive element is more flexible, the application of various shooting scenes is supported, and the flexibility and the applicability of the image processing method are improved. Because the brightness compensation value is set, and the image brightness value of the original output image is compensated according to the brightness compensation value, the image with reduced image brightness can reach the brightness required by shooting, and the imaging effect of the target image is effectively improved.
Fig. 5 is a flowchart of an image processing method according to another embodiment of the present disclosure.
As shown in fig. 5, the image processing method includes:
s501: and acquiring a preview image captured by the camera device.
The description of S501 may be specifically referred to the above embodiments, and will not be repeated here.
S502: and determining an initial frame area corresponding to the shooting object in the preview image.
The region for describing the feature of the photographing object may be referred to as an initial frame region, and the initial frame region may be a region of a fixed shape, such as a rectangle, triangle, or other shape, or may be an irregular region matching the feature profile of the photographing object, which is not limited.
For example, the initial frame region may be set to be rectangular, and when the photographing object is detected as a face, important features such as five sense organs of the face are identified to form the initial frame region, or the initial frame region may be set to be an irregular shape, and when the face is detected, the contour shape of the face is set as the initial frame region.
In the embodiment of the disclosure, the hardware device with the image recognition function may be used to recognize the initial frame area corresponding to the shooting object, or an image recognition algorithm, a machine vision algorithm, or the like may be used to detect the initial frame area corresponding to the shooting object in the image, or an image recognition model trained by using artificial intelligence may be used, which is not limited.
For example, when the shooting object is detected as a face, a camera for detecting the face or a Face Detection (FD) algorithm may be used to obtain an initial frame region corresponding to the face.
S503: performing expansion processing on the initial frame region to obtain a target frame region, wherein the target frame region comprises: the pixel points of the multiple areas correspond to the exposure information respectively.
The frame region of the initial frame region after the expansion processing may be referred to as a target frame region, where the target frame region may be an expansion of the initial frame region on a margin, or may also be an irregular expansion of the initial frame region according to a shooting object, which is not limited.
For example, in a scene of photographing a face, when an initial frame region is the facial feature of a face, a suitable margin may be set, and the margin may be added on the basis of the initial frame region including the facial feature to enable the entire face to be included, and when the initial frame region is an irregular shape, the setting of the margin may also be changed according to the feature of the face shape.
The plurality of pixel points to be detected distributed in the target frame area may be referred to as a plurality of area pixel points, and the plurality of area pixel points respectively have a plurality of exposure information corresponding thereto.
The automatic exposure value preset by the image signal processor for the regional pixel points may be called exposure information, the automatic exposure value may be a numerical value representing the exposure degree, the exposure information may be a number, the larger the number is, the higher the brightness of the corresponding regional pixel point may be represented, or the number, the characters, the letters or one or more combinations thereof representing the exposure degree may also be used, and the method is not limited.
For example, the automatic exposure values in the exposure information may be set to "+2, +1, 0, -1, -2" or the like, and the exposure information may be represented by "high exposure, low exposure" or the like.
In the embodiment of the disclosure, the expansion processing of the initial frame area may be performed by setting a fixed and increased margin for obtaining the target frame area, or may also be performed by using an image recognition algorithm or a machine vision method to obtain an irregularly increased margin, so as to obtain the target frame area, or may also be performed by using any manner capable of measuring the outline of the shooting object, so as to obtain the target frame area, which is not limited.
In the embodiment of the disclosure, the target frame area includes a plurality of area pixel points, and a plurality of different area pixel points may be automatically selected in the target frame area, or a plurality of area pixel points may be set at fixed points of the target frame area, which is not limited.
In the embodiment of the disclosure, the number of the regional pixel points may be a fixed number, or the number of the regional pixel points may also be adjusted according to the size of the target frame region, and the distribution of the regional pixel points in the target frame region may be an average distribution, or the shooting object in the target frame region may also be detected, and a plurality of regional pixel points may be distributed according to the characteristics of the shooting object, which is not limited.
For example, in a face shooting scene, the target frame area is a rectangular area, then 5 area pixel points can be fixed in the face area, and the setting of the point positions can be changed in the fixed position of the rectangle along with the expansion and contraction of the rectangle in equal proportion.
S504: and counting the number of pixel points in the region to which the automatic exposure value larger than the exposure threshold value belongs in the plurality of automatic exposure values.
The threshold value used for representing the brightness degree of the automatic exposure value of the image may be referred to as an exposure threshold value, where the exposure threshold value may be a manually set threshold value representing the brightness of the image, and when the automatic exposure value is greater than the exposure threshold value, it may represent that the brightness of the pixel point in the corresponding area is too high, which is not limited.
In the embodiment of the disclosure, an exposure threshold may be preset, the size of the exposure threshold may change along with different scenes, or an algorithm for determining the size of the exposure threshold may be set according to the change of the scenes (such as different illumination intensities, hues, etc.), the exposure threshold may be adaptively adjusted by the algorithm, or an artificial intelligent model may be trained, and the exposure threshold may be determined by the artificial intelligent model, which is not limited.
In the embodiment of the disclosure, the number of the pixels in the region to which the automatic exposure value greater than the exposure threshold belongs in the plurality of automatic exposure values is counted, the target frame region can be used as a whole region, the number of the pixels in the region to which the automatic exposure value greater than the exposure threshold belongs is counted, the target frame region can be divided into a plurality of sub-regions according to the characteristics of the scene, and the number of the pixels in the region to which the automatic exposure value greater than the exposure threshold belongs in the sub-regions is counted respectively, so that the method is not limited.
S505: according to the quantity, judging whether the shooting object generates light transmission phenomenon or not.
In the embodiment of the disclosure, whether the photographic subject generates the light transmission phenomenon may be determined according to the number of the area pixels to which the automatic exposure value greater than the exposure threshold belongs, the determination manner may be that the number threshold is set, whether the photographic subject generates the light transmission phenomenon may be determined according to whether the number is greater than the number threshold, or whether the number of the area pixels greater than a certain exposure threshold is compared with the number of all the area pixels, whether the photographic subject generates the light transmission phenomenon may be determined according to a certain proportion, or whether a plurality of the automatic exposure values corresponding to a plurality of the area pixels are counted in the form of an icon or a table, etc., and whether the photographic subject generates the light transmission phenomenon may be determined by using mathematical statistical manners such as median, average, etc., which is not limited.
Optionally, in the embodiment of the present disclosure, if the number is greater than the number threshold, it is determined that the photographic subject generates the light transmission phenomenon, and if the number is less than or equal to the number threshold, it is determined that the photographic subject does not generate the light transmission phenomenon, and since whether the photographic subject generates the light transmission phenomenon is determined by using the number threshold, accuracy of a result of determining the light transmission phenomenon can be improved, and objectivity of the image capturing device for identifying the light transmission phenomenon is enhanced.
In the embodiment of the disclosure, when the number is greater than the number threshold, that is, when the brightness of the target frame area is too high, it is determined that the image of the shooting object generates a light transmission phenomenon, and when the number is less than or equal to the number threshold, that is, when the brightness of the target frame area is suitable, it is determined that the image of the shooting object does not generate a light transmission phenomenon.
S506: if the subject generates a light transmission phenomenon, the image brightness value of the output image of the photosensitive element is lowered.
S507: a brightness compensation value for the original output image is determined.
S508: and carrying out compensation processing on the image brightness value of the original output image according to the brightness compensation value to obtain a target image.
The descriptions of S506 to S508 may be specifically referred to the above embodiments, and are not repeated herein.
In this embodiment, by acquiring a preview image captured by an image capturing device, determining an initial frame area corresponding to a shooting object in the preview image, and performing expansion processing on the initial frame area to obtain a target frame area, where the target frame area includes: the method comprises the steps of counting the number of the area pixel points which are larger than an exposure threshold value in a plurality of automatic exposure values and correspond to a plurality of exposure information respectively, judging whether a shooting object generates a light transmission phenomenon according to the number, if the shooting object generates the light transmission phenomenon, reducing the image brightness value of an output image of a photosensitive element, determining a brightness compensation value aiming at an original output image, and carrying out compensation processing on the image brightness value of the original output image according to the brightness compensation value to obtain a target image.
In summary, when the scene is a scene with light behind a face, as shown in fig. 6, fig. 6 is a schematic flow diagram of an image processing method according to another embodiment of the present disclosure, and it is detected whether the image or the data frame captured by the image capturing device includes the face information, if not, the flow is ended, if so, an initial frame region where the face is located is obtained, exposure information of pixels in the initial frame region is obtained, then expansion processing is performed on the basis of the initial frame region, a target frame region is obtained, exposure information of pixels in each region of the target frame region is counted, the number of pixels in the region greater than a certain exposure threshold is determined, whether the counted number of pixels in the region is greater than the certain number threshold is determined, if less than or equal to the certain exposure threshold, it is determined that the light does not penetrate the face, if so, it is greater than the light penetrates the face, that a light transmission phenomenon is generated, then the image can be captured by reducing the initial exposure time or the initial exposure value of the photosensitive element, and then brightness compensation is performed on the image, and further the influence of the light transmission phenomenon on final imaging is reduced.
Fig. 7 is a schematic structural diagram of an image processing apparatus according to an embodiment of the present disclosure.
As shown in fig. 7, the image processing apparatus 70 includes:
an acquiring module 701, configured to acquire a preview image captured by an image capturing device;
a judging module 702, configured to judge whether a light transmission phenomenon occurs in a shooting object in a scene based on the preview image;
the first processing module 703 is configured to reduce an image brightness value of an image output by the photosensitive element in the image capturing device when the light transmission phenomenon occurs in the subject.
In some embodiments of the present disclosure, as shown in fig. 8, fig. 8 is a schematic structural diagram of an image processing apparatus according to another embodiment of the present disclosure, and the determining module 702 is specifically configured to:
determining exposure information of a shooting object in a scene according to the preview image;
and judging whether the shot object generates a light transmission phenomenon or not according to the exposure information.
In some embodiments of the present disclosure, as shown in fig. 8, the determining module 702 is specifically configured to:
determining an initial frame area corresponding to a shooting object in a preview image;
performing expansion processing on the initial frame region to obtain a target frame region, wherein the target frame region comprises: a plurality of regional pixel points, wherein the regional pixel points respectively correspond to a plurality of exposure information;
Wherein, judge whether shooting the object and produce the light transmission phenomenon according to exposing the information, include:
based on the plurality of exposure information, it is determined whether or not the photographic subject has a light transmission phenomenon.
In some embodiments of the present disclosure, as shown in fig. 8, the exposure information is an automatic exposure value preset by the image signal processor for the region pixel point;
the judging module 702 is specifically configured to:
counting the number of pixel points in the area to which the automatic exposure value larger than the exposure threshold value belongs in the plurality of automatic exposure values;
according to the quantity, judging whether the shooting object generates light transmission phenomenon or not.
In some embodiments of the present disclosure, as shown in fig. 8, the determining module 702 is specifically configured to:
when the quantity is larger than the quantity threshold value, judging that the shooting object generates a light transmission phenomenon;
when the number is less than or equal to the number threshold, it is determined that the photographic subject does not generate the light transmission phenomenon.
In some embodiments of the present disclosure, as shown in fig. 8, further comprising:
a determining module 704 for determining a brightness compensation value for an original output image of a photosensitive element in an image pickup apparatus after reducing the image brightness value of the original output image if a light transmission phenomenon occurs in a photographing object;
The second processing module 705 is configured to perform compensation processing on an image brightness value of the original output image according to the brightness compensation value, so as to obtain a target image.
In some embodiments of the present disclosure, as shown in fig. 8, the first processing module 703 is specifically configured to:
when the shooting object generates a light transmission phenomenon, reducing the exposure time of the photosensitive element, wherein the photosensitive element outputs an image based on the reduced exposure time; or alternatively
When the photographing object generates a light transmission phenomenon, an exposure compensation value of the photosensitive element is lowered, wherein the photosensitive element outputs an image based on the lowered exposure compensation value.
In some embodiments of the present disclosure, as shown in fig. 8, the first processing module 703 is specifically configured to:
determining an initial exposure time of the photosensitive element;
determining first transmitted light information according to the light transmission phenomenon;
determining a target exposure time corresponding to the first transmitted light information, wherein the target exposure time is smaller than the initial exposure time;
adjusting the initial exposure time of the photosensitive element to be a target exposure time;
the control photosensitive element performs photosensitive imaging on the photographic subject based on the target exposure time.
In some embodiments of the present disclosure, as shown in fig. 8, the first processing module 703 is specifically configured to:
Determining an initial exposure compensation value of the photosensitive element;
determining second transmitted light information according to the light transmission phenomenon;
determining a target exposure compensation value corresponding to the second transmitted light information, wherein the target exposure compensation value is smaller than the initial exposure compensation value;
adjusting the initial exposure compensation value of the photosensitive element to be a target exposure compensation value;
controlling the photosensitive element to carry out compensation processing on the current exposure based on the target exposure compensation value;
and performing photosensitive imaging on the shooting object based on the compensated exposure. FIG. 8
Corresponding to the image processing method provided by the embodiments of fig. 1 to 6, the present disclosure also provides an image processing apparatus, and since the image processing apparatus provided by the embodiments of the present disclosure corresponds to the image processing method provided by the embodiments of fig. 1 to 6, the implementation of the image processing method is also applicable to the image processing apparatus provided by the embodiments of the present disclosure, and will not be described in detail in the embodiments of the present disclosure.
In this embodiment, whether the shot object in the scene generates the light transmission phenomenon is determined based on the preview image by acquiring the preview image captured by the image capturing device, if the shot object generates the light transmission phenomenon, the image brightness value of the original output image of the photosensitive element in the image capturing device is reduced, and in the process of capturing and imaging by the image capturing device, if the shot object generates the light transmission phenomenon, the image brightness value of the output image of the photosensitive element is reduced, so that overexposure of the shot object in the image is avoided, and therefore, the influence of the light transmission phenomenon generated by the shot object on the imaging effect is effectively avoided, and the imaging effect is effectively improved.
In order to implement the above-described embodiments, the present disclosure also proposes a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements an image processing method as proposed in the foregoing embodiments of the present disclosure.
In order to achieve the above embodiments, the present disclosure further proposes an electronic device including: the image processing device comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor realizes the image processing method according to the previous embodiment of the disclosure when executing the program.
In order to implement the above-described embodiments, the present disclosure also proposes a computer program product which, when executed by an instruction processor in the computer program product, performs an image processing method as proposed by the foregoing embodiments of the present disclosure.
Fig. 9 illustrates a block diagram of an exemplary electronic device suitable for use in implementing embodiments of the present disclosure. The electronic device 12 shown in fig. 9 is merely an example and should not be construed as limiting the functionality and scope of use of the disclosed embodiments.
As shown in fig. 9, the electronic device 12 is in the form of a general purpose computing device. Components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, a bus 18 that connects the various system components, including the system memory 28 and the processing units 16. Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include industry Standard architecture (Industry Standard Architecture; hereinafter ISA) bus, micro channel architecture (Micro Channel Architecture; hereinafter MAC) bus, enhanced ISA bus, video electronics standards Association (Video Electronics Standards Association; hereinafter VESA) local bus, and peripheral component interconnect (Peripheral Component Interconnection; hereinafter PCI) bus.
Electronic device 12 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by electronic device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (Random Access Memory; hereinafter: RAM) 30 and/or cache memory 32. The electronic device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 9, commonly referred to as a "hard disk drive").
Although not shown in fig. 9, a magnetic disk drive for reading from and writing to a removable nonvolatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable nonvolatile optical disk (e.g., a compact disk read only memory (Compact Disc Read Only Memory; hereinafter CD-ROM), digital versatile read only optical disk (Digital Video Disc Read Only Memory; hereinafter DVD-ROM), or other optical media) may be provided. In such cases, each drive may be coupled to bus 18 through one or more data medium interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of the various embodiments of the disclosure.
A program/utility 40 having a set (at least one) of program modules 42 may be stored in, for example, memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methods in the embodiments described in this disclosure.
The electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the electronic device 12, and/or any devices (e.g., network card, modem, etc.) that enable the electronic device 12 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 22. Also, the electronic device 12 may communicate with one or more networks, such as a local area network (Local Area Network; hereinafter: LAN), a wide area network (Wide Area Net work; hereinafter: WAN) and/or a public network, such as the Internet, via the network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 over the bus 18. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 12, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 16 executes various functional applications and data processing by running a program stored in the system memory 28, for example, implementing the image processing method mentioned in the foregoing embodiment.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
It should be noted that in the description of the present disclosure, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Furthermore, in the description of the present disclosure, unless otherwise indicated, the meaning of "a plurality" is two or more.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and further implementations are included within the scope of the preferred embodiment of the present disclosure in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present disclosure.
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
Those of ordinary skill in the art will appreciate that all or a portion of the steps carried out in the method of the above-described embodiments may be implemented by a program to instruct related hardware, where the program may be stored in a computer readable storage medium, and where the program, when executed, includes one or a combination of the steps of the method embodiments.
Furthermore, each functional unit in the embodiments of the present disclosure may be integrated in one processing module, or each unit may exist alone physically, or two or more units may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules may also be stored in a computer readable storage medium if implemented in the form of software functional modules and sold or used as a stand-alone product.
The above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, or the like.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present disclosure. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present disclosure have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the present disclosure, and that variations, modifications, alternatives, and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the present disclosure.

Claims (20)

1. An image processing method, comprising:
acquiring a preview image captured by a camera device;
judging whether a shooting object in the preview image generates a light transmission phenomenon or not based on the preview image;
if the subject generates the light transmission phenomenon, the image brightness value of the original output image of the photosensitive element in the image pickup device is reduced.
2. The method of claim 1, wherein the determining whether the photographic subject in the scene generates the light transmission phenomenon based on the preview image comprises:
determining exposure information of the shooting object in the scene according to the preview image;
and judging whether the shooting object generates the light transmission phenomenon or not according to the exposure information.
3. The method of claim 2, wherein the determining exposure information of the photographic subject in the scene from the preview image comprises:
Determining an initial frame area corresponding to the shooting object in the preview image;
performing expansion processing on the initial frame region to obtain a target frame region, wherein the target frame region comprises: a plurality of regional pixel points which respectively correspond to a plurality of exposure information;
wherein the judging whether the shooting object generates the light transmission phenomenon according to the exposure information comprises the following steps:
and judging whether the shooting object generates the light transmission phenomenon or not according to the exposure information.
4. The method of claim 3, wherein the exposure information is an automatic exposure value preset by the image signal processor for the region pixel point;
wherein the determining whether the photographic subject generates the light transmission phenomenon according to the plurality of exposure information includes:
counting the number of pixel points in the region to which the automatic exposure value larger than an exposure threshold value belongs in a plurality of automatic exposure values;
and judging whether the shooting object generates the light transmission phenomenon according to the quantity.
5. The method of claim 4, wherein the determining whether the photographic subject generates the light transmission phenomenon based on the number comprises:
If the number is greater than a number threshold, determining that the photographic subject generates the light transmission phenomenon;
if the number is less than or equal to the number threshold, it is determined that the light transmission phenomenon does not occur in the photographic subject.
6. The method according to claim 1, further comprising, after the lowering of the image brightness value of the original output image of the photosensitive element in the image pickup apparatus if the photographic subject generates the light transmission phenomenon:
determining a brightness compensation value for the original output image;
and carrying out compensation processing on the image brightness value of the original output image according to the brightness compensation value to obtain a target image.
7. The method according to claim 1 or 6, wherein reducing an image luminance value of an original output image of a photosensitive element in the image pickup device if the photographic subject generates the light transmission phenomenon, comprises:
reducing an exposure time of the photosensitive element if the photographing object generates the light transmission phenomenon, wherein the photosensitive element outputs an image based on the reduced exposure time; or alternatively
And reducing an exposure compensation value of the photosensitive element if the photographing object generates the light transmission phenomenon, wherein the photosensitive element outputs an image based on the reduced exposure compensation value.
8. The method of claim 7, wherein the reducing the exposure time of the photosensitive element if the photographic subject generates the light transmission phenomenon, wherein the photosensitive element outputs an image based on the reduced post-exposure time, comprises:
determining an initial exposure time of the photosensitive element;
determining first transmitted light information according to the light transmission phenomenon;
determining a target exposure time corresponding to the first transmitted light information, wherein the target exposure time is smaller than the initial exposure time;
adjusting an initial exposure time of the photosensitive element to the target exposure time;
and controlling the photosensitive element to perform photosensitive imaging on the shooting object based on the target exposure time.
9. The method of claim 7, wherein the reducing the exposure compensation value of the photosensitive element if the photographing object generates the light transmission phenomenon, wherein the photosensitive element outputs an image based on the reduced post-exposure compensation value, comprises:
determining an initial exposure compensation value for the photosensitive element;
determining second transmitted light information according to the light transmission phenomenon;
determining a target exposure compensation value corresponding to the second transmitted light information, wherein the target exposure compensation value is smaller than the initial exposure compensation value;
Adjusting an initial exposure compensation value of the photosensitive element to the target exposure compensation value;
controlling the photosensitive element to perform compensation processing on the current exposure based on the target exposure compensation value;
and performing photosensitive imaging on the shooting object based on the compensated exposure.
10. An image processing apparatus, characterized in that the apparatus comprises:
the acquisition module is used for acquiring the preview image captured by the camera device;
the judging module is used for judging whether the shooting object in the scene generates a light transmission phenomenon or not based on the preview image;
and the first processing module is used for reducing the image brightness value of an original output image of a photosensitive element in the image pickup device when the shooting object generates the light transmission phenomenon.
11. The apparatus of claim 10, wherein the judging module is specifically configured to:
determining exposure information of the shooting object in the scene according to the preview image;
and judging whether the shooting object generates the light transmission phenomenon or not according to the exposure information.
12. The apparatus of claim 11, wherein the judging module is specifically configured to:
determining an initial frame area corresponding to the shooting object in the preview image;
Performing expansion processing on the initial frame region to obtain a target frame region, wherein the target frame region comprises: a plurality of regional pixel points which respectively correspond to a plurality of exposure information;
wherein the judging whether the shooting object generates the light transmission phenomenon according to the exposure information comprises the following steps:
and judging whether the shooting object generates the light transmission phenomenon or not according to the exposure information.
13. The apparatus of claim 12, wherein the exposure information is an automatic exposure value preset by an image signal processor for the region pixel point;
the judging module is specifically configured to:
counting the number of pixel points in the region to which the automatic exposure value larger than an exposure threshold value belongs in a plurality of automatic exposure values;
and judging whether the shooting object generates the light transmission phenomenon according to the quantity.
14. The apparatus of claim 13, wherein the judging module is specifically configured to:
when the number is greater than a number threshold, determining that the photographic subject generates the light transmission phenomenon;
when the number is less than or equal to the number threshold, it is determined that the light transmission phenomenon does not occur in the photographic subject.
15. The apparatus as recited in claim 10, further comprising:
a determining module configured to determine a brightness compensation value for an original output image of a photosensitive element in the image pickup apparatus after the image brightness value of the original output image is reduced if the photographic subject generates the light transmission phenomenon;
and the second processing module is used for carrying out compensation processing on the image brightness value of the original output image according to the brightness compensation value to obtain a target image.
16. The apparatus according to claim 10 or 15, wherein the first processing module is specifically configured to:
reducing the exposure time of the photosensitive element when the photographic subject generates the light transmission phenomenon, wherein the photosensitive element outputs an image based on the reduced exposure time; or alternatively
When the light transmission phenomenon occurs to the shooting object, the exposure compensation value of the photosensitive element is reduced, wherein the photosensitive element outputs an image based on the reduced exposure compensation value.
17. The apparatus of claim 16, wherein the first processing module is configured to:
determining an initial exposure time of the photosensitive element;
Determining first transmitted light information according to the light transmission phenomenon;
determining a target exposure time corresponding to the first transmitted light information, wherein the target exposure time is smaller than the initial exposure time;
adjusting an initial exposure time of the photosensitive element to the target exposure time;
and controlling the photosensitive element to perform photosensitive imaging on the shooting object based on the target exposure time.
18. The apparatus of claim 16, wherein the first processing module is configured to:
determining an initial exposure compensation value for the photosensitive element;
determining second transmitted light information according to the light transmission phenomenon;
determining a target exposure compensation value corresponding to the second transmitted light information, wherein the target exposure compensation value is smaller than the initial exposure compensation value;
adjusting an initial exposure compensation value of the photosensitive element to the target exposure compensation value;
controlling the photosensitive element to perform compensation processing on the current exposure based on the target exposure compensation value;
and performing photosensitive imaging on the shooting object based on the compensated exposure.
19. An electronic device, comprising:
at least one processor; and
A memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-9.
20. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-9.
CN202111501532.XA 2021-12-09 2021-12-09 Image processing method, device, electronic equipment and storage medium Pending CN116261048A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111501532.XA CN116261048A (en) 2021-12-09 2021-12-09 Image processing method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111501532.XA CN116261048A (en) 2021-12-09 2021-12-09 Image processing method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116261048A true CN116261048A (en) 2023-06-13

Family

ID=86681218

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111501532.XA Pending CN116261048A (en) 2021-12-09 2021-12-09 Image processing method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116261048A (en)

Similar Documents

Publication Publication Date Title
US10997696B2 (en) Image processing method, apparatus and device
CN111028189B (en) Image processing method, device, storage medium and electronic equipment
CN108322646B (en) Image processing method, image processing device, storage medium and electronic equipment
EP3836534B1 (en) Imaging control method, electronic device, and computer-readable storage medium
CN110445988B (en) Image processing method, image processing device, storage medium and electronic equipment
US10630906B2 (en) Imaging control method, electronic device and computer readable storage medium
CN110691193B (en) Camera switching method and device, storage medium and electronic equipment
CN113766125B (en) Focusing method and device, electronic equipment and computer readable storage medium
KR101662846B1 (en) Apparatus and method for generating bokeh in out-of-focus shooting
CN109862282B (en) Method and device for processing person image
CN108337445B (en) Photographing method, related device and computer storage medium
CN101848327B (en) Image capturing device and image processing method
JP4834725B2 (en) Method and apparatus for incorporating iris color in red-eye correction
CN108093158B (en) Image blurring processing method and device, mobile device and computer readable medium
CN110599433A (en) Double-exposure image fusion method based on dynamic scene
CN108989699B (en) Image synthesis method, image synthesis device, imaging apparatus, electronic apparatus, and computer-readable storage medium
CN110349163B (en) Image processing method and device, electronic equipment and computer readable storage medium
CN108024057B (en) Background blurring processing method, device and equipment
WO2019105297A1 (en) Image blurring method and apparatus, mobile device, and storage medium
CN109089041A (en) Recognition methods, device, electronic equipment and the storage medium of photographed scene
CN107370961B (en) Image exposure processing method, device and terminal device
CN113313626A (en) Image processing method, image processing device, electronic equipment and storage medium
CN110933304B (en) Method and device for determining to-be-blurred region, storage medium and terminal equipment
CN116261048A (en) Image processing method, device, electronic equipment and storage medium
CN110545384B (en) Focusing method and device, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination