CN112383718A - Image exposure method and device and electronic equipment - Google Patents

Image exposure method and device and electronic equipment Download PDF

Info

Publication number
CN112383718A
CN112383718A CN202011278728.2A CN202011278728A CN112383718A CN 112383718 A CN112383718 A CN 112383718A CN 202011278728 A CN202011278728 A CN 202011278728A CN 112383718 A CN112383718 A CN 112383718A
Authority
CN
China
Prior art keywords
exposure
brightness
image
pixels
exposed
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
CN202011278728.2A
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.)
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 CN202011278728.2A priority Critical patent/CN112383718A/en
Publication of CN112383718A publication Critical patent/CN112383718A/en
Pending legal-status Critical Current

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/73Circuitry for compensating brightness variation in the scene by influencing the exposure time
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

The application discloses an image exposure method, an image exposure device and electronic equipment, wherein the method comprises the following steps: in the process of exposing an image to be exposed, acquiring exposure time and exposure brightness of N flashing pixel points; and adjusting the exposure brightness of the image to be exposed in the exposure process according to the exposure time and the exposure brightness of the N flashing pixel points. In the process of exposing the image to be exposed, acquiring the exposure time and the exposure brightness of the flicker pixel point, and adjusting the exposure brightness of the image to be exposed in the exposure process according to the exposure time and the exposure brightness of the flicker pixel point. The exposure phenomenon of the image can be eliminated by adjusting the exposure brightness of the image to be exposed in the exposure process. Meanwhile, because the exposure time does not need to be limited to the integral multiple of 1/100 seconds or the integral multiple of 1/120 seconds, the noise introduced into the exposed image can be avoided, and the image display effect is improved.

Description

