Image acquisition method, device, electronic device and computer readable storage medium

By determining the aperture diameter control curve during the target movement, the problem of poor imaging quality when the target moves is solved, and a clearer image acquisition effect is achieved.

CN118714465BActive Publication Date: 2025-09-26ZHEJIANG DAHUA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410643201.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-22
Publication Date
2025-09-26
Estimated Expiration
2044-05-22

AI Technical Summary

Technical Problem

When the target moves and the ambient brightness changes, conventional image acquisition methods result in poor imaging quality and unclear target outlines.

Method used

By obtaining the brightness of the target at different positions in the observation area, the aperture diameter control curve is determined, and the aperture diameter control curve of the lens is used to capture the target image, match the light intensity of the target at different positions, and improve the imaging quality.

Benefits of technology

The probability of clear contours in the target image is increased, and the imaging quality of the image is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118714465B_ABST
    Figure CN118714465B_ABST
Patent Text Reader

Abstract

The present application discloses an image acquisition method, device, electronic device, and computer-readable storage medium. The method includes: obtaining a first brightness of a target at a first endpoint, a second brightness at a second endpoint, and a sampled brightness between the first endpoint and the second endpoint using a reference aperture diameter of a lens; wherein the first endpoint corresponds to the position of a light ray of a first light intensity of the target when it moves away from the lens, and the second endpoint corresponds to the position of a light ray of a second light intensity of the target when it enters the lens, and the first light intensity is less than the second light intensity; based on the reference aperture diameter, the first brightness, the second brightness, and the sampled brightness, determining an aperture diameter control curve corresponding to the lens when the target moves in the observation area; and using the aperture diameter control curve of the lens to acquire an image of the target located in the observation area. By means of the above, the present application can improve the imaging quality of an image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image acquisition technology, and in particular to an image acquisition method, device, electronic device, and computer-readable storage medium. Background Art

[0002] With the increasing prevalence of image acquisition devices, capturing clear images of objects has become increasingly important. However, in real-world applications, when objects are moving and the ambient brightness fluctuates rapidly, conventional image acquisition methods using fixed-position lenses and image sensors can produce unclear object outlines and poor image quality. Consequently, improving image quality has become a pressing issue. Summary of the Invention

[0003] The main technical problem solved by this application is to provide an image acquisition method, device, electronic device and computer-readable storage medium, which can improve the imaging quality of images.

[0004] To solve the above technical problems, the first aspect of the present application provides an image acquisition method, which includes: obtaining a first brightness of a target at a first endpoint, a second brightness at a second endpoint, and a sampling brightness between the first endpoint and the second endpoint in an observation area using a reference aperture diameter of a lens; wherein the first endpoint corresponds to the position when a light of a first light intensity of the target moves away from the lens, and the second endpoint corresponds to the position when a light of a second light intensity of the target enters the lens, and the first light intensity is less than the second light intensity; based on the reference aperture diameter, the first brightness, the second brightness and the sampling brightness, determining an aperture diameter control curve corresponding to the lens when the target moves in the observation area; and using the aperture diameter control curve of the lens to acquire a target image of the target located in the observation area.

[0005] To solve the above technical problems, the second aspect of the present application provides an electronic device, which includes: a memory and a processor coupled to each other, wherein the memory stores program data, and the processor calls the program data to execute the method described in the first aspect above.

[0006] In order to solve the above technical problems, the third aspect of the present application provides a computer-readable storage medium on which program data is stored. When the program data is executed by a processor, the method described in the first aspect is implemented.

[0007] In order to solve the above technical problems, the fourth aspect of the present application provides an image acquisition device, which includes: a lens with an aperture, an aperture controller and an image sensor, and the electronic device described in the second aspect above, wherein the aperture controller is coupled to the aperture of the lens, and the electronic device is coupled to the aperture controller and the image sensor.

