Exposure method and device of variable focal length lens, electronic equipment and storage medium
Patent Information
- Application Number
- CN202410942479.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2026-10-09
- Estimated Expiration
- 2044-07-15
AI Technical Summary
[0004]本公开提供一种变倍镜头的曝光方法、装置、电子设备与存储介质,以解决镜头快速变倍期间,曝光控制参数的生效无法跟上镜头的变倍速度,导致画面曝光效果不能达到最佳的问题
[0018]The technical solution of this disclosure, during rapid zooming of the target lens, combines the reference time determined by the exposure algorithm's running time interval and effective time to accurately calculate the second magnification that the target lens can reach in the current zooming operation, starting from the first magnification and continuing to zoom for the reference time. This makes the magnification prediction corresponding to the effective exposure control parameters during rapid zooming more accurate, thereby determining the target exposure amount at the second magnification. This helps to prepare for exposure in advance, making exposure adjustment more forward-looking and accurate, while ensuring that appropriate exposure effects can be obtained at different magnifications, improving the stability and consistency of image quality. Finally, based on the target exposure amount, the exposure control parameter information that needs to be issued after the target lens is adjusted to the first magnification is determined. This effectively solves the problem that the exposure cannot keep up with the zooming speed during previous lens zooming processes, resulting in the image exposure effect not reaching the optimal level. It ensures the timeliness and accuracy of exposure when the lens magnification changes, thereby making the exposure effect during zooming smoother and more natural, achieving precise exposure control, and enabling timely and effective adjustment of exposure according to the dynamic changes in lens magnification.
Smart Images