Image exposure method and device and electronic equipment
Technical Field
The application belongs to the technical field of image processing, and particularly relates to an image exposure method, an image exposure device and electronic equipment.
Background
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.
Currently, it is common to set the exposure time to an integral multiple of 1/100 seconds or an integral multiple of 1/120 seconds for exposing an image to be exposed to eliminate a flicker phenomenon of the image. For example, under the condition that the alternating current frequency is 50Hz, the exposure time is set to be integral multiple of 1/100 seconds to expose the image to be exposed, so that stripe noise is avoided from appearing in the exposed image; under the condition that the alternating current frequency is 60Hz, the exposure time is set to be integral multiple of 1/120 seconds to expose the image to be exposed, and stripe noise is avoided from appearing in the exposed image.
However, the exposure time requirements for different shooting scenes are different for the images to be exposed. In the case where the exposure time is an integer multiple of 1/100 seconds or an integer multiple of 1/120 seconds, even if the stripe noise in the image is eliminated, the luminance of a partial area of the image may be too high due to the excessively long exposure time, and then the bright point noise may be introduced into the image, resulting in poor image display effect.
Disclosure of Invention
An object of the embodiments of the present application is to provide an image exposure method, an image exposure apparatus, and an electronic device, which can solve the technical problem that in an image exposure process, in order to eliminate a flicker phenomenon, an image display effect may be poor due to an excessively long exposure time.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides an image exposure method, including:
in the process of exposing an image to be exposed, acquiring exposure time and exposure brightness of the N flashing pixel points, wherein N is a positive integer, and the N flashing pixel points are pixel points arranged in an exposure area;
and adjusting the exposure brightness of the image to be exposed in the exposure process according to the exposure time and the exposure brightness of the N flashing pixel points.
In a second aspect, an embodiment of the present application provides an image exposure apparatus, including:
the exposure module is used for acquiring the exposure time and the exposure brightness of the N flashing pixel points in the process of exposing the image to be exposed, wherein N is a positive integer, and the N flashing pixel points are pixel points arranged in an exposure area;
and the first adjusting module is used for adjusting the exposure brightness of the image to be exposed in the exposure process according to the exposure time and the exposure brightness of the N flashing pixel points.
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.
According to the method and the device, in the process of exposing the image to be exposed, the exposure time and the exposure brightness of the flicker pixel point are obtained, and the exposure brightness of the image to be exposed in the exposure process is adjusted according to the exposure time and the exposure brightness of the flicker pixel point. The exposure phenomenon of the image can be eliminated by adjusting the exposure brightness of the image to be exposed in the exposure process. Meanwhile, because the exposure time does not need to be limited to the integral multiple of 1/100 seconds or the integral multiple of 1/120 seconds, the noise introduced into the exposed image can be avoided, and the image display effect 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 schematic diagram of an image exposure process provided by an embodiment of the present application;
FIG. 3 is another schematic diagram of an image exposure process provided by an embodiment of the present application;
FIG. 4 is a schematic diagram of a half sine wave scintillation profile provided by an embodiment of the present application;
fig. 5 is a structural view of an image exposure apparatus provided in an embodiment of the present application;
fig. 6 is a block diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described 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, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
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 is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. 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 following describes the detection provided by the embodiments of the present application in detail through specific embodiments and application scenarios thereof with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a flowchart of an image exposure method according to an embodiment of the present application, where the image exposure method according to the embodiment of the present application includes the following steps:
s101, in the process of exposing an image to be exposed, obtaining exposure time and exposure brightness of N flashing pixel points.
It should be understood that the image exposure method provided by the present embodiment is applied to an image exposure apparatus, which may be a camera or other apparatuses with shooting function, and for the sake of clarity of the technical solution, the image exposure apparatus is a camera for example.
Generally, a process of capturing an image by using a camera is to perform line-by-line scanning exposure on a subject to be captured by using the camera, and obtain the image after the exposure is completed. The image to be exposed in this embodiment is a photographic subject that has not been exposed.
Referring to FIG. 2, the exposure process of the image to be exposed is explained in detail below with reference to the drawings.
As shown in the figure, a rectangular coordinate system is included in the figure, wherein the abscissa axis of the coordinate system represents the exposure time; the ordinate axis represents the pixel row number of the image, and as can be seen from the figure, the image includes 5 rows of pixels, and the numbers on the ordinate axis increase from top to bottom along the ordinate axis. For example, 3 on the ordinate represents the 3 rd row of pixels in the image.
The exposure duration and the exposure brightness of each row of pixels in the image to be exposed are consistent, wherein each row of pixels in the image to be exposed comprises a plurality of pixel points located on the same row, and the exposure brightness of the pixel points located on the same row is also consistent.
After the first line is exposed for a preset time, the second line is exposed, and it should be understood that the first line is still exposed, i.e. the first line and the second line are exposed simultaneously. And after the second line is exposed for a preset time, starting exposure of the third line, and thus, obtaining an exposed image until the last line is exposed.
As shown, there are 5 rows of pixels in the image to be exposed, and the exposure time of each row of pixels in the image to be exposed is 10 milliseconds. After the first line of the image to be exposed is exposed for 1 millisecond, the second line starts to be exposed, and the first line and the second line in the image to be exposed are simultaneously exposed. After the second line is exposed for 1 millisecond, i.e. the first line is exposed for 2 milliseconds, the third line starts to be exposed, and the first line, the second line and the third line in the image to be exposed are simultaneously exposed. Thus, until the 15 th millisecond, the exposure of each line of pixels in the image to be exposed is completed, and the exposed image is obtained.
It is also understood that there is a difference in the frequency of the alternating current in each country due to differences in the electricity safety standards of each country, and in general, there are two cases of the frequency of the alternating current of 50Hz and 60 Hz. For example, the AC frequency in China is 50Hz, and the AC frequency in the United states is 60 Hz.
When shooting is carried out under the condition that an alternating current light source exists, because the energy of alternating current is changed periodically, strip noise is introduced into an exposed image, and stripes with alternate light and shade appear to generate a flicker phenomenon.
The flicker phenomenon is expressed in a specific manner in that the exposure brightness of each line of pixels in the image is different. It should be noted that, in the case of no flicker phenomenon, the exposure brightness of each line of pixels in the image is uniform, and in the case of flicker phenomenon, each line of pixels in the image is increased with different compensation brightness, which results in non-uniform exposure brightness of each line of pixels in the image.
For example, when the image is taken without an AC light source, the exposure luminance of the first row of pixels in the image is 20cd/m2The exposure luminance of the second row of pixels is also 20cd/m2. In the presence of an AC light source, the same subject is photographed, and the first row of pixels in the image has a compensation brightness of 10cd/m due to flicker2The second row of pixels has a compensation luminance of 2cd/m due to flicker2Then, the exposure brightness of the first row of pixels in the presence of the AC light source is 20cd/m2Plus a compensation luminance of 10cd/m2At 30cd/m2. Based on the same principle, the exposure luminance in the case where the AC light source is present in the second row of pixels is 22cd/m2. In this way, the exposure brightness of the pixels of the adjacent rows is not consistent, and the pixels are embodied as stripes with alternate light and shade on the image.
In addition, under the condition of an alternating current light source with different alternating current frequencies, images can generate different flickering phenomena.
For example, when a user uses a camera in China and shoots under the condition that an alternating current light source exists, the obtained first image can generate a flicker phenomenon; when a user uses a camera in the united states and photographs in the presence of an ac light source, the second image obtained also may flicker. Since the ac frequency in china is not the same as that in the united states, the stripe noise appearing in the first image is also different from that appearing in the second image.
It should be noted that, under different ac frequencies, the flicker phenomenon generated by the image is different,
an optional implementation manner is that N flicker pixels are set in an exposure area of an image exposure device or a camera, and the flicker pixels are set in an exposure area to be exposed of each row of pixels of an image to be exposed, so that in the process of exposing each row of pixels, the flicker pixels set in the row are also exposed correspondingly. In each image exposure process, the exposure process is adjusted according to the exposure time and the exposure brightness of the flicker pixel points, and therefore the flicker phenomenon of the image can be eliminated under any condition.
The flicker pixel is a special pixel, the flicker pixel is used for detecting the flicker phenomenon of the image, and is not used for displaying the image like a common pixel, and the exposure brightness of the flicker pixel arranged in a certain row is the compensation brightness generated by the flicker phenomenon of the pixel in the row.
In addition, the number of the flashing pixel points can be preset, generally speaking, the more the number of the flashing pixel points is, the more accurate the compensation brightness of the reflected image caused by the flashing phenomenon is, but the display effect of the image can be influenced;
in addition, can be through increase scintillation pixel point, perhaps other modes, the exposure time that sets up scintillation pixel point is shorter, and like this, the compensation luminance through scintillation pixel point reflection is more accurate.
In this embodiment, N flicker pixels are disposed in an exposure region of an image exposure apparatus or a camera, and an exposure process is adjusted according to exposure time and exposure brightness of the N flicker pixels.
Referring to fig. 3, how to obtain the exposure time and the exposure brightness of the blinking pixel is explained in detail below with reference to the drawings.
As shown in the figure, the sixth line of pixels corresponding to the ordinate value 6 in the figure is the flicker pixel point arranged in each line of pixels, and as can be seen from the figure, 10 flicker pixel points are included, that is, N is equal to 10. As described above, because the exposure area of each row of pixels of the image to be exposed is provided with the flicker pixel, the flicker pixel corresponding to the row can be scanned in the process of exposing each row of pixels, so as to obtain the exposure time and the exposure brightness of the N flicker pixels.
And S102, adjusting the exposure brightness of the image to be exposed in the exposure process according to the exposure time and the exposure brightness of the N flicker pixels.
Based on the above, the present embodiment can eliminate the compensation brightness of each row of pixels by adjusting the exposure brightness of the image to be exposed in the exposure process, so that the exposure brightness of each row of pixels in the image is consistent, thereby eliminating the flicker phenomenon.
In this embodiment, because N flicker pixels are set, the exposure brightness of the image to be exposed in the exposure process is adjusted according to the exposure time and the exposure brightness of the flicker pixels. Therefore, the present embodiment can eliminate the exposure phenomenon of the image by adjusting the exposure brightness of the image to be exposed in the exposure process. Meanwhile, because the exposure time does not need to be limited to the integral multiple of 1/100 seconds or the integral multiple of 1/120 seconds, the noise introduced into the exposed image can be avoided, and the image display effect is improved.
Further, the obtaining of the exposure time and the exposure brightness of the N flashing pixel points includes:
acquiring current positioning information and historical positioning information of the device; determining the current alternating current frequency according to the current positioning information; determining historical alternating current frequency according to the historical positioning information; and under the condition that the current alternating current frequency is not the historical alternating current frequency, acquiring the exposure time and the exposure brightness of the N flashing pixel points.
In the embodiment, in the process of exposing the image to be exposed, whether the frequency of the alternating current is changed or not is judged, and the exposure process is adjusted under the condition that the frequency of the alternating current is changed, so that the flicker phenomenon of the image can be eliminated under any condition; and under the condition that the alternating current frequency is not changed, the current exposure mode of the camera is applied to expose the image to be exposed.
In this embodiment, when the camera is used for shooting, the positioning information of the camera is acquired to determine the current country of the user, and then the current alternating current frequency of the current country of the user can be determined according to the preset lookup table.
Meanwhile, historical positioning information of the camera, namely the positioning information acquired by the camera in the last shooting process, is acquired, the country where the user is located in the past is determined, and then the historical alternating current frequency of the country where the user is located in the past can be determined according to a preset lookup table. And under the condition that the current alternating current frequency is inconsistent with the historical alternating current frequency, acquiring the exposure time and the exposure brightness of the flickering pixel points, and further adjusting the exposure brightness of the image.
For example, when a user uses a camera to shoot, the user is determined to be in the united states by acquiring the positioning information of the camera, and then the united states is taken as the current positioning information; if the AC frequency of the United states is 60Hz in a preset lookup table, the current AC frequency is 60 Hz. And further acquiring historical positioning information stored by the camera, and if the historical positioning information is 'China', obtaining that the AC frequency of the United states is 50Hz in a preset lookup table, and taking '50 Hz' as the current AC frequency. In this case, it is determined that the frequency of the alternating current is changed.
Further, adjusting the exposure brightness of the image to be exposed in the exposure process according to the exposure time and the exposure brightness of the N flashing pixel points includes:
determining a corresponding half sine wave flicker curve of the image to be exposed in the exposure process according to the exposure time and the exposure brightness of the N flicker pixel points; aiming at the Mth row of pixels in the image to be exposed, acquiring the initial exposure time and the exposure duration of the Mth row of pixels, wherein M is a positive integer; obtaining the exposure termination time of the pixels in the Mth row according to the initial exposure time and the exposure duration; and adjusting the exposure brightness of the pixels in the Mth row according to the half sine wave flicker curve, the initial exposure time and the final exposure time.
In this embodiment, please refer to fig. 4, as shown in the figure, the abscissa axis of the rectangular coordinate system in the figure represents the exposure time of the flicker pixel, and the ordinate axis represents the exposure brightness of the flicker pixel, i.e. the compensation brightness. N points of a coordinate system in the image can be obtained according to the exposure time and the exposure brightness of the N flashing pixel points, and a periodically distributed half sine wave curve is fitted according to the N points and is called as a half sine wave flashing curve.
The half sine wave flicker curve reflects the mapping of the exposure time and the compensation brightness of the image to be exposed in the exposure process, and the compensation brightness is the exposure brightness of the image to be exposed due to the flicker phenomenon.
Therefore, the exposure brightness of any row of pixels in the image to be exposed can be adjusted according to the half sine wave flicker curve so as to eliminate the flicker phenomenon.
The following describes how to adjust the exposure brightness of any line of pixels in the image to be exposed according to a half sine wave flicker curve by taking the M-th line of pixels in the image to be exposed as an example, and it should be understood that the M-th line of pixels in the image to be exposed in this embodiment may be understood as any line of pixels in the image to be exposed.
Alternatively, before the mth row of pixels is exposed, the starting exposure time of the mth row of pixels may be obtained according to the starting exposure time and exposure duration of the previous row of pixels, i.e., the M-1 th row of pixels.
As described above, in the exposure process, the exposure time of each row of pixels is consistent, and the exposure time is added to the initial exposure time of the mth row of pixels to obtain the final exposure time of the mth row of pixels.
And further, according to the half sine wave flicker curve, the initial exposure time and the end exposure time of the pixels in the Mth row, adjusting the exposure brightness of the pixels in the Mth row, wherein the exposure brightness of the pixels in the Mth row is the exposure brightness of the pixels in the Mth row after the flicker phenomenon occurs, and eliminating the flicker phenomenon in the image by adjusting the exposure brightness of the pixels in each row.
Further, the adjusting the exposure brightness of the mth row of pixels according to the half sine wave flashing curve, the start exposure time, and the end exposure time includes:
determining a curve path corresponding to the starting exposure time to the ending exposure time in the half sine wave flicker curve; integrating the curve path to determine the compensation brightness of the pixels in the Mth row; and adjusting the exposure brightness of the pixels in the Mth row according to the compensation brightness.
In this embodiment, a curve path corresponding to the exposure time from the start to the end of the M-th row of pixels is determined in the half sine wave flicker curve, and the curve path is integrated. Specifically, the curved path may be integrated by using an arc differential formula, and a value obtained by the integration may be determined as the compensated brightness of the mth row of pixels.
For example, referring to fig. 4, as shown in the figure, if the initial exposure time of the mth row of pixels is 2 ms and the ending exposure time is 8 ms, the curve paths corresponding to the exposure times from 2 ms to 8 ms are integrated by using the arc differential formula to determine the compensation brightness of the mth row of pixels. Wherein the minimum compensation luminance corresponding to the curve path is 6cd/m2The maximum compensation luminance is 10cd/m2Therefore, the above-mentioned compensation brightness should be in the range of 6cd/m2To 10cd/m2This interval.
Further, the adjusting the exposure brightness of the mth row of pixels in the image according to the compensation brightness includes:
subtracting the compensation brightness from the exposure brightness of the pixels in the Mth row to obtain the target exposure brightness of the pixels in the Mth row; and adjusting the exposure duration of the pixels in the Mth row to enable the exposure brightness of the pixels in the Mth row to be the target exposure brightness.
And after the compensation brightness of the pixels in the Mth row is obtained, subtracting the compensation brightness from the obtained exposure brightness of the pixels in the Mth row to obtain the target exposure brightness of the pixels in the Mth row.
In one embodiment, since the exposure brightness of each row of pixels is associated with the exposure time period, the longer the exposure time period, the higher the exposure brightness of each row of pixels. Therefore, the exposure brightness of the pixels in the mth row can be adjusted by adjusting the exposure duration of the pixels in the mth row, so that the exposure brightness of the pixels in the mth row is the target exposure brightness.
In another embodiment, the exposure brightness of the mth row of pixels may be directly adjusted so that the exposure brightness of the mth row of pixels is the target exposure brightness.
For example, the exposure luminance of the pixels of the Mth row is 10cd/M2The target exposure luminance of the M-th row of pixels is 8cd/M2. The exposure brightness of the mth row of pixels may be reduced by 20% so that the exposure brightness of the mth row of pixels is the target exposure brightness.
In the embodiment, the exposure duration of each row of pixels is adjusted, so that the exposure brightness of each row of pixels is the target exposure brightness, and the flicker phenomenon of the image is eliminated. In this case, the exposure time of each row of pixels is adjusted according to the actual situation of each row of pixels, and the exposure time does not need to be limited to be integral multiples of 1/100 seconds or integral multiples of 1/120 seconds, so that the noise of the image is avoided, and the display effect of the image is improved.
Further, after determining a corresponding half sine wave flicker curve of the image to be exposed in the exposure process, the method further includes:
determining the cycle duration of any one half sine wave in the half sine wave flicker curve; and adjusting the exposure time length of each row of pixels in the image to be exposed to be integral multiple of the period time length.
For example, referring to fig. 4, if the period duration of a half sine wave is 10 ms, the exposure duration of each row of pixels in the image to be exposed may be adjusted to 10 ms, or the exposure duration of each row of pixels in the image to be exposed may be adjusted to an integer multiple of 10 ms, for example, 20 ms, so as to eliminate the flicker phenomenon in the image.
As shown in fig. 5, the image exposing apparatus 200 includes:
the exposure module 201 is configured to obtain exposure time and exposure brightness of the N flashing pixel points in a process of exposing an image to be exposed;
and the first adjusting module 203 is configured to adjust the exposure brightness of the image to be exposed in the exposure process according to the exposure time and the exposure brightness of the N flashing pixel points.
Optionally, the exposure module 201 is further configured to:
acquiring current positioning information and historical positioning information of the device;
determining the current alternating current frequency according to the current positioning information;
determining historical alternating current frequency according to the historical positioning information;
and under the condition that the current alternating current frequency is not the historical alternating current frequency, acquiring the exposure time and the exposure brightness of the N flashing pixel points.
Optionally, the first adjusting module 203 includes:
the first determining unit is used for determining a corresponding half sine wave flicker curve of the image to be exposed in the exposure process according to the exposure time and the exposure brightness of the N flicker pixels;
the acquisition unit is used for acquiring the initial exposure time and the exposure duration of the Mth row of pixels in the image to be exposed;
the second determining unit is used for obtaining the exposure termination time of the pixels in the Mth row according to the initial exposure time and the exposure duration;
and the adjusting unit is used for adjusting the exposure brightness of the pixels in the Mth row according to the half sine wave flicker curve, the starting exposure time and the ending exposure time.
Optionally, the adjusting unit is specifically configured to:
determining a curve path corresponding to the starting exposure time to the ending exposure time in the half sine wave flicker curve;
integrating the curve path to determine the compensation brightness of the pixels in the Mth row;
and adjusting the exposure brightness of the pixels in the Mth row according to the compensation brightness.
Optionally, the adjusting unit is further specifically configured to:
subtracting the compensation brightness from the exposure brightness of the pixels in the Mth row to obtain the target exposure brightness of the pixels in the Mth row;
and adjusting the exposure duration of the pixels in the Mth row to enable the exposure brightness of the pixels in the Mth row to be the target exposure brightness.
Optionally, the image exposure apparatus 200 further includes:
the determining module is used for determining the cycle time of any half sine wave in the half sine wave flicker curve;
and the second adjusting module is used for adjusting the exposure duration of each row of pixels in the image to be exposed to be integral multiple of the period duration.
The image exposure apparatus in the embodiment of the present application may be a camera, 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 by the image exposure method in the method embodiment of fig. 1, and is not described herein again to avoid repetition.
According to the method and the device, in the process of exposing the image to be exposed, the exposure time and the exposure brightness of the flicker pixel point are obtained, and the exposure brightness of the image to be exposed in the exposure process is adjusted according to the exposure time and the exposure brightness of the flicker pixel point. The exposure phenomenon of the image can be eliminated by adjusting the exposure brightness of the image to be exposed in the exposure process. Meanwhile, because the exposure time does not need to be limited to the integral multiple of 1/100 seconds or the integral multiple of 1/120 seconds, the noise introduced into the exposed image can be avoided, and the image display effect is improved.
Optionally, an electronic device is further provided in this embodiment of the present application, and includes a processor 310, a memory 309, and a program or an instruction stored in the memory 309 and executable on the processor 310, where the program or the instruction is executed by the processor 310 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, details are not described here again.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices 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 300 includes, but is not limited to: radio frequency unit 301, network module 302, audio output unit 303, input unit 304, sensor 305, display unit 306, user input unit 307, interface unit 308, memory 309, and processor 310.
Those skilled in the art will appreciate that the electronic device 300 may further include a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 310 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 310 is configured to obtain exposure time and exposure brightness of the N flashing pixel points in the process of exposing the image to be exposed;
and adjusting the exposure brightness of the image to be exposed in the exposure process according to the exposure time and the exposure brightness of the N flashing pixel points.
Optionally, the processor 310 is further configured to obtain current positioning information and historical positioning information of the apparatus;
determining the current alternating current frequency according to the current positioning information;
determining historical alternating current frequency according to the historical positioning information;
and under the condition that the current alternating current frequency is not the historical alternating current frequency, acquiring the exposure time and the exposure brightness of the N flashing pixel points.
Optionally, the processor 310 is further configured to determine a corresponding half sine wave flicker curve of the image to be exposed in the exposure process according to the exposure time and the exposure brightness of the N flicker pixels;
aiming at the Mth row of pixels in the image to be exposed, acquiring the initial exposure time and the exposure duration of the Mth row of pixels;
obtaining the exposure termination time of the pixels in the Mth row according to the initial exposure time and the exposure duration;
and adjusting the exposure brightness of the pixels in the Mth row according to the half sine wave flicker curve, the initial exposure time and the final exposure time.
Optionally, the processor 310 is further configured to determine a curve path corresponding to the starting exposure time to the ending exposure time in the half sine wave scintillation curve;
integrating the curve path to determine the compensation brightness of the pixels in the Mth row;
and adjusting the exposure brightness of the pixels in the Mth row according to the compensation brightness.
Optionally, the processor 310 is further configured to subtract the compensation brightness from the exposure brightness of the mth row of pixels to obtain a target exposure brightness of the mth row of pixels;
and adjusting the exposure duration of the pixels in the Mth row to enable the exposure brightness of the pixels in the Mth row to be the target exposure brightness.
Optionally, the processor 310 is further configured to determine a cycle duration of any one half sine wave in the half sine wave scintillation curve;
and adjusting the exposure time length of each row of pixels in the image to be exposed to be integral multiple of the period time length.
According to the method and the device, in the process of exposing the image to be exposed, the exposure time and the exposure brightness of the flicker pixel point are obtained, and the exposure brightness of the image to be exposed in the exposure process is adjusted according to the exposure time and the exposure brightness of the flicker pixel point. The exposure phenomenon of the image can be eliminated by adjusting the exposure brightness of the image to be exposed in the exposure process. Meanwhile, because the exposure time does not need to be limited to the integral multiple of 1/100 seconds or the integral multiple of 1/120 seconds, the noise introduced into the exposed image can be avoided, and the image display effect is improved.
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 foregoing detection method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
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 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, an air conditioner, 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 (14)

