Image parameter adjustment method and apparatus, electronic device, and storage medium

By adjusting the intensity of the infrared lamps and exposure factors, the problem of balancing image brightness and sharpness was solved, achieving the target brightness while improving sharpness, thus enhancing image quality.

WO2025241532A1PCT designated stage Publication Date: 2025-11-27ZHEJIANG UNIVIEW TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/143489
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-05-24
Filing Date
2024-12-28
Publication Date
2025-11-27

AI Technical Summary

Technical Problem

Existing technologies cannot simultaneously adjust the brightness and sharpness of images, especially when the imaging positions of infrared and visible light are different, resulting in image ghosting and blurring.

Method used

By adjusting the intensity of the infrared lamps to ensure that the proportion of infrared light is outside the preset range, and based on the comparison between the current image brightness and the target brightness, as well as the ambient brightness trend, the adjustment range of the target exposure factor is determined, and the current value of the exposure factor is adjusted to achieve the target brightness and clarity.

Benefits of technology

It achieves the goal of improving image clarity while ensuring that image brightness approaches or reaches the target brightness, thus balancing the adjustment of both brightness and clarity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024143489_27112025_PF_FP_ABST
    Figure CN2024143489_27112025_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of photography, and provides an image parameter adjustment method and apparatus, an electronic device, and a storage medium. The method comprises: when the proportion of infrared light in a current environment falls within a preset proportion range, adjusting the intensity of an infrared lamp until the proportion of the infrared light in the current environment falls outside the preset proportion range, wherein the preset proportion range is used for representing the proportion of infrared light in a corresponding environment when an image definition does not satisfy a preset definition (401); when the current image brightness of a captured image does not reach a target brightness, determining an adjustment range of a target exposure factor on the basis of a comparison result between the current image brightness and the target brightness and a change trend of an ambient brightness (402); and adjusting a current value of the target exposure factor on the basis of the adjustment range (403).
Need to check novelty before this filing date? Find Prior Art

Description

Image parameter adjustment method and device, electronic device, and storage medium

[0001] Cross-reference to Related Applications

[0002] This application claims priority to Chinese Patent Application No. 2024106570430, filed May 24, 2024, entitled "Image Parameter Adjustment Method and Device", which is incorporated by reference herein in its entirety. TECHNICAL FIELD

[0003] The present application relates to the field of camera technology, for example, to an image parameter adjustment method, device, electronic device, and storage medium. BACKGROUND

[0004] In the field of video surveillance, adjusting the brightness and sharpness of images is two crucial technologies. They not only improve the visual quality of images, making them more vivid and clear, but also provide more accurate and reliable data basis for subsequent image processing tasks such as feature extraction and target detection.

[0005] Usually, two independent algorithms are used to adjust the brightness and sharpness of images respectively, but when adjusting the brightness of the image to the target brightness, the proportion of infrared light and visible light in the environment may be quite different, as shown in FIG. 1. At this time, the positions of the two clear points of the infrared light and visible light on the image sensor are different, and no matter which clear point is automatically focused on, the image will have ghosting. SUMMARY

[0006] The present application provides an image parameter adjustment method, device, electronic device, and storage medium to solve the problem that the brightness and sharpness of the image cannot be adjusted simultaneously in the prior art.

[0007] The present application provides an image parameter adjustment method, comprising: adjusting the intensity of an infrared lamp until the proportion of infrared light in the current environment is outside a preset proportion range, when the proportion of infrared light in the current environment is within the preset proportion range, the preset proportion range is used to represent the proportion of infrared light in the environment when the image sharpness does not meet the preset sharpness; determining an adjustment range of a target exposure factor based on the comparison result of the current image brightness and the target brightness, and the change trend of the environment brightness, when the current image brightness of the captured image does not reach the target brightness; adjusting the current value of the target exposure factor based on the adjustment range.

[0008] The present application also provides an image parameter adjustment device, comprising an adjustment unit, a determination unit, and a first adjustment unit.

[0009] The adjusting unit is configured to adjust the intensity of the infrared lamp until the proportion of infrared light in the current environment is outside the preset proportion range, when the proportion of infrared light in the current environment is in the preset proportion range, the preset proportion range being used to represent the proportion of infrared light in the environment when the image definition does not meet the preset definition.

[0010] The determining unit is configured to determine an adjustment range of the target exposure factor based on a comparison result of the current image brightness and the target brightness and a change trend of the environment brightness, when the current image brightness of the photographed image does not reach the target brightness.

[0011] The first adjusting unit is configured to adjust a current value of the target exposure factor based on the adjustment range.

[0012] The present application also provides an electronic device, including a memory, a processor and a computer program stored in the memory and executable on the processor, when the processor executes the program, the image parameter adjustment method is realized.

[0013] The present application also provides a computer readable storage medium, which stores a computer program, when the computer program is executed by a processor, the image parameter adjustment method is realized.

[0014] The present application also provides a computer program product, including a computer program, when the computer program is executed by a processor, the image parameter adjustment method is realized.

[0015] The image parameter adjustment method provided by the present application adjusts the intensity of the infrared lamp until the proportion of infrared light in the current environment is outside the preset proportion range, when the proportion of infrared light in the current environment is in the preset proportion range, and determines an adjustment range of the target exposure factor based on a comparison result of the current image brightness and the target brightness and a change trend of the environment brightness, when the current image brightness of the photographed image does not reach the target brightness, and adjusts a current value of the target exposure factor based on the adjustment range, so that the current image brightness tends to or reaches the target brightness. BRIEF DESCRIPTION OF DRAWINGS

[0016] FIG. 1 is a schematic diagram of infrared light and visible light definition points in the related art.

[0017] FIG. 2 is a schematic diagram of exposure factor adjustment sequence in the related art.

[0018] FIG. 3 is a schematic diagram of the proportion range of infrared light in the environment provided by the present application.

[0019] FIG. 4 is a schematic diagram of the image parameter adjustment method provided by the present application.

[0020] FIG. 5 is a spectral sensitivity response curve of an image sensor according to an embodiment of the present application.

[0021] FIG. 6 is an exposure factor adjustment sequence according to an embodiment of the present application.

[0022] FIG. 7 is a flowchart of an image parameter adjustment method according to an embodiment of the present application.

[0023] FIG. 8 is a flowchart of an image parameter adjustment method according to an embodiment of the present application.

[0024] FIG. 9 is a structural diagram of an image parameter adjustment apparatus according to an embodiment of the present application.

[0025] FIG. 10 is a structural diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0026] The technical solutions in the present application will be described below with reference to the drawings in the present application. Obviously, the described embodiments are some but not all of the embodiments of the present application.

[0027] A camera usually supports color mode and infrared mode. When the ambient light is sufficient, the color mode is used, in which the lens filters out infrared light through an infrared cut filter (IR cut), and the captured image presents normal color. When the ambient light is weak, the infrared mode is used, in which the lens uses a full-transmission filter, the amount of light increases, and both infrared light and visible light can be imaged on the sensor, so the image brightness is higher and the image quality is better. However, because the wavelengths of infrared light and visible light are different, the clear points of the two on the sensor are also different. Therefore, when the camera switches between color mode and infrared mode, the auto focus needs to be triggered again to ensure the clear point of the image after switching. In addition, in the infrared mode, the proportion of infrared light in the environment relative to visible light is different, and the clear point of the image is also different. When the proportion of infrared light in the environment changes when adjusting the brightness of the image, the image may become blurred from clear. Therefore, the adjustment of the brightness and clarity of the image cannot be considered in the related art.

[0028] In addition, the brightness of the image is usually adjusted by an automatic exposure mode, which controls different exposure factor combinations to make the brightness of the image in a proper brightness range without underexposure or overexposure. The adjustment of the automatic exposure is achieved by comparing the current image brightness with a target brightness, then increasing or decreasing a certain exposure factor, calculating the new image brightness again, and repeating the adjustment process until the image brightness tends to or reaches the target brightness. In general, in order to stabilize the convergence of the image brightness and fully exert the advantages of each exposure factor, a certain exposure factor is adjusted alone within a certain period of time. FIG. 2 is a schematic diagram of an exposure factor adjustment sequence in the related art. As shown in FIG. 2, taking the change trend of the ambient brightness from bright to dark as an example, different exposure factors are divided into seven adjustment stages. The adjustment sequence is aperture in stage 1, shutter in stage 2, aperture in stage 3, shutter in stage 4, gain in stage 5, infrared light in stage 6, and gain in stage 7. The conventional exposure factor adjustment sequence does not consider the proportion of infrared light, and it is possible that after the image brightness reaches the target brightness in a certain adjustment stage, the proportion of infrared light in the environment is comparable to the proportion of visible light, resulting in ghosting and blurring of the image.

[0029] Based on this, the present application provides an image parameter adjustment method, which can avoid the proportion of infrared light in the current environment being within a preset proportion range, so as to improve the clarity of the image, and can also adjust the current value of the target exposure factor based on the comparison result of the current image brightness and the target brightness and the adjustment range of the target exposure factor determined based on the change trend of the ambient brightness, so that the current image brightness tends to or reaches the target brightness, thereby achieving the improvement of the clarity of the image while making the current image brightness tend to or reach the target brightness, and giving consideration to the adjustment of the brightness and the clarity of the image.

[0030] Here, the determination process of the preset proportion range in the present application is introduced first. The preset proportion range includes a value between a first proportion and a second proportion, wherein the first proportion is the minimum proportion and the second proportion is the maximum proportion.

[0031] The clarity of the image under different proportions of infrared light is evaluated as follows.

[0032] For a visible light and infrared light non-convergent lens, the imaging position of the image is different under a mixed light source of visible light and infrared light. In order to make the imaging of the object fall on the sensor, the position of the focusing motor needs to be adjusted. When the proportion of visible light in the environment is 100% and the proportion of infrared light is 0%, the focusing motor position FNormal when the camera is focused clearly is recorded. When the proportion of infrared light in the environment is 100% and the proportion of visible light is 0%, the focusing motor position FIR when the camera is focused clearly is recorded.

[0033] First, control the proportion of ambient light so that the proportion of infrared light in the environment is 0%, and the focus motor position is set to FNormal. At this time, only visible light is imaged, so a clear image can be obtained.

[0034] Then, gradually increase the proportion of infrared light in the environment while keeping the focus motor position set to FNormal. At this time, a small amount of infrared light enters the lens and is imaged on the sensor, but the imaging focus of the infrared light is not on the sensor. Therefore, the image is superimposed by a large amount of clear visible light image and a small amount of blurred infrared light image. The image clarity begins to decrease due to the influence of the infrared light imaging.

[0035] Continue to increase the proportion of infrared light in the environment while keeping the focus motor position set to FNormal. According to the conclusion of the previous step, the image clarity further decreases. According to the product resolution requirement, when the image clarity decreases to the point where it cannot meet the product's preset clarity, which is the minimum clarity, record the calculated proportion of infrared light at this time. The calculated proportion of infrared light at this time is taken as the first proportion PIR1.

