CN113163128A - Image exposure method and electronic device - Google Patents

Image exposure method and electronic device Download PDF

Info

Publication number
CN113163128A
CN113163128A CN202110498986.XA CN202110498986A CN113163128A CN 113163128 A CN113163128 A CN 113163128A CN 202110498986 A CN202110498986 A CN 202110498986A CN 113163128 A CN113163128 A CN 113163128A
Authority
CN
China
Prior art keywords
exposure time
image
target
brightness
camera
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.)
Granted
Application number
CN202110498986.XA
Other languages
Chinese (zh)
Other versions
CN113163128B (en
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.)
Vivo Mobile Communication Hangzhou Co Ltd
Original Assignee
Vivo Mobile Communication Hangzhou 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 Vivo Mobile Communication Hangzhou Co Ltd filed Critical Vivo Mobile Communication Hangzhou Co Ltd
Priority to CN202110498986.XA priority Critical patent/CN113163128B/en
Publication of CN113163128A publication Critical patent/CN113163128A/en
Application granted granted Critical
Publication of CN113163128B publication Critical patent/CN113163128B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/71Circuitry for evaluating the brightness variation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/73Circuitry for compensating brightness variation in the scene by influencing the exposure time

Abstract

The application discloses an image exposure method and electronic equipment, and belongs to the technical field of image processing. The image exposure method includes: under the condition of receiving shooting input, acquiring light source frequency and first brightness of an image to be shot in a current shooting scene; determining a first exposure time of an image to be shot based on the first brightness and a preset second brightness; under the condition that the first exposure time is smaller than the target exposure time, adjusting component parameters of the electronic equipment to adjust the first exposure time to the target exposure time; adjusting the first exposure time to a second exposure time when the first exposure time is greater than the target exposure time; and exposing the image to be shot by using the adjusted first exposure time to obtain a target image.

Description

