An exposure adjustment method, device, medium and electronic device
By determining the speed of the target object's movement in the camera and dynamically adjusting the exposure ratio and allocating the exposure factor, the problem of object ghosting in wide dynamic range mode is solved, and the capture effect is improved.
Patent Information
- Application Number
- CN202111412099.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-25
- Publication Date
- 2025-11-21
- Estimated Expiration
- 2041-11-25
AI Technical Summary
Current cameras are prone to producing image retention in wide dynamic range mode, especially in environments with strong contrast between light and dark, making it difficult to guarantee the quality of image capture.
By determining the speed of the target object in the shooting frame, the exposure ratio is dynamically adjusted, the exposure ratio between long and short frames is optimized, and the exposure factor is dynamically allocated to reduce ghosting and improve the capture effect.
The ghosting phenomenon in scenes with moving objects has been optimized, improving the quality of snapshots and adapting the exposure factor allocation rules to different environmental needs.
Smart Images

Figure CN116193267B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present application relate to the technical field of image processing, and particularly relate to an exposure adjustment method and device, a medium and an electronic device. BACKGROUND
[0002] Current camera wide dynamic technology is increasingly mature, but since it is mostly implemented in a manner of synthesizing two frames of images, the longer the exposure time, the greater the difference between the two frames of content, and the more likely it is to produce ghosting of the object. When ghosting is severe, the object will have a clear tearing sensation, and the edge is difficult to identify. When the contrast between light and dark in the environment of the intelligent camera is very strong, and the wide dynamic must be turned on, the object capture quality will inevitably be sacrificed.
[0003] There is currently a technology of detecting a moving object and fusing a certain frame of data in the picture to weaken the ghosting phenomenon.
[0004] However, this technology is difficult to accurately identify the jumping noise in the picture, and also needs to make a trade-off in image quality. SUMMARY
[0005] Embodiments of the present application provide an exposure adjustment method, device, medium and electronic device. The exposure ratio is dynamically adjusted according to the speed of the moving object, the ghosting phenomenon in the moving object scene is optimized, and a better snapshot effect is obtained.
[0006] In a first aspect, embodiments of the present application provide an exposure adjustment method, which comprises:
[0007] determining the speed of a target object in a captured picture;
[0008] determining an exposure ratio according to the speed of the target object according to a preset exposure ratio calculation method; wherein the exposure ratio is used to represent the ratio of the exposure amount of long and short frames in wide dynamic;
[0009] dynamically allocating an exposure factor according to the exposure ratio for capturing the target object.
[0010] In a second aspect, embodiments of the present application provide an exposure adjustment device, which comprises:
[0011] a speed determination module configured to determine the speed of a target object in a captured picture;
[0012] an exposure ratio determination module configured to determine an exposure ratio according to the speed of the target object according to a preset exposure ratio calculation method; wherein the exposure ratio is used to represent the ratio of the exposure amount of long and short frames in wide dynamic;
[0013] an exposure factor allocation module configured to dynamically allocate an exposure factor according to the exposure ratio for capturing the target object.
[0014] In a third aspect, an embodiment of the present application provides a computer readable medium, having stored thereon a computer program which, when executed by a processor, implements the exposure adjustment method according to the embodiments of the present application.
[0015] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the exposure adjustment method according to the embodiments of the present application when executing the computer program.
[0016] The technical solution provided by the embodiments of the present application determines the motion speed of the target object in the photographed picture, determines the exposure ratio according to the motion speed according to a preset exposure ratio calculation manner, and then dynamically allocates the exposure factor according to the exposure ratio for photographing the target object. This technical solution can dynamically adjust the exposure ratio according to the motion speed of the moving object, optimizes the residual image phenomenon in the moving object scene, and obtains a better snapshot effect. Different exposure factor allocation rules can be formulated according to different requirements. BRIEF DESCRIPTION OF DRAWINGS
[0017] Figure 1 FIG. 1 is a flowchart of an exposure adjustment method according to an embodiment of the present application;
[0018] Figure 2 FIG. 2 is a schematic diagram of an exposure adjustment process according to an embodiment of the present application;
[0019] Figure 3 FIG. 3 is a flowchart of exposure ratio and exposure factor setting according to an embodiment of the present application;
[0020] Figure 4 FIG. 4 is a structural schematic diagram of an exposure adjustment device according to an embodiment of the present application;
[0021] Figure 5 FIG. 5 is a structural schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0022] The present application will be further described below in conjunction with the drawings and embodiments. It can be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application. In addition, it should be noted that, for the convenience of description, only the parts related to the present application are shown in the drawings, but not all the structures.
[0023] Before any examples are described in further detail, it should be noted that some examples are described as processes or methods depicted as flowcharts. Although the processes are described in a particular sequential order, many of the processes described can be performed concurrently, in parallel, or simultaneously. In addition, the order of the processes can be re-arranged. The processes can be terminated when their operations are completed, but the processes can also end in response to events that are external to the processes. The processes can correspond to methods, functions, procedures, subroutines, subprograms, etc.
[0024] Embodiment One
[0025] Figure 1 is a flowchart of an exposure adjustment method provided by Embodiment One of the present application. Embodiment One can be applicable to the case of dynamically adjusting the exposure ratio and exposure factor of a shooting device in a wide dynamic range. The method can be executed by an exposure adjustment device provided by Embodiment One of the present application. The device can be implemented in software and / or hardware, and can be integrated into an intelligent terminal or other device for adjusting the exposure ratio and exposure factor.
[0026] As shown in Figure 1 , the exposure adjustment method comprises:
[0027] S110, determining the motion speed of a target object in a shooting picture;
[0028] In the embodiment, the target object can be a moving object. The moving object can be captured by a shooting device, and the motion speed of the target object can be determined based on the captured shooting picture. The shooting device can be a wide-dynamic video camera.
[0029] In the technical solution, optionally, the motion speed of the target object in the shooting picture is determined, comprising:
[0030] obtaining the current frame rate of the shooting device, the moving distance of the detection frame, and the size of the detection frame; wherein the detection frame is used to frame the target object, and the moving distance of the detection frame is determined according to the moving position of the target object in a preset interval frame;
[0031] determining the motion speed of the target object according to the current frame rate of the shooting device, the moving distance of the detection frame, the size of the detection frame, and a predetermined reference value, according to a preset speed calculation mode;
[0032] The reference value comprises a shooting device frame rate reference value, a detection frame moving distance reference value, a detection frame size reference value, a motion speed reference value, and an interval frame reference value.
[0033] In the embodiment, the interval frames can be set according to the number of shooting frames obtained by the shooting device. For example, the interval frames can be set as 20 frames, that is, the moving distance of the target object detection frame can be calculated based on the 1st frame and the 21st frame.
[0034] In the scheme, the detection frame is used for framing the target object, and can be a rectangle or a square. The moving distance of the detection frame can be determined according to the moving position of the center point of the target object in the detection frame; the moving distance of the detection frame can be determined according to the moving position of the coordinate point of the detection frame. For example, the center point of the target object moves by 10 pixel points in the 1st frame and the 21st frame, and the moving distance of the detection frame is 10.
[0035] In the scheme, the size of the detection frame can be determined according to the number of pixel points in the detection frame. For example, the detection frame is composed of 50 pixel points, and the size of the detection frame is 50.
[0036] In the scheme, under different motion speeds, the exposure ratio and shutter value matched with the motion speed need to be adjusted to clearly see the target object. The reference value can be calculated by fitting the parameters of the moving object shot by the shooting device under different frame rates. For example, the moving distance of the detection frame between the 10th frame and the 20th frame of the object moving at a speed of 1.5 m / s at a certain interval under a set of normal shooting conditions, and the size of the detection frame can be taken as the reference value.
[0037] In the embodiment, the current frame rate of the shooting device, the moving distance of the detection frame, and the size of the detection frame can be compared with the pre-determined reference value to determine the motion speed of the target object.
[0038] By obtaining the motion speed of the target object, the exposure ratio can be dynamically adjusted according to the motion speed of the moving object, the ghosting phenomenon in the moving object scene can be optimized, and a better snapshot effect can be obtained.
[0039] Optionally, the motion speed is calculated by the following formula:
[0040]
[0041] In the formula, v represents the motion speed, s2 represents the size of the detection frame, x2 represents the moving distance of the detection frame, fps2 represents the current frame rate of the shooting device, n2 represents the interval frames, s1 represents the reference value of the size of the detection frame, x1 represents the reference value of the moving distance of the detection frame, fps1 represents the reference value of the frame rate of the shooting device, n1 represents the reference value of the interval frames, and v1 represents the reference value of the motion speed.
[0042] In the scheme, a plurality of groups of normal erection conditions can be measured in the laboratory, and the frame rate of the shooting device, the interval frame, the detection frame moving distance, the detection frame size and the motion speed are calculated. The relationship between the motion speed and the frame rate of the shooting device, the interval frame, the detection frame moving distance and the detection frame size is obtained through experiments.
[0043] In S120, an exposure ratio is determined according to the motion speed according to a preset exposure ratio calculation mode, wherein the exposure ratio is used to represent the ratio of the exposure amount of the long frame and the short frame in the wide dynamic range.
[0044] In the scheme, in order to ensure that the shooting device can capture better shooting effect of the moving object, the exposure ratio can be calculated according to the motion speed of the target object based on the preset exposure ratio calculation mode.
[0045] In the technical scheme, optionally, the motion speed and the exposure ratio are inversely proportional.
[0046] In the scheme, the motion speed and the exposure ratio are inversely proportional, in order to ensure that the shooting device can capture better shooting effect of the moving object, the faster the object moves, the smaller the exposure ratio should be.
[0047] According to the adjustment of the exposure ratio according to the motion speed, the residual image phenomenon in the moving object scene can be optimized, and better capture effect can be obtained.
[0048] In the technical scheme, optionally, the exposure ratio is determined according to the motion speed according to the preset exposure ratio calculation mode, including:
[0049] An exposure ratio fitting coefficient is determined, wherein the exposure ratio fitting coefficient is used to represent the proportional relationship between the exposure ratio and the motion speed.
[0050] The exposure ratio is obtained according to the ratio of the exposure ratio fitting coefficient and the square of the motion speed.
[0051] In the embodiment, according to the laboratory measurement, the moving object with a speed of about 1.5 m / s needs 12:1 exposure, and the moving object with a speed of 15 m / s and above needs 1:1 exposure ratio to better optimize the residual image. Through a plurality of experimental data fitting, the exposure ratio fitting coefficient can be determined, and the relationship between the exposure ratio and the exposure ratio fitting coefficient and the motion speed can be determined.
[0052] The exposure ratio is determined through the exposure ratio fitting coefficient and the motion speed, the residual image phenomenon in the moving object scene can be optimized, and better capture effect can be obtained.
[0053] In the technical scheme, optionally, the exposure ratio is calculated by the following formula:
[0054] Or,
[0055]
[0056] wherein R represents an exposure ratio, q represents an exposure ratio fitting coefficient, v represents a motion speed, and M and N are constants.
[0057] The exposure ratio is determined by the exposure ratio fitting coefficient and the square of the motion speed, which can optimize the residual image phenomenon in the motion object scene and obtain a better snapshot effect.
[0058] In S130, the exposure factor is dynamically allocated according to the exposure ratio for shooting the target object.
[0059] In the present solution, to ensure smooth transition of the picture during adjustment of the exposure factor, the overall exposure of the picture before and after adjustment of the exposure ratio should be considered unchanged. The exposure of the wide dynamic range is composed of two frames of long exposure and short exposure. Therefore, the overall exposure of the system should include four exposure factors of the long frame exposure shutter value, the short frame exposure shutter value, the long frame exposure gain value, and the short frame exposure gain value. For example, it is assumed that the long frame exposure shutter value is S l , the short frame exposure shutter value is S s , the long frame exposure gain value is G l , and the short frame exposure gain value is G s . Then the total exposure of a frame is:
[0060] K1·S l ·G l +K2·S s ·G s ;
[0061] wherein K1 and K2 are the distribution proportions of the long frame exposure and the short frame exposure in the total exposure, which can be set according to the exposure ratio.
[0062] In the present embodiment, the total exposure of the previous frame can be obtained, the proportion of the long frame exposure and the proportion of the short frame exposure of the current frame are reset according to the exposure ratio, and the exposure factors are dynamically adjusted according to the proportion of the long frame exposure and the proportion of the short frame exposure.
[0063] The technical solution provided in the present application determines the motion speed of the target object in the shooting picture, calculates the exposure ratio according to the preset exposure ratio calculation mode, determines the exposure ratio according to the motion speed, and dynamically allocates the exposure factor according to the exposure ratio for shooting the target object. By executing the present technical solution, the exposure ratio can be dynamically adjusted according to the motion speed of the motion object, the residual image phenomenon in the motion object scene can be optimized, and a better snapshot effect can be obtained. Different exposure factor allocation rules can be formulated according to different requirements.
[0064] Embodiment Two
[0065] Figure 2 is a schematic diagram of an exposure adjustment process provided by Embodiment Two of the present application, which is further optimized on the basis of Embodiment One. The specific optimization is: determining a current frame long-frame exposure amount according to the exposure ratio and a total exposure amount of a previous frame of the shooting device obtained in advance; calculating a current frame long-frame exposure amount shutter value according to the current frame long-frame exposure amount and the motion speed in a preset long-frame exposure factor calculation manner; and determining a current frame short-frame exposure amount gain value according to the current frame long-frame exposure amount shutter value and the current frame long-frame exposure amount. Contents not described in detail in this embodiment are described in detail in Embodiment One. As shown in Figure 2 the method comprises the following steps:
[0066] S210, determining a motion speed of a target object in a shooting picture;
[0067] S220, determining an exposure ratio according to the motion speed in a preset exposure ratio calculation manner; wherein the exposure ratio is used to represent a ratio of long-frame and short-frame exposure amounts in a wide dynamic range;
[0068] S230, determining a current frame long-frame exposure amount according to the exposure ratio and a total exposure amount of a previous frame of the shooting device obtained in advance;
[0069] In this scheme, to ensure smooth transition of the picture in the adjustment process, the total exposure amount of the picture before and after the adjustment of the exposure amount ratio should be kept unchanged, and the current frame long-frame exposure amount ratio and the current frame short-frame exposure amount ratio can be dynamically adjusted according to the total exposure amount of the previous frame of the shooting device according to the exposure ratio. The current frame long-frame exposure amount ratio and the current frame short-frame exposure amount ratio can be a plurality of data, and the specific setting can be set according to the motion speed of the target object, so as to more clearly capture the moving object.
[0070] In this embodiment, after the current frame long-frame exposure amount ratio is determined, the current frame long-frame exposure amount can be calculated according to the current frame long-frame exposure amount ratio, a previous frame long-frame exposure amount shutter value and a previous frame long-frame exposure amount gain value.
[0071] S240, calculating a current frame long-frame exposure amount shutter value according to the current frame long-frame exposure amount and the motion speed in a preset long-frame exposure factor calculation manner;
[0072] In this scheme, a larger exposure amount represents a darker environment, and excessive use of gain in a dark environment will cause a significant decrease in image quality, so when the long-frame exposure amount is large, i.e., the total long-frame exposure amount is large, the long-frame exposure amount shutter value should be appropriately increased. The long-frame exposure amount shutter value can be determined, and the long-frame exposure amount gain value is calculated according to the current frame long-frame exposure amount.
[0073] S250, determining a current long frame exposure gain value according to the current long frame exposure shutter value and the current long frame exposure.
[0074] In the scheme, after determining the current long frame exposure shutter value, the current long frame exposure gain value can be calculated according to the current long frame exposure and the current long frame exposure shutter value.
[0075] Optionally, the current long frame exposure shutter value and the current long frame exposure gain value are calculated by the following formula:
[0076]
[0077]
[0078] Wherein, S l represents the current long frame exposure shutter value, K1 represents the current long frame exposure ratio, S l1 represents the previous long frame exposure shutter value, G l1 represents the previous long frame exposure gain value, i represents the offset, G l represents the current long frame exposure gain value.
[0079] In the scheme, i is the offset, which is used to control the specific value of the large exposure of different CMOS (Complementary Metal Oxide Semiconductor) sensors, and can be set according to the sensor parameters of the shooting device.
[0080] By dynamically setting the long exposure factor, the motion object residual image phenomenon can be optimized.
[0081] In the technical scheme, optionally, the exposure factor is dynamically allocated according to the exposure ratio, including:
[0082] According to the exposure ratio and the total exposure of the previous frame of the shooting device obtained in advance, the short frame exposure of the current frame is determined.
[0083] According to the current short frame exposure, the current short frame exposure shutter value and the current short frame exposure gain value are determined according to the preset priority mode.
[0084] In the scheme, in order to ensure smooth transition of the picture during adjustment, the overall exposure of the picture before and after adjusting the exposure ratio should be considered unchanged, the long frame exposure ratio of the current frame and the short frame exposure ratio of the current frame can be dynamically adjusted according to the exposure ratio based on the total exposure of the previous frame of the shooting device, and then the short frame exposure of the current frame is calculated based on the short frame exposure ratio of the current frame, the short frame exposure shutter value of the previous frame and the short frame exposure gain value of the previous frame.
[0085] In the embodiment, the short exposure contributes less to the moving object, and the exposure can be performed according to the normal shutter priority rule: first increase the shutter, and when the shutter is increased to the upper limit allowed by a frame, increase the gain. When adjusting the short frame exposure shutter value and the short frame exposure gain value of the current frame, the short frame exposure of the current frame is unchanged.
[0086] Exemplarily, Figure 3 is a flowchart of exposure ratio and exposure factor setting provided by the second embodiment of the present application, as shown in the figure, the system starts running and sets the exposure ratio by default, if it is detected that there is a target object in the picture, the motion speed of the target object is calculated, the exposure ratio is directly adjusted according to the motion speed, and the exposure factor distribution is determined according to the exposure ratio. After completing the distribution of the four different exposure factors of long and short exposure, the motion object detection is performed. When there is no target object within a certain time, the default exposure ratio is restored according to the current exposure, and each exposure factor is re-distributed according to the shutter priority. If no moving object is detected in the picture, the shooting is directly based on the default exposure ratio set by the system. The large exposure ratio can provide better dynamic range and static image effect, and the default start sets the exposure ratio to the maximum exposure ratio of the shooting device. Figure 3
[0087] The technical solution provided by the embodiment of the present application determines the motion speed of the target object in the shooting picture, calculates the exposure ratio according to the preset exposure ratio calculation method, determines the exposure ratio according to the motion speed, and then determines the long frame exposure of the current frame according to the exposure ratio and the total exposure of the previous frame of the shooting device obtained in advance. According to the preset long exposure factor calculation method, the long frame exposure shutter value of the current frame is calculated according to the long frame exposure of the current frame and the motion speed, and the long frame exposure gain value of the current frame is determined according to the long frame exposure shutter value of the current frame and the long frame exposure of the current frame. By executing the technical solution, the exposure ratio can be dynamically adjusted according to the motion object speed, the ghosting phenomenon in the motion object scene can be optimized, and better snapshot effect can be obtained. And different exposure factor distribution rules can be formulated according to different needs.
[0088] Embodiment three
[0089] Figure 4 is a structural schematic diagram of the exposure adjustment device provided by the third embodiment of the present application, as shown in the figure, the exposure adjustment device comprises: Figure 4
[0090] The motion speed determination module 410 is configured to determine the motion speed of the target object in the shooting picture.
[0091] The exposure ratio determination module 420 is configured to determine the exposure ratio according to the preset exposure ratio calculation method and the motion speed, wherein the exposure ratio is used to represent the ratio of the long frame exposure and the short frame exposure in the wide dynamic range.
[0092] The exposure factor distribution module 430 is configured to dynamically distribute exposure factors according to the exposure ratio for photographing the target object.
[0093] In the technical solution, the motion speed determination module 410 comprises:
[0094] The parameter acquisition unit is configured to acquire a current frame rate of the photographing device, a detection frame moving distance, and a detection frame size; the detection frame is used for framing the target object; and the detection frame moving distance is determined according to a moving position of the target object in a preset interval frame.
[0095] The motion speed determination unit is configured to determine the motion speed of the target object according to the current frame rate of the photographing device, the detection frame moving distance, the detection frame size, and a predetermined reference value in a preset speed calculation manner.
[0096] The reference value comprises a photographing device frame rate reference value, a detection frame moving distance reference value, a detection frame size reference value, a motion speed reference value, and an interval frame reference value.
[0097] In the technical solution, the motion speed size and the exposure ratio size are in inverse proportional relationship.
[0098] In the technical solution, the exposure ratio determination module 420 comprises:
[0099] The exposure ratio fitting coefficient determination unit is configured to determine an exposure ratio fitting coefficient; the exposure ratio fitting coefficient is used for representing the proportional relationship between the exposure ratio and the motion speed.
[0100] The exposure ratio obtaining unit is configured to obtain the exposure ratio according to a ratio of the exposure ratio fitting coefficient and the square of the motion speed.
[0101] In the technical solution, the exposure ratio obtaining unit is specifically configured to:
[0102] The following formula is used for calculation:
[0103] Or,
[0104]
[0105] Wherein, R represents the exposure ratio, q represents the fitting coefficient, v represents the motion speed, and M and N are constants.
[0106] In the technical solution, the exposure factor distribution module 430 comprises:
[0107] The current frame long frame exposure amount determination unit is configured to determine a current frame long frame exposure amount according to the exposure ratio and a total exposure amount of a previous frame of the photographing device obtained in advance;
[0108] The current frame long frame exposure amount shutter value calculation unit is configured to calculate a current frame long frame exposure amount shutter value according to the current frame long frame exposure amount and the motion speed in a preset long exposure factor calculation manner;
[0109] The current frame long frame exposure amount gain value determination unit is configured to determine a current frame long frame exposure amount gain value according to the current frame long frame exposure amount shutter value and the current frame long frame exposure amount.
[0110] In the technical solution, the exposure factor distribution module 430 comprises:
[0111] The current frame short frame exposure amount determination unit is configured to determine a current frame short frame exposure amount according to the exposure ratio and a total exposure amount of a previous frame of the photographing device obtained in advance;
[0112] The current frame short frame exposure amount shutter value and current frame short frame exposure amount gain value determination unit is configured to determine a current frame short frame exposure amount shutter value and a current frame short frame exposure amount gain value according to the current frame short frame exposure amount in a preset priority manner.
[0113] The product can execute the method provided in the embodiments of the application, and has the corresponding function modules and beneficial effects of the execution method.
[0114] Embodiment four
[0115] The embodiments of the application further provide a medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute an exposure adjustment method, the method comprising:
[0116] determining a motion speed of a target object in a photographing picture;
[0117] determining an exposure ratio according to the motion speed in a preset exposure ratio calculation manner, wherein the exposure ratio is used to represent a ratio of exposure amounts of long and short frames in a wide dynamic range;
[0118] dynamically distributing exposure factors according to the exposure ratio, so as to be used for photographing the target object.
[0119] Media – Any type of memory device or storage device. The term “media” is intended to include: mounting media, such as CD-ROMs, floppy disks, or magnetic tape devices; computer system memory or random access memory, such as DRAM, DDRRAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (e.g., hard disks or optical storage); registers or other similar types of memory elements, etc. Media may also include other types of memory or combinations thereof. Additionally, media may reside in the computer system in which the program is executed, or may reside in a different second computer system connected to the computer system via a network (such as the Internet). The second computer system may provide program instructions to the computer for execution. The term “media” may include two or more media that may reside in different locations (e.g., in different computer systems connected via a network). Media may store program instructions (e.g., specifically implemented as a computer program) that can be executed by one or more processors.
[0120] Of course, the computer-executable instructions provided in the embodiments of this application are not limited to the exposure adjustment operation described above, but can also perform related operations in the exposure adjustment method provided in any embodiment of this application.
[0121] Example 5
[0122] This application provides an electronic device that can integrate the exposure adjustment device provided in this application. Figure 5 This is a schematic diagram of the structure of an electronic device provided in Embodiment 5 of this application. Figure 5 As shown, this embodiment provides an electronic device 500, which includes: one or more processors 520; and a storage device 510 for storing one or more programs. When the one or more programs are executed by the one or more processors 520, the one or more processors 520 implement the exposure adjustment method provided in this embodiment, the method including:
[0123] Determine the speed of the target object in the captured image;
[0124] According to the preset exposure ratio calculation method, the exposure ratio is determined based on the motion speed; wherein, the exposure ratio is used to characterize the ratio of exposure of long and short frames under wide dynamic range;
[0125] The exposure factor is dynamically allocated based on the exposure ratio for photographing the target object.
[0126] Of course, those skilled in the art will understand that the processor 520 also implements the technical solutions of the exposure adjustment methods provided in any embodiment of this application.
[0127] Figure 5 The electronic device 500 shown is merely an example and should not limit the function and usage range of the embodiments of the present application.
[0128] As shown in Figure 5 the electronic device 500 includes a processor 520, a storage device 510, an input device 530, and an output device 540; the number of processors 520 in the electronic device can be one or more, Figure 5 one processor 520 is taken as an example; the processor 520, the storage device 510, the input device 530, and the output device 540 in the electronic device can be connected through a bus or other means, Figure 5 and the connection through the bus 550 is taken as an example.
[0129] The storage device 510, as a kind of computer readable medium, can be used to store software programs, computer executable programs and module units, such as the program instructions corresponding to the exposure adjustment method in the embodiments of the present application.
[0130] The storage device 510 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system and at least one application required by a function; the data storage area can store data created according to the use of the terminal, etc. In addition, the storage device 510 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some examples, the storage device 510 can further include a memory disposed remotely with respect to the processor 520, and these remote memories can be connected through a network. Examples of the above network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0131] The input device 530 can be used to receive input digital, character information or voice information, and generate key signal input related to user settings and function control of the electronic device. The output device 540 can include a display screen, a speaker, and other electronic devices.
[0132] The electronic device provided by the embodiments of the present application can achieve the purpose of optimizing the residual image phenomenon in the moving object scene and obtaining better snapshot effect.
[0133] The exposure adjustment device, medium and electronic device provided in the above embodiments can execute the exposure adjustment method provided by any embodiment of the present application, and have the corresponding function modules and beneficial effects of executing the method. Technical details not described in detail in the above embodiments can be referred to the exposure adjustment method provided by any embodiment of the present application.
[0134] It is to be noted that the above-mentioned embodiments illustrate rather than limit the application, and that those skilled in the art will be able to design many alternative embodiments without departing from the scope of the application. The word "comprising" does not exclude the presence of elements or steps other than those listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. It is further noted that characteristics relating to the different embodiments can be combined, and not just those within respective sections of the description.
Claims
1. An exposure adjustment method, characterized in that, include: Determine the speed of the target object in the captured image; According to the preset exposure ratio calculation method, the exposure ratio is determined based on the motion speed; wherein, the exposure ratio is used to characterize the ratio of exposure of long and short frames under wide dynamic range; Based on the exposure ratio, the exposure factor is dynamically allocated for photographing the target object; The process of determining the exposure ratio based on the movement speed, according to a preset exposure ratio calculation method, includes: Determine the exposure ratio fitting coefficient; wherein the exposure ratio fitting coefficient is used to characterize the proportional relationship between the exposure ratio and the motion speed; The exposure ratio is obtained by the ratio of the exposure ratio fitting coefficient to the square of the motion speed.
2. The method according to claim 1, characterized in that, Determine the speed of motion of the target object in the captured image, including: The system acquires the current frame rate of the shooting device, the movement distance of the detection box, and the size of the detection box; wherein, the detection box is used to frame the target object; the movement distance of the detection box is determined based on the movement position of the target object within a preset frame interval; According to the preset speed calculation method, the movement speed of the target object is determined based on the current frame rate of the shooting device, the movement distance of the detection frame, the size of the detection frame, and a predetermined reference value. The reference values include the frame rate reference value of the shooting device, the detection frame movement distance reference value, the detection frame size reference value, the motion speed reference value, and the interval frame reference value.
3. The method according to claim 1, characterized in that, The magnitude of the movement speed is inversely proportional to the magnitude of the exposure ratio.
4. The method according to claim 1, characterized in that, The exposure ratio is calculated using the following formula: or, Where R represents the exposure ratio, q represents the exposure ratio fitting coefficient, v represents the motion speed, and M and N are constants.
5. The method according to claim 1, characterized in that, Based on the exposure ratio, the exposure factor is dynamically allocated, including: The exposure amount of the current frame is determined based on the exposure ratio and the total exposure of the previous frame obtained in advance by the shooting device. According to the preset long exposure factor calculation method, the shutter value of the current long exposure is calculated based on the current frame long exposure and the motion speed; The current frame length exposure gain value is determined based on the current frame length exposure shutter value and the current frame length exposure.
6. The method according to claim 1, characterized in that, Based on the exposure ratio, the exposure factor is dynamically allocated, including: The exposure of the current frame is determined based on the exposure ratio and the total exposure of the previous frame obtained from the shooting device. According to a preset priority method, the shutter value and gain value of the current frame short frame exposure are determined based on the current frame short frame exposure.
7. An exposure adjustment device, characterized in that, include: The motion speed determination module is used to determine the motion speed of the target object in the captured image. The exposure ratio determination module is used to determine the exposure ratio according to the motion speed according to a preset exposure ratio calculation method; wherein, the exposure ratio is used to characterize the ratio of exposure of long and short frames under wide dynamic range; An exposure factor allocation module is used to dynamically allocate exposure factors according to the exposure ratio for photographing the target object. The exposure ratio determination module includes: An exposure ratio fitting coefficient determination unit is used to determine the exposure ratio fitting coefficient; wherein, the exposure ratio fitting coefficient is used to characterize the proportional relationship between the exposure ratio and the motion speed; The exposure ratio obtaining unit is used to obtain the exposure ratio based on the ratio of the exposure ratio fitting coefficient to the square of the motion speed.
8. A computer-readable medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the exposure adjustment method as described in any one of claims 1-6.
9. An electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the exposure adjustment method as described in any one of claims 1-6.
Citation Information
Patent Citations
Imaging apparatus and imaging method
JP2011155619A
Image processing device and method, program, and record medium
US20170374258A1