[0036] Continue to increase the proportion of infrared light in the environment while keeping the focus motor position set to FIR. According to the conclusion of the previous step, when the proportion of infrared light in the environment reaches 50% or more, the image is superimposed by a small amount of blurred visible light image and a large amount of clear infrared light image. The image clarity begins to improve. According to the product resolution requirement, when the image clarity just meets the product's critical clarity, record the calculated proportion of infrared light at this time. The calculated proportion of infrared light at this time is taken as the second proportion PIR2.

[0037] Finally, continue to increase the proportion of infrared light in the environment while keeping the focus motor position set to FIR. When the proportion of infrared light in the environment reaches 100%, the image is entirely imaged by infrared light, and the clarity is restored.

[0038] According to the above process, the determination of the first proportion PIR1 and the second proportion PIR2 is completed. FIG. 3 is a schematic diagram of the range of the proportion of infrared light in the environment according to an embodiment of the present application. As shown in FIG. 3, when the proportion of infrared light is less than the first proportion PIR1, the focus motor position is set to FNormal, and visible light dominant imaging is adopted. When the proportion of infrared light is greater than the second proportion PIR2, the focus motor position is set to FIR, and infrared light dominant imaging is adopted. In these two cases, the clarity of the image meets the product requirement. When the proportion of infrared is greater than the first proportion PIR1 and less than the second proportion PIR2, according to the test process, no matter whether the focus motor position is set to FNormal, FIR, or other focus positions between FNormal and FIR, there is image superposition interference, which causes the clarity of the final image to fail to meet the product requirement.

[0039] It should be noted that the FNormal and FIR of the zoom lens at different focal lengths are different, and the difference between the FNormal and the FIR is also different. In order to better improve the image effect, the two thresholds of the first proportion PIR1 and the second proportion PIR2 can be determined according to the focal length, which will not be described herein.

[0040] The image parameter adjustment method of the present application will be described below in combination with FIGS. 4-8. The execution subject of the image parameter adjustment method can be a computer, a server, a terminal, or other electronic devices, or an image parameter adjustment device provided in the electronic device. The image parameter adjustment device can be realized by software, hardware, or a combination of both.

[0041] FIG. 4 is a flowchart of an image parameter adjustment method according to an embodiment of the present application. As shown in FIG. 4, the image parameter adjustment method includes the following steps 401-403.

[0042] In step 401, when the infrared light proportion of the current environment is within a preset proportion range, the intensity of the infrared lamp is adjusted until the infrared light proportion of the current environment is outside the preset proportion range. The preset proportion range is used to represent the proportion of infrared light in the environment when the image clarity does not meet the preset clarity.

[0043] For example, FIG. 5 is a spectral sensitivity response curve of an image sensor according to an embodiment of the present application. As shown in FIG. 5, the response rate of the image sensor to different wavelengths of light is different. As can be seen from FIG. 5, as the wavelength of the light entering the image sensor increases, when the wavelength of the light is between 400 nm and 760 nm, the response rates of R (red), G (green), and B (blue) are almost random. However, when the wavelength continues to increase, the wavelength range is between 800 nm and 1000 nm, the response rates of R, G, and B are almost consistent. Therefore, when the entire image is provided with 100% of the total brightness by infrared light, the overall white balance statistical information G / R, G / B of the image is close to 1. When the entire image is provided with 0% of the total brightness by infrared light, the overall white balance statistical information G / R, G / B of the image will not be close to 1. Therefore, the corresponding white balance statistical information under different infrared light proportions can be obtained by constructing different environments.

[0044] For example, in a standard color temperature light box, first, turn on the infrared light based on a certain intensity, record the brightness value, B / G value and R / G value at this time, then turn off the infrared light, adjust the brightness of the visible light so that the current brightness is consistent with the brightness when only the infrared light is on, record the B / G value and R / G value at this time, then turn on the infrared light based on the previous intensity, at this time, the proportion of infrared light and visible light is 50% respectively, record the B / G value and R / G value at this time, referring to the method as above, the look-up table of the corresponding relationship of the proportion of infrared light and white balance statistical information as shown in Table 1 can be obtained, and in Table 1, the B / G value is taken as an example of the white balance statistical information.

[0045] Table 1

[0046] Therefore, in actual application, when the white balance statistical information of the current environment is obtained, the proportion of infrared light corresponding to the white balance statistical information of the current environment can be found in the look-up table, that is, the proportion of infrared light of the current environment is obtained. When the corresponding relationship of the proportion of infrared light and the B / G value is stored in the look-up table, the white balance statistical information of the current environment obtained is also the B / G value of the current environment. In addition, in the case that the proportion of infrared light corresponding to the white balance statistical information of the current environment cannot be found in the look-up table, the proportion of infrared light PIR of the current environment can be determined by the look-up table and linear interpolation method (or other interpolation algorithm). For example, when 0% and 100% in the look-up table are selected, the algorithm becomes a simple linear estimation, and the calculation formula of the proportion of infrared light PIR of the current environment is simplified as formula (1) as follows. PIR=(B / G-(B / G)0) / ((B / G) 100 -B / G) (1)

[0047] Wherein, B / G represents the B / G value of the current environment, (B / G)0 represents the B / G value of the environment with the proportion of infrared light of 0%, and (B / G) 100 represents the B / G value of the environment with the proportion of infrared light of 100%.

[0048] It should be noted that, considering the misjudgment of the proportion of infrared light of the current environment, the R / G value, G / R value, R / B value or B / R value can be used for verification. Taking the R / G value as an example, if the B / G reaches or approaches 1, according to the RGB response curve of the Sensor, only when the R / G also reaches or approaches 1, the calculation of the proportion of infrared light of the current environment is determined to be valid, and when the R / G value does not reach or approach 1, the calculation of the proportion of infrared light of the current environment is determined to be invalid.

[0049] Fig. 6 is a schematic diagram of an exposure factor adjustment sequence provided by an embodiment of the present application. As shown in Fig. 6, the exposure factor adjustment sequence is improved based on Fig. 2. In Fig. 2, the gain critical point Gain midTwo buffer stages are added before and after, including a buffer stage 5.1 from Gain1 to Gain mid and a buffer stage 5.2 from Gain mid to Gain2, then the gain adjustment includes four stages of stage 5, stage 5.1, stage 5.2 and stage 7. The two buffer stages of stage 5.1 and stage 5.2 are used to offset the total brightness change caused by the advance or delay of the infrared light. The three stages of stage 6.1, stage 6.2 and stage 6.3 are divided in the intensity adjustment of the infrared light, wherein, when the change trend of the ambient brightness is from dark to light, stage 6.1 and stage 6.2 constitute the infrared light ratio control stage; when the change trend of the ambient brightness is from light to dark, stage 6.2 and stage 6.3 constitute the infrared light ratio control stage.

[0050] For example, when the change trend of the ambient brightness includes that the ambient brightness changes from light to dark, the exposure factor adjustment sequence of stage 1 aperture, stage 2 shutter, stage 3 aperture, stage 4 shutter, stage 5 gain and stage 5.1 gain shown in FIG. 6 can be used for adjustment, wherein the aperture adjustment is to increase the aperture value, the shutter adjustment is to reduce the shutter value, and the gain adjustment is to increase the gain. After adjustment, when the current gain reaches Gain mid in stage 5.1, the current ambient brightness continues to decrease, and the current image brightness needs to be improved, the infrared light ratio PIR of the current environment is calculated, and the infrared light ratio PIR of the current environment is compared with the first ratio PIR1 and the second ratio PIR2. The values between the first ratio PIR1 and the second ratio PIR2 constitute a preset ratio range. When the infrared light ratio PIR of the current environment is within the preset ratio range, it indicates that the definition of the image cannot meet the requirements, at this time, stage 6.1 and stage 6.2 shown in FIG. 6 are entered, the infrared light is controlled to be turned on, the intensity of the infrared light can be increased based on a preset step, so that the infrared light ratio of the current environment is greater than or equal to the second ratio PIR2. As described above, when the infrared light ratio of the current environment is greater than or equal to the second ratio PIR2, the definition of the image can meet the requirements, at this time, the intensity of the infrared light is recorded as Led2 in stage 6.2.

[0051] When the change trend of the ambient brightness includes that the ambient brightness changes from dark to light, the exposure factor adjustment sequence of stage 7 gain and stage 5.2 gain shown in FIG. 5 can be used for adjustment, and the gain adjustment is to reduce the gain. After adjustment, when the current gain reaches Gain midWhen the current environment brightness continues to increase and the current image brightness needs to be reduced, the infrared light proportion PIR of the current environment is calculated, and the infrared light proportion PIR of the current environment is compared with the first proportion PIR1 and the second proportion PIR2. When the infrared light proportion PIR of the current environment is within the preset proportion range, it indicates that the definition of the image cannot meet the requirements, and stage 6.1 shown in FIG. 6 is entered. The infrared lamp is turned on, and the intensity of the infrared lamp can be reduced based on the preset step length, so that the infrared light proportion of the current environment is less than or equal to the first proportion PIR1. As described above, when the infrared light proportion of the current environment is less than or equal to the first proportion PIR1, the definition of the image can meet the requirements. At this time, the intensity of the infrared lamp is recorded as Led1 in stage 6.1.

[0052] It should be noted that the performance under different color temperatures can also be tested, and a group of values or multiple groups of values can be tested in an actual application environment. One group of values or multiple groups of values can be selected or cross-selected, or can be selected according to actual environmental changes. The present application does not limit this.

[0053] It should be noted that the establishment of the lookup table is not limited to the proportions in Table 1, and can be increased or decreased. The present application does not limit this.

[0054] Step 402, in the case that the current image brightness of the photographed image does not reach the target brightness, determining an adjustment range of a target exposure factor based on a comparison result of the current image brightness and the target brightness and a change trend of the environment brightness.

[0055] For example, after adjusting the infrared light proportion of the current environment to be outside the preset proportion range, the image definition requirements can be met at this time. Next, it is necessary to determine whether the current image brightness reaches the target brightness. When it is determined that the current image brightness does not reach the target brightness, the target exposure factor that needs to be adjusted and the adjustment range of the target exposure factor can be determined based on the comparison result of the current image brightness and the target brightness and the change trend of the environment brightness.

[0056] Step 403, adjusting a current value of the target exposure factor based on the adjustment range.

[0057] For example, when the target exposure factor that needs to be adjusted and the adjustment range of the target exposure factor are determined, the current value of the target exposure factor is continuously adjusted based on the adjustment range of the target exposure factor until the current image brightness tends to or reaches the target brightness.

[0058] The image parameter adjustment method provided in the application can avoid the infrared light proportion in the current environment being within the preset proportion range, so as to improve the definition of the image. In addition, the current value of the target exposure factor is adjusted based on the adjustment range of the target exposure factor determined based on the comparison result of the current image brightness and the target brightness and the change trend of the environment brightness, so that the current image brightness tends to or reaches the target brightness. Therefore, the brightness and definition of the image are adjusted at the same time, so that the brightness and definition of the image are taken into account.