1. An image exposure method characterized by comprising the steps of:
in the process of exposing an image to be exposed, acquiring exposure time and exposure brightness of N flashing pixel points, wherein N is a positive integer, and the N flashing pixel points are pixel points arranged in an exposure area;
and adjusting the exposure brightness of the image to be exposed in the exposure process according to the exposure time and the exposure brightness of the N flashing pixel points.
2. The method of claim 1, applied to an image exposure device, wherein the obtaining the exposure time and the exposure brightness of the N flicker pixels comprises:
acquiring current positioning information and historical positioning information of the device;
determining the current alternating current frequency according to the current positioning information;
determining historical alternating current frequency according to the historical positioning information;
and under the condition that the current alternating current frequency is not the historical alternating current frequency, acquiring the exposure time and the exposure brightness of the N flashing pixel points.
3. The method according to claim 1, wherein the adjusting the exposure brightness of the image to be exposed in the exposure process according to the exposure time and the exposure brightness of the N blinking pixel points comprises:
determining a corresponding half sine wave flicker curve of the image to be exposed in the exposure process according to the exposure time and the exposure brightness of the N flicker pixel points;
aiming at the Mth row of pixels in the image to be exposed, acquiring the initial exposure time and the exposure duration of the Mth row of pixels, wherein M is a positive integer;
obtaining the exposure termination time of the pixels in the Mth row according to the initial exposure time and the exposure duration;
adjusting the exposure brightness of the pixels on the Mth row according to the half sine wave flicker curve, the initial exposure time and the final exposure time;
the half sine wave flicker curve reflects the mapping of the exposure time and the compensation brightness of the image to be exposed in the exposure process, and the compensation brightness is the exposure brightness of the image to be exposed due to the flicker phenomenon.
4. The method of claim 3, wherein the adjusting the exposure brightness for the Mth row of pixels according to the half sine wave blinking curve, the starting exposure time, and the ending exposure time comprises:
determining a curve path corresponding to the starting exposure time to the ending exposure time in the half sine wave flicker curve;
integrating the curve path to determine the compensation brightness of the pixels in the Mth row;
and adjusting the exposure brightness of the pixels in the Mth row according to the compensation brightness.
5. The method of claim 4, wherein the adjusting exposure brightness for the mth row of pixels in the image according to the compensation brightness comprises:
subtracting the compensation brightness from the exposure brightness of the pixels in the Mth row to obtain the target exposure brightness of the pixels in the Mth row;
and adjusting the exposure duration of the pixels in the Mth row to enable the exposure brightness of the pixels in the Mth row to be the target exposure brightness.
6. The method of claim 3, wherein after determining a corresponding half sine wave flicker curve of the image to be exposed during the exposure process, the method further comprises:
determining the cycle duration of any one half sine wave in the half sine wave flicker curve;
and adjusting the exposure time length of each row of pixels in the image to be exposed to be integral multiple of the period time length.
7. An image exposure apparatus, characterized by comprising:
the exposure module is used for acquiring the exposure time and the exposure brightness of the N flashing pixel points in the process of exposing the image to be exposed, wherein N is a positive integer, and the N flashing pixel points are pixel points arranged in an exposure area;
and the first adjusting module is used for adjusting the exposure brightness of the image to be exposed in the exposure process according to the exposure time and the exposure brightness of the N flashing pixel points.
8. The apparatus of claim 7, wherein the exposure module is further configured to:
acquiring current positioning information and historical positioning information of the device;
determining the current alternating current frequency according to the current positioning information;
determining historical alternating current frequency according to the historical positioning information;
and under the condition that the current alternating current frequency is not the historical alternating current frequency, acquiring the exposure time and the exposure brightness of the N flashing pixel points.
9. The apparatus of claim 7, wherein the first adjusting module comprises:
the first determining unit is used for determining a corresponding half sine wave flicker curve of the image to be exposed in the exposure process according to the exposure time and the exposure brightness of the N flicker pixels;
the acquisition unit is used for acquiring the initial exposure time and the exposure duration of the Mth row of pixels in the image to be exposed;
the second determining unit is used for obtaining the exposure termination time of the pixels in the Mth row according to the initial exposure time and the exposure duration;
and the adjusting unit is used for adjusting the exposure brightness of the pixels in the Mth row according to the half sine wave flicker curve, the starting exposure time and the ending exposure time.
10. The apparatus according to claim 9, wherein the adjusting unit is specifically configured to:
determining a curve path corresponding to the starting exposure time to the ending exposure time in the half sine wave flicker curve;
integrating the curve path to determine the compensation brightness of the pixels in the Mth row;
and adjusting the exposure brightness of the pixels in the Mth row according to the compensation brightness.
11. The apparatus according to claim 10, wherein the adjusting unit is further specifically configured to:
subtracting the compensation brightness from the exposure brightness of the pixels in the Mth row to obtain the target exposure brightness of the pixels in the Mth row;
and adjusting the exposure duration of the pixels in the Mth row to enable the exposure brightness of the pixels in the Mth row to be the target exposure brightness.
12. The apparatus according to claim 9, wherein the image exposure apparatus further comprises:
the determining module is used for determining the cycle time of any half sine wave in the half sine wave flicker curve;
and the second adjusting module is used for adjusting the exposure duration of each row of pixels in the image to be exposed to be integral multiple of the period duration.
13. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the method of any one of claims 1-6.
14. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the method according to any one of claims 1-6.
CN202011278728.2A 2020-11-16 2020-11-16 Image exposure method and device and electronic equipment Pending CN112383718A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011278728.2A CN112383718A (en) 2020-11-16 2020-11-16 Image exposure method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011278728.2A CN112383718A (en) 2020-11-16 2020-11-16 Image exposure method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN112383718A true CN112383718A (en) 2021-02-19