[0008] The above scheme obtains a first brightness of a target at a first endpoint, a second brightness at a second endpoint, and sampled brightness at sampling points between the first endpoint and the second endpoint, all captured using the same reference aperture diameter of the lens. The first endpoint is calibrated based on the position of light with a first light intensity emitted by the target when it leaves the lens, and the second endpoint is calibrated based on the position of light with a second light intensity emitted by the target when it enters the lens. Furthermore, the first light intensity is less than the second light intensity. Therefore, when the target moves within the observation area, the light with a higher intensity emitted by the target has a greater impact on the exposure. The reference aperture diameter, the first brightness, the second brightness, and the sampled brightness are used to generate an aperture diameter control curve for controlling the aperture diameter of the lens when the target moves within the observation area. This allows the aperture diameter in the aperture diameter control curve to match the light intensity of the target at different locations when the target moves within the observation area and emits light with a higher intensity. The aperture diameter is controlled using the aperture diameter control curve of the lens to capture images of the target as it moves within the observation area, thereby increasing the probability of obtaining a clear outline in the target image and improving image quality. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without inventive efforts. Among them:

[0010] Figure 1 This is a flow chart of an embodiment of the image acquisition method of the present application;

[0011] Figure 2 This is a schematic diagram of an embodiment corresponding to the case where the target to be captured by the image capture method of the present application emits light;

[0012] Figure 3 This is a schematic diagram of an application scenario of an embodiment of the image acquisition method of the present application;

[0013] Figure 4 This is a flow chart of another embodiment of the image acquisition method of the present application;

[0014] Figure 5This is a schematic structural diagram of an embodiment of the electronic device of the present application;

[0015] Figure 6 This is a schematic structural diagram of an embodiment of a computer-readable storage medium of the present application;

[0016] Figure 7 It is a structural diagram of an embodiment of the image acquisition device of the present application. DETAILED DESCRIPTION

[0017] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of them, and different implementation methods can be adaptively combined. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0018] The terms "system" and "network" are often used interchangeably in this document. The term "and / or" is simply a description of an association between related objects, indicating that three possible relationships exist. For example, "A and / or B" can mean: A exists alone, A and B exist simultaneously, or B exists alone. Furthermore, the character " / " generally indicates that the related objects are in an "or" relationship. Furthermore, "multiple" in this document means two or more than two.

[0019] The image acquisition method provided in this application is applied to an image acquisition device, and its corresponding execution subject is a processing unit in the image acquisition device.

[0020] See also Figure 1 , Figure 1 1 is a flow chart of an embodiment of an image acquisition method of the present application, the method comprising:

[0021] S101: Obtain a first brightness of a target at a first endpoint, a second brightness at a second endpoint, and a sampled brightness between the first endpoint and the second endpoint in an observation area using a reference aperture diameter of a lens; wherein the first endpoint corresponds to a position when a light ray of a first light intensity of the target moves away from the lens, the second endpoint corresponds to a position when a light ray of a second light intensity of the target enters the lens, and the first light intensity is less than the second light intensity.

[0022] Specifically, a first brightness of a target at a first endpoint, a second brightness at a second endpoint, and a sampled brightness at a sampling point between the first endpoint and the second endpoint in the observation area, collected using the same reference aperture diameter of the lens, are acquired.

[0023] It should be noted that the first endpoint is calibrated based on the position when the light with a first light intensity emitted by the target moves away from the lens, and the second endpoint is calibrated based on the position when the light with a second light intensity emitted by the target enters the lens, and the first light intensity is less than the second light intensity. Therefore, when the target moves in the observation area, it is the area where the light with a higher light intensity emitted by the target has a greater impact on the exposure.

[0024] Further, see Figure 2 and Figure 3 , Figure 2 : is a schematic diagram of an embodiment corresponding to the light emitted by the target to be captured by the image capture method of the present application, Figure 3 This is a schematic diagram of an application scenario of an embodiment of the image acquisition method of the present application. The light intensity of the light emitted by the target gradually decreases as the angle of the light increases. Figure 2 As shown in , the light of the first light intensity is the dotted line farthest from the center line, and the light of the second light intensity is the dotted line close to the center line. When the installation position of the image acquisition device is fixed, the image acquisition device corresponds to the following Figure 3 The shooting area is covered by the solid line shown in . Figure 2 In the example shown, a target moves from a distance from the lens toward a location closer to the lens. The first and second endpoints are pre-calibrated within the capture area of ​​the image acquisition device, and the first and second endpoints, as well as the area between them, serve as the observation area. The first endpoint corresponds to the position of the target when the light of a first light intensity is moving away from the lens, and the second endpoint corresponds to the position of the target when the light of a second light intensity is entering the lens.