Figure CN121357423B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to an exposure method, apparatus, electronic device and storage medium for a zoom lens. Background Technology
[0002] With the increasing prevalence of high-magnification lenses in the video surveillance industry, greater magnification brings a wider range of monitoring scenarios to surveillance equipment. However, this also brings a series of challenges. High-magnification lenses have significant differences in field of view between wide-angle and telephoto lenses. At the same time, the aperture of the lens scene is also quite different from the aperture at wide-angle, resulting in a huge difference in the amount of light entering the lens compared to telephoto lenses.
[0003] When zooming from wide-angle to telephoto, a series of problems can arise if exposure factors are not effectively controlled. These include image flickering, and the image potentially being either too bright or too dark after zooming, severely impacting monitoring effectiveness and the accuracy of information acquisition. Current solutions often lack effective solutions for these characteristics of high-magnification lenses, failing to adequately address the challenges posed by differences in light intake and struggling to achieve stable and accurate exposure control. This significantly limits the optimal application of high-magnification lenses in the surveillance field. Summary of the Invention
[0004] This disclosure provides an exposure method, apparatus, electronic device, and storage medium for a zoom lens to solve the problem that the exposure control parameters cannot keep up with the zoom speed of the lens during rapid zooming, resulting in the image exposure effect not reaching the optimal level.
[0005] In a first aspect, embodiments of this disclosure provide an exposure method for a zoom lens, the method comprising:
[0006] The target lens is determined to continuously zoom from the first magnification in the current zoom operation and to use the second magnification after a reference duration. The reference duration is determined based on the pre-associated exposure algorithm running time interval and the exposure control parameter taking effect time of the target lens.
[0007] After adjusting the target lens from the first magnification to the second magnification, determine the expected target exposure to be used at the second magnification.
[0008] Based on the expected target exposure amount to be used at the second magnification, the exposure control parameter information that the target lens needs to send after adjusting to the first magnification is determined for exposure control.
[0009] Secondly, embodiments of this disclosure also provide an exposure apparatus for a zoom lens, the apparatus comprising:
[0010] The first determining module is used to determine the second magnification that the target lens is expected to use after continuously zooming from the first magnification in the current zoom operation and after a reference duration. The reference duration is determined based on the exposure algorithm running time interval and the exposure control parameter taking effect time that are pre-associated with the target lens.
[0011] The second determining module is used to determine the target exposure that is expected to be used at the second magnification after the target lens is adjusted from the first magnification to the second magnification.
[0012] The exposure control module is used to determine the exposure control parameter information that the target lens needs to send after adjusting to the first magnification, based on the expected target exposure amount to be used at the second magnification, for exposure control.
[0013] Thirdly, this disclosure also provides an electronic device, which includes:
[0014] At least one processor; and
[0015] A memory that is communicatively connected to at least one processor; wherein,
[0016] The memory stores a computer program that can be executed by at least one processor, such that the at least one processor is able to perform the exposure method of the zoom lens according to any of the above embodiments.
[0017] Fourthly, this disclosure also provides a computer-readable medium storing computer instructions for causing a processor to execute and implement the exposure method of the zoom lens according to any of the above embodiments.
[0018] The technical solution of this disclosure, during rapid zooming of the target lens, combines the reference time determined by the exposure algorithm's running time interval and effective time to accurately calculate the second magnification that the target lens can reach in the current zooming operation, starting from the first magnification and continuing to zoom for the reference time. This makes the magnification prediction corresponding to the effective exposure control parameters during rapid zooming more accurate, thereby determining the target exposure amount at the second magnification. This helps to prepare for exposure in advance, making exposure adjustment more forward-looking and accurate, while ensuring that appropriate exposure effects can be obtained at different magnifications, improving the stability and consistency of image quality. Finally, based on the target exposure amount, the exposure control parameter information that needs to be issued after the target lens is adjusted to the first magnification is determined. This effectively solves the problem that the exposure cannot keep up with the zooming speed during previous lens zooming processes, resulting in the image exposure effect not reaching the optimal level. It ensures the timeliness and accuracy of exposure when the lens magnification changes, thereby making the exposure effect during zooming smoother and more natural, achieving precise exposure control, and enabling timely and effective adjustment of exposure according to the dynamic changes in lens magnification.
[0019] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description
[0020] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.
[0021] Figure 1 This is a schematic flowchart of an exposure method for a zoom lens provided in an embodiment of this disclosure;
[0022] Figure 2 This is a schematic flowchart of an exposure method for a zoom lens provided in an embodiment of this disclosure;
[0023] Figure 3a This is a schematic diagram of an image captured by a lens at a first magnification according to an embodiment of this disclosure;
[0024] Figure 3b This is a schematic diagram of an image that a predictive lens is expected to capture at a second magnification, according to an embodiment of this disclosure.
[0025] Figure 3c This is a schematic diagram of another predictive lens expected to capture at a second magnification, provided in an embodiment of this disclosure;
[0026] Figure 4 This is a schematic diagram illustrating a method for performing brightness statistics on image information, provided in an embodiment of this disclosure.
[0027] Figure 5 This is a schematic diagram of the exposure device structure of a zoom lens provided in an embodiment of this disclosure;
[0028] Figure 6 This is a schematic diagram of the structure of an electronic device that implements an exposure method for a zoom lens, as provided in an embodiment of this disclosure. Detailed Implementation
[0029] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0030] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.
[0031] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.
[0032] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.
[0033] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0034] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0035] Figure 1This is a flowchart illustrating an exposure method for a zoom lens provided in an embodiment of this disclosure. This embodiment is applicable to situations where, during rapid zooming of the lens, the exposure control parameters cannot keep up with the zoom speed, potentially resulting in suboptimal image exposure. This method can be executed by the exposure device of the zoom lens, which can be implemented in software and / or hardware, or optionally, through an electronic device, such as a mobile terminal, a PC, or a server.
[0036] like Figure 1 As shown, the exposure method for the zoom lens provided in this embodiment may include the following process:
[0037] S110. Determine the second magnification that the target lens will continuously zoom from the first magnification in the current zoom operation and will be used after a reference duration. The reference duration is determined based on the pre-associated exposure algorithm running time interval and the effective time of the exposure control parameters.
[0038] S120. Determine the target exposure to be used at the second magnification after adjusting the target lens from the first magnification to the second magnification.
[0039] A target lens can be a lens whose focal length can be changed continuously or segmentally by adjusting its optical structure or other methods, thereby altering the image magnification. A target lens supports a smooth transition from wide-angle to telephoto or between different magnifications without changing the lens, thus enabling the capture of images with different field of view and different levels of magnification.
[0040] For zoom lenses, as you zoom from wide-angle to telephoto, the field of view gradually narrows, bringing distant objects closer and magnifying them to reveal more detail. This is extremely useful for shooting specific distant targets or capturing minute details. Conversely, when zooming from telephoto to wide-angle, the field of view expands rapidly, accommodating a wider scene and more elements, making it suitable for shooting grand scenes or panoramic views. This flexible zoom capability between telephoto and wide-angle allows for quick switching of perspectives to suit different shooting needs and scenarios, resulting in richer, more diverse, and creatively aligned image effects.
[0041] Because high-magnification lenses have significantly different field of view between wide-angle and telephoto lenses, and the aperture of the scene differs greatly from that at wide-angle, the resulting difference in light intake is substantial. When zooming from wide-angle to telephoto, if exposure factors are not properly controlled, image flickering or overly bright or dark images may occur upon zooming out. To address these exposure issues, the aperture size at different magnification levels can be limited. This addresses the aperture factor, which significantly affects light intake, and, in conjunction with other exposure factors, stabilizes the exposure within a reasonable range during zooming.
[0042] However, current zoom lenses, in order to meet the needs of capturing fleeting moments, pursue faster zoom speeds. When zooming from wide-angle to telephoto, the exposure parameters, such as the current image value, are sent down, but the actual magnification of the image is no longer the same as the magnification used to calculate the exposure. This causes the exposure to always lag behind the zoom speed, and the exposure effect during zooming cannot reach its optimal level. This is especially noticeable in wide-angle scenes where the scene is open and bright, while in telephoto scenes where the overall environment is darker, such as a park.
[0043] Therefore, this solution considers that when using exposure algorithms, the image brightness is usually calculated first, then the appropriate exposure control parameters are derived based on the brightness and the preset exposure line, and then these parameters are applied. By analyzing the time required for the exposure algorithm associated with the target lens to run and the time required for the exposure control parameters to take effect, a reference duration is obtained. During the current zoom operation of the target lens, the second magnification that the target lens can reach after the reference duration from the first magnification can be accurately calculated. This makes the magnification prediction corresponding to the exposure control parameters taking effect during rapid zooming of the lens more accurate, thereby determining the target exposure amount that the lens is expected to reach at the second magnification when the exposure control parameters take effect.
[0044] Optionally, the current zoom operation can be a zoom-in operation where the target lens is adjusted from the first magnification to the second magnification, or a zoom-out operation where the target lens is adjusted from the first magnification to the second magnification.
[0045] When the target lens is adjusted to second magnification, the expected target exposure is the total amount of light received by the photosensitive material (such as film or image sensor) associated with the target lens during image acquisition. The exposure corresponding to the target lens can be determined by at least one of the following factors: aperture size, shutter speed, and gain. A larger aperture allows more light to enter the lens per unit time, increasing the exposure; a slower shutter speed allows light to illuminate the photosensitive material for a longer period, also increasing exposure; the gain affects signal quality and noise levels during exposure.
[0046] Understandably, proper exposure ensures good brightness, contrast, and color reproduction in photographs. Underexposure results in a dark image, while overexposure makes it too bright or even washed out. Photographers typically adjust parameters such as aperture and shutter speed to control exposure based on the shooting scene and requirements, aiming for the desired effect.
[0047] As an optional but not limited implementation, determining the second magnification that the target lens will continuously zoom from the first magnification in the current zoom operation and is expected to use after a reference duration includes the following steps A1-A2:
[0048] Step A1: Determine the zoom speed of the target lens at the first magnification.
[0049] Step A2: Based on the first magnification, lens zoom speed, and reference duration, determine the second magnification that the target lens is expected to use after continuously zooming from the first magnification in the current zoom operation for the reference duration.
[0050] The target lens is pre-connected to a zoom motor for lens zooming, such as a stepper motor. It receives electrical pulse signals to control the rotation angle and number of steps, thus achieving lens zooming. During the current zoom operation, the zoom speed of the target lens at the first magnification is acquired. The zoom speed of the target lens typically refers to how quickly it changes focal length from one magnification to another, such as the time or frame rate required to change from one magnification to another.
[0051] Given that the initial magnification of the target lens is the first magnification, the zoom level that the target lens can achieve within a reference time can be calculated based on the lens's zoom speed. Adding this zoom level to the first magnification gives the expected second magnification that the target lens will reach after continuously zooming from the first magnification for the reference time in the current zoom operation. By predicting the second magnification that the target lens will use after a certain period in the current zoom operation, a reference can be provided for subsequent exposure adjustments and image processing to achieve better shooting results.
[0052] The zoom motor position refers to the specific physical location of the zoom motor when driving the lens to zoom, directly reflecting the motor's operating status and travel. Magnification, on the other hand, represents the degree of change in the target lens's focal length. As the zoom motor position changes, the target lens's focal length changes accordingly, resulting in a change in magnification. For example, when the zoom motor is in its initial position, the lens may correspond to an initial magnification; as the motor moves, the lens focal length gradually lengthens or shortens, and the magnification increases or decreases accordingly. The zoom motor position is the specific driving factor for achieving different magnifications; the two interact and jointly determine the lens's zoom effect and specific parameters.
[0053] Optionally, the exposure algorithm used for target lens association is a technique for controlling camera parameters such as exposure time, gain, and aperture. The minimum calculation interval for the exposure algorithm is once every one frame, but other designs are also possible. In this example, the interval between automatic exposure algorithm runs is denoted as T1. The effective time of the exposure control parameters (such as gain, exposure time, and aperture) is denoted as T2. Furthermore, based on the zoom motor speed FS(Rk) and the reference duration (T1+T2), the zoom motor position after the reference duration (T1+T2) can be obtained, and the magnification corresponding to this zoom motor position is the second magnification.
[0054] Understandably, in reality, the zoom speed of the target lens may not be constant, and the choice of reference duration will also affect the accuracy of the results. Furthermore, other factors such as the lens's optical performance and the shooting environment must be considered to influence the zoom effect.
[0055] As an optional but not limited implementation, the target exposure to be used at the second magnification after the target lens is adjusted from the first magnification to the second magnification is determined, including the following steps B1-B3:
[0056] Step B1: Determine the measured exposure of the target lens at the first magnification.
[0057] Step B2: Determine the reference exposure ratio parameter for the target lens in the current zoom operation. The reference exposure ratio parameter is determined based on the relative change between the target exposure expected to be used at the corresponding magnification when the target lens was completed in the previous zoom operation and the actual measured exposure.
[0058] Step B3: Based on the reference exposure ratio parameter and the corresponding measured exposure at the first magnification, determine the target exposure that the target lens is expected to use at the second magnification after adjusting from the first magnification to the second magnification.
[0059] When the target lens is adjusted to its first magnification, a measurement sensor (such as a photometer) can be used to measure the actual exposure of the target lens at that first magnification. Simultaneously, the reference exposure ratio parameter σ used by the target lens in the current zoom operation can be calculated. j Specifically, the reference exposure ratio parameter σ is determined based on the relative change between the expected target exposure at the corresponding magnification when the target lens was last zoomed in and the actual measured exposure. j This is calculated by comparing the target exposure and the actual measured exposure during the previous zoom operation, reflecting the trend of exposure change of the target lens at different magnifications. For example, the reference exposure ratio parameter σ... j This is the ratio of the expected target exposure at the corresponding magnification when the target lens was last zoomed in to the actual measured exposure, referring to the exposure ratio parameter σ. j It can be used to correct the predicted exposure for the current zoom operation, and to correct the difference between the actual exposure obtained after the exposure control parameters take effect and the theoretical calculation.
[0060] Optionally, when the time interval between the current zoom operation and the previous zoom operation is less than a reference time interval, the target exposure amount to be used at the second magnification after adjusting the lens from the first magnification can be determined directly based on the reference exposure ratio parameter and the measured exposure amount at the first magnification. Here, the reference time interval is less than a preset time interval value. For example, multiplying the measured exposure amount by the reference exposure ratio parameter can calculate the target exposure amount of the lens at the second magnification.
[0061] When the current zoom operation is zoom up and the previous zoom operation was zoom down, if the time interval between the zoom down and zoom up operations is less than a reference time interval, the exposure ratio during the zoom down operation can be directly used to obtain the target exposure at the corresponding magnification after zoom up. Therefore, if a zoom up operation is performed within a short period and the time interval between it and the previous zoom down operation is relatively small, the previously calculated exposure ratio can be used to predict the exposure of the target lens after zoom up. Conversely, if a zoom down operation is performed within a short period and the time interval between it and the previous zoom up operation is relatively small, the previously calculated exposure ratio can be used to predict the exposure of the target lens at the corresponding magnification after zoom down.
[0062] Understandably, when calculating exposure, other factors such as lens optical characteristics and ambient lighting conditions may also need to be considered. In practical applications, multiple trials and adjustments may be necessary to achieve the optimal exposure.
[0063] Optionally, based on the reference exposure ratio parameter, the measured exposure at the first magnification, and the ratio of the reference exposure target value, the expected target exposure to be used at the second magnification after the target lens is adjusted from the first magnification is determined. The reference exposure target value ratio is the ratio between the target lens's exposure target value at the second magnification and its exposure target value at the first magnification. The exposure target value can refer to the target value set during image acquisition using the target lens to obtain or achieve a preset exposure effect. The target lens has associated exposure target values at different magnifications. The specific exposure target values for different magnifications of the lens are designed as follows:
[0064]
[0065] i = 1, 2, ..., n, j = 1, 2, ..., m
[0066] Among them, R i Gain represents the magnification node of the lens. j This indicates the gain node of the device. Based on the current magnification and gain value, the target exposure value associated with the lens at a specific magnification can be obtained. The target exposure value associated with the lens at a specific magnification can be preset according to exposure requirements, such as decreasing the target exposure value as the magnification increases, or decreasing the target exposure value as the gain increases, etc.
[0067] S130. Based on the expected target exposure amount to be used at the second magnification, determine the exposure control parameter information that the target lens needs to send after adjusting to the first magnification, for exposure control.
[0068] After the target lens is adjusted to the first magnification in the current zoom operation, considering that the target lens will continue to zoom, and that the exposure algorithm takes time to be used and the exposure control parameters need to be issued to take effect, the exposure control parameters may not match the actual magnification reached by the target lens when they are issued to take effect. This causes the exposure to not keep up with the zoom speed during the zoom process, resulting in the image exposure effect not reaching the best.
[0069] Therefore, this solution predicts the second magnification that the target lens may reach when the exposure control parameters take effect by predicting the time required for the target lens to consider the exposure algorithm and the time for the exposure control parameters to take effect. Then, based on the expected target exposure amount to be used at the second magnification, the exposure control parameters adapted to the target lens at the second magnification are calculated. The exposure control parameters adapted to the target lens at the second magnification can then be used as the exposure control parameter information that needs to be issued to the target lens after it is adjusted to the first magnification to control the exposure of the target lens.
[0070] Optionally, exposure control parameters can be characterized from the following dimensions: aperture, shutter speed, gain, and fill light. Aperture size directly affects the amount of light entering the camera; a larger aperture (e.g., f / 2.8) increases the amount of light, resulting in enhanced exposure; a smaller aperture (e.g., f / 16) reduces the amount of light, resulting in lower exposure. The shutter speed determines the time it takes for light to enter the camera; a faster shutter speed (e.g., 1 / 1000 second) limits the amount of light entering the camera, leading to underexposure; a slower shutter speed (e.g., 1 second) allows more light to enter, potentially leading to overexposure. A higher ISO value (e.g., ISO 1600) makes the camera more sensitive to light, increasing exposure, but may also introduce more noise; a lower ISO value (e.g., ISO 100) is relatively less sensitive, resulting in lower exposure.
[0071] As an optional but not limited implementation, based on the expected target exposure at the second magnification, the exposure control parameters that the target lens needs to send after adjusting to the first magnification are determined, including the following steps C1-C3:
[0072] Step C1: Determine the candidate exposure line information associated with the second magnification from a number of pre-configured candidate exposure line information. The exposure line information is used to record the exposure control parameter information associated with different exposure amounts.
[0073] Step C2: Based on the expected target exposure at the second magnification, determine the exposure control parameters that the target lens should be adapted to at the second magnification from the candidate exposure line information associated with the second magnification.
[0074] Step C3: Based on the exposure control parameter information adapted to the target lens at the second magnification, determine the exposure control parameter information that the target lens needs to send after adjusting to the first magnification.
[0075] The pre-configured candidate exposure line information can be a table or curve containing exposure line data at different magnifications. By querying the pre-configured candidate exposure line information, the candidate exposure line information corresponding to the second magnification can be found. For example, from the pre-configured candidate exposure line information, the candidate exposure line information associated with the second magnification can be found. This exposure line information records the relationship between different exposure amounts and exposure control parameters.
[0076] Optionally, the target lens is associated with multiple candidate exposure line information ExpLine(R) at a single magnification. i At different magnifications, the design of exposure lines can be as follows: the aperture limitation at different magnifications is limited by the aperture control factor of the exposure line at a specific magnification. Different sets of exposure lines are as follows:
[0077] ExpLines(R i)={ExpLine(R0),ExpLine(R1),…ExpLine(R n )};i=1,2,…n.
[0078] The target exposure value to be used at the second magnification can be used to find the corresponding exposure control parameters in the associated candidate exposure line information. These exposure control parameters will be used to control the lens exposure to achieve the desired shooting effect. If there is no directly corresponding target exposure value in the associated candidate exposure line information, the exposure control parameters adapted to the target lens at the second magnification can be estimated by interpolating the exposure values of the nearest target exposure values among the associated candidate exposure line information.
[0079] Optionally, based on the exposure control parameters obtained by interpolation, the specific exposure control parameters to be used by the target lens at the second magnification can be determined, such as gain, shutter speed, and aperture. These exposure control parameters will be used to control the exposure of the lens. The determined exposure control parameter information can be directly sent as the exposure control parameter information that the target lens needs to send after adjusting to the first magnification, so that it takes effect when zooming to the second magnification.
[0080] Understandably, based on the lens magnification and target exposure, appropriate exposure control parameters are selected from candidate exposure line information and sent to the camera device to achieve precise control over lens exposure. This improves shooting quality and ensures proper exposure at different magnifications.
[0081] The technical solution of this disclosure, during rapid zooming of the target lens, combines the reference time determined by the exposure algorithm's running time interval and effective time to accurately calculate the second magnification that the target lens can reach in the current zooming operation, starting from the first magnification and continuing to zoom for the reference time. This makes the magnification prediction corresponding to the effective exposure control parameters during rapid zooming more accurate, thereby determining the target exposure amount at the second magnification. This helps to prepare for exposure in advance, making exposure adjustment more forward-looking and accurate, while ensuring that appropriate exposure effects can be obtained at different magnifications, improving the stability and consistency of image quality. Finally, based on the target exposure amount, the exposure control parameter information that needs to be issued after the target lens is adjusted to the first magnification is determined. This effectively solves the problem that the exposure cannot keep up with the zooming speed during previous lens zooming processes, resulting in the image exposure effect not reaching the optimal level. It ensures the timeliness and accuracy of exposure when the lens magnification changes, thereby making the exposure effect during zooming smoother and more natural, achieving precise exposure control, and enabling timely and effective adjustment of exposure according to the dynamic changes in lens magnification.
[0082] Figure 2 This is a flowchart illustrating another exposure method for a zoom lens provided by an embodiment of the present invention. The technical solution of this embodiment further optimizes the process of determining the expected target exposure amount to be used at the second magnification after the target lens is adjusted from the first magnification to the second magnification in the previous embodiment, based on the technical solution of the above embodiment. This embodiment can be combined with various optional solutions in one or more of the above embodiments.
[0083] like Figure 2 As shown, the exposure method for the zoom lens provided in this embodiment may include the following process:
[0084] S210. Determine the second magnification that the target lens will continuously zoom from the first magnification in the current zoom operation and will be used after a reference duration. The reference duration is determined based on the pre-associated exposure algorithm running time interval and the effective time of the exposure control parameters.
[0085] S220. Determine the measured exposure of the target lens at the first magnification.
[0086] When the target lens is adjusted to the first magnification, a measurement sensor (such as a photometer or image sensor for illuminance statistics) can be used to measure the actual exposure of the target lens at the first magnification.
[0087] S230. Determine the relative change in image brightness between the images acquired before and after the target lens is adjusted from the first magnification to the second magnification.
[0088] If the time interval between the current zoom operation and the previous zoom operation is greater than the reference time interval, it is necessary to determine the measured exposure of the target lens at the first magnification, and to determine the relative change in image brightness between the images captured before and after the target lens is adjusted from the first magnification to the second magnification. Then, based on the measured exposure and the relative change in image brightness at the first magnification, the target exposure to be used at the second magnification after the target lens is adjusted from the first magnification is determined. The reference time interval is less than a preset time interval value.
[0089] S240. Based on the relative change information of the measured exposure and image brightness at the first magnification, determine the target exposure that the target lens is expected to use at the second magnification after adjusting from the first magnification to the second magnification.
[0090] This involves determining the image brightness of the image captured by the target lens at a first magnification, and determining the image brightness of the image captured by the target lens when the magnification is adjusted from the first to a second magnification. For example, using the target lens to capture the brightness information of an image at the first magnification, the brightness information of the image captured when the target lens is adjusted from the first to the second magnification can be determined. Image brightness can be the average brightness of the image, the brightness of the central area, or the brightness of other specific areas.
[0091] By comparing the brightness information of images acquired at the first magnification level with that acquired at the second magnification level, the relative change in image brightness between the images acquired before and after adjusting the lens magnification from the first to the second magnification level is calculated. This relative change in image brightness can be a brightness difference, a brightness ratio, or other relative measure. The specific calculation of the relative change in image brightness depends on the image processing software or algorithm used. Some common methods include calculating the pixel value difference between the two images, statistically analyzing changes in the brightness histogram, or using specific brightness measurement indicators. By determining the relative change in image brightness, the impact of lens magnification adjustment on image brightness can be understood.
[0092] In photogrammetry, the image brightness changes relatively when the target lens is adjusted from a first magnification to a second magnification. By measuring the exposure at the first magnification and analyzing the relative change in image brightness, a relationship between exposure and image brightness can be established. Based on this relationship, after determining the measured exposure of the target lens at the first magnification, the expected exposure of the target lens at the second magnification can be predicted based on the measured exposure at the first magnification and the relative change in image brightness between the images acquired before and after adjusting from the first to the second magnification. This allows for the rapid determination of appropriate exposure parameters after magnification adjustment, resulting in a correctly exposed image.
[0093] It's important to note that this is only a basic implementation process. The actual process can be influenced by various factors, such as the lens's optical characteristics, the lighting conditions of the shooting environment, and the camera settings. In practical applications, more testing and calibration may be required to obtain a more accurate target exposure.
[0094] As an optional but not limited implementation, determining the relative change in image brightness between images acquired before and after the target lens is adjusted from the first magnification to the second magnification includes the following steps D1-D4:
[0095] Step D1: Determine the first image information captured by the target lens at the first magnification.
[0096] Step D2: Determine the image scaling ratio information between the images captured before and after the target lens is adjusted from the first magnification to the second magnification.
[0097] Step D3: Based on the first image information and the image scaling ratio information, determine the second image information to be acquired at the second magnification.
[0098] Step D4: Based on the first image information and the second image information, determine the relative change in image brightness between the images acquired before and after the target lens is adjusted from the first magnification to the second magnification.
[0099] See Figure 3a It shows that R k Taking the first magnification as an example, this refers to the first image information captured by the target lens at the first magnification. Simultaneously, the image scaling ratio information between the images captured before and after adjusting the target lens from the first magnification to the second magnification can be determined. Based on the first image information captured by the target lens at the first magnification, combined with the first image information captured by the target lens at the first magnification, the second image information that the target lens can capture when adjusting from the first magnification to the second magnification can be predicted. See [link to documentation]. Figure 3b and Figure 3c The following are examples of R... l Taking the second magnification as an example, when the previous zoom operation is a zoom-in operation where the target lens is adjusted from the first magnification to the second magnification, or a zoom-out operation where the target lens is adjusted from the first magnification to the second magnification, the second image information acquired by the target lens at the second magnification is as follows.
[0100] In one alternative example, the image scaling ratio between the images captured before and after the target lens is adjusted from the first magnification to the second magnification can be determined based on the relative change in focal length when the target lens is adjusted from the first magnification to the second magnification; alternatively, the image scaling ratio between the images captured before and after the target lens is adjusted from the first magnification to the second magnification can be determined based on the relative change in the field of view when the target lens is adjusted from the first magnification to the second magnification. For example, the image scaling ratio between the images captured before and after the target lens is adjusted from the first magnification to the second magnification can be obtained using the field of view or calculated from the focal length.
[0101] or
[0102] Among them, Ratio (k,l) S represents the image scaling information between the images captured before and after the target lens is adjusted from the first magnification to the second magnification. k D represents the focal length of the target lens at the first magnification. l This indicates the focal length of the target lens at the second magnification, F. l F represents the field of view of the target lens at the first magnification. kThis indicates the field of view size of the target lens at the second magnification.
[0103] Optionally, the field of view of the target lens is the maximum field of view that the target lens can see, and the field of view is measured in degrees, denoted as:
[0104] FOV(R i )={(D0,H0,V0),(D1,H1,V1),…(D n H n V n )};i=1,2,…n
[0105] Among them, D i H represents the diagonal field of view. i V represents the horizontal field of view. i This indicates the vertical field of view. The recorded magnification key points can follow a strategy of sparse points for wide-angle lenses and dense points for telephoto lenses; in this example, the same key magnification points are used as the exposure target value. This can be determined based on the zoom motor position of the target lens at the first magnification, and the preset field of view (FOV) information table. i Interpolation yields the field of view information of the target lens at the first magnification, denoted as: FOV(R). k )=(D k D k V k ); and, based on the position of the lens zoom motor at the second magnification of the target lens, and the preset field of view (FOV) information table, it can be determined. o Interpolation yields the field of view information of the target lens at the second magnification, denoted as: FOV(R) l )=(D l H l V l ).
[0106] Furthermore, for the first image information captured by the target lens at the first magnification and the second image information expected to be captured at the second magnification, the image brightness of the first image information and the image brightness of the second image information can be calculated. By comparing the image brightness of the first image information captured at the first magnification and the image brightness of the second image information expected to be captured at the second magnification, the relative change in image brightness between the images captured before and after the target lens is adjusted from the first magnification to the second magnification can be calculated. The relative change in image brightness can be a brightness difference or a brightness ratio between the images.
[0107] By adopting the above scheme, it is possible to obtain image information of the target lens at a specific magnification, clarify the scaling ratio of the image between different magnifications, and then infer the image situation at the new magnification. Furthermore, by comparing the image information before and after, the relative change in image brightness can be determined, which helps to accurately grasp and analyze the image-related features during the lens magnification adjustment process.
[0108] In some implementations, the center of the field of view (lens optical axis) may change when the lens zooms. In this case, the center point offset can be included when calculating the field of view information.
[0109] As an optional but not limited implementation, determining the relative change in image brightness between images acquired before and after the target lens is adjusted from a first magnification to a second magnification, based on the first image information and the second image information, includes the following steps:
[0110] See Figure 4 For the first and second image information, the image information is divided into M*N image blocks. A brightness value is obtained within each image block, resulting in brightness statistics for the M*N image blocks. Then, the brightness statistics of the M*N image blocks are convolved with the weights of each image block to calculate the final brightness statistics of the image information. The weights of each image block are selected based on the requirements of the brightness calculation algorithm, such as the central weight or the average weight.
[0111] For example, the first image information is divided into M*N image blocks, and a brightness value is obtained within each image block, ultimately yielding brightness statistics for the M*N image blocks corresponding to the first image information. Then, by convolving the brightness statistics of the M*N image blocks corresponding to the first image information with the weights of each image block, the final brightness statistics value of the first image information is obtained, which is AELuma(R). k Similarly, using R k Predicting R at the ratio l The second image information at the magnification is used to obtain the brightness statistics of the M*N image blocks corresponding to the second image information. These statistics are then convolved with the weights of each image block to obtain the predicted statistical value, i.e., R. k Predicting R at the ratio l The brightness statistics of the second image at magnification AELuma(R) l )′.
[0112] As an optional but not limited implementation, based on the relative change information between the measured exposure and image brightness at the first magnification, the target exposure to be used at the second magnification after the target lens is adjusted from the first magnification is determined, including the following steps E1-E2:
[0113] Step E1: Determine the reference exposure ratio parameter for the target lens in the current zoom operation. The reference exposure ratio parameter is determined based on the relative change between the target exposure expected to be used at the corresponding magnification when the target lens was completed in the previous zoom operation and the actual measured exposure.
[0114] Step E2: Based on the measured exposure at the first magnification, the relative change in image brightness, and the reference exposure ratio parameter, determine the target exposure that the target lens is expected to use at the second magnification after adjusting from the first magnification to the second magnification.
[0115] Calculate the reference exposure ratio parameter σ used by the target lens in the current zoom operation. j Specifically, the reference exposure ratio parameter σ is determined based on the relative change between the expected target exposure at the corresponding magnification when the target lens was last zoomed in and the actual measured exposure. j This is calculated by comparing the target exposure and the actual measured exposure during the previous zoom operation, reflecting the changing trend of the target lens's exposure at different magnifications. Furthermore, by combining the measured exposure at the first magnification, the relative change in image brightness, and the reference exposure ratio parameter, the expected target exposure to be used at the second magnification after adjusting the target lens from the first to the second magnification can be determined.
[0116] Optionally, with R k The multiplier is the first multiplier, and R... l Taking the second magnification as an example, after adjusting the target lens from the first magnification to the second magnification, the expected target exposure at the second magnification is:
[0117]
[0118] Wherein, Exp(R) l )′ represents the expected target exposure at the second magnification after the target lens is adjusted from the first magnification to the second magnification, Exp(R k AELuma(R) represents the actual measured exposure of the target lens at the first magnification. l )′ represents the image brightness information of the second image to be acquired at the second magnification after the target lens is adjusted from the first magnification to the second magnification. (R k σ represents the image brightness information of the first image captured by the target lens at the first magnification.j For reference exposure ratio parameter σ j This is the ratio of the predicted exposure for the target lens at the corresponding magnification after the last zoom operation to the actual measured exposure. It is used to correct the predicted exposure for the current zoom operation, primarily to correct the difference between the actual exposure obtained after the exposure parameters take effect and the theoretical calculation. It is usually 1. If not used, or if the first zoom operation is also 1.
[0119] As an optional but not limited implementation, the method of determining the second image information to be acquired at the second magnification based on the first image information and the image scaling ratio information includes the following steps:
[0120] When the target lens is zoomed from the first magnification to the second magnification, the second image information is extracted from the first image information so that the ratio between the target object size in the first image information and the target object size corresponding to the second image information matches the image magnification ratio indicated by the image scaling ratio information. The first image information contains the second image information.
[0121] See Figure 3a and Figure 3b The system reads the first image information and calculates the size and position of the image region to be cropped from it based on the image scaling ratio. For example, if the image is to be halved, the side length of the cropped region is half the side length of the original image. Then, an image processing algorithm or library can be used to extract the corresponding portion of the image from the first image information based on the calculated region position, resulting in the cropped second image information. The image size corresponding to the first image information is larger than the image size corresponding to the second image information, and the first image information contains the second image information.
[0122] As another optional but not limited implementation, based on the first image information and the image scaling ratio information, the second image information to be acquired at the second magnification is determined, including the following steps:
[0123] When the target lens is zoomed down from the first magnification to the second magnification, the first image information is expanded to obtain the second image information, so that the ratio between the target object size in the first image information and the target object size corresponding to the second image information matches the image reduction ratio indicated by the image scaling ratio information. The second image information contains the first image information.
[0124] See Figure 3a and Figure 3cThe system reads the first image information and expands it based on the image scaling ratio. For example, it can determine the change in the field of view based on the current and magnified field of view, and use expanded image information methods or interpolation of brightness statistics to obtain expanded second image information. During the image expansion process, an intelligent algorithm identifies details and textures in the first image information to generate the expanded second image information. The brightness statistics of the second image information can then be further obtained from the expanded second image information. For instance, based on scene edge information saved during zooming, combined with color and brightness information at the current magnification, an intelligent algorithm is used for image expansion.
[0125] As an optional but not limited implementation, the second image information is obtained by expanding the first image information, including the following steps F1-F2:
[0126] Step F1: Identify image detail features and image texture features in the first image information.
[0127] Step F2: Based on the image detail features and image texture features, the first image information is extended to obtain the second image information. The image detail features and image texture features are used to maintain the continuity of details and textures between the extended part of the second image information and the first image information.
[0128] By adopting the above scheme, key features in the image can be analyzed and extracted more meticulously, which helps to improve the understanding and grasp of the image content and achieves effective expansion of the first image information. During the expansion process, the use of image detail features and texture features ensures the continuity of the expanded part with the original image in terms of detail and texture, avoiding unnatural transitions and breaks, and making the expanded second image information more natural and realistic.
[0129] S250: Based on the expected target exposure at the second magnification, determine the exposure control parameters to be used by the target lens at the second magnification for exposure control.
[0130] The technical solution of this disclosure, during rapid zooming of the target lens, combines the reference time determined by the exposure algorithm's running time interval and effective time to accurately calculate the second magnification that the target lens can reach in the current zooming operation, starting from the first magnification and continuing to zoom for the reference time. This makes the magnification prediction corresponding to the effective exposure control parameters during rapid zooming more accurate, thereby determining the target exposure amount at the second magnification. This helps to prepare for exposure in advance, making exposure adjustment more forward-looking and accurate, while ensuring that appropriate exposure effects can be obtained at different magnifications, improving the stability and consistency of image quality. Finally, based on the target exposure amount, the exposure control parameter information that needs to be issued after the target lens is adjusted to the first magnification is determined. This effectively solves the problem that the exposure cannot keep up with the zooming speed during previous lens zooming processes, resulting in the image exposure effect not reaching the optimal level. It ensures the timeliness and accuracy of exposure when the lens magnification changes, thereby making the exposure effect during zooming smoother and more natural, achieving precise exposure control, and enabling timely and effective adjustment of exposure according to the dynamic changes in lens magnification.
[0131] Figure 5 This is a schematic diagram of the structure of an exposure device for a zoom lens provided in an embodiment of the present disclosure. The present disclosure is applicable to situations where the exposure control parameters cannot keep up with the zoom speed during rapid zooming of the lens, which may result in the exposure effect of the image not being optimal. The exposure device for the zoom lens can be implemented in the form of software and / or hardware, and optionally, it can be implemented by an electronic device, such as a mobile terminal, a PC, or a server.
[0132] like Figure 5 As shown, the exposure device for the zoom lens provided in this embodiment may include the following:
[0133] The first determining module 510 is used to determine the second magnification that the target lens is expected to use after continuously zooming from the first magnification in the current zoom operation and after a reference duration. The reference duration is determined based on the exposure algorithm running time interval and the exposure control parameter taking effect time that are pre-associated with the target lens.
[0134] The second determining module 520 is used to determine the target exposure that is expected to be used at the second magnification after the target lens is adjusted from the first magnification to the second magnification.
[0135] The exposure control module 530 is used to determine the exposure control parameter information that the target lens needs to send after adjusting to the first magnification, based on the expected target exposure amount to be used at the second magnification, for exposure control.
[0136] Based on the above embodiments, optionally, determining the second magnification that the target lens is expected to use after continuously zooming from the first magnification in the current zoom operation for a reference duration includes:
[0137] Determine the zoom speed of the target lens at the first magnification.
[0138] Based on the first magnification, the lens zoom speed, and the reference duration, determine the second magnification that the target lens is expected to use after continuing to zoom from the first magnification in the current zoom operation and after the reference duration.
[0139] Based on the above embodiments, optionally, determining the target exposure amount to be used at the second magnification after the target lens is adjusted from the first magnification to the second magnification includes:
[0140] Determine the measured exposure of the target lens at the first magnification.
[0141] Determine the relative change in image brightness between images captured before and after the target lens is adjusted from the first magnification to the second magnification;
[0142] Based on the relative change information of the measured exposure at the first magnification and the image brightness, the target exposure to be used at the second magnification after the target lens is adjusted from the first magnification to the second magnification is determined.
[0143] Based on the above embodiments, optionally, determining the relative change in image brightness between images acquired before and after the target lens is adjusted from the first magnification to the second magnification includes:
[0144] Determine the first image information captured by the target lens at the first magnification;
[0145] Determine the image scaling ratio information between the images captured before and after the target lens is adjusted from the first magnification to the second magnification;
[0146] Based on the first image information and the image scaling ratio information, determine the second image information to be acquired at the second magnification.
[0147] Based on the first image information and the second image information, determine the relative change in image brightness between the images captured before and after the target lens is adjusted from the first magnification to the second magnification.
[0148] Based on the above embodiments, optionally, the target exposure to be used at the second magnification after the target lens is adjusted from the first magnification to the second magnification is determined according to the relative change information of the measured exposure at the first magnification and the image brightness, including:
[0149] The reference exposure ratio parameter for the target lens in the current zoom operation is determined. The reference exposure ratio parameter is determined based on the relative change between the target exposure that the target lens is expected to use at the corresponding magnification when the previous zoom operation was completed and the actual measured exposure.
[0150] Based on the measured exposure at the first magnification, the relative change in image brightness, and the reference exposure ratio parameter, the target exposure that the target lens is expected to use at the second magnification after adjusting from the first magnification to the second magnification is determined.
[0151] Based on the above embodiments, optionally, based on the first image information and the image scaling information, determining the second image information to be acquired at the second magnification includes:
[0152] When the target lens is zoomed from the first magnification to the second magnification, the second image information is extracted from the first image information so that the ratio between the target object size in the first image information and the target object size corresponding to the second image information matches the image magnification ratio indicated by the image scaling ratio information. The first image information includes the second image information.
[0153] When the target lens is zoomed down from the first magnification to the second magnification, the first image information is expanded to obtain the second image information, so that the ratio between the target object size in the first image information and the target object size corresponding to the second image information matches the image reduction ratio indicated by the image scaling ratio information, and the second image information includes the first image information.
[0154] Based on the above embodiments, optionally, the first image information is expanded to obtain the second image information. This includes:
[0155] Identify image detail features and image texture features in the first image information;
[0156] Based on the image detail features and image texture features, the first image information is extended to obtain the second image information. The image detail features and image texture features are used to maintain the continuity of details and textures between the extended part of the second image information and the first image information.
[0157] Based on the above embodiments, optionally, determining the target exposure amount to be used at the second magnification after the target lens is adjusted from the first magnification to the second magnification includes:
[0158] Determine the measured exposure of the target lens at the first magnification.
[0159] The reference exposure ratio parameter for the target lens in the current zoom operation is determined. The reference exposure ratio parameter is determined based on the relative change between the target exposure that the target lens is expected to use at the corresponding magnification when the previous zoom operation was completed and the actual measured exposure.
[0160] Based on the reference exposure ratio parameter and the measured exposure corresponding to the first magnification, determine the target exposure that the target lens is expected to use at the second magnification after adjusting from the first magnification to the second magnification.
[0161] Based on the above embodiments, optionally, according to the expected target exposure amount to be used at the second magnification, the exposure control parameter information that the target lens needs to send after adjusting to the first magnification is determined, including:
[0162] From a plurality of pre-configured candidate exposure line information, candidate exposure line information associated with the second magnification is determined, wherein the exposure line information is used to record exposure control parameter information associated with different exposure amounts;
[0163] Based on the target exposure amount expected to be used at the second magnification, the exposure control parameter information adapted to the target lens at the second magnification is determined from the candidate exposure line information associated with the second magnification.
[0164] Based on the exposure control parameter information adapted to the target lens at the second magnification, the exposure control parameter information that the target lens needs to send after adjusting to the first magnification is determined.
[0165] The technical solution of this disclosure, during rapid zooming of the target lens, combines the reference time determined by the exposure algorithm's running time interval and effective time to accurately calculate the second magnification that the target lens can reach in the current zooming operation, starting from the first magnification and continuing to zoom for the reference time. This makes the magnification prediction corresponding to the effective exposure control parameters during rapid zooming more accurate, thereby determining the target exposure amount at the second magnification. This helps to prepare for exposure in advance, making exposure adjustment more forward-looking and accurate, while ensuring that appropriate exposure effects can be obtained at different magnifications, improving the stability and consistency of image quality. Finally, based on the target exposure amount, the exposure control parameter information that needs to be issued after the target lens is adjusted to the first magnification is determined. This effectively solves the problem that the exposure cannot keep up with the zooming speed during previous lens zooming processes, resulting in the image exposure effect not reaching the optimal level. It ensures the timeliness and accuracy of exposure when the lens magnification changes, thereby making the exposure effect during zooming smoother and more natural, achieving precise exposure control, and enabling timely and effective adjustment of exposure according to the dynamic changes in lens magnification.
[0166] The exposure apparatus for the zoom lens provided in this disclosure can execute the exposure method for the zoom lens provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects for executing the exposure method for the zoom lens.
[0167] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the protection scope of the embodiments of this disclosure.
[0168] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Reference is made below. Figure 6 It illustrates an electronic device suitable for implementing embodiments of the present disclosure (e.g., Figure 6 The diagram below shows the structure of the terminal device or server 600. The terminal device in this embodiment may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), and vehicle terminals (e.g., vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 6 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0169] like Figure 6 As shown, electronic device 600 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 602 or a program loaded from storage device 608 into random access memory (RAM) 603. The RAM 603 also stores various programs and data required for the operation of electronic device 600. The processing unit 601, ROM 602, and RAM 603 are interconnected via bus 604. An edit / output (I / O) interface 605 is also connected to bus 604.
[0170] Typically, the following devices can be connected to I / O interface 605: input devices 606 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 607 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 608 including, for example, magnetic tapes, hard disks, etc.; and communication devices 609. Communication device 609 allows electronic device 600 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 6An electronic device 600 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0171] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 609, or installed from a storage device 608, or installed from a ROM 602. When the computer program is executed by the processing device 601, it performs the functions defined in the methods of embodiments of this disclosure.
[0172] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0173] The electronic device provided in this embodiment and the exposure method of the zoom lens provided in the above embodiment belong to the same inventive concept. Technical details not described in detail in this embodiment can be found in the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.
[0174] This disclosure provides a computer storage medium storing a computer program that, when executed by a processor, implements the exposure method for a zoom lens provided in the above embodiments.
[0175] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0176] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.
[0177] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.
[0178] The aforementioned computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to: determine a second magnification that the target lens is expected to use after continuously zooming from a first magnification in the current zoom operation for a reference duration, wherein the reference duration is determined based on the exposure algorithm running time interval and the exposure control parameter effective time pre-associated with the target lens; determine the target exposure amount that the target lens is expected to use at the second magnification after adjusting from the first magnification to the second magnification; and determine the exposure control parameter information adopted by the target lens at the second magnification based on the expected target exposure amount, for exposure control purposes.
[0179] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including but not limited to object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0180] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0181] The units described in the embodiments of this disclosure can be implemented in software or in hardware. The name of a unit does not necessarily limit the unit itself; for example, the first acquisition unit can also be described as "a unit that acquires at least two Internet Protocol addresses".
[0182] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.
[0183] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0184] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.
[0185] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.
[0186] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.
Claims
1. An exposure method for a zoom lens, characterized in that, The method includes: Determining the second magnification that the target lens is expected to use after continuously zooming from the first magnification in the current zoom operation for a reference duration, wherein the reference duration is determined based on the pre-associated exposure algorithm running time interval and the exposure control parameter effective time; wherein, determining the second magnification that the target lens is expected to use after continuously zooming from the first magnification in the current zoom operation for a reference duration includes: determining the lens zoom speed corresponding to the first magnification; and determining the second magnification that the target lens is expected to use after continuing to zoom from the first magnification in the current zoom operation for a reference duration based on the first magnification, the lens zoom speed, and the reference duration; After adjusting the target lens from the first magnification to the second magnification, determine the expected target exposure to be used at the second magnification. Based on the expected target exposure amount to be used at the second magnification, the exposure control parameter information that the target lens needs to send after adjusting to the first magnification is determined for exposure control.
2. The method according to claim 1, characterized in that, After determining the target lens's magnification from the first to the second, the expected target exposure at the second magnification is determined, including: Determine the measured exposure of the target lens at the first magnification. Determine the relative change in image brightness between images captured before and after the target lens is adjusted from the first magnification to the second magnification; Based on the relative change information of the measured exposure at the first magnification and the image brightness, the target exposure to be used at the second magnification after the target lens is adjusted from the first magnification to the second magnification is determined.
3. The method according to claim 2, characterized in that, Determine the relative change in image brightness between images acquired before and after the target lens is adjusted from the first magnification to the second magnification, including: Determine the first image information captured by the target lens at the first magnification; Determine the image scaling ratio information between the images captured before and after the target lens is adjusted from the first magnification to the second magnification; Based on the first image information and the image scaling ratio information, determine the second image information to be acquired at the second magnification. Based on the first image information and the second image information, determine the relative change in image brightness between the images captured before and after the target lens is adjusted from the first magnification to the second magnification.
4. The method according to claim 2, characterized in that, Based on the relative change information between the measured exposure at the first magnification and the image brightness, the target exposure to be used at the second magnification after the target lens is adjusted from the first magnification to the second magnification is determined, including: The reference exposure ratio parameter for the target lens in the current zoom operation is determined. The reference exposure ratio parameter is determined based on the relative change between the target exposure that the target lens is expected to use at the corresponding magnification when the previous zoom operation was completed and the actual measured exposure. Based on the measured exposure at the first magnification, the relative change in image brightness, and the reference exposure ratio parameter, the target exposure that the target lens is expected to use at the second magnification after adjusting from the first magnification to the second magnification is determined.
5. The method according to claim 3, characterized in that, Based on the first image information and the image scaling ratio information, determine the second image information to be acquired at the second magnification, including: When the target lens is zoomed from the first magnification to the second magnification, the second image information is extracted from the first image information so that the ratio between the target object size in the first image information and the target object size corresponding to the second image information matches the image magnification ratio indicated by the image scaling ratio information. The first image information includes the second image information. When the target lens is zoomed down from the first magnification to the second magnification, the first image information is expanded to obtain the second image information, so that the ratio between the target object size in the first image information and the target object size corresponding to the second image information matches the image reduction ratio indicated by the image scaling ratio information, and the second image information includes the first image information.
6. The method according to claim 5, characterized in that, The first image information is expanded to obtain the second image information, including: Identify image detail features and image texture features in the first image information; Based on the image detail features and image texture features, the first image information is extended to obtain the second image information. The image detail features and image texture features are used to maintain the continuity of details and textures between the extended part of the second image information and the first image information.
7. The method according to claim 1, characterized in that, After determining the target lens's magnification from the first to the second, the expected target exposure at the second magnification is determined, including: Determine the measured exposure of the target lens at the first magnification. The reference exposure ratio parameter for the target lens in the current zoom operation is determined. The reference exposure ratio parameter is determined based on the relative change between the target exposure that the target lens is expected to use at the corresponding magnification when the previous zoom operation was completed and the actual measured exposure. Based on the reference exposure ratio parameter and the measured exposure corresponding to the first magnification, determine the target exposure that the target lens is expected to use at the second magnification after adjusting from the first magnification to the second magnification.
8. The method according to claim 1, characterized in that, Based on the expected target exposure at the second magnification, determine the exposure control parameters that the target lens needs to send after adjusting to the first magnification, including: From a plurality of pre-configured candidate exposure line information, candidate exposure line information associated with the second magnification is determined, wherein the exposure line information is used to record exposure control parameter information associated with different exposure amounts; Based on the target exposure amount expected to be used at the second magnification, the exposure control parameter information adapted to the target lens at the second magnification is determined from the candidate exposure line information associated with the second magnification. Based on the exposure control parameter information adapted to the target lens at the second magnification, the exposure control parameter information that the target lens needs to send after adjusting to the first magnification is determined.
9. An exposure device for a zoom lens, characterized in that, The device includes: The first determining module is used to determine the second magnification that the target lens is expected to use after continuously zooming from the first magnification in the current zoom operation for a reference duration. The reference duration is determined based on the exposure algorithm running time interval and the exposure control parameter effective time pre-associated with the target lens. Determining the second magnification that the target lens is expected to use after continuously zooming from the first magnification in the current zoom operation for a reference duration includes: determining the lens zoom speed corresponding to the first magnification; and determining the second magnification that the target lens is expected to use after continuing to zoom from the first magnification in the current zoom operation for a reference duration based on the first magnification, the lens zoom speed, and the reference duration. The second determining module is used to determine the target exposure that is expected to be used at the second magnification after the target lens is adjusted from the first magnification to the second magnification. The exposure control module is used to determine the exposure control parameter information that the target lens needs to send after adjusting to the first magnification, based on the expected target exposure amount to be used at the second magnification, for exposure control.
10. An electronic device, characterized in that, The electronic device includes: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the exposure method of the zoom lens according to any one of claims 1-8.
11. A storage medium containing computer-executable instructions, characterized in that, The computer-executable instructions, when executed by a computer processor, are used to perform the exposure method of the zoom lens according to any one of claims 1-8.
Citation Information
Patent Citations
Shutter control device
CN102866559A
Method of exposure control and image pickup apparatus
US20090015707A1