Family

ID=74584692

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011278728.2A Pending CN112383718A (en) 2020-11-16 2020-11-16 Image exposure method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112383718A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112738414A (en) * 2021-04-06 2021-04-30 荣耀终端有限公司 Photographing method, electronic device and storage medium
CN114222070A (en) * 2021-09-27 2022-03-22 苏州科达科技股份有限公司 Brightness compensation method, device, equipment and storage medium
WO2023005910A1 (en) * 2021-07-28 2023-02-02 维沃移动通信有限公司 Image generation method and electronic device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050238259A1 (en) * 2004-04-27 2005-10-27 Ki-Yong Kim Image sensor for detecting flicker noise and method thereof
CN104079826A (en) * 2014-06-27 2014-10-01 广东欧珀移动通信有限公司 Method and device for eliminating flicker of intelligent camera shooting device
CN105657288A (en) * 2015-10-28 2016-06-08 乐视移动智能信息技术(北京)有限公司 Camera shooting exposure processing method and terminal
CN106375635A (en) * 2016-09-20 2017-02-01 惠州Tcl移动通信有限公司 Camera strip noise resistant setting method and system based on GPS
CN106973239A (en) * 2016-01-13 2017-07-21 三星电子株式会社 Image capture device and the method for operating the image capture device
CN111212242A (en) * 2020-01-14 2020-05-29 维沃移动通信有限公司 Exposure method and electronic apparatus
CN111355864A (en) * 2020-04-16 2020-06-30 浙江大华技术股份有限公司 Image flicker elimination method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050238259A1 (en) * 2004-04-27 2005-10-27 Ki-Yong Kim Image sensor for detecting flicker noise and method thereof
CN104079826A (en) * 2014-06-27 2014-10-01 广东欧珀移动通信有限公司 Method and device for eliminating flicker of intelligent camera shooting device
CN105657288A (en) * 2015-10-28 2016-06-08 乐视移动智能信息技术(北京)有限公司 Camera shooting exposure processing method and terminal
CN106973239A (en) * 2016-01-13 2017-07-21 三星电子株式会社 Image capture device and the method for operating the image capture device
CN106375635A (en) * 2016-09-20 2017-02-01 惠州Tcl移动通信有限公司 Camera strip noise resistant setting method and system based on GPS
CN111212242A (en) * 2020-01-14 2020-05-29 维沃移动通信有限公司 Exposure method and electronic apparatus
CN111355864A (en) * 2020-04-16 2020-06-30 浙江大华技术股份有限公司 Image flicker elimination method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112738414A (en) * 2021-04-06 2021-04-30 荣耀终端有限公司 Photographing method, electronic device and storage medium
CN112738414B (en) * 2021-04-06 2021-06-29 荣耀终端有限公司 Photographing method, electronic device and storage medium
WO2023005910A1 (en) * 2021-07-28 2023-02-02 维沃移动通信有限公司 Image generation method and electronic device
CN114222070A (en) * 2021-09-27 2022-03-22 苏州科达科技股份有限公司 Brightness compensation method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN112383718A (en) Image exposure method and device and electronic equipment
US9451173B2 (en) Electronic device and control method of the same
CN113163128B (en) Image exposure method and electronic device
US8994845B2 (en) System and method of adjusting a camera based on image data
CN109167931B (en) Image processing method, device, storage medium and mobile terminal
CN112492227B (en) Exposure method, camera module and electronic equipment
WO2019149099A1 (en) Electronic device, human face recognition method, and relevant product
US9258489B2 (en) Image acquisition method and apparatus
CN103327239A (en) Camera data processing method based on mobile terminal and mobile terminal
CN111816139B (en) Screen refresh rate switching method and electronic equipment
CN105450932A (en) Backlight photographing method and device
CN112492228B (en) Exposure method, camera module and electronic equipment
CN104660766A (en) Backlight adjustment method and device of mobile terminal
CN113592754A (en) Image generation method and electronic equipment
US20210112189A1 (en) Reducing a Flicker Effect of Multiple Light Sources in an Image
CN113596344A (en) Shooting processing method and device, electronic equipment and readable storage medium
US10178252B2 (en) Photographing process remaining time reminder method and system
EP2658245B1 (en) System and method of adjusting camera image data
CN108401119B (en) Image processing method, mobile terminal and related medium product
KR20170048454A (en) Image processing method and device
CN112351197A (en) Shooting parameter adjusting method and device, storage medium and electronic equipment
CN109120856B (en) Camera shooting method and device
CN113038026B (en) Image processing method and electronic device
CN109672829A (en) Method of adjustment, device, storage medium and the terminal of brightness of image
CN113727031A (en) Camera strobe control method and device and 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210219