Image exposure method and electronic device
Technical Field
The application belongs to the technical field of image processing, and particularly relates to an image exposure method and electronic equipment.
Background
Shooting is carried out under the irradiation of light powered by alternating current, and the energy of the alternating current periodically changes in a sine wave form, so that stripe noise is introduced into an exposed image to cause water ripple, and the phenomenon is called flicker (flicker) phenomenon.
At present, the exposure time of an image can be adjusted to eliminate water ripples in the image. For example, when photographing is performed under light irradiation with ac power having a frequency of 50Hz, the exposure time may be adjusted to a positive integer multiple of 10ms to eliminate water ripples in the image. One commonly used method is to reduce the photosensitive performance of the photosensitive chip in the camera assembly, reduce the exposure amount of the image, and increase the exposure time of the image, so as to improve the water ripple in the exposed image.
Disclosure of Invention
An object of the embodiments of the present application is to provide an image exposure method and an electronic device, which can solve the problem that the water ripple in an image cannot be eliminated, so that the image display effect is affected.
In a first aspect, an embodiment of the present application provides an image exposure method applied to an electronic device, where the method includes:
under the condition of receiving shooting input, acquiring light source frequency and first brightness of an image to be shot in a current shooting scene;
determining a first exposure time of an image to be shot based on the first brightness and a preset second brightness;
in the case that the first exposure time is smaller than a target exposure time, adjusting the first exposure time to the target exposure time based on component parameters of the electronic device, the target exposure time being determined based on the light source frequency;
when the first exposure time is larger than the target exposure time, adjusting the first exposure time to be a second exposure time, wherein the second exposure time is smaller than the first exposure time, and the second exposure time is a positive integral multiple of the target exposure time;
and exposing the image to be shot by using the adjusted first exposure time to obtain a target image.
In a second aspect, an embodiment of the present application provides an image exposure apparatus, including:
the device comprises a first acquisition module, a second acquisition module and a control module, wherein the first acquisition module is used for acquiring the light source frequency and the first brightness of an image to be shot under the current shooting scene under the condition of receiving shooting input, and the first brightness of the image to be shot is related to the light inlet quantity of light collected by a camera;
the determining module is used for determining first exposure time of the image to be shot based on the first brightness and preset second brightness;
a first adjusting module, configured to adjust the first exposure time to a target exposure time based on a component parameter if the first exposure time is smaller than the target exposure time, where the target exposure time is determined based on the light source frequency;
a second adjusting module, configured to adjust the first exposure time to a second exposure time when the first exposure time is greater than the target exposure time, where the second exposure time is less than the first exposure time, and the second exposure time is a positive integer multiple of the target exposure time;
and the first exposure module is used for exposing the image to be shot by using the adjusted first exposure time to obtain a target image.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, under the condition that shooting input is received, the light source frequency in the current shooting scene and the first brightness of an image to be shot are obtained; and determining the exposure time of the image to be shot based on the first brightness and the preset second brightness. In the embodiment of the application, under the condition that the exposure time of the image is less than the target exposure time, adjusting the component parameters of the electronic equipment to improve the exposure time of the image, so that the exposure time of the image is equal to the target exposure time; and when the exposure time of the image is larger than the target exposure time, reducing the exposure time of the image and adjusting the exposure time of the image to be positive integral multiple of the target exposure time. In this way, the image is exposed by using the adjusted exposure time, the water ripple in the image is eliminated, and the display effect of the image is improved.
Drawings
FIG. 1 is a flow chart of an image exposure method provided by an embodiment of the present application;
FIG. 2 is a flowchart of an application scenario of the image exposure method according to the embodiment of the present application;
FIG. 3 is a flowchart of another application scenario of the image exposure method provided in the embodiment of the present application;
fig. 4 is a structural view of an image exposure apparatus provided in an embodiment of the present application;
fig. 5 is a block diagram of an electronic device provided in an embodiment of the present application;
fig. 6 is a hardware structure diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The image exposure method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Shooting is carried out under the irradiation of light powered by alternating current, and because the energy of the alternating current periodically changes according to the form of sine waves, stripe noise is introduced into an exposed image to generate light and dark stripes, and the phenomenon is called flicker (flicker) phenomenon.
It should be understood that the exposure start time and the exposure end time corresponding to each pixel point belonging to the same row in the image are identical, so that the light energy provided by the alternating current received by all the pixel points in each row is identical. However, the exposure start time corresponding to the pixel points in different rows is different, so that the light energy received by the pixel points in different rows is not necessarily the same, and thus, a water ripple is generated on the image.
In order to enable the pixel points in different rows to receive the same light energy, the exposure time can be set to be integral multiple of the energy period corresponding to the alternating current, so that the water ripple on the image is eliminated.
For example, if the ac frequency in the chinese area is 50Hz, if the exposure time of the image is a positive integer multiple of 10ms, the stripe noise in the image can be eliminated, and the stripe noise can be understood as the water ripple appearing in the image, thereby avoiding the occurrence of the flicker phenomenon.
At present, the exposure of an image can be reduced and the exposure time of the image can be increased by reducing the photosensitive performance of a photosensitive chip in a camera assembly, so that the exposure time of the image is a positive integral multiple of 10ms, and the water ripple in the exposed image is improved. Alternatively, the exposure time of the image is extended by a processor electrically connected to the camera such that the exposure time of the image is a positive integer multiple of 10ms, thereby improving the water ripple in the exposed image.
However, the first of the above two methods is limited by the hardware condition of the photosensitive chip, and the water ripple generated during the exposure process of the image cannot be completely eliminated, thereby affecting the display effect of the image. The second method may cause the brightness of a partial area of the image to be too high due to too long exposure time, and further introduce bright point noise into the image, resulting in poor image display effect.
Based on the technical problems, the invention provides the following technical concepts:
comparing the exposure time of the image with the size relationship of 10ms, and adjusting the exposure time to 10ms to expose the image under the condition that the exposure time is less than 10 ms; and under the condition that the exposure time is more than 10ms, reducing the exposure time of the image, and enabling the exposure time to be a positive integral multiple of 10ms, so that the water ripple generated in the exposure process of the image is generated, and the display effect of the image is improved.
The image exposure method provided by the embodiment can be applied to electronic equipment which comprises a screen with adjustable transparency and an off-screen camera, so that the light incoming quantity of the camera can be increased or reduced by adjusting the transparency of the screen.
Alternatively, the image exposure method provided by this embodiment may also be applied to an electronic device including a dimmer disposed in the camera assembly, and the light entering amount of the camera may be increased or decreased by adjusting the transparency of the dimmer.
Referring to fig. 1, fig. 1 is a flowchart of an image exposure method according to an embodiment of the present disclosure. The image exposure method provided by the embodiment of the application comprises the following steps:
s101, under the condition that a shooting input is received, acquiring the light source frequency and the first brightness of an image to be shot in the current shooting scene.
The shooting input may be a touch input or a non-touch input, for example, a user may operate a control of a display interface of the electronic device to send the shooting input to the electronic device.
The non-touch input may be a voice input, for example, a user may input a voice input "take a picture" to the electronic device and send a shooting input to the electronic device.
In this step, the electronic device may obtain, by the flicker sensor, the light source frequency in the current shooting scene when receiving the shooting input, or may determine, by a positioning device in the electronic device, the current location of the electronic device, and determine the light source frequency according to the location information.
The light source frequency is an alternating current frequency for providing light irradiation for the current shooting scene, and as described above, the alternating current frequency in the china area is uniform at 50Hz, that is, if shooting is performed in the china area under the light irradiation powered by alternating current, the light source frequency is 50 Hz.
The electronic equipment can further obtain first brightness of the image to be shot under the condition that the shooting input is received, wherein the first brightness is used for representing exposure brightness of the image to be shot, the first brightness is related to the light incoming amount of light collected by the camera, and the larger the light incoming amount is, the higher the first brightness is.
S102, determining a first exposure time of the image to be shot based on the first brightness and a preset second brightness.
In this step, a second brightness is preset, and the second brightness is used for representing the exposure brightness corresponding to the exposed image.
The first exposure time may be an exposure time required to make the exposed image have the second brightness.
It should be understood that, in the process of exposing an image, if the first brightness is higher than the second brightness, it indicates that the image to be captured may be too bright, and in order to avoid the occurrence of the overexposure phenomenon, the brightness of the exposed image may be reduced by reducing the exposure time; in other words, the higher the first brightness is, the shorter the first exposure time is, without changing other photosensitive properties of the camera.
If the first brightness is lower than the second brightness, the image to be shot is possibly too dark, so that the brightness of the exposed image can be improved in a mode of improving the exposure time; in other words, the lower the first brightness, the longer the first exposure time, without changing other photosensitive properties of the camera.
S103, under the condition that the first exposure time is smaller than the target exposure time, adjusting component parameters of the electronic equipment to adjust the first exposure time to the target exposure time.
In this step, the target exposure time may be determined based on the light source frequency, where the target exposure time is the minimum exposure time for eliminating the water ripple in the image, and as described above, in the chinese area, the frequency of the alternating current is 50Hz, and if the exposure time of the image is a positive integer multiple of 10ms, the stripe noise in the image may be eliminated. In other words, in the chinese region, the target exposure time is 10 ms.
In this step, when the first exposure time is smaller than the target exposure time, the first exposure time may be increased by adjusting the component parameters of the electronic device, and the first exposure time may be adjusted to the target exposure time.
And S104, under the condition that the first exposure time is greater than the target exposure time, adjusting the first exposure time to be a second exposure time.
It should be understood that the second exposure time described above is less than the first exposure time, and the second exposure time is a positive integer multiple of the target exposure time.
In this step, the first exposure time of the image is controlled to be shortened so that the first exposure time is equal to the second exposure time when the first exposure time is longer than the target exposure time.
Optionally, a value obtained by rounding down a quotient of the first exposure time and the target exposure time is determined as N; adjusting the first exposure time to be N times the target exposure time.
For ease of understanding, the examples are illustrated as follows:
if the first exposure time is 15ms and the target exposure time is 10ms, it may be determined that the quotient of the first exposure time and the target exposure time is 1.5, and rounding down 1.5 to obtain 1, and then adjusting the first exposure time to 1 time of the target exposure time, that is, adjusting the first exposure time to 10 ms.
And S105, exposing the image to be shot by using the adjusted first exposure time to obtain a target image.
In the step, after the exposure time of the image to be shot is determined, the image to be shot is exposed to obtain the target image, and the exposure time corresponding to the target image is positive integral multiple of the target exposure time, so that the flicker phenomenon is eliminated, the water ripple does not appear in the target image, and the display effect of the image is improved.
In the embodiment of the application, under the condition that shooting input is received, the light source frequency in the current shooting scene and the first brightness of an image to be shot are obtained; and determining the exposure time of the image to be shot based on the first brightness and the preset second brightness. In the embodiment of the application, under the condition that the exposure time of the image is less than the target exposure time, adjusting the component parameters of the electronic equipment to improve the exposure time of the image, so that the exposure time of the image is equal to the target exposure time; and when the exposure time of the image is larger than the target exposure time, reducing the exposure time of the image and adjusting the exposure time of the image to be positive integral multiple of the target exposure time. In this way, the image is exposed by using the adjusted exposure time, the water ripple in the image is eliminated, and the display effect of the image is improved.
Optionally, after determining the first exposure time of the image to be captured, the method includes:
and under the condition that the first exposure time is equal to the target exposure time, exposing the image to be shot by using the first exposure time to obtain the target image.
In this embodiment, if the first exposure time is equal to the target exposure time, the first exposure time may be directly used to expose the image to be captured, so as to obtain the target image without generating ripples.
For ease of understanding, the present embodiment and the solutions provided by the above embodiments are described below with reference to fig. 2:
as shown in fig. 2, fig. 2 shows an application scenario of the image exposure method provided by the present embodiment in china or other areas with an ac frequency of 50 Hz.
The electronic equipment can detect the frequency of the light source by using the flicker sensor, and when the frequency of the light source is not 50Hz, the light source of the current shooting scene is not powered by alternating current, for example, when shooting is carried out under the irradiation of sunlight, the current shooting scene is determined to be in a non-power frequency environment, and subsequent steps do not need to be executed.
Under the condition that the light source frequency is 50Hz, an Automatic Exposure Control (AEC) function of an electronic device processor can be used, a first Exposure time is obtained through calculation based on a first brightness of an image to be shot and a preset second brightness, and whether the first Exposure time is smaller than a target Exposure time or not is judged, wherein the target Exposure time is 10 ms.
And under the condition that the first exposure time is less than 10ms, the transparency of the screen is reduced, the light incoming quantity of the camera is reduced, the exposure time is prolonged, and the exposure time is adjusted to be 10 ms.
In the case where the first exposure time is greater than 10ms, the exposure time may be adjusted to a positive integer multiple of 10ms using an auto-kill flicker algorithm provided with the electronic device processor.
Optionally, the adjusting the component parameter of the electronic device to adjust the first exposure time to the target exposure time includes:
and adjusting the transparency of the screen to adjust the light incident quantity of the camera so that the first exposure time is the target exposure time.
As described above, the image exposure method provided by this embodiment can be applied to an electronic device, where the electronic device includes a camera and a screen with adjustable transparency, and the camera is a video camera under a screen, so that a component parameter of the electronic device is the transparency of the screen, and the amount of light entering the camera can be increased or decreased by adjusting the transparency of the screen, thereby adjusting the first exposure time.
Under the condition that the first exposure time is less than the target exposure time, the transparency of the screen can be reduced, the light incoming quantity of the camera is reduced, the first brightness is reduced, and the first exposure time of the image is prolonged, so that the first exposure time is equal to the target exposure time.
Optionally, the adjusting the component parameter of the electronic device to adjust the first exposure time to the target exposure time includes:
and adjusting the transparency of the dimmer to adjust the light incident quantity of the camera so that the first exposure time is the target exposure time.
As described above, the image exposure method provided in this embodiment can also be applied to an electronic device, where the electronic device includes a camera and a dimmer with adjustable transparency, and the dimmer is disposed at a light-entering end of the camera, so that the exposure parameter of the electronic device is the transparency of the dimmer, and the light-entering amount of the camera can be increased or decreased by adjusting the transparency of the dimmer, thereby adjusting the first exposure time.
In the case that the first exposure time is less than the target exposure time, the transparency of the dimmer may be reduced, the light-entering amount of the camera may be reduced, thereby reducing the first brightness, and the first exposure time of the image may be extended such that the first exposure time is equal to the target exposure time.
Optionally, after the light source frequency in the current shooting scene is acquired, the method includes:
multiplying the light source frequency by a first preset numerical value to obtain a first product result; and dividing a second preset value by the first product result to obtain the target exposure time.
It will be appreciated that under an alternating current light source, the luminance signal exhibits a periodic variation. At present, the frequency of alternating current mainly has 2 standards, namely 50Hz and 60Hz, the energy change corresponding to the alternating current with the frequency of 50Hz is a waveform with the frequency of 100Hz, and the energy change corresponding to the alternating current with the frequency of 60Hz is a waveform with the frequency of 120 Hz. Here, the target exposure time for the alternating current of 50Hz may be set to an integer multiple of 1/100 seconds, and the target exposure time for the alternating current of 60Hz may be set to an integer multiple of 1/120 seconds.
In this embodiment, the first predetermined value is 2, and the second predetermined value is 1.
And multiplying the frequency of the light source by a first preset numerical value to obtain a first product result, wherein the first product result represents the energy period of the alternating current. And dividing the second preset value by the first product result to obtain the target exposure time corresponding to the light source frequency.
For example, if the light source frequency is 50Hz, the first product result may be 100, which is the product of 50 and 2, and 1 is divided by 100, so that the target exposure time may be 1/100 seconds, i.e., 10 milliseconds, if the light source frequency is 50 Hz.
For another example, if the light source frequency is 60Hz, the first product result may be 120 which is the product of 60 and 2, and the target exposure time may be 1/120 seconds if the light source frequency is 50Hz by dividing 1 by 120.
Optionally, after determining the first exposure time of the image to be captured, the method includes:
under the condition that the light source frequency is a third preset value, acquiring a gain value of the image to be shot; and under the condition that the first exposure time is less than the preset exposure time and the gain value is less than the preset gain value, adjusting the first brightness to the second brightness.
In this embodiment, the third predetermined value is 0. It should be understood that, in the case where the light source of the current shooting scene is not powered by ac power, the frequency of the light source corresponding to the current shooting scene is 0. For example, the light source of the current shooting scene is natural light, and then the light source frequency in the current shooting scene is 0.
Under the condition that the frequency of the light source is a third preset value, the light source of the current shooting scene is not a light source powered by alternating current, so that the shot picture has no water ripple.
However, when the image is captured under the irradiation of natural light, the size of the natural light cannot be adjusted, and thus, there is a possibility that the image is overexposed.
Based on the technical problems, the embodiment of the invention reads the gain value of the image to be shot stored by the camera after determining the first exposure time of the image to be shot. It should be understood that the above gain value is also referred to as a camera gain, and the camera gain can be understood as a light sensing performance of an image sensor in a camera; the higher the gain value, the higher the sensitivity of the image sensor to light, and the higher the brightness of the captured image.
It should be understood that the brightness of an image is related to the exposure time and gain value corresponding to the image. For 2 images with the same exposure time, the higher the gain value, the higher the brightness corresponding to the image; for 2 images with the same gain value, the longer the exposure time, the higher the brightness.
It should be noted that, the electronic device stores a preset exposure time and a preset gain value in advance, where the preset exposure time is a shortest exposure time that can be supported by the camera, and the preset gain value is a smallest gain value that can be supported by the camera. If the exposure time corresponding to an image is the preset exposure time and the corresponding gain value is the preset gain value, the brightness of the image is the highest imaging brightness which can be supported by the camera. If the brightness of an image is higher than the highest imaging brightness, the image has an overexposure phenomenon.
In this embodiment, the magnitude relationship between the first exposure time and the preset exposure time, and the magnitude relationship between the gain value and the preset gain value are determined. And under the condition that the first exposure time is less than the preset exposure time and the gain value is less than the preset gain value, indicating that the target image has an overexposure phenomenon.
In the above situation, if the embodiment is applied to an electronic device, and the electronic device includes a screen with adjustable transparency and a camera under the screen, the transparency of the screen can be reduced, the light incoming amount of the camera is reduced, and then the first brightness of the image to be photographed is reduced, so that the first brightness is equal to the second brightness, thereby avoiding an overexposure phenomenon.
If the embodiment is applied to the electronic device comprising the dimmer and the dimmer is arranged on the camera component, the transparency of the dimmer can be reduced, the light incoming quantity of the camera is reduced, and further the first brightness of the image to be shot is reduced, so that the first brightness is equal to the second brightness, and the overexposure phenomenon is avoided.
In the embodiment, whether the image is overexposed is determined by obtaining the first exposure time and the gain value of the image to be shot and according to the magnitude relation between the first exposure time and the preset exposure time and the magnitude relation between the gain value and the preset gain value, and under the condition of overexposure of the image, the first brightness of the image to be shot is adjusted to the second brightness, so that the overexposure phenomenon of the target image is avoided.
For ease of understanding, the scheme provided in the present embodiment is described below with reference to fig. 3:
the electronic equipment can use the flicker sensor to detect the frequency of the light source, under the condition that the frequency of the light source is 50Hz, the light source representing the current shooting scene is powered by alternating current, and the current shooting scene is in a power frequency environment. In this case, the water ripples existing in the image can be eliminated by adopting the content provided by the above embodiment.
And under the condition that the frequency of the light source is not 50Hz, the light source representing the current shooting scene is not powered by alternating current, and the current shooting scene is in a non-power frequency environment. In this case, the automatic exposure control function of the electronic device processor may be used to calculate the first exposure time based on the first brightness and the preset second brightness of the image to be captured, and obtain the exposure value of the image to be captured.
The minimum exposure limit shown in fig. 3 includes a preset exposure time and a preset gain value, and the magnitude relationship of the first exposure time to the preset exposure time and the magnitude relationship of the gain value to the preset gain value are determined. And under the condition that the first exposure time is less than the preset exposure time and the gain value is less than the preset gain value, reducing the transparency of the screen to ensure that the first brightness is equal to the second brightness, and then exposing the image to be shot by using the first exposure time to obtain a target image, thereby avoiding the over-exposure phenomenon of the target image.
And under the condition that the first exposure time is more than or equal to the preset exposure time and/or the gain value is more than or equal to the preset gain value, indicating that the target image has no over-exposure phenomenon, and exposing the image to be shot by using the first exposure time to obtain the target image.
It should be noted that, in the image exposure method provided in the embodiment of the present application, the execution subject may be an image exposure apparatus, or a control module in the image exposure apparatus for executing the method of image exposure. In the embodiment of the present application, a method for performing image exposure by an image exposure apparatus is taken as an example, and the image exposure apparatus provided in the embodiment of the present application is described.
As shown in fig. 4, the image exposing apparatus 200 includes:
a first obtaining module 201, configured to obtain, when a shooting input is received, a light source frequency in a current shooting scene and a first brightness of an image to be shot;
a determining module 202, configured to determine a first exposure time of an image to be captured based on the first brightness and a preset second brightness;
a first adjusting module 203, configured to adjust a component parameter when the first exposure time is smaller than a target exposure time, so as to adjust the first exposure time to the target exposure time;
a second adjusting module 204, configured to adjust the first exposure time to a second exposure time when the first exposure time is greater than the target exposure time;
the first exposure module 205 is configured to expose the image to be captured by using the adjusted first exposure time, so as to obtain a target image.
Optionally, the second adjusting module 204 is further configured to:
determining a value obtained by rounding down a quotient of the first exposure time and the target exposure time as N;
adjusting the first exposure time to be N times the target exposure time.
Optionally, the image exposure apparatus 200 includes a camera and a screen with adjustable transparency, the camera is an off-screen camera, and the component parameter is the transparency of the screen;
the first adjusting module 203 is further configured to adjust a transparency of a screen to adjust an incident light amount of the camera, so that the first exposure time is the target exposure time.
Optionally, the image exposure apparatus 200 includes a camera and a transparency-adjustable dimmer disposed at a light-entering end of the camera, and the component parameter is the transparency of the dimmer;
the first adjusting module 203 is further configured to adjust the transparency of the dimmer to adjust the light incident amount of the camera, so that the first exposure time is the target exposure time.
Optionally, the image exposure apparatus 200 further includes:
the second acquisition module is used for acquiring the gain value of the image to be shot under the condition that the light source frequency is a third preset value;
and the third adjusting module is used for adjusting the first brightness to the second brightness under the condition that the first exposure time is less than the preset exposure time and the gain value is less than the preset gain value.
In the embodiment of the application, under the condition that shooting input is received, the light source frequency in the current shooting scene and the first brightness of an image to be shot are obtained; and determining the exposure time of the image to be shot based on the first brightness and the preset second brightness. In the embodiment of the application, under the condition that the exposure time of the image is less than the target exposure time, adjusting the component parameters of the electronic equipment to improve the exposure time of the image, so that the exposure time of the image is equal to the target exposure time; and when the exposure time of the image is larger than the target exposure time, reducing the exposure time of the image and adjusting the exposure time of the image to be positive integral multiple of the target exposure time. In this way, the image is exposed by using the adjusted exposure time, the water ripple in the image is eliminated, and the display effect of the image is improved.
The image exposure apparatus in the embodiment of the present application may be an apparatus, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The image exposure apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The image exposure apparatus provided in the embodiment of the present application can implement each process implemented in the embodiment of the method in fig. 1, and is not described here again to avoid repetition.
Optionally, as shown in fig. 5, an electronic device 300 is further provided in this embodiment of the present application, and includes a processor 301, a memory 302, and a program or an instruction stored in the memory 302 and executable on the processor 301, where the program or the instruction is executed by the processor 301 to implement the processes of the above-mentioned embodiment of the image exposure method, and can achieve the same technical effects, and in order to avoid repetition, it is not described here again.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 6 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010.
Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 6 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 1010 is further configured to obtain a light source frequency and a first brightness of an image to be photographed in a current photographing scene under the condition that a photographing input is received;
determining a first exposure time of an image to be shot based on the first brightness and a preset second brightness;
adjusting component parameters of the electronic equipment to adjust the first exposure time to be the target exposure time under the condition that the first exposure time is smaller than the target exposure time;
adjusting the first exposure time to a second exposure time when the first exposure time is greater than the target exposure time;
and exposing the image to be shot by using the adjusted first exposure time to obtain a target image.
Optionally, the processor 1010 is further configured to determine a value obtained by rounding down a quotient of the first exposure time and the target exposure time as N;
adjusting the first exposure time to be N times the target exposure time.
Optionally, the processor 1010 is further configured to adjust a transparency of a screen to adjust an incident light amount of a camera, so that the first exposure time is the target exposure time.
Optionally, the processor 1010 is further configured to adjust a transparency of the dimmer to adjust an incident light amount of the camera, so that the first exposure time is the target exposure time.
Optionally, the processor 1010 is further configured to obtain a gain value of the image to be captured when the light source frequency is a third preset value;
and under the condition that the first exposure time is less than the preset exposure time and the gain value is less than the preset gain value, adjusting the first brightness to the second brightness.
In the embodiment of the application, under the condition that shooting input is received, the light source frequency in the current shooting scene and the first brightness of an image to be shot are obtained; and determining the exposure time of the image to be shot based on the first brightness and the preset second brightness. In the embodiment of the application, under the condition that the exposure time of the image is less than the target exposure time, adjusting the component parameters of the electronic equipment to improve the exposure time of the image, so that the exposure time of the image is equal to the target exposure time; and when the exposure time of the image is larger than the target exposure time, reducing the exposure time of the image and adjusting the exposure time of the image to be positive integral multiple of the target exposure time. In this way, the image is exposed by using the adjusted exposure time, the water ripple in the image is eliminated, and the display effect of the image is improved.
It should be understood that in the embodiment of the present application, the input Unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042, and the Graphics Processing Unit 10041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1006 may include a display panel 10061, and the display panel 10071 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 may include two parts, a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 1009 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. Processor 1010 may integrate an application processor that handles primarily operating systems, user interfaces, applications, etc. and a modem processor that handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements the processes of the embodiment of the image exposure method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the above-mentioned embodiment of the image exposure method, and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (12)