[0025] Optionally, the positions of the first endpoint and the second endpoint can be pre-calibrated after data extrapolation based on actual sampled data, or can be obtained after data simulation in simulation software based on the parameters of the light emitted by the target. This application does not impose any specific restrictions on the generation method of the first endpoint and the second endpoint.

[0026] In some implementation scenarios, the aperture is controlled by using the reference aperture diameter of the lens, and images of the target at the first endpoint, the second endpoint, and the sampling points between the first endpoint and the second endpoint in the observation area are collected. Based on the images collected at each point, the first brightness at the first endpoint, the second brightness at the second endpoint, and the sampling brightness between the first endpoint and the second endpoint are determined.

[0027] In some implementation scenarios, the image acquisition device is provided with a photosensitive element, and the aperture is controlled by using the reference aperture diameter of the lens to capture images of the target at the first endpoint, the second endpoint, and the sampling points between the first endpoint and the second endpoint in the observation area, and obtain the first brightness at the first endpoint, the second brightness at the second endpoint, and the sampling brightness between the first endpoint and the second endpoint fed back by the photosensitive element.

[0028] Optionally, the reference aperture diameter may be the maximum aperture diameter of the lens, or may be another value smaller than the maximum aperture diameter.

[0029] S102: Determine an aperture diameter control curve corresponding to the lens when the target moves in the observation area based on the reference aperture diameter, the first brightness, the second brightness, and the sampled brightness.

[0030] Specifically, the reference aperture diameter, the first brightness, the second brightness and the sampling brightness are used to generate an aperture diameter control curve corresponding to the lens for controlling the aperture diameter when the target moves in the observation area, so that when the target moves in the observation area and emits light with a larger intensity, the aperture diameter in the aperture diameter control curve can match the light intensity of the target at different positions.

[0031] In some implementation scenarios, based on the reference aperture diameter, the first brightness, and the second brightness, the aperture diameter that matches the second brightness is selected to obtain the corrected aperture diameter at the second endpoint. Based on the reference aperture diameter, the first brightness, and the sampling brightness, the aperture diameter that matches the sampling brightness is selected to obtain the corrected aperture diameter at the sampling point between the first endpoint and the second endpoint. The reference aperture diameter is used as the corrected aperture diameter at the first endpoint. Based on the corrected aperture diameters at all points, an aperture diameter control curve corresponding to the lens when the target moves in the observation area is generated.

[0032] In some implementation scenarios, the reference aperture diameter is adjusted based on the reference aperture diameter, the first brightness, and the image at the corresponding first endpoint to obtain the corrected aperture diameter at the first endpoint; the reference aperture diameter is adjusted based on the reference aperture diameter, the first brightness, and the second brightness to obtain the corrected aperture diameter at the second endpoint; the reference aperture diameter is adjusted based on the reference aperture diameter, the first brightness, and the sampling brightness to obtain the corrected aperture diameter at the sampling point between the first endpoint and the second endpoint; based on the corrected aperture diameters at all points, an aperture diameter control curve corresponding to the lens when the target moves in the observation area is generated.

[0033] Optionally, the aperture diameter control curve indicates the functional relationship between the aperture diameter of the lens and time, and the time change in the aperture diameter control curve is related to the movement speed of the target in the observation area. In other implementation scenarios, the aperture diameter control curve can also indicate the functional relationship between the aperture diameter of the lens and the position of the target in the observation area. This application does not impose any specific restrictions on this.

[0034] S103: Capturing a target image in the observation area by using the aperture diameter control curve of the lens.

[0035] Specifically, the aperture diameter is controlled by using the aperture diameter control curve of the lens, and the target image is collected when the target moves in the observation area, thereby increasing the probability of obtaining a clear outline in the target image and improving the imaging quality of the image.

[0036] In some implementation scenarios, the aperture diameter control curve changes with time. When the target is detected to move to the second endpoint, the aperture diameter of the lens is controlled according to the trend of the aperture diameter change with time, and the target image of at least part of the target in the observation area is collected.