[0059] In an embodiment, the step 401 of adjusting the intensity of the infrared lamp until the infrared light proportion in the current environment is outside the preset proportion range when the infrared light proportion in the current environment is within the preset proportion range can be implemented by the following steps.

[0060] When the infrared light proportion in the current environment is within the preset proportion range, the target intensity of the infrared lamp corresponding to the maximum proportion in the preset proportion range when the infrared light proportion in the current environment is greater than or equal to the maximum proportion is determined based on the current environment brightness and the infrared light proportion in the current environment; and the current intensity of the infrared lamp is increased to the target intensity.

[0061] For example, when the infrared light proportion in the current environment is within the preset proportion range, the intensity of the infrared lamp required to reach the maximum proportion in the preset proportion range under the condition of the current environment brightness and the infrared light proportion in the current environment can be searched in the intensity list, the intensity of the infrared lamp searched is determined as the target intensity, the infrared lamp is turned on, and the current intensity of the infrared lamp is adjusted to the target intensity, so that the infrared light proportion in the current environment is outside the preset proportion range. The intensity list stores the intensity of the infrared lamp required to reach the maximum proportion in the preset proportion range under the condition of different environment brightness and different infrared light proportion.

[0062] It should be noted that when the intensity of the infrared lamp required to reach the maximum proportion in the preset proportion range under the condition of the current environment brightness and the infrared light proportion in the current environment is not searched in the intensity list, the target intensity can be determined by the intensity list and the linear interpolation method.

[0063] It should be noted that the intensity list can be determined based on the following manner: selecting a suitable reference brightness Lux with a lux meter Ref , and recording the reference exposure time Exp Ref , the reference image gain Gain Ref and the reference image brightness Luma Ref at the reference brightness Lux Ref , estimating the ambient brightness TotalLux based on the following formula (2).

[0064] Wherein, TotalLux represents the sum of the brightness of visible light and the brightness of infrared light in the environment, and the infrared light includes the infrared light emitted by the light source itself and the infrared light emitted by the infrared lamp.

[0065] When the infrared light of the camera is not turned on, the ambient brightness is L, and when the infrared light ratio is represented as PIR, the visible light ratio is 1-PIR; when the infrared light of the camera is turned on, the ambient illuminance contributed by the infrared light is Lx, the infrared light ratio in the environment is the maximum ratio in the preset ratio range, that is, the infrared light ratio in the environment is the second ratio PIR2, and the total ambient intensity is L2; the actual brightness of the visible light does not change before and after the infrared light is turned on, so there is the following formula (3). (1-PIR)*L=(1-PIR2)*L2 (3)

[0066] Based on formula (3), the following formula (4) can be obtained.

[0067] Then the ambient illuminance Lx contributed by the infrared light can be determined based on the following formula (5).

[0068] And the actual intensity of the infrared light turned on and the ambient illuminance Lx contributed by it are in a positive correlation, so it can be seen that if the infrared light needs to be turned on to make the infrared light ratio in the environment PIR2, the intensity S of the infrared light is related to the ambient brightness L, the infrared light ratio PIR and the second ratio PIR2, which can be represented by the following formula (6). S=f(L,PIR,PIR2) (6)

[0069] Thus, the intensity S of the light supplement lamp required to reach the second PIR2 under different L and different PIR conditions can be tested and stored in the intensity list, and the establishment of the intensity list is realized.

[0070] In the embodiment, the target intensity of the infrared light corresponding to the infrared light when the infrared light ratio of the current environment is greater than or equal to the maximum ratio in the preset ratio range can be determined based on the current ambient brightness and the infrared light ratio of the current environment, and the intensity of the infrared light is directly increased to the target intensity, without increasing the target intensity based on the preset step, thereby improving the efficiency of intensity adjustment.

[0071] In an embodiment, the step 402 is implemented by the following steps, in the case that the current image brightness of the photographed image does not reach the target brightness, determining the adjustment range of the target exposure factor based on the comparison result of the current image brightness and the target brightness, and the change trend of the ambient brightness.

[0072] In the case that the change trend of the ambient brightness includes that the ambient brightness changes from bright to dark, and the comparison result indicates that the current image brightness is greater than the target brightness, the target exposure factor is determined as the gain, and the first adjustment range of the gain is between a first preset gain and a second preset gain, the second preset gain being greater than the first preset gain.

[0073] Correspondingly, the step 403 is implemented by the following steps, in the case that the current image brightness does not reach the target brightness, adjusting the current value of the target exposure factor based on the adjustment range, until the current image brightness tends to or reaches the target brightness.

[0074] Lowering the current gain based on the first adjustment range of the gain, until the current image brightness reaches the target brightness.

[0075] For example, in the case that the change trend of the ambient brightness includes that the ambient brightness changes from bright to dark, the intensity of the infrared lamp is increased, so that the proportion of infrared light in the current environment is greater than or equal to the second proportion PIR2. At this time, the definition of the current image meets the requirements, and the current image brightness needs to be calculated and compared with the target brightness. In the case that the comparison result indicates that the current image brightness is greater than the target brightness, it is indicated that the brightness of the image does not meet the requirements in the case that the definition of the image meets the requirements, and overexposure occurs. Since the definition of the image meets the requirements, the intensity of the infrared lamp is not adjusted, so the target exposure factor is determined as the gain, and the range of the gain is the adjustment range of stage 5.1 shown in FIG. 6, that is, the first preset gain Gain1 and the second preset gain Gain2 composed of the first preset gain Gain1 and the second preset gain Gain2. mid Lowering the current gain based on the first adjustment range of the gain, until the current image brightness reaches the target brightness.

[0076] It should be noted that when the current gain is lowered to Gain1, and the current image brightness has not reached the target brightness, the value of Gain1 can be reduced, and the current gain can be continuously reduced to the reduced value of Gain1, until the current image brightness reaches the target brightness, which is not limited in the present application.

[0077] It should be noted that when the proportion of visible light in the current environment changes from less than the second proportion PIR2 to greater than or equal to the second proportion PIR2, the image definition changes from being dominated by visible light to being dominated by infrared light after the exposure is stable, and the focusing needs to be triggered once to ensure the definition of the image.

[0078] In the embodiment, in the case that the change trend of the ambient brightness comprises that the ambient brightness changes from bright to dark, and the comparison result represents that the current image brightness is greater than the target brightness, the first adjustment range of the gain reduces the current gain until the current image brightness reaches the target brightness, so that the current image brightness can reach the target brightness when the definition of the image meets the requirement, and the quality of the image is improved.

[0079] In an embodiment, the step 402 can be implemented by the following steps in the case that the current image brightness of the photographed image does not reach the target brightness.

[0080] In the case that the change trend of the ambient brightness comprises that the ambient brightness changes from bright to dark, and the comparison result represents that the current image brightness is less than the target brightness, the target exposure factor is determined as the intensity of the infrared lamp, and the first adjustment range of the intensity of the infrared lamp is between a first preset intensity and a second preset intensity, the second preset intensity being greater than the first preset intensity.

[0081] Correspondingly, the step 403 of adjusting the current value of the target exposure factor based on the adjustment range until the current image brightness tends to or reaches the target brightness can be implemented by the following steps.

[0082] Based on the first adjustment range of the intensity of the infrared lamp, the current intensity of the infrared lamp is increased; in the case that the current intensity of the infrared lamp is increased to the second preset intensity and the current image brightness does not reach the target brightness, the current gain is increased based on an adjustment range composed of a second preset gain and a third preset gain until the current image brightness tends to or reaches the target brightness.

[0083] For example, in the case that the change trend of the ambient brightness comprises that the ambient brightness changes from bright to dark, the intensity of the infrared lamp is increased so that the proportion of the infrared light in the current environment is greater than or equal to the second proportion PIR2. At this time, the definition of the current image meets the requirement, and the current image brightness needs to be calculated and compared with the target brightness. In the case that the comparison result represents that the current image brightness is less than the target brightness, it is indicated that the brightness of the image does not meet the requirement in the case that the definition meets the requirement, and the phenomenon of overdarkness occurs. At this time, the target exposure factor is determined as the intensity of the infrared lamp in priority, and the first adjustment range of the intensity of the infrared lamp is the adjustment range of stage 6.3 shown in FIG. 6, i.e. the current intensity of the infrared lamp is increased based on the first preset intensity Led2 and the second preset intensity Led max composes a first adjustment range to increase the current intensity of the infrared lamp so that the current image brightness reaches the target brightness; in the case that the current intensity of the infrared lamp is increased to the second preset intensity Led maxWhen the current image brightness still does not reach the target brightness, the current gain is increased based on an adjustment range composed of a second preset gain Gain mid and a third preset gain Gain max The adjustment range composed of stage 5.2 and stage 7 shown in FIG. 6 is increased to increase the current gain, so that the current image brightness reaches the target brightness. When the current gain is increased to the third preset gain Gain max When the current image brightness still does not reach the target brightness, but the image brightness at this time has tended to the target brightness, and the exposure factors capable of changing the brightness have been adjusted, the image brightness is no longer adjusted.

[0084] In the embodiment, when the change trend of the ambient brightness includes that the ambient brightness changes from bright to dark, and the comparison result indicates that the current image brightness is less than the target brightness, the current intensity of the infrared lamp is increased based on a first adjustment range of the intensity of the infrared lamp. When the current intensity of the infrared lamp is increased to a second preset intensity in the first adjustment range, and the current image brightness does not reach the target brightness, the current gain is increased based on an adjustment range composed of a second preset gain and a third preset gain, until the current image brightness tends to or reaches the target brightness, so that the current image brightness can reach the target brightness when the definition of the image meets the requirement, and the quality of the image is improved.

[0085] In an embodiment, the step 402 can be implemented in the following manner.

[0086] When the change trend of the ambient brightness includes that the ambient brightness changes from dark to bright, and the comparison result indicates that the current image brightness is less than the target brightness, the target exposure factor is determined to be a gain, and a second adjustment range of the gain is between a second preset gain and a fourth preset gain, the fourth preset gain is greater than the second preset gain and less than the third preset gain.

[0087] Correspondingly, the step 403 can be implemented in the following manner.

[0088] The current gain is increased based on the second adjustment range of the gain, until the current image brightness reaches the target brightness.