1. An image exposure method, applied to an electronic device, the method comprising:
under the condition of receiving shooting input, acquiring light source frequency and first brightness of an image to be shot in a current shooting scene;
determining a first exposure time of an image to be shot based on the first brightness and a preset second brightness;
in the case that the first exposure time is less than a target exposure time, adjusting component parameters of the electronic device to adjust the first exposure time to the target exposure time, the target exposure time being determined based on the light source frequency;
when the first exposure time is larger than the target exposure time, adjusting the first exposure time to be a second exposure time, wherein the second exposure time is smaller than the first exposure time and is a positive integral multiple of the target exposure time;
and exposing the image to be shot by using the adjusted first exposure time to obtain a target image.
2. The method of claim 1, wherein the adjusting the first exposure time to a second exposure time comprises:
determining a value obtained by rounding down a quotient of the first exposure time and the target exposure time as N;
adjusting the first exposure time to be N times the target exposure time.
3. The method of claim 1, wherein the electronic device comprises a camera and a screen with adjustable transparency, wherein the camera is an off-screen camera, and the component parameter is the transparency of the screen;
the adjusting the component parameter of the electronic device to adjust the first exposure time to the target exposure time includes:
and adjusting the transparency of the screen to adjust the light incident quantity of the camera so that the first exposure time is the target exposure time.
4. The method of claim 1, wherein the electronic device comprises a camera and a dimmer with adjustable transparency, the dimmer is disposed at a light input end of the camera, and the component parameter is the transparency of the dimmer;
the adjusting the component parameter of the electronic device to adjust the first exposure time to the target exposure time includes:
and adjusting the transparency of the dimmer to adjust the light incident quantity of the camera so that the first exposure time is the target exposure time.
5. The method of claim 1, wherein after determining the first exposure time for the image to be captured, the method comprises:
under the condition that the light source frequency is a third preset value, acquiring a gain value of the image to be shot;
and under the condition that the first exposure time is less than the preset exposure time and the gain value is less than the preset gain value, adjusting the first brightness to the second brightness.
6. An image exposure apparatus characterized by comprising:
the device comprises a first acquisition module, a second acquisition module and a control module, wherein the first acquisition module is used for acquiring the light source frequency and the first brightness of an image to be shot under the current shooting scene under the condition of receiving shooting input, and the first brightness of the image to be shot is related to the light inlet quantity of light collected by a camera;
the determining module is used for determining first exposure time of the image to be shot based on the first brightness and preset second brightness;
a first adjusting module, configured to adjust a component parameter to adjust the first exposure time to a target exposure time when the first exposure time is less than the target exposure time, where the target exposure time is determined based on the light source frequency;
a second adjusting module, configured to adjust the first exposure time to a second exposure time when the first exposure time is greater than the target exposure time, where the second exposure time is less than the first exposure time, and the second exposure time is a positive integer multiple of the target exposure time;
and the first exposure module is used for exposing the image to be shot by using the adjusted first exposure time to obtain a target image.
7. The apparatus of claim 6, wherein the second adjusting module is further configured to:
determining a value obtained by rounding down a quotient of the first exposure time and the target exposure time as N;
adjusting the first exposure time to be N times the target exposure time.
8. The device of claim 6, wherein the device comprises a camera and a screen with adjustable transparency, the camera is an under-screen camera, and the component parameter is the transparency of the screen;
the first adjusting module is further configured to adjust a transparency of the screen to adjust an incident light amount of the camera, so that the first exposure time is the target exposure time.
9. The device of claim 6, comprising a camera and a transparency-adjustable dimmer disposed at a light-incident end of the camera, wherein the component parameter is the transparency of the dimmer;
the first adjusting module is further configured to adjust the transparency of the dimmer to adjust the light incident amount of the camera, so that the first exposure time is the target exposure time.
10. The apparatus of claim 6, further comprising:
the second acquisition module is used for acquiring the gain value of the image to be shot under the condition that the light source frequency is a third preset value;
and the third adjusting module is used for adjusting the first brightness to the second brightness under the condition that the first exposure time is less than the preset exposure time and the gain value is less than the preset gain value.
11. An electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, which program or instructions, when executed by the processor, carry out the steps of the image exposure method according to any one of claims 1 to 5.
12. A readable storage medium, on which a program or instructions are stored which, when executed by a processor, carry out the steps of the image exposure method according to any one of claims 1 to 5.
CN202110498986.XA 2021-05-08 2021-05-08 Image exposure method and electronic device Active CN113163128B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110498986.XA CN113163128B (en) 2021-05-08 2021-05-08 Image exposure method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110498986.XA CN113163128B (en) 2021-05-08 2021-05-08 Image exposure method and electronic device