[0037] In some implementation scenarios, the aperture diameter control curve changes with the position of the target. When the target is detected to move to the second endpoint, the current position of the target in the observation area is obtained, the aperture diameter matched by the lens is determined based on the current position and the aperture diameter control curve, and the target image of the target at the corresponding position is captured.

[0038] In a specific implementation scenario, the target is a moving vehicle, and the shooting area of ​​the image acquisition device corresponds to at least a portion of the lane. The observation area is pre-calibrated. When the vehicle is driving at night and the headlights are turned on, when the target is detected to move to the second endpoint, the aperture diameter of the lens is controlled according to the aperture diameter control curve, so that the image acquisition device is used to capture the target image of the target located in the observation area, thereby increasing the probability of having a clear vehicle outline in the target image.

[0039] The above scheme obtains a first brightness of a target at a first endpoint, a second brightness at a second endpoint, and sampled brightness at sampling points between the first endpoint and the second endpoint, all captured using the same reference aperture diameter of the lens. The first endpoint is calibrated based on the position of light with a first light intensity emitted by the target when it leaves the lens, and the second endpoint is calibrated based on the position of light with a second light intensity emitted by the target when it enters the lens. Furthermore, the first light intensity is less than the second light intensity. Therefore, when the target moves within the observation area, the light with a higher intensity emitted by the target has a greater impact on the exposure. The reference aperture diameter, the first brightness, the second brightness, and the sampled brightness are used to generate an aperture diameter control curve for controlling the aperture diameter of the lens when the target moves within the observation area. This allows the aperture diameter in the aperture diameter control curve to match the light intensity of the target at different locations when the target moves within the observation area and emits light with a higher intensity. The aperture diameter is controlled using the aperture diameter control curve of the lens to capture images of the target as it moves within the observation area, thereby increasing the probability of obtaining a clear outline in the target image and improving image quality.

[0040] See also Figure 4 , Figure 4 FIG. 1 is a flow chart of another embodiment of the image acquisition method of the present application, the method comprising:

[0041] S401: Obtain a first brightness of a target at a first endpoint, a second brightness at a second endpoint, and a sampled brightness between the first endpoint and the second endpoint in an observation area using a reference aperture diameter of the lens; wherein the first endpoint corresponds to a position when a light ray of a first light intensity of the target moves away from the lens, the second endpoint corresponds to a position when a light ray of a second light intensity of the target enters the lens, and the first light intensity is less than the second light intensity.

[0042] Specifically, a lens-matched image acquisition device corresponds to a shooting area, and an observation area is pre-calibrated within the shooting area. A first brightness of a target at a first endpoint, a second brightness at a second endpoint, and sampled brightness at sampling points between the first and second endpoints, captured using the same reference aperture diameter of the lens, are obtained.

[0043] In some implementation scenarios, the calibration process of the observation area includes: obtaining the installation position of the image acquisition device, and determining the shooting area matching the installation position; wherein the installation position includes the installation height of the image acquisition device relative to the plane where the target is located, and the installation angle between the image acquisition device and the direction perpendicular to the plane where the target is located; based on the installation position and the light intensity of the light emitted by the target, calibrate the first endpoint and the second endpoint in the shooting area to obtain the observation area.

[0044] For details, please refer again to Figure 3 , the plane where the target is located is Figure 3 The horizontal axis in the direction perpendicular to the target plane is Figure 3 The installation position of the image acquisition device includes the installation height of the image acquisition device relative to the plane where the target is located, and the installation angle formed by the angle between the image acquisition device and the longitudinal axis.

[0045] Furthermore, after determining the installation position of the image acquisition device, the second and first endpoints of the target's movement are calibrated based on the device's installation height and angle, as well as the intensity of the light emitted by the target. The first and second endpoints, as well as the area between them, serve as the observation area. When the target is at the first endpoint, the probability of overexposure caused by the light emitted by the target during imaging is reduced. When the target is at the second endpoint, the light emitted by the target has a greater impact on the imaging, thereby improving the match between the observation area and the actual scene.

[0046] Optionally, the light emitted by the target corresponds to a first edge light and a second edge light, the light intensity corresponding to the first edge light is a first proportion of the central light intensity, the light intensity corresponding to the second edge light is a second proportion of the central light intensity, and the first proportion is smaller than the second proportion.