[0089] For example, when the change trend of the ambient brightness includes that the ambient brightness changes from dark to light, the intensity of the infrared lamp is reduced so that the proportion of infrared light in the current environment is less than or equal to the first proportion PIR1, so that the proportion of infrared light in the current environment is located outside the preset proportion range, at this time, the definition of the current image meets the requirements, the current image brightness needs to be calculated, and the current image brightness is compared with the target brightness. When the comparison result represents that the current image brightness is less than the target brightness, it is indicated that the brightness of the image does not meet the requirements in the case where the definition meets the requirements. Since the definition of the image meets the requirements, the intensity of the infrared lamp is not adjusted, so it is determined that the target exposure factor is the gain, and the range of the gain is the adjustment range of stage 5.2 shown in FIG. 6, that is, the second adjustment range composed of the second preset gain Gain1 and the fourth preset gain Gain2 increases the current gain until the current image brightness reaches the target brightness. mid

[0090] It should be noted that when the current gain is increased to Gain2, and the current image brightness has not reached the target brightness, the value of Gain2 can be increased, and the current gain is continuously increased to the value of the increased Gain2, until the current image brightness reaches the target brightness, which is not limited in the present application.

[0091] It should be noted that when the proportion of visible light in the current environment changes from greater than the first proportion PIR1 to less than or equal to the first proportion PIR1, the image focus point changes from infrared light dominant to visible light dominant after the exposure is stable, and the focus needs to be triggered once to ensure the definition of the image.

[0092] In the embodiment, when the change trend of the ambient brightness includes that the ambient brightness changes from dark to light, and the comparison result represents that the current image brightness is less than the target brightness, the second adjustment range based on the gain is used to increase the current gain until the current image brightness reaches the target brightness, so that the current image brightness can also reach the target brightness when the definition of the image meets the requirements, and the quality of the image is improved.

[0093] In an embodiment, the step 402 of adjusting the current value of the target exposure factor based on the adjustment range until the current image brightness tends to or reaches the target brightness can also be implemented in the following manner.

[0094] When the change trend of the ambient brightness includes that the ambient brightness changes from dark to light, and the comparison result represents that the current image brightness is greater than the target brightness, it is determined that the target exposure factor is the intensity of the infrared lamp, and the second adjustment range of the intensity of the infrared lamp is located between the third preset intensity and the fourth preset intensity. The fourth preset intensity is greater than the third preset intensity and less than the first preset intensity.

[0095] ​Correspondingly, the step 403 adjusts the current value of the target exposure factor based on the adjustment range until the current image brightness tends to or reaches the target brightness, which can also be achieved by the following way.

[0096] based on the second adjustment range of the intensity of the infrared lamp, the current intensity of the infrared lamp is reduced; in the case that the current intensity of the infrared lamp is reduced to the third preset intensity and the current image brightness is greater than the target brightness, the current gain is reduced based on an adjustment range composed of a fifth preset gain and a first preset gain until the current image brightness reaches the target brightness, the fifth preset gain being less than the first preset gain; in the case that the reduced gain reaches the fifth preset gain and the current image brightness is greater than the target brightness, the current shutter value and the current aperture value are alternately adjusted in turn until the current image brightness reaches the target brightness.

[0097] For example, when the change trend of the environmental brightness includes that the environmental brightness changes from dark to light, the intensity of the infrared lamp is reduced so that the proportion of the infrared light in the current environment is less than or equal to the first proportion PIR1. At this time, the definition of the current image meets the requirements, and the current image brightness needs to be calculated and compared with the target brightness. When the comparison result indicates that the current image brightness is greater than the target brightness, it means that the brightness of the image does not meet the requirements in the case that the definition meets the requirements, and overexposure occurs. At this time, the target exposure factor is determined as the intensity of the infrared lamp in priority, and the second adjustment range of the intensity of the infrared lamp is the adjustment range of stage 6.1 shown in FIG. 6, that is, the current intensity of the infrared lamp is reduced based on the second adjustment range composed of the third preset intensity Led min and the fourth preset intensity Led1 so that the current image brightness reaches the target brightness; when the current intensity of the infrared lamp is reduced to the third preset intensity Led min , the current image brightness still does not reach the target brightness, the current gain is reduced based on an adjustment range composed of a fifth preset gain Gain min and a first preset gain Gain1, that is, the current gain is reduced based on the adjustment range composed of stages 5 shown in FIG. 6, so that the current image brightness reaches the target brightness, when the current gain is reduced to the fifth preset gain Gain min of stage 5, the current image brightness still does not reach the target brightness, the current shutter value and the current aperture value are alternately adjusted in the order of stages 4, stage 3, stage 2 and stage 1 shown in FIG. 6 until the current image brightness reaches or tends to the target brightness.

[0098] In the embodiment, when the change trend of the ambient brightness comprises that the ambient brightness changes from dark to bright, and the comparison result indicates that the current image brightness is greater than the target brightness, the second adjustment range based on the intensity of the infrared lamp reduces the current intensity of the infrared lamp, and when the current intensity of the infrared lamp is reduced to a third preset intensity in the second adjustment range and the current image brightness does not reach the target brightness, the current gain is reduced based on the adjustment range composed of the fifth preset gain and the first preset gain until the current image brightness tends to or reaches the target brightness, so that the current image brightness can reach the target brightness when the definition of the image meets the requirement, and the quality of the image is improved.

[0099] In an embodiment, FIG. 7 is a second flowchart of the image parameter adjustment method provided by the embodiment, as shown in FIG. 7, the image parameter adjustment method further includes the following steps 701 to 702.

[0100] In step 701, when the change trend of the ambient brightness comprises that the ambient brightness changes from bright to dark, the infrared light proportion of the current environment is greater than or equal to the maximum proportion in the preset proportion range, and the current image brightness does not reach the target brightness, the current intensity of the infrared lamp is increased based on the adjustment range composed of the third preset intensity and the second preset intensity, and when the current intensity of the infrared lamp is increased to the second preset intensity and the current image brightness does not reach the target brightness, the current gain is increased based on the adjustment range composed of the second preset gain and the third preset gain until the current image brightness tends to or reaches the target brightness.

[0101] For example, when the change trend of the ambient brightness comprises that the ambient brightness changes from bright to dark and the infrared light proportion of the current environment is greater than or equal to the maximum proportion in the preset proportion range, it indicates that the definition of the image can meet the requirement, and the current image brightness is calculated at this time. When the current image brightness does not reach the target brightness, it indicates that the environment is relatively dark and over-dark phenomenon occurs, and then the intensity of the infrared lamp is increased based on the adjustment range of stages 6.1 to 6.3 shown in FIG. 6, that is, the intensity of the infrared lamp is increased based on the adjustment range composed of the third preset intensity Led min and the second preset intensity Led max , so that the current image brightness reaches the target brightness. When the current intensity of the infrared lamp is increased to the second preset intensity Led max , and the current image brightness still does not reach the target brightness, the current gain is increased based on the adjustment range composed of the second preset gain Gain mid and the third preset gain Gain max , that is, the current gain is increased based on the adjustment range composed of stages 5.2 and 7 shown in FIG. 6, so that the current image brightness reaches the target brightness, and when the current gain is increased to the third preset gain Gain maxWhen the current image brightness has not yet reached the target brightness, but the image brightness at this time has tended to the target brightness, and the exposure factors capable of changing the brightness have all been adjusted, the image brightness is no longer adjusted.

[0102] In step 702, when the change trend of the ambient brightness includes that the ambient brightness changes from bright to dark, the proportion of infrared light in the current environment is less than or equal to the minimum proportion in the preset proportion range, and the current image brightness has not reached the target brightness, the current gain is increased based on an adjustment range composed of the second preset gain and the fourth preset gain, and when the current gain is increased to the fourth preset gain and the current image brightness has not reached the target brightness, the current intensity of the infrared lamp is increased based on an adjustment range composed of the third preset intensity and the first preset intensity, until the current image brightness reaches the target brightness.

[0103] For example, when the change trend of the ambient brightness includes that the ambient brightness changes from bright to dark, and the proportion of infrared light in the current environment is less than or equal to the minimum proportion in the preset proportion range, it indicates that the definition of the image can meet the requirements, at this time, the current image brightness is calculated, and when the current image brightness has not reached the target brightness, it indicates that the environment is relatively dark, and the phenomenon of overdarkness occurs. If the intensity of the infrared lamp is preferentially increased, the proportion of infrared light in the current environment will be within the preset proportion range, so at this time, the current intensity of the infrared lamp cannot be directly increased, but the current gain is increased based on the adjustment range of stage 5.2 shown in FIG. 6, that is, the current gain is increased based on an adjustment range composed of the second preset gain Gain1 and the fourth preset gain Gain2, so that the current image brightness reaches the target brightness; when the current gain is increased to the fourth preset gain Gain2 and the current image brightness has not reached the target brightness, the current intensity of the infrared lamp is further increased based on the adjustment range of stages 6.1 and 6.2 shown in FIG. 6, until the current image brightness reaches the target brightness. mid For example, when the change trend of the ambient brightness includes that the ambient brightness changes from bright to dark, and the proportion of infrared light in the current environment is less than or equal to the minimum proportion in the preset proportion range, it indicates that the definition of the image can meet the requirements, at this time, the current image brightness is calculated, and when the current image brightness has not reached the target brightness, it indicates that the environment is relatively dark, and the phenomenon of overdarkness occurs. If the intensity of the infrared lamp is preferentially increased, the proportion of infrared light in the current environment will be within the preset proportion range, so at this time, the current intensity of the infrared lamp cannot be directly increased, but the current gain is increased based on the adjustment range of stage 5.2 shown in FIG. 6, that is, the current gain is increased based on an adjustment range composed of the second preset gain Gain1 and the fourth preset gain Gain2, so that the current image brightness reaches the target brightness; when the current gain is increased to the fourth preset gain Gain2 and the current image brightness has not reached the target brightness, the current intensity of the infrared lamp is further increased based on the adjustment range of stages 6.1 and 6.2 shown in FIG. 6, until the current image brightness reaches the target brightness.

[0104] In the embodiment, when the change trend of the ambient brightness comprises that the ambient brightness changes from bright to dark, the proportion of infrared light in the current environment is greater than or equal to the maximum proportion in the preset proportion range, and the current image brightness does not reach the target brightness, the current intensity of the infrared lamp is increased based on an adjustment range composed of the third preset intensity and the second preset intensity, when the current intensity of the infrared lamp is increased to the second preset intensity and the current image brightness does not reach the target brightness, the current gain is increased based on an adjustment range composed of the second preset gain and the third preset gain, until the current image brightness tends to or reaches the target brightness, so that the current image brightness can reach the target brightness when the definition of the image meets the requirement, and the quality of the image is improved; and when the change trend of the ambient brightness comprises that the ambient brightness changes from bright to dark, the proportion of infrared light in the current environment is less than or equal to the minimum proportion in the preset proportion range, and the current image brightness does not reach the target brightness, the current gain is increased based on an adjustment range composed of the second preset gain and the fourth preset gain, when the current gain is increased to the fourth preset gain and the current image brightness does not reach the target brightness, the current intensity of the infrared lamp is increased based on an adjustment range composed of the third preset intensity and the first preset intensity, until the current image brightness reaches the target brightness, so that the current image brightness can reach the target brightness when the definition of the image meets the requirement, and the quality of the image is improved.

