A method, apparatus, storage medium, and electronic device for adjusting shutter value.
By calculating the target exposure time and adjusting the shutter speed, the problem of high-speed vehicle motion blur was solved, image quality was optimized, costs were reduced, and light pollution was minimized.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- ZHEJIANG UNIVIEW TECH CO LTD
- Filing Date
- 2021-12-13
- Publication Date
- 2026-06-30
Smart Images

Figure CN116264641B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle capture technology, and in particular to a shutter value adjustment method, device, storage medium, and electronic device. Background Technology
[0002] Roadside camera capture devices all use global shutter image sensors. In the actual process of capturing vehicles, the sensor shutter speed is a very important parameter. If it is too small, the image brightness will be too dark; if it is too large, fast-moving vehicles will have obvious motion blur, affecting the visual effect.
[0003] Road checkpoints and electronic police cameras are very common applications. Currently, to ensure image quality, most cameras are set to a low shutter speed and supplemented with high-brightness lighting.
[0004] Adding supplemental lighting to improve ambient brightness requires high-powered lights, which not only increases costs but also causes light pollution, affecting road safety. Even at high speeds, motion blur can still occur. Summary of the Invention
[0005] This application provides a shutter speed adjustment method, apparatus, storage medium, and electronic device, which can dynamically adjust the shutter speed of the capture device according to the movement of the moving target, maximizing exposure and optimizing image quality. It also avoids motion blur caused by excessively fast-moving vehicles, thus improving visual effects.
[0006] In a first aspect, embodiments of this application provide a shutter value adjustment method, the method comprising:
[0007] Determine the speed of the moving target and its horizontal distance relative to the capturing device;
[0008] Based on the horizontal distance relative to the capture device and the preset capture parameters of the capture device, the actual movement distance of the moving target on the ground is determined when a single exposure capture is performed on the moving target and the captured image reaches a preset clarity; wherein, the capture parameters include the pixel size of the capture device sensor, the number of pixel trails, the device installation height, the focal length of the capture device, and the angle between the imaging target surface of the capture device sensor and the ground;
[0009] Based on the actual movement distance and speed, the target exposure time is calculated, and the shutter speed is adjusted according to the target exposure time to capture the moving target.
[0010] Secondly, embodiments of this application provide a shutter value adjustment device, the device comprising:
[0011] The moving target motion information determination module is used to determine the moving target's speed and horizontal distance relative to the capture device;
[0012] The actual motion distance determination module is used to determine the actual motion distance of the moving target on the ground when a single exposure is performed on the moving target and the captured image reaches a preset clarity, based on the horizontal distance relative to the capture device and the preset capture parameters of the capture device; wherein, the capture parameters include the pixel size of the capture device sensor, the number of pixel trails, the device installation height, the focal length of the capture device, and the angle between the capture device sensor imaging target surface and the ground;
[0013] The shutter speed adjustment module is used to calculate the target exposure time based on the actual movement distance and speed, and adjust the shutter speed according to the target exposure time to capture moving targets.
[0014] Thirdly, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the shutter value adjustment method as described in embodiments of this application.
[0015] Fourthly, embodiments of this application provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the shutter value adjustment method as described in embodiments of this application.
[0016] The technical solution provided in this application determines the speed of the moving target and its horizontal distance relative to the capturing device. Then, based on the horizontal distance relative to the capturing device and the preset capturing parameters of the capturing device, it determines the actual distance the moving target travels on the ground to achieve a preset clarity in a single exposure capture. Based on the actual distance and speed, it calculates the target exposure time and adjusts the shutter speed accordingly for capturing the moving target. This technical solution can dynamically adjust the shutter speed of the capturing device according to the movement of the moving target, maximizing exposure and optimizing image quality. It also avoids motion blur caused by excessively fast vehicle speeds, thus improving the visual effect. Attached Figure Description
[0017] Figure 1 This is a flowchart of the shutter value adjustment method provided in Embodiment 1 of this application;
[0018] Figure 2 This is a schematic diagram of a moving target capture scenario provided in Embodiment 1 of this application;
[0019] Figure 3 This is a schematic diagram of the angle between the sensor imaging target surface of the snapshot device provided in Embodiment 1 of this application and the ground;
[0020] Figure 4 This is a schematic diagram of the shutter value adjustment process provided in Embodiment 2 of this application;
[0021] Figure 5 This is a schematic diagram illustrating the relationship between the actual motion distance and the number of pixel trails provided in Embodiment 2 of this application;
[0022] Figure 6 This is a schematic diagram of the shutter value adjustment device provided in Embodiment 3 of this application;
[0023] Figure 7 This is a schematic diagram of the structure of an electronic device provided in Embodiment 5 of this application. Detailed Implementation
[0024] The present application will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the application and not intended to limit it. Furthermore, it should be noted that, for ease of description, the accompanying drawings show only the parts relevant to the present application, not the entire structure.
[0025] Before discussing the exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe the steps as sequential processes, many of these steps can be performed in parallel, concurrently, or simultaneously. Furthermore, the order of the steps can be rearranged. The process can be terminated when its operation is complete, but may also have additional steps not included in the figures. The process can correspond to a method, function, procedure, subroutine, subroutine, etc.
[0026] Example 1
[0027] Figure 1 This is a flowchart of the shutter value adjustment method provided in Embodiment 1 of this application. This embodiment can be applied to situations where the shutter value of a snapshot device is dynamically adjusted. The method can be executed by the shutter value adjustment device provided in this embodiment. The device can be implemented by software and / or hardware and can be integrated into devices such as smart terminals used for shutter value adjustment of snapshot devices.
[0028] like Figure 1 As shown, the shutter value adjustment method includes:
[0029] S110. Determine the speed of the moving target and its horizontal distance relative to the capture device;
[0030] The capture device can be a camera, a smart camera, etc. Preferably, the capture device can be a camera using a global shutter image sensor. The main difference between a global shutter and a rolling shutter is that a global shutter allows all pixels to start and end their exposure at the same time, and then read them out sequentially after the exposure is complete. Because all pixels are exposed at the same point in time, there is no time difference, so the rolling shutter effect that occurs when shooting fast-moving objects is avoided.
[0031] In this solution, the motion speed of the moving target and the horizontal distance of the moving target relative to the capture device can be collected based on the acquisition device.
[0032] In this technical solution, optionally, determining the moving target's speed and horizontal distance relative to the capture device includes:
[0033] When a moving target reaches a preset capture point, the device collects the target's speed and horizontal distance relative to the capture device.
[0034] The data acquisition equipment can be radar equipment, installed on both sides of the road, to collect motion information of moving targets.
[0035] In this embodiment, the capture points can be set according to the vehicle capture requirements.
[0036] For example, Figure 2 This is a schematic diagram of a moving target capture scenario provided in Embodiment 1 of this application, as shown below. Figure 2 As shown in the diagram, the scene comprises an automatic shutter capture system consisting of radar and a camera. The radar detects vehicles and, when a moving target reaches the capture point, collects the target's speed and horizontal distance relative to the capture device. It then sends a signal to trigger the capture device to dynamically adjust the shutter speed based on the target's speed and horizontal distance, thus capturing the moving target.
[0037] S120. Based on the horizontal distance relative to the capture device and the preset capture parameters of the capture device, determine the actual movement distance of the moving target on the ground when a single exposure capture is performed on the moving target and the captured image reaches a preset clarity; wherein, the capture parameters include the pixel size of the capture device sensor, the number of pixel trails, the device installation height, the focal length of the capture device, and the angle between the capture device sensor imaging target surface and the ground.
[0038] In this solution, in the field of motion capture cameras, exposure time is generally dynamically adjusted according to ambient brightness; for example, longer exposure time at night when brightness is low, and shorter exposure time during the day. However, to ensure that there is no obvious motion blur when capturing vehicles on the road, an upper limit for exposure time is set to prevent the adaptive exposure time from being too long in low ambient light, which would cause motion blur of moving targets. Therefore, when capturing a moving target in one exposure and achieving the preset sharpness of the captured image, the exposure time must be less than or equal to the upper limit of exposure time. Specifically, the actual distance the moving target travels on the ground within one exposure time can be calculated based on the horizontal distance of the moving target relative to the capture device and the preset capture parameters of the capture device. The upper limit of exposure time is then determined based on the actual distance the moving target travels on the ground within one exposure time.
[0039] Among them, the equipment installation height, the focal length of the capture device, and the angle between the imaging target surface of the capture device sensor and the ground are fixed parameters after the moving target capture scene is installed.
[0040] For example, Figure 3 This is a schematic diagram of the angle between the sensor imaging target surface of the capture device provided in Embodiment 1 of this application and the ground, as shown below. Figure 3 As shown, the angle between the sensor imaging target surface of the capture device and the ground can be measured by an angle measuring instrument, or the value of this angle can be calculated based on parameters such as the height of the imaging target surface, the focal length of the capture device, the horizontal distance between the lower edge of the capture device's image and the installation position of the capture device, and the installation height of the capture device.
[0041] The pixel size of the sensor in the capture device can be determined based on the performance of the capture device.
[0042] In this scheme, the number of pixel trails refers to the number of pixels in the image from the start to the end of an exposure. This can be set according to the image capture requirements.
[0043] In this embodiment, the principle of similar triangles can be used to calculate the actual distance the moving target travels on the ground within one exposure time, based on the horizontal distance between the moving target and the capture device and the preset capture parameters of the capture device.
[0044] S130. Calculate the target exposure time based on the actual movement distance and speed, and adjust the shutter speed according to the target exposure time to capture the moving target.
[0045] In this embodiment, after determining the actual movement distance and speed, the target exposure time can be directly calculated based on these parameters. The target exposure time is the upper limit of a single exposure time; the shutter speed can be dynamically adjusted based on this upper limit to maximize exposure and optimize image quality.
[0046] In this technical solution, optionally, the target exposure time is calculated based on the actual movement distance and movement speed, including:
[0047] Divide the actual movement distance and movement speed to obtain the target exposure time.
[0048] In this embodiment, the actual movement distance is equal to the product of the movement speed and the target exposure time. After determining the actual movement distance and movement speed, the target exposure time can be directly calculated.
[0049] Based on the target exposure time, the shutter speed of the capture device can be dynamically adjusted to maximize exposure and optimize image quality. This avoids motion blur caused by excessively fast-moving vehicles, thus improving the visual effect.
[0050] The technical solution provided in this application determines the speed of the moving target and its horizontal distance relative to the capturing device. Then, based on the horizontal distance relative to the capturing device and the preset capturing parameters of the capturing device, it determines the actual distance the moving target travels on the ground when a single exposure capture is performed to achieve a preset image clarity. The target exposure time is calculated based on the actual distance and speed, and the shutter speed is adjusted accordingly for capturing the moving target. By implementing this technical solution, the shutter speed of the capturing device can be dynamically adjusted according to the movement of the moving target, maximizing exposure and optimizing image quality. It also avoids motion blur caused by excessively fast vehicle speeds, thus improving the visual effect.
[0051] Example 2
[0052] Figure 4 This is a schematic diagram of the shutter value adjustment process provided in Embodiment 2 of this application. Embodiment 2 is a further optimization based on Embodiment 1. Specifically, the optimization involves: determining the actual movement distance of the moving target on the ground when a single exposure capture is performed on the moving target and the captured image reaches a preset clarity, based on the horizontal distance relative to the capture device and the preset capture parameters of the capture device. This includes: determining the movement distance of the moving target on the imaging target surface when a single exposure capture is performed on the moving target and the captured image reaches a preset clarity, based on the pixel size and pixel trailing number of the capture device sensor; and determining the actual movement distance of the moving target on the ground when a single exposure capture is performed on the moving target and the captured image reaches a preset clarity, using the movement distance of the moving target on the imaging target surface, the horizontal distance relative to the capture device, the device installation height, the focal length of the capture device, and the angle between the imaging target surface of the capture device sensor and the ground. For details not described in this embodiment, please refer to Embodiment 1. Figure 4 As shown, the method includes the following steps:
[0053] S410. Determine the speed of the moving target and its horizontal distance relative to the capture device;
[0054] S420. Based on the sensor pixel size and the number of pixel trails of the capture device, determine the movement distance of the moving target on the imaging target surface when the moving target is captured in one exposure and the captured image reaches a preset clarity.
[0055] In this embodiment, in traffic applications, capturing moving targets is not only for visual presentation but also requires machine vision recognition, such as license plate number recognition, vehicle model recognition, and structured attribute recognition of vehicle logos and models. Significant motion blur not only affects visual perception but also severely impacts the accuracy of machine vision algorithms. Currently, both the human eye and industry algorithms can generally accept motion blur of up to 3 pixels, meaning that from the start to the end of the shutter movement, the moving target can move a maximum of 3 pixels in the image. Of course, this number of pixel motion blurs can be dynamically set based on the actual user experience and the algorithm's tolerance. For example, the number of pixel motion blurs can be set to 3 or 2.
[0056] In this scheme, the movement distance of the moving target on the imaging target surface can be calculated based on the pixel size and pixel trailing number of the sensor of the capture device. This movement distance of the moving target on the imaging target surface is the upper limit of the distance required to capture the moving target in one exposure and achieve a preset sharpness in the captured image.
[0057] In this technical solution, optionally, determining the movement distance of the moving target on the imaging target surface when performing a single-exposure capture of the moving target and achieving a preset sharpness in the captured image, based on the sensor pixel size and the number of pixel trails of the capture device, includes:
[0058] The distance the moving target travels on the imaging target surface is calculated by multiplying the sensor pixel size and the number of pixel trails of the capture device. This is done when the moving target is captured in one exposure and the captured image reaches a preset clarity.
[0059] The pixel size of the capture device sensor is the size of a single pixel. By multiplying the pixel size of the capture device sensor by the number of pixel trails, the distance the moving target moves on the imaging target surface during one exposure time can be obtained.
[0060] By calculating the distance a moving target travels on the imaging target surface, the upper limit of the target's movement in the image can be obtained, maximizing exposure and optimizing image quality. This also avoids motion blur caused by excessively fast-moving vehicles, thus improving visual effects.
[0061] S430. Based on the moving target's movement distance on the imaging target surface, the horizontal distance relative to the capture device, the device's installation height, the capture device's focal length, and the angle between the capture device's sensor imaging target surface and the ground, determine the actual movement distance of the moving target on the ground when performing a single exposure capture and ensuring the captured image reaches a preset clarity.
[0062] In this scheme, the principle of similar triangles can be used to determine the actual distance of the moving target on the ground when a single exposure capture is performed to achieve a preset level of image sharpness, based on the target's movement distance on the imaging target surface, the horizontal distance relative to the capture device, the device's installation height, the capture device's focal length, and the angle between the sensor's imaging target surface and the ground. This actual distance is the upper limit of the actual distance required for a single exposure capture to achieve the preset level of image sharpness.
[0063] In this technical solution, optionally, the actual distance of the moving target on the ground when performing a single-exposure capture and achieving a preset clarity in the captured image is determined by the moving target's distance on the imaging target surface, the horizontal distance relative to the capture device, the device's installation height, the capture device's focal length, and the angle between the capture device's sensor imaging target surface and the ground. This includes:
[0064] Based on the moving target's distance on the imaging target surface, the horizontal distance relative to the capture device, the device's installation height, the capture device's focal length, and the angle between the capture device's sensor imaging target surface and the ground, an equation for the actual moving distance is constructed to be solved.
[0065] The equation for the actual movement distance is solved to obtain the actual movement distance of the moving target on the ground when the moving target is captured in one exposure and the captured image reaches a preset clarity.
[0066] In this scheme, the horizontal distance to the capture device, the device's installation height, the capture device's focal length, and the angle between the capture device's sensor imaging target surface and the ground can be combined according to similar triangle relationships to construct an equation with the moving target's distance on the imaging target surface. By solving this equation, the actual distance the moving target travels on the ground can be obtained.
[0067] By calculating the actual movement distance, exposure can be maximized, optimizing image quality. This avoids motion blur caused by excessively fast-moving vehicles, thus improving visual appeal.
[0068] In this technical solution, optionally, the actual movement distance can be calculated using the following formula, including:
[0069]
[0070] Where e is the pixel size of the sensor of the capture device, n is the number of pixel trails, H is the installation height of the device, L is the horizontal distance relative to the capture device, θ is the angle between the imaging target surface of the sensor of the capture device and the ground, f is the focal length of the capture device, and D is the actual movement distance.
[0071] For example, Figure 5 This is a schematic diagram illustrating the relationship between the actual motion distance and the number of pixel trails provided in Embodiment 2 of this application, as shown below. Figure 5 Where d is the moving distance of the target on the imaging target surface, H is the installation height of the device, L is the horizontal distance relative to the capture device, θ is the angle between the imaging target surface of the capture device sensor and the ground, f is the focal length of the capture device, and D is the actual moving distance.
[0072] Based on trigonometric relationships, we obtain:
[0073] d=tanβ*f-tanα*f=(tan(θ-β′)-tan(θ-α′))*f;
[0074] The conversion formula for the tan function is as follows:
[0075]
[0076]
[0077]
[0078] Then we can calculate:
[0079]
[0080] Where d = e × n, e is the pixel size of the sensor of the capture device, and n is the number of pixel trails.
[0081] The transformed relationship is:
[0082]
[0083] By calculating the actual distance the moving target travels on the ground, the shutter speed of the capture device can be dynamically adjusted to maximize exposure and optimize image quality. This avoids motion blur caused by excessively fast-moving vehicles, thus improving the visual effect.
[0084] S440. Calculate the target exposure time based on the actual movement distance and speed, and adjust the shutter speed according to the target exposure time to capture the moving target.
[0085] In this scheme, the actual moving distance can be obtained by multiplying the moving speed and the target exposure time. That is, D = V × T; where V is the moving speed and T is the target exposure time. Then, the relationship between the moving target's moving distance on the imaging target surface, the actual moving distance, and the horizontal distance relative to the capture device can be simplified as e × n = F(D, L) = F(V, T, L), where the F function is positively correlated with V and T.
[0086] Therefore, a relationship was established between the motion speed V, target exposure time T, horizontal distance L relative to the capturing device, and the number of pixel trails n of the moving target in the image presentation under fixed equipment and scene conditions. The radar equipment can dynamically and accurately determine V and L according to different states of the moving target. Under fixed scene conditions, the requirement for n is also relatively fixed (generally with an upper limit of 3, which can be changed according to requirements). Since T is positively correlated with the F function, the upper limit of T can also be calculated in this case.
[0087] The technical solution provided in this application determines the speed of the moving target and its horizontal distance relative to the capture device. Then, based on the pixel size and number of pixel trails of the capture device's sensor, it determines the target's distance on the imaging target surface when a single exposure capture is performed to achieve a preset image clarity. Furthermore, by considering the target's distance on the imaging target surface, its horizontal distance relative to the capture device, the device's installation height, the capture device's focal length, and the angle between the capture device's sensor imaging target surface and the ground, it determines the target's actual distance on the ground when a single exposure capture is performed to achieve a preset image clarity. Based on the actual distance and speed, the target exposure time is calculated, and the shutter speed is adjusted accordingly for capturing the moving target. By implementing this technical solution, the shutter speed of the capture device can be dynamically adjusted according to the target's movement, maximizing exposure and optimizing image quality. It also avoids motion blur caused by excessively fast vehicle speeds, thus improving the visual effect.
[0088] Example 3
[0089] Figure 6 This is a schematic diagram of the shutter value adjustment device provided in Embodiment 3 of this application, as shown below. Figure 6 As shown, the shutter speed adjustment device includes:
[0090] The moving target motion information determination module 610 is used to determine the moving speed of the moving target and its horizontal distance relative to the capture device.
[0091] The actual motion distance determination module 620 is used to determine the actual motion distance of the moving target on the ground when a single exposure is performed on the moving target and the captured image reaches a preset clarity, based on the horizontal distance relative to the capture device and the preset capture parameters of the capture device; wherein, the capture parameters include the pixel size of the capture device sensor, the number of pixel trails, the device installation height, the focal length of the capture device, and the angle between the capture device sensor imaging target surface and the ground;
[0092] The shutter speed adjustment module 630 is used to calculate the target exposure time based on the actual movement distance and movement speed, and adjust the shutter speed based on the target exposure time for capturing moving targets.
[0093] In this technical solution, the optional actual motion distance determination module 620 includes:
[0094] The motion distance determination unit is used to determine the motion distance of the moving target on the imaging target surface when the moving target is captured in one exposure and the captured image reaches a preset clarity, based on the sensor pixel size and the number of pixel trails of the capture device.
[0095] The actual motion distance determination unit is used to determine the actual motion distance of the moving target on the ground when the moving target is captured in one exposure and the captured image reaches a preset clarity, by taking into account the motion distance of the moving target on the imaging target surface, the horizontal distance relative to the capture device, the installation height of the device, the focal length of the capture device, and the angle between the imaging target surface of the capture device sensor and the ground.
[0096] In this technical solution, the optional motion distance determination unit is specifically used for:
[0097] The distance the moving target travels on the imaging target surface is calculated by multiplying the sensor pixel size and the number of pixel trails of the capture device. This is done when the moving target is captured in one exposure and the captured image reaches a preset clarity.
[0098] In this technical solution, the optional actual motion distance determination unit includes:
[0099] The sub-unit for constructing the equation for the actual motion distance is used to construct the equation for the actual motion distance based on the motion distance of the moving target on the imaging target surface, the horizontal distance relative to the capture device, the device installation height, the focal length of the capture device, and the angle between the imaging target surface of the capture device sensor and the ground.
[0100] The actual motion distance solution subunit is used to solve the equation for the actual motion distance to obtain the actual motion distance of the moving target on the ground when the moving target is captured in one exposure and the captured image reaches a preset clarity.
[0101] In this technical solution, the optional actual movement distance determination unit is specifically used for:
[0102] The actual distance traveled is calculated using the following formula:
[0103]
[0104] Where e is the pixel size of the sensor of the capture device, n is the number of pixel trails, H is the installation height of the device, L is the horizontal distance relative to the capture device, θ is the angle between the imaging target surface of the sensor of the capture device and the ground, f is the focal length of the capture device, and D is the actual movement distance.
[0105] In this technical solution, the optional shutter value adjustment module 630 is specifically used for:
[0106] Divide the actual movement distance and movement speed to obtain the target exposure time.
[0107] In this technical solution, optionally, the moving target motion information determination module 610 is specifically used for:
[0108] When a moving target reaches a preset capture point, the device collects the target's speed and horizontal distance relative to the capture device.
[0109] The above-mentioned products can perform the methods provided in the embodiments of this application, and have the corresponding functional modules and beneficial effects of performing the methods.
[0110] Example 4
[0111] This application also provides a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform a shutter value adjustment method, the method comprising:
[0112] Determine the speed of the moving target and its horizontal distance relative to the capturing device;
[0113] Based on the horizontal distance relative to the capture device and the preset capture parameters of the capture device, the actual movement distance of the moving target on the ground is determined when a single exposure capture is performed on the moving target and the captured image reaches a preset clarity; wherein, the capture parameters include the pixel size of the capture device sensor, the number of pixel trails, the device installation height, the focal length of the capture device, and the angle between the imaging target surface of the capture device sensor and the ground;
[0114] Based on the actual movement distance and speed, the target exposure time is calculated, and the shutter speed is adjusted according to the target exposure time to capture the moving target.
[0115] Storage medium – any type of memory device or storage device. The term “storage medium” is intended to include: mounting media, such as CD-ROM, floppy disk, or magnetic tape devices; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. Storage medium may also include other types of memory or combinations thereof. Furthermore, storage medium may reside in a computer system in which a program is executed, or it may reside in a different second computer system connected to the computer system via a network (such as the Internet). The second computer system can provide program instructions to the computer for execution. The term “storage medium” can include two or more storage media that may reside in different locations (e.g., in different computer systems connected via a network). Storage medium may store program instructions (e.g., specifically implemented as a computer program) that can be executed by one or more processors.
[0116] Of course, the computer-executable instructions provided in the embodiments of this application are not limited to the shutter value adjustment operation as described above, but can also execute related operations in the shutter value adjustment method provided in any embodiment of this application.
[0117] Example 5
[0118] This application provides an electronic device that can integrate the shutter value adjustment device provided in this application. Figure 7 This is a schematic diagram of the structure of an electronic device provided in Embodiment 5 of this application. Figure 7 As shown, this embodiment provides an electronic device 700, which includes: one or more processors 720; and a storage device 710 for storing one or more programs. When the one or more programs are executed by the one or more processors 720, the one or more processors 720 implement the shutter value adjustment method provided in this embodiment, the method including:
[0119] Determine the speed of the moving target and its horizontal distance relative to the capturing device;
[0120] Based on the horizontal distance relative to the capture device and the preset capture parameters of the capture device, the actual movement distance of the moving target on the ground is determined when a single exposure capture is performed on the moving target and the captured image reaches a preset clarity; wherein, the capture parameters include the pixel size of the capture device sensor, the number of pixel trails, the device installation height, the focal length of the capture device, and the angle between the imaging target surface of the capture device sensor and the ground;
[0121] Based on the actual movement distance and speed, the target exposure time is calculated, and the shutter speed is adjusted according to the target exposure time to capture the moving target.
[0122] Of course, those skilled in the art will understand that the processor 720 also implements the technical solution of the shutter value adjustment method provided in any embodiment of this application.
[0123] Figure 7 The electronic device 700 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.
[0124] like Figure 7 As shown, the electronic device 700 includes a processor 720, a storage device 710, an input device 730, and an output device 740; the number of processors 720 in the electronic device can be one or more. Figure 7 Taking a processor 720 as an example; the processor 720, storage device 710, input device 730, and output device 740 in the electronic device can be connected via a bus or other means. Figure 7 Taking the connection between China and Israel via bus 750 as an example.
[0125] The storage device 710, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and module units, such as the program instructions corresponding to the shutter value adjustment method in the embodiments of this application.
[0126] Storage device 710 may primarily include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a given function; the data storage area may store data created based on terminal usage. Furthermore, storage device 710 may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory, or other non-volatile solid-state storage device. In some instances, storage device 710 may further include memory remotely located relative to processor 720, and this remote memory may be connected via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0127] Input device 730 can be used to receive input digital, character, or voice information, and to generate key signal inputs related to user settings and function control of the electronic device. Output device 740 may include electronic devices such as a display screen and a speaker.
[0128] The electronic device provided in this application embodiment can maximize exposure and optimize image effects. It avoids motion blur caused by excessively fast-moving vehicles, thus improving the visual experience.
[0129] The shutter value adjustment device, storage medium, and electronic device provided in the above embodiments can execute the shutter value adjustment method provided in any embodiment of this application, and have the corresponding functional modules and beneficial effects of executing the method. Technical details not described in detail in the above embodiments can be found in the shutter value adjustment method provided in any embodiment of this application.
[0130] Note that the above are merely preferred embodiments and the technical principles employed in this application. Those skilled in the art will understand that this application is not limited to the specific embodiments described herein, and various obvious changes, recalculations, and substitutions can be made without departing from the scope of protection of this application. Therefore, although this application has been described in detail through the above embodiments, this application is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of this application, the scope of which is determined by the scope of the appended claims.
Claims
1. A shutter value adjustment method, characterized in that, include: Determine the speed of the moving target and its horizontal distance relative to the capturing device; Using the principle of similar triangles, based on the horizontal distance relative to the capture device and the preset capture parameters of the capture device, the actual movement distance of the moving target on the ground is determined when a single exposure capture is performed on the moving target and the captured image reaches a preset clarity; wherein, the capture parameters include the pixel size of the capture device sensor, the number of pixel trails, the device installation height, the focal length of the capture device, and the angle between the imaging target surface of the capture device sensor and the ground; Based on the actual movement distance and speed, the target exposure time is calculated, and the shutter speed is adjusted according to the target exposure time to capture the moving target. The step of determining the actual distance the moving target travels on the ground when a single exposure capture is performed on the moving target and the captured image achieves a preset clarity, based on the horizontal distance relative to the capture device and the preset capture parameters of the capture device, includes: Based on the sensor pixel size and the number of pixel trails of the capture device, determine the movement distance of the moving target on the imaging target surface when a single exposure capture is performed on the moving target and the captured image reaches a preset clarity. The actual distance the moving target travels on the ground is determined by taking a single exposure to capture the moving target and ensuring that the captured image reaches a preset clarity, based on the moving target's distance on the imaging target surface, the horizontal distance relative to the capture device, the device's installation height, the capture device's focal length, and the angle between the capture device's sensor imaging target surface and the ground.
2. The method according to claim 1, characterized in that, Based on the sensor pixel size and pixel trailing number of the capture device, the motion distance of the moving target on the imaging target surface is determined when a single exposure capture of the moving target is performed and the captured image achieves a preset sharpness, including: The distance the moving target travels on the imaging target surface is calculated by multiplying the sensor pixel size and the number of pixel trails of the capture device. This is done when the moving target is captured in one exposure and the captured image reaches a preset clarity.
3. The method according to claim 1, characterized in that, The actual distance the moving target travels on the ground is determined by taking a single-exposure image capture of the moving target while ensuring the captured image achieves a preset clarity. This is achieved by considering the target's distance on the imaging target surface, its horizontal distance relative to the capture device, the device's installation height, the capture device's focal length, and the angle between the capture device's sensor imaging target surface and the ground. Based on the moving target's distance on the imaging target surface, the horizontal distance relative to the capture device, the device's installation height, the capture device's focal length, and the angle between the capture device's sensor imaging target surface and the ground, an equation for the actual moving distance is constructed to be solved. The equation for the actual movement distance is solved to obtain the actual movement distance of the moving target on the ground when the moving target is captured in one exposure and the captured image reaches a preset clarity.
4. The method according to claim 3, characterized in that, The actual distance traveled is calculated using the following formula, including: ; Where e is the pixel size of the sensor of the capture device, n is the number of pixel trails, H is the installation height of the device, and L is the horizontal distance relative to the capture device. Let f be the angle between the target surface of the sensor of the capture device and the ground, f be the focal length of the capture device, and D be the actual movement distance.
5. The method according to claim 1, characterized in that, Based on the actual movement distance and speed, the target exposure time is calculated, including: Divide the actual movement distance and movement speed to obtain the target exposure time.
6. The method according to claim 1, characterized in that, Determine the moving target's speed and its horizontal distance relative to the capture device, including When a moving target reaches a preset capture point, the device collects the target's speed and horizontal distance relative to the capture device.
7. A shutter value adjustment device, characterized in that, include: The moving target motion information determination module is used to determine the moving target's speed and horizontal distance relative to the capture device; The actual motion distance determination module is used to determine the actual motion distance of the moving target on the ground when a single exposure is performed on the moving target and the captured image reaches a preset clarity, based on the principle of similar triangles, the horizontal distance relative to the capture device, and the preset capture parameters of the capture device; wherein, the capture parameters include the pixel size of the capture device sensor, the number of pixel trails, the device installation height, the focal length of the capture device, and the angle between the imaging target surface of the capture device sensor and the ground; The actual movement distance determination module specifically includes: The motion distance determination unit is used to determine the motion distance of the moving target on the imaging target surface when the moving target is captured in one exposure and the captured image reaches a preset clarity, based on the sensor pixel size and the number of pixel trails of the capture device. The actual motion distance determination unit is used to determine the actual motion distance of the moving target on the ground when the moving target is captured in one exposure and the captured image reaches a preset clarity, by using the motion distance of the moving target on the imaging target surface, the horizontal distance relative to the capture device, the device installation height, the focal length of the capture device, and the angle between the imaging target surface of the capture device sensor and the ground. The shutter speed adjustment module is used to calculate the target exposure time based on the actual movement distance and speed, and adjust the shutter speed according to the target exposure time to capture moving targets.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the shutter value 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 shutter value adjustment method as described in any one of claims 1-6.