[0047] For details, please refer again to Figure 2 , the light emitted by the target corresponds to the first edge light and the second edge light, where the first edge light corresponds to Figure 2 The dotted lines on both sides of the center line and farthest from the center line, the second edge light corresponds to Figure 2 The imaginary line between the center line and the first edge ray is shown. Therefore, the angle between the two first edge rays is greater than the angle between the two second edge rays. Light intensity represents the luminous flux per unit solid angle in a given direction of the light source. The intensity of light emitted by the light source decreases as the angle of the light deviates from the center line. The light intensity corresponding to the first edge ray is the product of the center light intensity and the first ratio, while the light intensity corresponding to the second edge ray is the product of the center light intensity and the second ratio. The first ratio is smaller than the second ratio. This results in the second edge ray having a greater impact on exposure, while the first edge ray having a smaller impact on exposure.

[0048] Furthermore, based on the installation position and the light intensity of the light emitted by the target, the first endpoint and the second endpoint are calibrated in the shooting area to obtain the observation area, including: based on the installation position and the angle corresponding to the first edge light, determining the position of the first edge light when it moves away from the lens to obtain the first endpoint; based on the installation position and the angle corresponding to the second edge light, determining the position of the second edge light when it enters the lens to obtain the second endpoint.

[0049] Specifically, based on the mounting height and angle, as well as the angle corresponding to the first marginal ray, the position of the first marginal ray as the target moves toward the image capture device is determined as it leaves the lens, thereby obtaining a first endpoint. Based on the mounting height and angle, as well as the angle corresponding to the second marginal ray, the position of the second marginal ray as the target moves toward the image capture device is determined as it enters the lens, thereby obtaining a second endpoint. Therefore, based on the mounting position, the first marginal ray, and the second marginal ray, an observation area within the entire capture area of ​​the image capture device where light emitted by the target affects exposure is determined, thereby enabling more precise control of the aperture diameter as the target moves within the observation area.

[0050] It should be noted that obtaining the first brightness of the target at the first endpoint, the second brightness at the second endpoint, and the sampled brightness between the first endpoint and the second endpoint in the observation area using the reference aperture diameter of the lens includes: obtaining a first reference image of the target at the first endpoint, a second reference image of the target at the second endpoint, and multiple sampled images of the target between the first endpoint and the second endpoint, which are collected using the reference aperture diameter of the lens; determining the first brightness based on the first reference image, determining the second brightness based on the second reference image, and determining the sampled brightness at multiple sampling points between the first endpoint and the second endpoint based on the multiple sampled images.

[0051] Specifically, the aperture diameter of the lens is fixed to the reference aperture diameter, so as to collect a first reference image in which the target is located at the first endpoint, a second reference image in which the target is located at the second endpoint, and multiple sampling images in which the target is located between the first endpoint and the second endpoint. The first reference image, the second reference image, and the sampling images are all exposed, so as to directly feedback the impact of the target's light on the exposure when the target is located at different points.

[0052] Furthermore, based on the maximum picture brightness in the first reference image, the first brightness at the first endpoint is determined, based on the maximum picture brightness in the second reference image, the second brightness at the second endpoint is determined, and based on the maximum picture brightness in each sampled image, the sampling brightness at each sampling point between the first endpoint and the second endpoint is determined, so that the impact of the light of the target at different points on the exposure is associated with the brightness at the corresponding points, thereby improving the accuracy of the brightness at each point.

[0053] S402: Determine an aperture diameter control curve corresponding to the lens when the target moves in the observation area based on the reference aperture diameter, the first brightness, the second brightness, and the sampled brightness.

[0054] Specifically, an aperture diameter control curve corresponding to the lens and used to control the aperture diameter when the target moves in the observation area is generated using the reference aperture diameter, the first brightness, the second brightness, and the sampled brightness.

[0055] In some implementation scenarios, an aperture diameter control curve corresponding to the lens when the target moves in the observation area is determined based on the reference aperture diameter, the first brightness, the second brightness, and the sampling brightness, including: determining the corrected aperture diameter when the target is located at the second endpoint based on the reference aperture diameter, the first brightness, and the second brightness; determining the corrected aperture diameter when the target is located at the sampling point between the first endpoint and the second endpoint based on the reference aperture diameter, the first brightness, and the sampling brightness; generating an aperture diameter control curve corresponding to the lens when the target moves from the second endpoint to the first endpoint based on the reference aperture diameter at the first endpoint and the corrected aperture diameters at all other points; wherein the aperture diameter control curve indicates the functional relationship between the aperture diameter of the lens and time.