[0105] In an embodiment, the step of increasing the current intensity of the infrared lamp based on an adjustment range composed of the third preset intensity and the first preset intensity until the current image brightness reaches the target brightness in the step 702 can be implemented in the following manner.

[0106] After the current intensity of the infrared lamp is increased based on the adjustment range composed of the third preset intensity and the first preset intensity, when the proportion of infrared light in the current environment is greater than or equal to the maximum proportion in the preset proportion range, and the current image brightness is greater than the target brightness, the current gain is reduced based on an adjustment range composed of the second preset gain and the fourth preset gain until the current image brightness reaches the target brightness.

[0107] For example, the current intensity of the infrared lamp is increased based on the adjustment range of the stage 6.1 and the stage 6.2 shown in FIG. 6, so that the proportion of infrared light in the current environment is greater than or equal to the maximum proportion PIR2 in the preset proportion range, at this time the intensity of the infrared lamp is recorded as Led2, and the current image brightness is calculated again, when the current image brightness is greater than the target brightness, it indicates that overexposure will occur, at this time the current gain is reduced based on the adjustment range of the stage 5.2 shown in FIG. 6, that is, the current gain is reduced based on an adjustment range composed of the second preset gain Gain mid and the fourth preset gain Gain2, so that the current image brightness reaches the target brightness, and when the current gain is reduced to the second preset gain Gain midWhen the current image brightness has not yet reached the target brightness, but the image brightness at this time has tended towards the target brightness, and the exposure factors capable of changing the brightness have all been adjusted, the image brightness is no longer adjusted.

[0108] After increasing the current intensity of the infrared lamp based on the adjustment range composed of the third preset intensity and the first preset intensity, if the infrared light proportion of the current environment is greater than or equal to the maximum proportion in the preset proportion range, and the current image brightness is less than the target brightness, the current intensity of the infrared lamp is increased based on the adjustment range composed of the first preset intensity and the second preset intensity. When the current intensity of the infrared lamp is increased to the second preset intensity, and the current image brightness has not yet reached the target brightness, the current gain is increased based on the adjustment range composed of the fourth preset gain and the third preset gain, until the current image brightness tends to or reaches the target brightness.

[0109] For example, the current intensity of the infrared lamp is increased based on the adjustment range of stages 6.1 and 6.2 shown in FIG. 6, so that the infrared light proportion of the current environment is greater than or equal to the maximum proportion PIR2 in the preset proportion range. At this time, the intensity of the infrared lamp is recorded as Led2, and the current image brightness is calculated again. When the current image brightness is less than the target brightness, it indicates that overexposure will occur. At this time, the current intensity of the infrared lamp is increased based on the adjustment range of stage 6.3 shown in FIG. 6, that is, the current intensity of the infrared lamp is increased based on the adjustment range composed of the first preset intensity Led2 and the second preset intensity Led max to make the current image brightness reach the target brightness. When the current intensity of the infrared lamp is increased to the second preset intensity Led max of stage 6.3, the current image brightness has not yet reached the target brightness. At this time, the current gain is increased based on the adjustment range of stage 7 shown in FIG. 6, that is, the current gain is increased based on the adjustment range composed of the fourth preset gain Gain2 and the third preset gain Gain max to make the current image brightness reach the target brightness. When the current gain is increased to the third preset gain Gain max of stage 7, the current image brightness has not yet reached the target brightness, but the image brightness at this time has tended towards the target brightness, and the exposure factors capable of changing the brightness have all been adjusted, so the image brightness is no longer adjusted.

[0110] It should be noted that when the visible light proportion of the current environment changes from less than the second proportion PIR2 to greater than or equal to the second proportion PIR2, the image clarity point changes from being dominated by visible light to being dominated by infrared light after the exposure is stable, and a focusing needs to be triggered once to ensure the clarity of the image.

[0111] In an embodiment, FIG. 8 is a third flowchart of the image parameter adjustment method according to the embodiments of the present application. As shown in FIG. 8, the image parameter adjustment method further includes steps 801-802.

[0112] In step 801, when the change trend of the ambient brightness includes that the ambient brightness changes from dark to light, the infrared light proportion of the current environment is less than or equal to the minimum proportion in the preset proportion range, and the current image brightness is greater than the target brightness, the current intensity of the infrared lamp is reduced based on an adjustment range composed of a third preset intensity and a second preset intensity. When the current intensity of the infrared lamp is reduced to the third preset intensity and the current image brightness is greater than the target brightness, the current gain is reduced based on an adjustment range composed of a fifth preset gain and a first preset gain until the current image brightness reaches the target brightness. When the reduced gain reaches the fifth preset gain and the current image brightness is greater than the target brightness, the current shutter value and the current aperture value are alternately adjusted in sequence until the current image brightness reaches the target brightness.

[0113] For example, when the change trend of the ambient brightness includes that the ambient brightness changes from dark to light and the infrared light proportion of the current environment is less than or equal to the minimum proportion in the preset proportion range, it indicates that the definition of the image can meet the requirements. At this time, the current image brightness is calculated. When the current image brightness is greater than the target brightness, it indicates that overexposure will occur. Then, the intensity of the infrared lamp is reduced based on the adjustment range of stages 6.1-6.3 shown in FIG. 6, i.e., the adjustment range composed of a third preset intensity Led min and a second preset intensity Led max , so that the current image brightness reaches the target brightness. When the current intensity of the infrared lamp is reduced to the third preset intensity Led min and the current image brightness is still greater than the target brightness, the current gain is reduced based on the adjustment range of stage 5 shown in FIG. 6, i.e., the adjustment range composed of a fifth preset gain Gain min and a first preset gain Gain1, so that the current image brightness reaches the target brightness. When the current gain is reduced to the fifth preset gain Gain min of stage 5 and the current image brightness is still greater than the target brightness, the current shutter value and the current aperture value are alternately adjusted in sequence based on the adjustment order of stages 4, 3, 2 and 1 shown in FIG. 6 until the current image brightness reaches or tends to the target brightness.

[0114] In step 802, when the change trend of the image brightness includes that the image brightness changes from dark to bright, the infrared light proportion of the current environment is greater than or equal to the maximum proportion in the preset proportion range, and the current image brightness is greater than the target brightness, the current gain is reduced based on an adjustment range composed of the first preset gain and the second preset gain, and when the current gain is reduced to the first preset gain and the current image brightness is greater than the target brightness, the current intensity of the infrared lamp is reduced based on an adjustment range composed of the fourth preset intensity and the second preset intensity, until the current image brightness reaches the target brightness.

[0115] For example, when the change trend of the environment brightness includes that the environment brightness changes from dark to bright and the infrared light proportion of the current environment is greater than or equal to the maximum proportion in the preset proportion range, it indicates that the definition of the image can meet the requirements, and at this time, the current image brightness is calculated. When the current image brightness is greater than the target brightness, it indicates that overexposure will occur, and then the current gain is reduced based on the adjustment range of stage 5.1 shown in FIG. 6, that is, the current gain is reduced based on an adjustment range composed of the first preset gain Gain1 and the second preset gain Gain2, so that the current image brightness reaches the target brightness. When the current gain is reduced to the first preset gain Gain1 and the current image brightness is still greater than the target brightness, the current intensity of the infrared lamp is reduced based on the adjustment range composed of stages 6.2 and 6.3 shown in FIG. 6, that is, the current intensity of the infrared lamp is reduced based on an adjustment range composed of the fourth preset intensity Led1 and the second preset intensity Led2, until the current image brightness reaches the target brightness. mid max For example, when the change trend of the environment brightness includes that the environment brightness changes from dark to bright and the infrared light proportion of the current environment is greater than or equal to the maximum proportion in the preset proportion range, it indicates that the definition of the image can meet the requirements, and at this time, the current image brightness is calculated. When the current image brightness is greater than the target brightness, it indicates that overexposure will occur, and then the current gain is reduced based on the adjustment range of stage 5.1 shown in FIG. 6, that is, the current gain is reduced based on an adjustment range composed of the first preset gain Gain1 and the second preset gain Gain2, so that the current image brightness reaches the target brightness. When the current gain is reduced to the first preset gain Gain1 and the current image brightness is still greater than the target brightness, the current intensity of the infrared lamp is reduced based on the adjustment range composed of stages 6.2 and 6.3 shown in FIG. 6, that is, the current intensity of the infrared lamp is reduced based on an adjustment range composed of the fourth preset intensity Led1 and the second preset intensity Led2, until the current image brightness reaches the target brightness. mid max For example, when the change trend of the environment brightness includes that the environment brightness changes from dark to bright and the infrared light proportion of the current environment is greater than or equal to the maximum proportion in the preset proportion range, it indicates that the definition of the image can meet the requirements, and at this time, the current image brightness is calculated. When the current image brightness is greater than the target brightness, it indicates that overexposure will occur, and then the current gain is reduced based on the adjustment range of stage 5.1 shown in FIG. 6, that is, the current gain is reduced based on an adjustment range composed of the first preset gain Gain1 and the second preset gain Gain2, so that the current image brightness reaches the target brightness. When the current gain is reduced to the first preset gain Gain1 and the current image brightness is still greater than the target brightness, the current intensity of the infrared lamp is reduced based on the adjustment range composed of stages 6.2 and 6.3 shown in FIG. 6, that is, the current intensity of the infrared lamp is reduced based on an adjustment range composed of the fourth preset intensity Led1 and the second preset intensity Led2, until the current image brightness reaches the target brightness.

[0116] In the embodiment, when the change trend of the environment brightness includes that the environment brightness changes from dark to bright, the infrared light proportion of the current environment is less than or equal to the minimum proportion in the preset proportion range, and the current image brightness is greater than the target brightness, or when the change trend of the image brightness includes that the image brightness changes from dark to bright, the infrared light proportion of the current environment is greater than or equal to the maximum proportion in the preset proportion range, and the current image brightness is greater than the target brightness, the current image brightness can also reach the target brightness when the definition of the image meets the requirements through adjustment of related exposure parameters, thereby improving the quality of the image.

[0117] In an embodiment, the current intensity of the infrared lamp is reduced based on an adjustment range composed of the fourth preset intensity and the second preset intensity until the current image brightness reaches the target brightness in step 802, which can be realized in the following manner.

[0118] In a case that the current infrared light proportion of the current environment is less than or equal to the minimum proportion in the preset proportion range and the current image brightness is less than the target brightness after the current intensity of the infrared lamp is reduced based on the adjustment range composed of the fourth preset intensity and the second preset intensity, the focusing motor is controlled to focus, and the current gain is increased based on the adjustment range composed of the second preset gain and the fourth preset gain until the current image brightness reaches the target brightness.