Publications (2)

Publication Number Publication Date
CN113163128A true CN113163128A (en) 2021-07-23
CN113163128B CN113163128B (en) 2023-09-12

Family

ID=76873781

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110498986.XA Active CN113163128B (en) 2021-05-08 2021-05-08 Image exposure method and electronic device

Country Status (1)

Country Link
CN (1) CN113163128B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113596344A (en) * 2021-07-26 2021-11-02 艾酷软件技术(上海)有限公司 Shooting processing method and device, electronic equipment and readable storage medium
CN113727031A (en) * 2021-08-05 2021-11-30 珠海视熙科技有限公司 Camera strobe control method and device and storage medium
CN116723409A (en) * 2022-02-28 2023-09-08 荣耀终端有限公司 Automatic exposure method and electronic equipment
CN117135467A (en) * 2023-02-23 2023-11-28 荣耀终端有限公司 Image processing method and electronic equipment

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5251021A (en) * 1990-08-31 1993-10-05 Eastman Kodak Company Color sequential scanner incorporating a synchronized variable exposure shutter
CN102566207A (en) * 2010-12-17 2012-07-11 捷讯研究有限公司 Reduced pre-flash for camera devices with LED flash
CN105264880A (en) * 2013-04-05 2016-01-20 Red.Com公司 Optical filtering for cameras
CN105430290A (en) * 2015-11-24 2016-03-23 青岛海信移动通信技术股份有限公司 Water ripple pre-elimination method and photographing device
CN105847705A (en) * 2016-04-07 2016-08-10 广东欧珀移动通信有限公司 Method and device for adjusting camera exposure time
CN106131445A (en) * 2016-07-08 2016-11-16 深圳天珑无线科技有限公司 A kind of image pickup method and device
CN107409171A (en) * 2015-03-13 2017-11-28 苹果公司 Use the flicker detection of semiconductor light source
CN108462837A (en) * 2018-03-13 2018-08-28 中兴通讯股份有限公司 Image pickup method and device
CN110035234A (en) * 2019-04-16 2019-07-19 深圳市道通智能航空技术有限公司 A kind of filming control method of aircraft, aircraft and flight system
CN111935381A (en) * 2020-08-19 2020-11-13 北京小马智行科技有限公司 Image acquisition and processing device and mobile carrier
US20200412935A1 (en) * 2018-03-13 2020-12-31 Fujifilm Corporation Imaging control device, imaging apparatus, imaging control method, and imaging control program
CN112312024A (en) * 2020-10-30 2021-02-02 维沃移动通信有限公司 Photographing processing method and device and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5251021A (en) * 1990-08-31 1993-10-05 Eastman Kodak Company Color sequential scanner incorporating a synchronized variable exposure shutter
CN102566207A (en) * 2010-12-17 2012-07-11 捷讯研究有限公司 Reduced pre-flash for camera devices with LED flash
CN105264880A (en) * 2013-04-05 2016-01-20 Red.Com公司 Optical filtering for cameras
CN107409171A (en) * 2015-03-13 2017-11-28 苹果公司 Use the flicker detection of semiconductor light source
CN105430290A (en) * 2015-11-24 2016-03-23 青岛海信移动通信技术股份有限公司 Water ripple pre-elimination method and photographing device
CN105847705A (en) * 2016-04-07 2016-08-10 广东欧珀移动通信有限公司 Method and device for adjusting camera exposure time
CN106131445A (en) * 2016-07-08 2016-11-16 深圳天珑无线科技有限公司 A kind of image pickup method and device
CN108462837A (en) * 2018-03-13 2018-08-28 中兴通讯股份有限公司 Image pickup method and device
US20200412935A1 (en) * 2018-03-13 2020-12-31 Fujifilm Corporation Imaging control device, imaging apparatus, imaging control method, and imaging control program
CN110035234A (en) * 2019-04-16 2019-07-19 深圳市道通智能航空技术有限公司 A kind of filming control method of aircraft, aircraft and flight system
CN111935381A (en) * 2020-08-19 2020-11-13 北京小马智行科技有限公司 Image acquisition and processing device and mobile carrier
CN112312024A (en) * 2020-10-30 2021-02-02 维沃移动通信有限公司 Photographing processing method and device and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
张杰,杨华,刘合星: "《构筑新世纪的教育平台 教育技术理论与实践》", 哈尔滨工程大学出版社 *
张杰,杨华,刘合星: "《构筑新世纪的教育平台 教育技术理论与实践》", 哈尔滨工程大学出版社, pages: 1 - 5 *
贡青,李锦萍,闵子建,杜力力: "《一种基于CMOS图像传感器的flicker自动检测方法》", 《首都师范大学学报(自然科学版)》, vol. 28, no. 2, 30 April 2007 (2007-04-30), pages 1 - 4 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113596344A (en) * 2021-07-26 2021-11-02 艾酷软件技术(上海)有限公司 Shooting processing method and device, electronic equipment and readable storage medium
CN113596344B (en) * 2021-07-26 2023-10-24 艾酷软件技术(上海)有限公司 Shooting processing method, shooting processing device, electronic equipment and readable storage medium
CN113727031A (en) * 2021-08-05 2021-11-30 珠海视熙科技有限公司 Camera strobe control method and device and storage medium
CN116723409A (en) * 2022-02-28 2023-09-08 荣耀终端有限公司 Automatic exposure method and electronic equipment
CN117135467A (en) * 2023-02-23 2023-11-28 荣耀终端有限公司 Image processing method and electronic equipment