[0056] Specifically, based on the reference aperture diameter and the ratio of the first brightness to the second brightness, the aperture diameter that matches the second endpoint is selected to obtain the corrected aperture diameter when the target is located at the second endpoint. Based on the reference aperture diameter and the ratio of the first brightness to the sampling brightness, the aperture diameter that matches the sampling point is selected to obtain the corrected aperture diameter when the target is located at the sampling point between the first endpoint and the second endpoint.

[0057] Furthermore, the reference aperture diameter is used as the aperture diameter at the first endpoint. Using the reference aperture diameter at the first endpoint and the corrected aperture diameters at all other points, an aperture diameter control curve is generated, showing how the aperture diameter changes over time as the target moves from the second endpoint to the first endpoint. The aperture diameter control curve indicates the functional relationship between the lens's aperture diameter and time, thereby facilitating control of the lens's aperture diameter based on time. The time length in the aperture diameter control curve is related to the target's speed within the observation area.

[0058] For ease of explanation, taking the target as a moving vehicle as an example, the time the target travels in the observation area can be obtained based on the reference speed of the vehicle and the distance of the observation area. This application will not give examples one by one for other types of targets.

[0059] It should be noted that the corrected aperture diameter at the second endpoint is positively correlated with the ratio of the first brightness to the second brightness, the corrected aperture diameter at the sampling point is positively correlated with the ratio of the first brightness to the sampling brightness, and the corrected aperture diameter at the second endpoint is smaller than the corrected aperture diameter at the sampling point, and the corrected aperture diameter at the sampling point is smaller than the reference aperture diameter, which is the maximum aperture diameter of the lens.

[0060] Specifically, the light of the first intensity at the first endpoint is about to move away from the lens. Therefore, as the target continues to move, the target's light can avoid overexposure during imaging. Therefore, the first brightness is used as a reference to determine the aperture diameters at the second endpoint and the sampling point. The larger the ratio of the first brightness to the second brightness, the larger the corrected aperture diameter at the second endpoint. That is, when the first brightness remains unchanged, the smaller the second brightness at the second endpoint, the larger the corresponding corrected aperture diameter at the second endpoint. Similarly, the larger the ratio of the first brightness to the sampling brightness, the larger the corrected aperture diameter at the sampling point. That is, when the first brightness remains unchanged, the smaller the sampling brightness at the sampling point, the larger the corresponding corrected aperture diameter at the sampling point, thereby ensuring the rationality of the corrected aperture diameter.

[0061] Furthermore, the corrected aperture diameter at the second endpoint is smaller than the corrected aperture diameter at the sampling point, which is in turn smaller than the reference aperture diameter, which is the maximum aperture diameter of the lens. In other words, the corrected aperture diameter corresponding to the second endpoint is smallest. As the target moves from the second endpoint toward the first endpoint, the corrected aperture diameter gradually increases until it reaches the maximum aperture diameter. This ensures that aperture control is no longer required as the target continues to move from the first endpoint toward the image capture device, making the entire control process more efficient and ensuring the quality of images captured as the target moves throughout the capture area.

[0062] In a specific implementation scenario, the reference aperture diameter is marked as D, the first brightness is marked as Q1, the second brightness is marked as Q2, and the sampled brightness is marked as Qx. The corrected aperture diameter D1 corresponding to the target at the second endpoint satisfies the following formula:

[0063]

[0064] Wherein, D1 is selected from the above range, and the value of D1 is smaller than the reference aperture diameter D.

[0065] Furthermore, when the target is located at a sampling point between the first endpoint and the second endpoint, the corresponding corrected aperture diameter Dx satisfies the following formula:

[0066]

[0067] Wherein, Dx is selected from the above interval, and the value of Dx is between D1 and D.

[0068] S403: Controlling the aperture diameter of the lens based on the aperture diameter control curve of the lens, capturing multiple target images when the target moves from the second endpoint to the first endpoint, and determining the captured brightness in each target image.