[0119] For example, the current brightness of the infrared lamp is reduced based on the adjustment range composed of stages 6.2 and 6.3 shown in FIG. 6, so that the current infrared light proportion of the current environment is less than or equal to the minimum proportion PIR1 in the preset proportion range, at this time, the intensity of the infrared lamp is recorded as Led1, and the current image brightness is calculated again. In a case that the current image brightness is less than the target brightness, it is indicated that the over-dark phenomenon will occur. At this time, the current gain is increased based on the adjustment range of stage 5.2 shown in FIG. 6, that is, the current gain is increased based on the adjustment range composed of the second preset gain Gain2 and the fourth preset gain Gain1, so that the current image brightness reaches the target brightness. In a case that the current gain is increased to the second preset gain Gain2 of stage 5.2, and the current image brightness still does not reach the target brightness, but the image brightness at this time has tended to the target brightness, and the exposure factors capable of changing the brightness have been adjusted, so the image brightness is no longer adjusted. mid For example, the current brightness of the infrared lamp is reduced based on the adjustment range composed of stages 6.2 and 6.3 shown in FIG. 6, so that the current infrared light proportion of the current environment is less than or equal to the minimum proportion PIR1 in the preset proportion range, at this time, the intensity of the infrared lamp is recorded as Led1, and the current image brightness is calculated again. In a case that the current image brightness is less than the target brightness, it is indicated that the over-dark phenomenon will occur. At this time, the current gain is increased based on the adjustment range of stage 5.2 shown in FIG. 6, that is, the current gain is increased based on the adjustment range composed of the second preset gain Gain2 and the fourth preset gain Gain1, so that the current image brightness reaches the target brightness. In a case that the current gain is increased to the second preset gain Gain2 of stage 5.2, and the current image brightness still does not reach the target brightness, but the image brightness at this time has tended to the target brightness, and the exposure factors capable of changing the brightness have been adjusted, so the image brightness is no longer adjusted.

[0120] In a case that the current infrared light proportion of the current environment is less than or equal to the minimum proportion in the preset proportion range and the current image brightness is greater than the target brightness after the current intensity of the infrared lamp is reduced based on the adjustment range composed of the fourth preset intensity and the second preset intensity, the current intensity of the infrared lamp is reduced based on the adjustment range composed of the third preset intensity and the fourth preset intensity. In a case that the current intensity of the infrared lamp is reduced to the third preset intensity and the current image brightness is greater than the target brightness, the current gain is reduced based on the adjustment range composed of the fifth preset gain and the first preset gain until the current image brightness reaches the target brightness. In a case that the gain after being reduced reaches the fifth preset gain and the current image brightness is greater than the target brightness, the current shutter value and the current aperture value are adjusted alternately until the current image brightness reaches the target brightness.

[0121] For example, the current brightness of the infrared lamp is reduced based on the adjustment range composed of stages 6.2 and 6.3 shown in FIG. 6, so that the current infrared light proportion of the current environment is less than or equal to the minimum proportion PIR1 in the preset proportion range, at this time, the intensity of the infrared lamp is recorded as Led1, and the current image brightness is calculated again. In a case that the current image brightness is less than the target brightness, it is indicated that the over-dark phenomenon will occur. At this time, the current gain is increased based on the adjustment range of stage 5.2 shown in FIG. 6, that is, the current gain is increased based on the adjustment range composed of the second preset gain Gain2 and the fourth preset gain Gain1, so that the current image brightness reaches the target brightness. In a case that the current gain is increased to the second preset gain Gain2 of stage 5.2, and the current image brightness still does not reach the target brightness, but the image brightness at this time has tended to the target brightness, and the exposure factors capable of changing the brightness have been adjusted, so the image brightness is no longer adjusted. minThe adjustment range, consisting of the fourth preset intensity LED1, reduces the current intensity of the infrared lamp to bring the current image brightness to the target brightness. This is achieved when the current intensity of the infrared lamp decreases to the third preset intensity LED in stage 6.1. min If the current image brightness has not yet reached the target brightness, the current gain is reduced based on the adjustment range of stage 5 shown in Figure 6, i.e., based on the fifth preset gain Gain. min The adjustment range, consisting of the first preset gain Gain1, reduces the current gain to bring the current image brightness to the target brightness. The current gain then decreases to the third preset gain Gain in stage 5. min When the current image brightness has not yet reached the target brightness, the current shutter value and the current aperture value are adjusted alternately in the order of adjustment of stage 4, stage 3, stage 2 and stage 1 shown in Figure 6 until the current image brightness reaches or approaches the target brightness.

[0122] It should be noted that when the proportion of visible light in the current environment changes from greater than the first proportion PIR1 to less than or equal to the first proportion PIR1, after the exposure stabilizes, the image sharpness point changes from infrared light dominance to visible light dominance, which requires triggering a focusing action, i.e., controlling the focusing motor to focus, in order to ensure image sharpness.

[0123] It should be noted that this application can also use the shutter threshold shown in Figure 2. mid The addition of buffer stages before and after allows this application to adjust the image based on a combination of the improved shutter speed adjustment stage and the improved intensity adjustment stage of each infrared lamp, so that the current image brightness reaches the target brightness while the current image clarity also meets the requirements. This application does not limit this aspect.

[0124] It should be noted that this application can also be applied at the aperture critical point Iris shown in Figure 2. mid The addition of buffer stages before and after allows this application to adjust the image brightness based on a combination of the improved aperture adjustment stage and the improved intensity adjustment stage of each infrared lamp, so that the image brightness reaches the target brightness while the image clarity also meets the requirements. This application does not limit this aspect.

[0125] In summary, this application solves the image ghosting problem caused by the different focal points of visible and infrared light under mixed light sources by controlling the reasonable combination of exposure factors so that the current image brightness reaches the target brightness while avoiding the infrared light ratio of the current environment being within the preset ratio range.

[0126] The image parameter adjustment device provided in this application is described below. The image parameter adjustment device described below can be referred to in correspondence with the image parameter adjustment method described above.

[0127] Fig. 9 is a structural schematic diagram of an image parameter adjustment apparatus provided by an embodiment of the present application. As shown in Fig. 9, the image parameter adjustment apparatus 900 includes an adjustment unit 901, a determination unit 902, and a first adjustment unit 903.

[0128] The adjustment unit 901 is configured to, in a case where an infrared light proportion of a current environment is located in a preset proportion range, adjust an intensity of an infrared lamp until the infrared light proportion of the current environment is located outside the preset proportion range, the preset proportion range being used to represent a proportion of infrared light in an environment when image definition does not meet a preset definition.

[0129] The determination unit 902 is configured to, in a case where a current image brightness of a photographed image does not reach a target brightness, determine an adjustment range of a target exposure factor based on a comparison result of the current image brightness and the target brightness and a variation trend of an environment brightness.

[0130] The first adjustment unit 903 is configured to adjust a current value of the target exposure factor based on the adjustment range.

[0131] The image parameter adjustment apparatus provided by the present application can adjust the intensity of the infrared lamp in a case where the infrared light proportion of the current environment is located in the preset proportion range until the infrared light proportion of the current environment is located outside the preset proportion range, and can determine the adjustment range of the target exposure factor based on the comparison result of the current image brightness and the target brightness and the variation trend of the environment brightness in a case where the current image brightness of the photographed image does not reach the target brightness, and adjust the current value of the target exposure factor based on the adjustment range, so that the current image brightness tends to or reaches the target brightness. It can be known that the present application can avoid the infrared light proportion of the current environment being located in the preset proportion range to improve the definition of the image, and can adjust the current value of the target exposure factor based on the adjustment range of the target exposure factor determined based on the comparison result of the current image brightness and the target brightness and the variation trend of the environment brightness, so that the current image brightness tends to or reaches the target brightness, which realizes improving the definition of the image while making the current image brightness tend to or reach the target brightness, thereby taking into account the adjustment of the brightness and the definition of the image.

[0132] Based on any of the above embodiments, the adjustment unit 901 can be configured to, in a case where the infrared light proportion of the current environment is located in the preset proportion range, determine a target intensity of the infrared lamp corresponding to a case where the infrared light proportion of the current environment is greater than or equal to a maximum proportion in the preset proportion range based on the current environment brightness and the infrared light proportion of the current environment, and increase the current intensity of the infrared lamp to the target intensity.

[0133] Based on any of the above embodiments, the determination unit 902 can be configured to: in a case where the change trend of the ambient brightness comprises that the ambient brightness changes from bright to dark, and the comparison result represents that the current image brightness is greater than the target brightness, determine that the target exposure factor is a gain, and a first adjustment range of the gain is between a first preset gain and a second preset gain, the second preset gain being greater than the first preset gain.

[0134] The first adjustment unit 903 can be configured to: based on the first adjustment range of the gain, reduce the current gain until the current image brightness reaches the target brightness.

[0135] Based on any of the above embodiments, the adjustment unit 902 can be further configured to: in a case where the change trend of the ambient brightness comprises that the ambient brightness changes from bright to dark, increase the intensity of the infrared lamp, so that the proportion of infrared light in the current environment is greater than or equal to the maximum proportion in the preset proportion range.

[0136] Based on any of the above embodiments, the first adjustment unit 903 can be further configured to:

[0137] In a case where the current gain is reduced to the first preset gain, and the current image brightness does not reach the target brightness, reduce the value of the first preset gain, reduce the current gain to the first preset gain after reduction, until the current image brightness reaches the target brightness.

[0138] Based on any of the above embodiments, the determination unit 902 can be further configured to: in a case where the change trend of the ambient brightness comprises that the ambient brightness changes from bright to dark, and the comparison result represents that the current image brightness is less than the target brightness, determine that the target exposure factor is the intensity of the infrared lamp, and a first adjustment range of the intensity of the infrared lamp is between a first preset intensity and a second preset intensity, the second preset intensity being greater than the first preset intensity.

[0139] The first adjustment unit 903 can be further configured to: based on the first adjustment range of the intensity of the infrared lamp, increase the current intensity of the infrared lamp; in a case where the current intensity of the infrared lamp is increased to the second preset intensity, and the current image brightness does not reach the target brightness, increase the current gain based on an adjustment range composed of a second preset gain and a third preset gain, until the current image brightness tends to or reaches the target brightness.

[0140] Based on any of the above embodiments, the determination unit 902 can be further configured to: in a case where the change trend of the environment brightness comprises that the environment brightness changes from dark to light, and the comparison result represents that the current image brightness is less than the target brightness, determine that the target exposure factor is the gain, and a second adjustment range of the gain is between a second preset gain and a fourth preset gain, the fourth preset gain being greater than the second preset gain and less than the third preset gain.

[0141] The first adjustment unit 903 can be further configured to: increase the current gain based on the second adjustment range of the gain, until the current image brightness reaches the target brightness.

[0142] Based on any of the above embodiments, the adjustment unit 901 can be further configured to:

[0143] In a case where the change trend of the environment brightness comprises that the environment brightness changes from dark to light, reduce the intensity of the infrared lamp, so that the proportion of infrared light in the current environment is less than or equal to the minimum proportion in the preset proportion range.

