Exposure time adjustment method and circuit thereof
By receiving and detecting image frames from the camera sensor under short and long exposure times in electronic devices, the problem of stroboscopic strips in rolling shutter exposure technology is solved, and the shooting quality and film yield are improved.
Patent Information
- Application Number
- CN202211113158.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-09
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2042-09-09
AI Technical Summary
When shooting using rolling exposure technology, the image sensor in the electronic device is prone to produce stroboscopic bands, resulting in low shooting rates and poor user experience.
By receiving two image frames obtained by exposure of the camera sensor under preset short exposure time and long exposure time, and detecting whether there is stroboscopic in the first image frame, if it exists, output the second image frame to ensure that the output image frame has no flicker. Strobe.
It effectively improves the shooting quality and filming rate of electronic equipment, and enhances the user's shooting experience.
Smart Images

Figure CN115514901B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of image processing technology, and specifically relates to an exposure time adjustment method and a circuit thereof. Background Art
[0002] With the rapid development of science and technology, electronic devices have evolved from traditional communication tools to platforms that can carry many functions such as mobile applications, mobile content, value-added services, and photography. Among them, the photography function has become an indispensable function of electronic devices today. Compared with traditional digital cameras, electronic devices have more desirable characteristics such as portability, mobility, and marketability.
[0003] At present, the image acquisition sensors in electronic devices mostly use CMOS (Complementary Metal Oxide Semiconductor) image sensors, and rolling shutter exposure technology is mostly used when shooting with CMOS image sensors. Therefore, when users use electronic devices to shoot with rolling shutter exposure technology, stroboscopic stripes will be generated on the image, that is, banding phenomenon will occur, which will reduce the success rate of electronic devices and affect the user's shooting experience. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide an exposure time adjustment method and circuit thereof, which can solve the problem of stroboscopic stripes on the image when the user adopts the rolling exposure technology to shoot.
[0005] In a first aspect, an embodiment of the present application provides an exposure time adjustment method, the method comprising: receiving first data and second data, the first data being a first image frame obtained by a camera sensor under a preset short exposure time, and the second data being a second image frame obtained by the camera sensor under a preset long exposure time;
[0006] Detecting whether the first image frame has stroboscopic frequency;
[0007] In the case where the first image frame has stroboscopic effect, the second image frame is output.
[0008] In a second aspect, an embodiment of the present application provides an exposure time adjustment circuit, the circuit comprising a main control chip and an independent display chip electrically connected; the independent display chip comprises:
[0009] A receiving module, configured to receive first data and second data, wherein the first data is a first image frame obtained by exposing the camera sensor at a preset short exposure time, and the second data is a second image frame obtained by exposing the camera sensor at a preset long exposure time;
[0010] A detection module, used for detecting whether the first image frame has stroboscopic light;
[0011] The selection module is used to output the second image frame to the main control chip when the first image frame has stroboscopic effect.
[0012] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
[0013] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0014] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0015] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.
[0016] In an embodiment of the present application, a first image frame and a second image frame are obtained by simultaneously exposing a camera sensor at a preset short exposure time and a preset long exposure time. Since the preset short exposure time is an exposure time suitable for the current scene calculated according to an automatic exposure algorithm, the first image frame may or may not have a stroboscopic stripe, and the preset long exposure time is an exposure time without a stroboscopic stripe that is closest to the preset short exposure time of the current scene, then the second image frame must not have a stroboscopic stripe; the first image frame is detected, and if there is stroboscopic in the first image frame, the second image frame is output; if there is no stroboscopic in the first image frame, the first image frame is output, so that the first image frame or the second image frame output by the electronic device are both image frames without stroboscopic, which effectively improves the shooting quality of the electronic device, has a high shooting success rate, and provides a good user shooting experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 is a flow chart of an exposure time adjustment method provided in an embodiment of the present application;
[0018] Figure 2 is a circuit block diagram of an exposure time adjustment circuit provided in an embodiment of the present application;
[0019] Figure 3A schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application. DETAILED DESCRIPTION
[0020] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0021] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0022] The exposure time adjustment method provided in the embodiment of the present application is described in detail below through specific embodiments and application scenarios in conjunction with the accompanying drawings.
[0023] Figure 1 1 is a flow chart of the exposure time adjustment method provided in the embodiment of the present application. The exposure time adjustment method provided in the embodiment of the present application can be performed by an electronic device, for example, the electronic device includes but is not limited to a mobile terminal or other portable electronic device with a photo and / or video function such as a smart phone and a tablet computer.
[0024] like Figure 1 As shown, the exposure time adjustment method of this embodiment may include the following steps 101 to 103:
[0025] Step 101: Receive first data and second data, where the first data is a first image frame obtained by a camera sensor under a preset short exposure time, and the second data is a second image frame obtained by the camera sensor under a preset long exposure time.
[0026] In this embodiment, it should be noted that, at present, the power grids of various countries use alternating current, which has a fixed frequency. The light is affected by the frequency of the alternating current and will change from dark to bright and then from bright to dark, but because the frequency is fast, the human eye does not notice it. However, when a user uses an electronic device to take pictures with an indoor artificial light source (such as a fluorescent lamp, a tungsten lamp, etc.), since the frequency of the indoor light source does not match the exposure time of the camera sensor of the electronic device, the camera sensor can sense the flickering phenomenon of the indoor light source from dark to bright and then from bright to dark, resulting in stroboscopic bands (i.e., banding phenomenon) on the image output by the camera sensor, which in turn leads to poor shooting quality of the electronic device.
[0027] In this embodiment, the preset short exposure time is an exposure time suitable for the current scene calculated according to the automatic exposure algorithm; the preset long exposure time is an exposure time without banding that is closest to the preset short exposure time of the current scene.
[0028] In this embodiment, the exposure time without banding is equal to an integer multiple of the energy cycle of the light source.
[0029] in, T is the light source energy cycle, and F is the power supply frequency. The power supply frequency in different countries and regions is different. In some countries, the power supply frequency is 50Hz, and the corresponding light source energy cycle is 10ms; while in some countries, the power supply frequency is 60Hz, and the corresponding light source energy cycle is about 8.33ms.
[0030] For example, when the power supply frequency F is 50 Hz and the current scene is a dark scene, when the user uses an electronic device to take an image in a dark scene, the appropriate exposure time for the dark scene is calculated to be 23ms according to the automatic exposure algorithm, and the preset short exposure time for the dark scene is 23ms; at this time, the energy cycle of the light source is 10ms, and the preset long exposure time for the dark scene is 20ms.
[0031] For another example, when the power supply frequency F is 60 Hz and the current scene is a polar night scene, when the user uses an electronic device to take images in the polar night scene, the automatic exposure algorithm calculates that the appropriate exposure time for the dark scene is 56 ms, and the preset short exposure time for the dark scene is 56 ms; at this time, the light source energy cycle is 8.33 ms, and the preset long exposure time for the dark scene is 58 ms.
[0032] In this embodiment, the first image frame is an image frame obtained by exposing the camera sensor at a preset short exposure time. The first image frame may or may not have stroboscopic stripes. The second image frame is an image frame obtained by exposing the camera sensor at a preset long exposure time. Since the long exposure time is an exposure time without banding, the second image frame must not have stroboscopic stripes.
[0033] Step 102: Detect whether the first image frame has stroboscopic light.
[0034] In this embodiment, when the camera sensor completes exposure at a preset short exposure time and a preset long exposure time, the camera sensor outputs a first image frame and a second image frame, and sends the first image frame and the second image frame to a receiving module of an independent display chip, respectively. At the same time, the first image frame is sent to a detection module of the independent display chip, and the detection module detects whether there is flicker in the first image frame.
[0035] In this embodiment, when the detection module detects that there is flicker in the first image frame, the detection module outputs a first instruction to the selection module of the independent display chip, wherein the first instruction is used to characterize the presence of flicker in the first image frame; when the detection module detects that there is no flicker in the first image frame, the detection module outputs a second instruction to the selection module of the independent display chip, wherein the second instruction is used to characterize the absence of flicker in the first image frame.
[0036] Step 103: When the stroboscopic image exists in the first image frame, output the second image frame.
[0037] In this embodiment, when the selection module receives the first instruction output by the detection module, the selection module chooses to output the first image frame to the main control chip. At this time, the first image frame does not have flicker; when the selection module receives the second instruction output by the detection module, the selection module chooses to output the second image frame to the main control chip. At this time, the first image frame has flicker, but the second image frame does not have flicker.
[0038] In an embodiment of the present invention, a first image frame and a second image frame are obtained by simultaneously exposing a camera sensor at a preset short exposure time and a preset long exposure time. Since the preset short exposure time is an exposure time suitable for the current scene calculated according to an automatic exposure algorithm, the first image frame may or may not have a stroboscopic stripe, and the preset long exposure time is an exposure time without a stroboscopic stripe that is closest to the preset short exposure time of the current scene, and the second image frame must not have a stroboscopic stripe; the first image frame is detected, and if there is stroboscopic in the first image frame, the second image frame is output; if there is no stroboscopic in the first image frame, the first image frame is output, so that the first image frame or the second image frame output by the electronic device are both image frames without stroboscopic, which effectively improves the shooting quality of the electronic device, has a high shooting success rate, and provides a good user shooting experience.
[0039] In one embodiment, before receiving the first data and the second data, the method further includes: controlling the camera sensor to work synchronously at the preset short exposure time and the preset long exposure time to output the first data and the second data.
[0040] In this embodiment, it should be noted that, in the default working mode, the camera sensor can only obtain a unique image frame by exposing at a unique exposure time. At this time, the image frame may or may not have stroboscopic stripes. In the case that the image frame has stroboscopic stripes, the image frame output by the electronic device will have stroboscopic stripes, which will seriously affect the shooting quality.
[0041] In this embodiment, before receiving the first data and the second data, the working mode of the camera sensor is set to a target working mode by setting the working mode of the camera sensor, and the target working mode is a mode in which the camera sensor can simultaneously expose at two exposure times to obtain two frames of images with different exposure times.
[0042] For example, the camera sensor can work synchronously at a preset short exposure time and a preset long exposure time, and obtain a first image frame corresponding to the preset short exposure time and a second image frame corresponding to the preset long exposure time.
[0043] In this embodiment, the target operating mode of the camera sensor may be Digital Overlap HDR (DOL-HDR), Multi-frame HDR (MFHDR) or 3D HDR.
[0044] For example, the user may set the target operating mode of the camera sensor to the row-interleaved HDR mode; or for another example, the user may set the target operating mode of the camera sensor to the MFHDR mode. This embodiment does not specifically limit this.
[0045] In an embodiment of the present invention, the working mode of the camera sensor is set to a target working mode. In the target working mode, the camera sensor can be exposed synchronously at a preset short exposure time and a preset long exposure time to obtain a first image frame corresponding to the preset short exposure time and a second image frame corresponding to the preset long exposure time, so that when the electronic device has flicker in the first image frame, it can choose to output the second image frame without flicker, thereby ensuring the quality of the image frames output by the electronic device and improving the shooting success rate of the electronic device.
[0046] In one embodiment, when the first image frame has stroboscopic frequency, after outputting the second image frame, the method further includes: when the first image frame has stroboscopic frequency, according to the preset short exposure time and the preset long exposure time, determining an adjustment value of the long exposure time of each of the subsequent N second image frames and outputting it to the camera sensor, so that the camera sensor determines the adjusted long exposure time according to the adjustment value, and outputs the subsequent N second image frames according to the adjusted long exposure time. Wherein, N is an integer greater than or equal to 1, and each of the subsequent N second image frames has the same adjustment value.
[0047] In an embodiment of the present application, when there is flicker in the first image frame, an adjustment value of the long exposure time of each of the subsequent N second image frames is determined according to the preset short exposure time and the preset long exposure time and output to the camera sensor, and the preset long exposure time of the camera sensor is adjusted N times according to the adjustment value to obtain N adjusted long exposure times, so that the camera sensor outputs a second image frame with smooth exposure convergence and no flicker according to the N adjusted long exposure times.
[0048] In one embodiment, determining the adjustment value of the long exposure time of each of the subsequent N second image frames according to the preset short exposure time and the preset long exposure time includes: determining the target exposure time of the camera sensor according to the preset short exposure time; and determining the adjustment value of the long exposure time of each of the subsequent N second image frames according to the target exposure time and the preset long exposure time.
[0049] In this embodiment, according to the preset short exposure time and the preset long exposure time, the adjustment value of the long exposure time of each of the subsequent N second image frames is determined, and the specific process is:
[0050] First, according to the preset short exposure time T short , determine the target exposure time T of the camera sensor target ;
[0051] Secondly, according to the target exposure time T target and the preset long exposure time T long , calculate the adjustment value T of the long exposure time of each frame in the subsequent N second image frames step ;in, N is the camera sensor from the preset long exposure time T long Adjust to the target exposure time T target The number of frames required;
[0052] Finally, according to the adjustment value T of the long exposure time of each frame step , determine the adjusted long exposure time T corresponding to each frame in the subsequent N frames n ; Among them, T n =T long -n×T step , n is a positive integer, and 1≤n≤N.
[0053] In this embodiment, N can be set by the user, and this embodiment does not specifically limit this. For example, N is 4.
[0054] For example, at a preset short exposure time T short =23ms, preset long exposure time T long =60ms, and when N is 4, the target exposure time of the camera sensor is T target = 20ms, the adjustment value of the long exposure time of each of the subsequent N second image frames Then the adjusted long exposure time T1 of the first subsequent second image frame is 50ms, the adjusted long exposure time T2 of the second subsequent second image frame is 40ms, the adjusted long exposure time T3 of the third subsequent second image frame is 30ms, and the adjusted long exposure time T4 of the fourth subsequent second image frame is 20ms.
[0055] In an embodiment of the present invention, a target exposure time of the camera sensor is determined according to the preset short exposure time; and an adjustment value of the long exposure time of each of the subsequent N second image frames is determined according to the target exposure time and the preset long exposure time, so as to adjust the long exposure time of each of the subsequent N second image frames to obtain N adjusted long exposure times, so that the camera sensor subsequently exposes according to each adjusted long exposure time to obtain a second image frame corresponding to the adjusted long exposure time, thereby obtaining an image frame with smooth exposure convergence and no flicker, and the operation steps are simple and the shooting quality is high.
[0056] In one embodiment, determining the target exposure time of the camera sensor according to the preset short exposure time includes: if the preset short exposure time is less than a first threshold, determining the target exposure time as a first exposure time.
[0057] When the preset short exposure time is greater than or equal to a first threshold, the target exposure time is determined as a second exposure time.
[0058] In this embodiment, according to the preset short exposure time T short , determine the target exposure time T of the camera sensor target ;in,
[0059]
[0060] In formula (1), at the preset short exposure time T short If the target exposure time T is less than the first threshold, target is determined as the first exposure time; the first threshold is The first exposure time is
[0061] At the preset short exposure time T short When the target exposure time T is greater than or equal to the first threshold, target Determined as the second exposure time; the second exposure time is
[0062] For example, when the power supply frequency F is 50 Hz and the preset short exposure time T short =8ms, the first threshold is 10ms, and the preset short exposure time T short is less than the first threshold, at this time, the target exposure time T target =0.01s=10ms.
[0063] For another example, when the power supply frequency F is 50 Hz and the preset short exposure time T short =23ms, the first threshold is 10ms, and the preset short exposure time T short is greater than the first threshold, at this time, the target exposure time T target =0.02s=20ms.
[0064] In an embodiment of the present invention, when there is flicker in the first image frame obtained by the camera sensor at a preset short exposure time, the target exposure time corresponding to the preset short exposure time is automatically calculated through a built-in calculation formula of the electronic device. The target exposure time is the exposure time of the image frame obtained by the camera sensor in the current scene without flicker, and the preset long exposure time of the camera sensor is automatically adjusted to the target exposure time. The operation steps are simple and the use effect is good.
[0065] The exposure time adjustment method provided in the embodiment of the present application can be executed by an exposure time adjustment circuit. In the embodiment of the present application, the exposure time adjustment circuit provided in the embodiment of the present application is described by taking the exposure time adjustment method executed by the exposure time adjustment circuit as an example.
[0066] like Figure 2 As shown, the exposure time adjustment circuit provided in the embodiment of the present application includes an electrically connected main control chip 201 and an independent display chip 202; the independent display chip 202 includes: a receiving module 2021, used to receive first data and second data, the first data is a first image frame obtained by exposing the camera sensor 203 at a preset short exposure time, and the second data is a second image frame obtained by exposing the camera sensor 203 at a preset long exposure time; a detection module 2022, used to detect whether there is flicker in the first image frame; a selection module 2023, used to output the second image frame to the main control chip 201 when there is flicker in the first image frame.
[0067] In this embodiment, the main control chip 201 includes an image processing module 2011 , and the selection module 2023 is used to output the second image frame to the image processing module 2011 of the main control chip 201 when there is stroboscopic light in the first image frame.
[0068] In an embodiment of the present invention, a first image frame and a second image frame are obtained by simultaneously exposing a camera sensor at a preset short exposure time and a preset long exposure time. Since the preset short exposure time is an exposure time suitable for the current scene calculated according to an automatic exposure algorithm, the first image frame may or may not have a stroboscopic stripe, and the preset long exposure time is an exposure time without a stroboscopic stripe that is closest to the preset short exposure time of the current scene, and the second image frame must not have a stroboscopic stripe; the first image frame is detected, and if there is stroboscopic in the first image frame, the second image frame is output; if there is no stroboscopic in the first image frame, the first image frame is output, so that the first image frame or the second image frame output by the electronic device are both image frames without stroboscopic, which effectively improves the shooting quality of the electronic device, has a high shooting success rate, and provides a good user shooting experience.
[0069] In one embodiment, the main control chip 201 includes: a camera control module 2012, which is used to control the camera sensor 203 to work synchronously under the preset short exposure time and the preset long exposure time to output the first data and the second data.
[0070] In an embodiment of the present invention, the working mode of the camera sensor is set to a target working mode. In the target working mode, the camera sensor can be exposed synchronously at a preset short exposure time and a preset long exposure time to obtain a first image frame corresponding to the preset short exposure time and a second image frame corresponding to the preset long exposure time, so that when the electronic device has flicker in the first image frame, it can choose to output the second image frame without flicker, thereby ensuring the quality of the image frames output by the electronic device and improving the shooting success rate of the electronic device.
[0071] In one embodiment, the independent display chip 202 further includes: an adjustment module 2024, which is used to determine the adjustment value of the long exposure time of each of the subsequent N second image frames according to the preset short exposure time and the preset long exposure time when there is flicker in the first image frame, and output it to the camera sensor, so that the camera sensor determines the adjusted long exposure time according to the adjustment value, and outputs the second image frame according to the adjusted long exposure time; wherein N is an integer greater than or equal to 1, and each of the subsequent N second image frames has the same adjustment value.
[0072] In an embodiment of the present application, in the case where there is flicker in the first image frame, an adjustment value of the long exposure time of each of the subsequent N second image frames is determined according to the preset short exposure time and the preset long exposure time and output to the camera sensor, and the preset long exposure time of the camera sensor is adjusted N times according to the adjustment value to obtain an adjusted long exposure time, so that the camera sensor outputs second image frames with smooth exposure convergence and no flicker according to the N adjusted long exposure times.
[0073] In one embodiment, the adjustment module 2024 is specifically used to: determine the target exposure time of the camera sensor according to the preset short exposure time; and determine the adjustment value of the long exposure time of each of the subsequent N second image frames according to the target exposure time and the preset long exposure time.
[0074] In an embodiment of the present invention, a target exposure time of the camera sensor is determined according to the preset short exposure time; and an adjustment value of the long exposure time of each of the subsequent N second image frames is determined according to the target exposure time and the preset long exposure time, so as to adjust the long exposure time of each of the subsequent N second image frames to obtain the adjusted long exposure time of the N second image frames, so that the camera sensor is exposed at the adjusted long exposure time of each frame to obtain the adjusted long exposure time to output the second image frame, and obtain an image frame with smooth exposure convergence and no flicker, the operation steps are simple, and the shooting quality is high.
[0075] In one embodiment, the adjustment module 2024 is specifically used to: when the preset short exposure time is less than a first threshold, determine the target exposure time as a first exposure time; when the preset short exposure time is greater than or equal to the first threshold, determine the target exposure time as a second exposure time.
[0076] In an embodiment of the present invention, when there is flicker in the first image frame obtained by the camera sensor at a preset short exposure time, the target exposure time corresponding to the preset short exposure time is automatically calculated through a built-in calculation formula of the electronic device. The target exposure time is the exposure time of the image frame obtained by the camera sensor in the current scene without flicker, and the preset long exposure time of the camera sensor is automatically adjusted to the target exposure time. The operation steps are simple and the use effect is good.
[0077] The exposure time adjustment circuit in the embodiment of the present application may be a component in an electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices other than a terminal. Exemplarily, the electronic device may be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc. It may also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0078] The exposure time adjustment circuit provided in the embodiment of the present application can achieve Figure 1 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0079] Figure 3 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0080] The electronic device 300 includes but is not limited to: a radio frequency unit 301, a network module 302, an audio output unit 303, an input unit 304, a sensor 305, a display unit 306, a user input unit 307, an interface unit 308, a memory 309, a processor 310 and a display chip, and the processor 310 is connected to the display chip.
[0081] Those skilled in the art will appreciate that the electronic device 300 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 310 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 3 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0082] Among them, the display chip is used to receive first data and second data, the first data is a first image frame obtained by exposing the camera sensor at a preset short exposure time, and the second data is a second image frame obtained by exposing the camera sensor at a preset long exposure time; it is also used to detect whether there is flicker in the first image frame; and it is also used to output the second image frame to the processor 310 when flicker exists in the first image frame.
[0083] In an embodiment of the present invention, a first image frame and a second image frame are obtained by simultaneously exposing a camera sensor at a preset short exposure time and a preset long exposure time. Since the preset short exposure time is an exposure time suitable for the current scene calculated according to an automatic exposure algorithm, the first image frame may or may not have a stroboscopic stripe, and the preset long exposure time is an exposure time without a stroboscopic stripe that is closest to the preset short exposure time of the current scene, and the second image frame must not have a stroboscopic stripe; the first image frame is detected, and if there is stroboscopic in the first image frame, the second image frame is output; if there is no stroboscopic in the first image frame, the first image frame is output, so that the first image frame or the second image frame output by the electronic device are both image frames without stroboscopic, which effectively improves the shooting quality of the electronic device, has a high shooting success rate, and provides a good user shooting experience.
[0084] Optionally, the processor 310 is used to control the camera sensor to operate synchronously at the preset short exposure time and the preset long exposure time to output the first data and the second data.
[0085] In an embodiment of the present invention, the working mode of the camera sensor is set to a target working mode. In the target working mode, the camera sensor can be exposed synchronously at a preset short exposure time and a preset long exposure time to obtain a first image frame corresponding to the preset short exposure time and a second image frame corresponding to the preset long exposure time, so that when the electronic device has flicker in the first image frame, it can choose to output the second image frame without flicker, thereby ensuring the quality of the image frames output by the electronic device and improving the shooting success rate of the electronic device.
[0086] Optionally, the display chip is also used to determine, in the case where there is flicker in the first image frame, an adjustment value of the long exposure time of each of the subsequent N second image frames according to the preset short exposure time and the preset long exposure time, and output it to the camera sensor, so that the camera sensor determines the adjusted long exposure time according to the adjustment value, and outputs the second image frame according to the adjusted long exposure time; wherein N is an integer greater than or equal to 1, and each of the subsequent N second image frames has the same adjustment value.
[0087] In an embodiment of the present application, in the case where there is flicker in the first image frame, an adjustment value of the long exposure time of each of the subsequent N second image frames is determined according to the preset short exposure time and the preset long exposure time and output to the camera sensor, and the preset long exposure time of the camera sensor is adjusted N times according to the adjustment value to obtain an adjusted long exposure time, so that the camera sensor outputs second image frames with smooth exposure convergence and no flicker according to the N adjusted long exposure times.
[0088] Optionally, the display chip is specifically used to determine the target exposure time of the camera sensor according to the preset short exposure time; and determine the adjustment value of the long exposure time of each of the subsequent N second image frames according to the target exposure time and the preset long exposure time.
[0089] In an embodiment of the present invention, a target exposure time of the camera sensor is determined according to the preset short exposure time; and an adjustment value of the long exposure time of each of the subsequent N second image frames is determined according to the target exposure time and the preset long exposure time, so as to adjust the long exposure time of each of the subsequent N second image frames to obtain N adjusted long exposure times, so that the camera sensor is exposed at the adjusted long exposure time of each frame to obtain the adjusted long exposure time to output the second image frame, and an image frame with smooth exposure convergence and no flicker is obtained, the operation steps are simple, and the shooting quality is high.
[0090] Optionally, the display chip is specifically used to determine the target exposure time as the first exposure time when the preset short exposure time is less than a first threshold; and to determine the target exposure time as the second exposure time when the preset short exposure time is greater than or equal to the first threshold.
[0091] In an embodiment of the present invention, when there is flicker in the first image frame obtained by the camera sensor at a preset short exposure time, the target exposure time corresponding to the preset short exposure time is automatically calculated through a built-in calculation formula of the electronic device. The target exposure time is the exposure time of the image frame obtained by the camera sensor in the current scene without flicker, and the preset long exposure time of the camera sensor is automatically adjusted to the target exposure time. The operation steps are simple and the use effect is good.
[0092] It should be understood that in the embodiment of the present application, the input unit 304 may include a graphics processor (Graphics Processing Unit, GPU) 3041 and a microphone 3042, and the graphics processor 3041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 306 may include a display panel 3061, and the display panel 3061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 307 includes a touch panel 3071 and at least one of other input devices 3072. The touch panel 3071 is also called a touch screen. The touch panel 3071 may include two parts: a touch detection device and a touch controller. Other input devices 3072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0093] The memory 309 can be used to store software programs and various data. The memory 309 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 309 may include a volatile memory or a non-volatile memory, or the memory 309 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 309 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0094] The processor 310 may include one or more processing units; optionally, the processor 310 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 310.
[0095] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned exposure time adjustment method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0096] 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 computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0097] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned exposure time adjustment method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0098] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0099] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned exposure time adjustment method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0100] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0101] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0102] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A method for adjusting exposure time, characterized in that: include: Receive first data and second data, wherein the first data is a first image frame obtained by exposing a camera sensor at a preset short exposure time, and the second data is a second image frame obtained by exposing the camera sensor at a preset long exposure time, the first data and the second data are obtained by the camera sensor working synchronously at the preset short exposure time and the preset long exposure time, the preset short exposure time is an exposure time suitable for the current scene calculated according to an automatic exposure algorithm, and the preset long exposure time is an exposure time without a stroboscopic stripe that is closest to the preset short exposure time, and the camera sensor is set to a working mode capable of simultaneously exposing at two exposure times to obtain two frames of images with different exposure times; Detecting whether the first image frame has stroboscopic frequency; When the stroboscopic light exists in the first image frame, the second image frame is output.
2. The method according to claim 1, characterized in that In the case where the first image frame has stroboscopic effects, after outputting the second image frame, the method further includes: In the case where there is stroboscopic light in the first image frame, an adjustment value of the long exposure time of each of the subsequent N second image frames is determined according to the preset short exposure time and the preset long exposure time, and the adjustment value is output to the camera sensor, so that the camera sensor determines the adjusted long exposure time according to the adjustment value, and outputs the subsequent N second image frames according to the adjusted long exposure time; Wherein, N is an integer greater than or equal to 1, and each of the subsequent N second image frames has the same adjustment value.
3. The method according to claim 2, characterized in that The step of determining an adjustment value of the long exposure time of each of the subsequent N second image frames according to the preset short exposure time and the preset long exposure time includes: Determining a target exposure time of the camera sensor according to the preset short exposure time; An adjustment value of the long exposure time of each of the subsequent N second image frames is determined according to the target exposure time and the preset long exposure time.
4. The method according to claim 3, characterized in that The step of determining the target exposure time of the camera sensor according to the preset short exposure time comprises: When the preset short exposure time is less than a first threshold, determining the target exposure time as a first exposure time; When the preset short exposure time is greater than or equal to a first threshold, the target exposure time is determined as a second exposure time.
5. An exposure time adjustment circuit, characterized in that: It includes a main control chip and an independent display chip which are electrically connected; the independent display chip includes: A receiving module, configured to receive first data and second data, wherein the first data is a first image frame obtained by exposing the camera sensor at a preset short exposure time, and the second data is a second image frame obtained by exposing the camera sensor at a preset long exposure time; A detection module, used for detecting whether the first image frame has stroboscopic light; A selection module is configured to output the second image frame to the main control chip when the first image frame has stroboscopic effects. A camera control module is used to control the camera sensor to work synchronously at the preset short exposure time and the preset long exposure time to output the first data and the second data, wherein the preset short exposure time is an exposure time suitable for the current scene calculated according to an automatic exposure algorithm, and the preset long exposure time is an exposure time without a stroboscopic stripe that is closest to the preset short exposure time, and the camera sensor is set to a working mode capable of simultaneously exposing at two exposure times to obtain two frames of images with different exposure times.
6. The circuit according to claim 5, characterized in that: The independent display chip further includes: an adjustment module, configured to determine, when there is stroboscopic light in the first image frame, an adjustment value of the long exposure time of each of the subsequent N second image frames according to the preset short exposure time and the preset long exposure time, and output the adjustment value to the camera sensor, so that the camera sensor determines the adjusted long exposure time according to the adjustment value, and outputs the subsequent N second image frames according to the adjusted long exposure time; Wherein, N is an integer greater than or equal to 1, and each of the subsequent N second image frames has the same adjustment value.
7. The circuit according to claim 6, characterized in that: The adjustment module is specifically used for: Determining a target exposure time of the camera sensor according to the preset short exposure time; An adjustment value of the long exposure time of each of the subsequent N second image frames is determined according to the target exposure time and the preset long exposure time.
8. The circuit according to claim 7, characterized in that: The adjustment module is specifically used for: When the preset short exposure time is less than a first threshold, determining the target exposure time as a first exposure time; When the preset short exposure time is greater than or equal to a first threshold, the target exposure time is determined as a second exposure time.
Citation Information
Patent Citations
Method for controlling image sensors to work and shooting device
CN104125401A
Image processing method, device thereof and electronic equipment
CN109167922A
Exposure time control method of camera and electronic device
CN110855901A
Image processing method, electronic equipment and computer readable storage medium
CN110930372A
Image processing device, video image capturing device, moving object, image processing method, and program
CN111602384A