[0069] Specifically, when the target moves to the second endpoint, the aperture diameter of the lens is controlled based on the aperture diameter control curve of the lens, and multiple target images at different points in the process of the target moving from the second endpoint to the first endpoint are collected. Based on the maximum image brightness in each target image, the collection brightness corresponding to each point is determined.

[0070] Optionally, during the process of the target moving from the second endpoint to the first endpoint, target images are collected at least at the first endpoint, the second endpoint, and a point between the first endpoint and the second endpoint.

[0071] S404: Adjusting the aperture diameter control curve based on the multiple collected brightnesses to obtain an adjusted aperture diameter control curve.

[0072] Specifically, based on the captured brightness at multiple points, the aperture diameter and / or time in the aperture diameter control curve are adjusted, so that the aperture diameter control curve is adjusted to better match the actual scene through testing with the captured target image, thereby reducing the probability of overexposure when capturing images in the actual scene.

[0073] In this embodiment, based on the installation height and installation angle of the image acquisition device and the intensity of the light emitted by the target, the second endpoint and the first endpoint of the target during movement are calibrated, and the aperture diameter of the lens is fixed to the reference aperture diameter, thereby capturing a first reference image of the target at the first endpoint, a second reference image of the target at the second endpoint, and multiple sampled images of the target between the first endpoint and the second endpoint. The first reference image, the second reference image, and the sampled images are all exposed, thereby providing direct feedback on the effect of the target's light on the exposure when the target is located at different points. The reference aperture diameter, the first brightness, the second brightness, and the sampled brightness are used to generate an aperture diameter control curve corresponding to the lens for controlling the aperture diameter when the target moves in the observation area. The aperture diameter control curve is then tested and adjusted to reduce the probability of overexposure when capturing images in actual scenes.

[0074] See also Figure 5 , Figure 5 This is a structural diagram of an embodiment of an electronic device of the present application. The electronic device 50 includes a memory 501 and a processor 502 coupled to each other, wherein the memory 501 stores program data (not shown in the figure), and the processor 502 calls the program data to implement the method in any of the above embodiments. For an explanation of the relevant content, please refer to the detailed description of the above method embodiments, which will not be repeated here.

[0075] See also Figure 6 , Figure 6This is a structural diagram of an embodiment of a computer-readable storage medium of the present application. The computer-readable storage medium 60 stores program data 600. When the program data 600 is executed by the processor, the method in any of the above embodiments is implemented. For an explanation of the relevant content, please refer to the detailed description of the above method embodiments, which will not be repeated here.

[0076] See also Figure 7 , Figure 7 FIG2 is a schematic structural diagram of an embodiment of an image acquisition device of the present application. The image acquisition device 70 includes a lens 701 having an aperture, an aperture controller 702, and an image sensor 703, as well as the electronic device 50 of the above embodiment. The aperture controller 702 is coupled to the aperture of the lens 701, and the electronic device 50 is coupled to the aperture controller 702 and the image sensor 703. As can be seen from the contents of any of the above embodiments, the image acquisition device 70 can improve image quality.

[0077] It should be noted that the units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of this embodiment.

[0078] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0079] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0080] The above description is only an implementation method of the present application and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the description and drawings of this application, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. An image acquisition method, characterized in that: The method comprises: Acquire a first brightness of a target at a first endpoint, a second brightness at a second endpoint, and sampled brightness between the first endpoint and the second endpoint in an observation area using a reference aperture diameter of the lens; wherein the first endpoint corresponds to a position of a light ray of a first light intensity of the target when it leaves the lens, and the second endpoint corresponds to a position of a light ray of a second light intensity of the target when it enters the lens, and the first light intensity is less than the second light intensity; determining, based on the reference aperture diameter, the first brightness, the second brightness, and the sampled brightness, an aperture diameter control curve corresponding to the lens when the target moves in the observation area; An image of a target in which the target is located in the observation area is acquired using the aperture diameter control curve of the lens.