[0144] Based on any of the above embodiments, the first adjustment unit 903 can be further configured to:

[0145] In a case where the current gain is increased to the fourth preset gain, and the current image brightness does not reach the target brightness, increase the value of the fourth preset gain, increase the current gain to the increased fourth preset gain, until the current image brightness reaches the target brightness.

[0146] Based on any of the above embodiments, the determination unit 902 can be further configured to: in a case where the change trend of the environment brightness comprises that the environment brightness changes from dark to light, and the comparison result represents that the current image brightness is greater than the target brightness, determine that the target exposure factor is the intensity of the infrared lamp, and a second adjustment range of the intensity of the infrared lamp is between a third preset intensity and a fourth preset intensity, the fourth preset intensity being greater than the third preset intensity and less than the first preset intensity.

[0147] The first adjustment unit 903 can be further configured to: based on the second adjustment range of the intensity of the infrared lamp, reduce the current intensity of the infrared lamp; in a case where the current intensity of the infrared lamp is reduced to the third preset intensity, and the current image brightness is greater than the target brightness, reduce the current gain based on an adjustment range composed of a fifth preset gain and the first preset gain, until the current image brightness reaches the target brightness, the fifth preset gain being less than the first preset gain; in a case where the reduced gain reaches the fifth preset gain, and the current image brightness is greater than the target brightness, alternately adjust the current shutter value and the current aperture value in turn, until the current image brightness reaches the target brightness.

[0148] According to any of the above embodiments, the image parameter adjustment device 900 further comprises: a second adjustment unit configured to, in the case that the change trend of the ambient brightness comprises that the ambient brightness changes from bright to dark, the infrared light proportion of the current environment is greater than or equal to the maximum proportion in the preset proportion range, and the current image brightness does not reach the target brightness, increase the current intensity of the infrared lamp based on an adjustment range composed of a third preset intensity and a second preset intensity, in the case that the current intensity of the infrared lamp is increased to the second preset intensity and the current image brightness does not reach the target brightness, increase the current gain based on an adjustment range composed of the second preset gain and a third preset gain, until the current image brightness tends to or reaches the target brightness; a third adjustment unit configured to, in the case that the change trend of the ambient brightness comprises that the ambient brightness changes from bright to dark, the infrared light proportion of the current environment is less than or equal to the minimum proportion in the preset proportion range, and the current image brightness does not reach the target brightness, increase the current gain based on an adjustment range composed of the second preset gain and a fourth preset gain, in the case that the current gain is increased to the fourth preset gain and the current image brightness does not reach the target brightness, increase the current intensity of the infrared lamp based on an adjustment range composed of a third preset intensity and a first preset intensity, until the current image brightness reaches the target brightness.

[0149] According to any of the above embodiments, the third adjustment unit can be configured to, in the case that the current intensity of the infrared lamp is increased based on the adjustment range composed of the third preset intensity and the first preset intensity, the infrared light proportion of the current environment is greater than or equal to the maximum proportion in the preset proportion range, and the current image brightness is greater than the target brightness, decrease the current gain based on an adjustment range composed of a second preset gain and the fourth preset gain, until the current image brightness reaches the target brightness; in the case that the current intensity of the infrared lamp is increased based on the adjustment range composed of the third preset intensity and the first preset intensity, the infrared light proportion of the current environment is greater than or equal to the maximum proportion in the preset proportion range, and the current image brightness is less than the target brightness, increase the current intensity of the infrared lamp based on an adjustment range composed of the first preset intensity and the second preset intensity, in the case that the current intensity of the infrared lamp is increased to the second preset intensity and the current image brightness does not reach the target brightness, increase the current gain based on an adjustment range composed of a fourth preset gain and a third preset gain, until the current image brightness tends to or reaches the target brightness.

[0150] Based on any of the above embodiments, the image parameter adjusting apparatus 900 further comprises a fourth adjusting unit configured to, in the case that the change trend of the ambient brightness comprises that the ambient brightness changes from dark to light, the infrared light proportion of the current environment is less than or equal to the minimum proportion in the preset proportion range, and the current image brightness is greater than the target brightness, decrease the current intensity of the infrared lamp based on an adjusting range composed of the third preset intensity and the second preset intensity, in the case that the current intensity of the infrared lamp is decreased to the third preset intensity and the current image brightness is greater than the target brightness, decrease the current gain based on an adjusting range composed of the fifth preset gain and the first preset gain until the current image brightness reaches the target brightness, and in the case that the decreased gain reaches the fifth preset gain and the current image brightness is greater than the target brightness, alternately adjust the current shutter value and the current aperture value until the current image brightness reaches the target brightness.

[0151] The fifth adjusting unit is configured to, in the case that the change trend of the image brightness comprises that the image brightness changes from dark to light, the infrared light proportion of the current environment is greater than or equal to the maximum proportion in the preset proportion range, and the current image brightness is greater than the target brightness, decrease the current gain based on an adjusting range composed of the first preset gain and the second preset gain, in the case that the current gain is decreased to the first preset gain and the current image brightness is greater than the target brightness, decrease the current intensity of the infrared lamp based on an adjusting range composed of the fourth preset intensity and the second preset intensity until the current image brightness reaches the target brightness.

[0152] Based on any of the above embodiments, the fifth adjusting unit can be configured to: in a case that the infrared light proportion of the current environment is less than or equal to the minimum proportion in the preset proportion range and the current image brightness is less than the target brightness after the current intensity of the infrared lamp is reduced based on the adjustment range composed of the fourth preset intensity and the second preset intensity, control the focusing motor to focus, and increase the current gain based on the adjustment range composed of the second preset gain and the fourth preset gain until the current image brightness reaches the target brightness; in a case that the infrared light proportion of the current environment is less than or equal to the minimum proportion in the preset proportion range and the current image brightness is greater than the target brightness after the current intensity of the infrared lamp is reduced based on the adjustment range composed of the fourth preset intensity and the second preset intensity, reduce the current intensity of the infrared lamp based on the adjustment range composed of the third preset intensity and the fourth preset intensity, in a case that the current intensity of the infrared lamp is reduced to the third preset intensity and the current image brightness is greater than the target brightness, reduce the current gain based on the adjustment range composed of the fifth preset gain and the first preset gain until the current image brightness reaches the target brightness; in a case that the reduced gain reaches the fifth preset gain and the current image brightness is greater than the target brightness, alternately adjust the current shutter value and the current aperture value until the current image brightness reaches the target brightness.

[0153] FIG. 10 is a schematic diagram of a physical structure of an electronic device according to an embodiment of the present application. As shown in FIG. 10, the electronic device can include a processor 1010, a communications interface 1020, a memory 1030, and a communications bus 1040. The processor 1010, the communications interface 1020, and the memory 1030 can communicate with each other through the communications bus 1040. The processor 1010 can invoke a logical instruction in the memory 1030 to execute an image parameter adjusting method. The method includes: in a case that an infrared light proportion of a current environment is within a preset proportion range, adjusting an intensity of an infrared lamp until the infrared light proportion of the current environment is outside the preset proportion range, the preset proportion range being used to represent a proportion of infrared light in an environment when image definition does not meet a preset definition; in a case that a current image brightness of a captured image does not reach a target brightness, determining an adjustment range of a target exposure factor based on a comparison result of the current image brightness and the target brightness and a change trend of an environmental brightness; and adjusting a current value of the target exposure factor based on the adjustment range.

[0154] Further, the logic instructions in the memory 1030 described above can be implemented in the form of software functional units and sold or used as independent products, and can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application essentially or the parts that make contributions to the prior art or parts of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, and includes a number of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and each medium that can store program codes.

[0155] In another aspect, the present application also provides a computer program product, which comprises a computer program, the computer program can be stored on a computer readable storage medium, and the computer program can be executed by a processor to enable a computer to execute the image parameter adjustment method provided by each of the above methods. The method comprises: in a case where an infrared light proportion of a current environment is located in a preset proportion range, adjusting an intensity of an infrared lamp until the infrared light proportion of the current environment is located outside the preset proportion range, the preset proportion range being used to represent a proportion of infrared light in an environment when image definition does not meet a preset definition; in a case where a current image brightness of a photographed image does not reach a target brightness, determining an adjustment range of a target exposure factor based on a comparison result of the current image brightness and the target brightness and a change trend of an environment brightness; and adjusting a current value of the target exposure factor based on the adjustment range.

[0156] In another aspect, the present application also provides a computer readable storage medium, which stores a computer program, the computer program is executed by a processor to implement the image parameter adjustment method provided by each of the above methods. The method comprises: in a case where an infrared light proportion of a current environment is located in a preset proportion range, adjusting an intensity of an infrared lamp until the infrared light proportion of the current environment is located outside the preset proportion range, the preset proportion range being used to represent a proportion of infrared light in an environment when image definition does not meet a preset definition; in a case where a current image brightness of a photographed image does not reach a target brightness, determining an adjustment range of a target exposure factor based on a comparison result of the current image brightness and the target brightness and a change trend of an environment brightness; and adjusting a current value of the target exposure factor based on the adjustment range.

[0157] The device embodiments described above are merely illustrative, wherein the units described as separate components can or can not be physically separate, and the components displayed as units can or can not be physical units, i.e., can be located in one place, or can be distributed to multiple network units. Part or all of the modules can be selected to achieve the purposes of the embodiments according to actual needs. Those skilled in the art can understand and implement without creative labor.

[0158] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be realized by means of software and the necessary general hardware platform, and of course can also be realized by hardware. Based on such understanding, the above technical solutions can be embodied in the form of a software product, which can be stored in a computer readable storage medium, such as a ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute the methods described in each embodiment or some parts of the embodiments.

[0159] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still modify the technical solutions recorded in each of the foregoing embodiments, or make equivalent replacement for part of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of each embodiment of the present application.

Claims

1. An image parameter adjustment method, comprising: adjusting intensity of an infrared lamp until infrared light proportion in a current environment is out of a preset proportion range, in a case that the infrared light proportion in the current environment is in the preset proportion range, the preset proportion range being used to represent infrared light proportion in an environment corresponding to a case that image definition does not meet a preset definition; determining an adjustment range of a target exposure factor based on a comparison result of a current image brightness and a target brightness, and a change trend of an environment brightness; adjusting a current value of the target exposure factor based on the adjustment range.

2. The image parameter adjustment method of claim 1, wherein, The adjusting intensity of the infrared lamp until the infrared light proportion in the current environment is out of the preset proportion range, in the case that the infrared light proportion in the current environment is in the preset proportion range, comprises: determining a target intensity of the infrared lamp corresponding to a case that the infrared light proportion in the current environment is greater than or equal to a maximum proportion in the preset proportion range, based on the current environment brightness and the infrared light proportion in the current environment, in the case that the infrared light proportion in the current environment is in the preset proportion range; increasing the current intensity of the infrared lamp to the target intensity.