Also Published As

Publication number Publication date
CN113163128B (en) 2023-09-12

Similar Documents

Publication Publication Date Title
CN113163128B (en) Image exposure method and electronic device
EP3570138A1 (en) Power efficient image sensing apparatus, method of operating the same and eye/gaze tracking system
CN112135046B (en) Video shooting method, video shooting device and electronic equipment
US10051198B2 (en) Method for creating a high dynamic range image using three groups of exposure brightness adjusted images
KR20150099302A (en) Electronic device and control method of the same
CN109040523B (en) Artifact eliminating method and device, storage medium and terminal
CN112822412B (en) Exposure method, exposure device, electronic equipment and storage medium
CN112312035B (en) Exposure parameter adjusting method, exposure parameter adjusting device and electronic equipment
CN112383718A (en) Image exposure method and device and electronic equipment
CN113592754A (en) Image generation method and electronic equipment
CN112422798A (en) Photographing method and device, electronic equipment and storage medium
CN112437237B (en) Shooting method and device
CN113596344A (en) Shooting processing method and device, electronic equipment and readable storage medium
CN111901519B (en) Screen light supplement method and device and electronic equipment
CN113709368A (en) Image display method, device and equipment
CN111835937A (en) Image processing method and device and electronic equipment
WO2023001110A1 (en) Neural network training method and apparatus, and electronic device
CN109672829A (en) Method of adjustment, device, storage medium and the terminal of brightness of image
CN111654640B (en) Exposure adjusting method and device and electronic equipment
CN113962840A (en) Image processing method, image processing device, electronic equipment and storage medium
CN113038026A (en) Image processing method and electronic device
CN113473008A (en) Shooting method and device
CN112446848A (en) Image processing method and device and electronic equipment
CN113037996A (en) Image processing method and device and electronic equipment
CN112153291A (en) Photographing method and electronic equipment

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
GR01 Patent grant
GR01 Patent grant