2. The method according to claim 1, characterized in that The image acquisition device for lens matching corresponds to a shooting area, the observation area is pre-calibrated in the shooting area, and the calibration process of the observation area includes: Obtaining an installation position of the image acquisition device and determining the shooting area that matches the installation position; wherein the installation position includes an installation height of the image acquisition device relative to a plane on which the target is located, and an installation angle between the image acquisition device and a direction perpendicular to the plane on which the target is located; Based on the installation position and the light intensity of the light emitted by the target, the first endpoint and the second endpoint are calibrated in the shooting area to obtain the observation area.

3. The method according to claim 2, characterized in that The light emitted by the target corresponds to a first edge light and a second edge light, the light intensity corresponding to the first edge light is a first proportion of the central light intensity, the light intensity corresponding to the second edge light is a second proportion of the central light intensity, and the first proportion is smaller than the second proportion; The step of calibrating the first endpoint and the second endpoint in the shooting area based on the installation position and the intensity of the light emitted by the target to obtain the observation area includes: Based on the installation position and the angle corresponding to the first edge ray, the position of the first edge ray when it moves away from the lens is determined to obtain the first endpoint; based on the installation position and the angle corresponding to the second edge ray, the position of the second edge ray when it enters the lens is determined to obtain the second endpoint.

4. The method according to claim 1, wherein The acquiring, using a reference aperture diameter of a lens, a first brightness of a target at a first endpoint, a second brightness at a second endpoint, and a sampled brightness between the first endpoint and the second endpoint in an observation area includes: Acquire a first reference image of the target at the first endpoint, a second reference image of the target at the second endpoint, and a plurality of sample images of the target between the first endpoint and the second endpoint, which are captured using a reference aperture diameter of a lens; The first brightness is determined based on the first reference image, the second brightness is determined based on the second reference image, and the sampling brightness at multiple sampling points between the first endpoint and the second endpoint is determined based on multiple sampling images.

5. The method according to claim 1, wherein The determining, based on the reference aperture diameter, the first brightness, the second brightness, and the sampled brightness, an aperture diameter control curve corresponding to the lens when the target moves in the observation area includes: determining, based on the reference aperture diameter, the first brightness, and the second brightness, a corrected aperture diameter when the target is located at the second endpoint; and determining, based on the reference aperture diameter, the first brightness, and the sampling brightness, a corrected aperture diameter when the target is located at a sampling point between the first endpoint and the second endpoint; Based on the reference aperture diameter at the first endpoint and the corrected aperture diameters at all other points, an aperture diameter control curve corresponding to the lens when the target moves from the second endpoint to the first endpoint is generated; wherein the aperture diameter control curve indicates a functional relationship between the aperture diameter of the lens and time.

6. The method according to claim 5, characterized in that The corrected aperture diameter at the second endpoint is positively correlated with the ratio of the first brightness to the second brightness, the corrected aperture diameter at the sampling point is positively correlated with the ratio of the first brightness to the sampling brightness, and the corrected aperture diameter at the second endpoint is smaller than the corrected aperture diameter at the sampling point, and the corrected aperture diameter at the sampling point is smaller than the reference aperture diameter, where the reference aperture diameter is the maximum aperture diameter of the lens.

7. The method according to claim 1, characterized in that The collecting of the target image of the target located in the observation area by using the aperture diameter control curve of the lens includes: controlling the aperture diameter of the lens based on the aperture diameter control curve of the lens, capturing multiple target images when the target moves from the second endpoint to the first endpoint, and determining the captured brightness in each of the target images; Based on the multiple collected brightnesses, the aperture diameter control curve is adjusted to obtain an adjusted aperture diameter control curve.

8. An electronic device, characterized in that: include: A memory and a processor coupled to each other, wherein the memory stores program data, and the processor calls the program data to execute the method according to any one of claims 1 to 7.

9. A computer-readable storage medium having program data stored thereon, characterized in that: When the program data is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

10. An image acquisition device, characterized in that: The image acquisition device includes: a lens with an aperture, an aperture controller and an image sensor, and the electronic device according to claim 8, wherein the aperture controller is coupled to the aperture of the lens, and the electronic device is coupled to the aperture controller and the image sensor.

Citation Information

Patent Citations

  • Aperture value determination method and device for image acquisition equipment

    CN112532889A

  • Scene grayscale image restoration system and method based on dynamic vision sensor

    CN117579946A