3. The image parameter adjustment method of claim 1, wherein, The determining the adjustment range of the target exposure factor based on the comparison result of the current image brightness and the target brightness, and the change trend of the environment brightness, comprises: determining the target exposure factor as a gain, and a first adjustment range of the gain being between a first preset gain and a second preset gain, the second preset gain being greater than the first preset gain, in a case that the change trend of the environment brightness comprises the environment brightness changing from bright to dark, and the comparison result represents the current image brightness being greater than the target brightness. The adjusting the current value of the target exposure factor based on the adjustment range until the current image brightness tends to or reaches the target brightness, comprises: decreasing the current gain based on the first adjustment range of the gain until the current image brightness reaches the target brightness.

4. The image parameter adjustment method of claim 3, wherein, The adjusting intensity of the infrared lamp comprises: increasing the intensity of the infrared lamp so that the infrared light proportion in the current environment is greater than or equal to the maximum proportion in the preset proportion range, in a case that the change trend of the environment brightness comprises the environment brightness changing from bright to dark.

5. The image parameter adjustment method of claim 3, wherein, The method further comprises: decreasing a value of the first preset gain, decreasing the current gain to the first preset gain after the decrease, until the current image brightness reaches the target brightness, in a case that the current gain decreases to the first preset gain and the current image brightness does not reach the target brightness.

6. The image parameter adjustment method of claim 3, wherein, The method further comprises: determining the target exposure factor as the intensity of the infrared lamp, and a first adjustment range of the intensity of the infrared lamp being between a first preset intensity and a second preset intensity, the second preset intensity being greater than the first preset intensity, in a case that the change trend of the environment brightness comprises the environment brightness changing from bright to dark, and the comparison result represents the current image brightness being less than the target brightness. The adjusting the current value of the target exposure factor based on the adjustment range comprises: increasing the current intensity of the infrared lamp based on a first adjustment range of the intensity of the infrared lamp; in a case where the current intensity of the infrared lamp is increased to the second preset intensity and the current image brightness does not reach the target brightness, increasing the current gain based on an adjustment range composed of a second preset gain and a third preset gain until the current image brightness tends to or reaches the target brightness.

7. The image parameter adjustment method of claim 1, wherein, The determining the adjustment range of the target exposure factor based on the comparison result of the current image brightness and the target brightness and the change trend of the ambient brightness comprises: in a case where the change trend of the ambient brightness comprises that the ambient brightness changes from dark to light and the comparison result represents that the current image brightness is less than the target brightness, determining that the target exposure factor is a gain, and a second adjustment range of the gain is between a second preset gain and a fourth preset gain, the fourth preset gain being greater than the second preset gain and less than a third preset gain; The adjusting the current value of the target exposure factor based on the adjustment range comprises: increasing the current gain based on the second adjustment range of the gain until the current image brightness reaches the target brightness.

8. The image parameter adjustment method of claim 7, wherein, The adjusting the intensity of the infrared lamp comprises: in a case where the change trend of the ambient brightness comprises that the ambient brightness changes from dark to light, reducing the intensity of the infrared lamp so that the proportion of infrared light in the current environment is less than or equal to the minimum proportion in the preset proportion range.

9. The image parameter adjustment method of claim 7, wherein, The method further comprises: in a case where the current gain is increased to the fourth preset gain and the current image brightness does not reach the target brightness, increasing the value of the fourth preset gain, and increasing the current gain to the increased fourth preset gain until the current image brightness reaches the target brightness.

10. The image parameter adjustment method of claim 7, wherein, The method further comprises: in a case where the change trend of the ambient brightness comprises that the ambient brightness changes from dark to light and the comparison result represents that the current image brightness is greater than the target brightness, determining that the target exposure factor is the intensity of the infrared lamp, and a second adjustment range of the intensity of the infrared lamp is between a third preset intensity and a fourth preset intensity, the fourth preset intensity being greater than the third preset intensity and less than a first preset intensity; The adjusting the current value of the target exposure factor based on the adjustment range comprises: reducing the current intensity of the infrared lamp based on a second adjustment range of the intensity of the infrared lamp; in a case where the current intensity of the infrared lamp is reduced to the third preset intensity and the current image brightness is greater than the target brightness, reducing the current gain based on an adjustment range composed of a fifth preset gain and a first preset gain until the current image brightness reaches the target brightness, the fifth preset gain being less than the first preset gain. In a case where the reduced gain reaches the fifth preset gain and the current image brightness is greater than the target brightness, the current shutter value and the current aperture value are adjusted alternately until the current image brightness reaches the target brightness.

11. The image parameter adjustment method according to any one of claims 1 to 10, wherein, The method further comprises: In a case where the change trend of the ambient brightness comprises that the ambient brightness changes from bright to dark, the proportion of infrared light in the current environment is greater than or equal to the maximum proportion in the preset proportion range, and the current image brightness does not reach the target brightness, the current intensity of the infrared lamp is increased based on an adjustment range composed of a third preset intensity and a second preset intensity, in a case where the current intensity of the infrared lamp is increased to the second preset intensity and the current image brightness does not reach the target brightness, the current gain is increased based on an adjustment range composed of the second preset gain and a third preset gain, until the current image brightness tends to or reaches the target brightness; In a case where the change trend of the ambient brightness comprises that the ambient brightness changes from bright to dark, the proportion of infrared light in the current environment is less than or equal to the minimum proportion in the preset proportion range, and the current image brightness does not reach the target brightness, the current gain is increased based on an adjustment range composed of the second preset gain and a fourth preset gain, in a case where the current gain is increased to the fourth preset gain and the current image brightness does not reach the target brightness, the current intensity of the infrared lamp is increased based on an adjustment range composed of a third preset intensity and a first preset intensity, until the current image brightness reaches the target brightness.

12. The image parameter adjustment method of claim 11, wherein, The method further comprises: In a case where the proportion of infrared light in the current environment is greater than or equal to the maximum proportion in the preset proportion range and the current image brightness is greater than the target brightness after the current intensity of the infrared lamp is increased based on the adjustment range composed of the third preset intensity and the first preset intensity, the current gain is reduced based on an adjustment range composed of a second preset gain and the fourth preset gain, until the current image brightness reaches the target brightness.

13. The image parameter adjustment method of claim 11, wherein, The method further comprises: In a case where the proportion of infrared light in the current environment is greater than or equal to the maximum proportion in the preset proportion range and the current image brightness is less than the target brightness after the current intensity of the infrared lamp is increased based on the adjustment range composed of the third preset intensity and the first preset intensity, the current intensity of the infrared lamp is increased based on an adjustment range composed of the first preset intensity and the second preset intensity, in a case where the current intensity of the infrared lamp is increased to the second preset intensity and the current image brightness does not reach the target brightness, the current gain is increased based on an adjustment range composed of a fourth preset gain and a third preset gain, until the current image brightness tends to or reaches the target brightness.

14. The image parameter adjustment method according to any one of claims 1 to 10, wherein, The method further comprises: In a case where the change trend of the ambient brightness includes that the ambient brightness changes from dark to light, the infrared light proportion of the current environment is less than or equal to the minimum proportion in the preset proportion range, and the current image brightness is greater than the target brightness, the current intensity of the infrared lamp is reduced based on an adjustment range composed of a third preset intensity and a second preset intensity, in a case where the current intensity of the infrared lamp is reduced to the third preset intensity and the current image brightness is greater than the target brightness, the current gain is reduced based on an adjustment range composed of a fifth preset gain and a first preset gain, until the current image brightness reaches the target brightness; in a case where the reduced gain reaches the fifth preset gain and the current image brightness is greater than the target brightness, the current shutter value and the current aperture value are adjusted alternately, until the current image brightness reaches the target brightness. In a case where the change trend of the image brightness includes that the image brightness changes from dark to light, the infrared light proportion of the current environment is greater than or equal to the maximum proportion in the preset proportion range, and the current image brightness is greater than the target brightness, the current gain is reduced based on an adjustment range composed of the first preset gain and the second preset gain, in a case where the current gain is reduced to the first preset gain and the current image brightness is greater than the target brightness, the current intensity of the infrared lamp is reduced based on an adjustment range composed of a fourth preset intensity and a second preset intensity, until the current image brightness reaches the target brightness.

15. The image parameter adjustment method of claim 14, wherein, The current intensity of the infrared lamp is reduced based on the adjustment range composed of the fourth preset intensity and the second preset intensity, until the current image brightness reaches the target brightness, including: In a case where the infrared light proportion of the current environment is less than or equal to the minimum proportion in the preset proportion range and the current image brightness is less than the target brightness after the current intensity of the infrared lamp is reduced based on the adjustment range composed of the fourth preset intensity and the second preset intensity, the focusing motor is controlled to focus, and the current gain is increased based on an adjustment range composed of a second preset gain and a fourth preset gain, until the current image brightness reaches the target brightness; In a case where the infrared light proportion of the current environment is less than or equal to the minimum proportion in the preset proportion range and the current image brightness is greater than the target brightness after the current intensity of the infrared lamp is reduced based on the adjustment range composed of the fourth preset intensity and the second preset intensity, the current intensity of the infrared lamp is reduced based on an adjustment range composed of a third preset intensity and a fourth preset intensity, in a case where the current intensity of the infrared lamp is reduced to the third preset intensity and the current image brightness is greater than the target brightness, the current gain is reduced based on an adjustment range composed of a fifth preset gain and a first preset gain, until the current image brightness reaches the target brightness; in a case where the reduced gain reaches the fifth preset gain and the current image brightness is greater than the target brightness, the current shutter value and the current aperture value are adjusted alternately, until the current image brightness reaches the target brightness.

16. An image parameter adjustment apparatus, comprising: The adjusting unit is configured to adjust the intensity of the infrared lamp until the proportion of infrared light in the current environment is out of the preset proportion range, when the proportion of infrared light in the current environment is in the preset proportion range, the preset proportion range is used to represent the proportion of infrared light in the environment when the image definition does not meet the preset definition. The determining unit is configured to determine an adjustment range of a target exposure factor based on a comparison result of a current image brightness of a photographed image and the target brightness, and a change trend of the environment brightness, when the current image brightness does not reach the target brightness. The first adjusting unit is configured to adjust a current value of the target exposure factor based on the adjustment range.

17. An electronic device comprising a memory, a processor, and a computer program stored on the memory and running on the processor, characterized in that, The processor executes the computer program to implement the image parameter adjustment method in any one of claims 1 to 15.

18. A computer readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the image parameter adjustment method in any one of claims 1 to 15.

Citation Information

Patent Citations

  • Camera shooting method and device, storage medium and camera

    CN110958394A

  • Automatic focusing method, device and equipment and storage medium

    CN111385466A

  • Infrared lamp light supplementing method and device for iris image acquisition, medium and equipment

    CN116962891A

  • Image processing device, image processing method, program, and imaging device

    US20180146144A1

  • Method for adjusting power of infrared lamp, and photographic equipment

    WO2018121185A1