Light source and automatic exposure linkage control method and system

By using automatic exposure and light source adjustment algorithms in the light source linkage control system, the exposure amount is predicted and the exposure amount is redistributed, which solves the image brightness changes and flickering problems caused by light source gear adjustment, and realizes the stability of image brightness and the maintenance of system gain.

CN119865705APending Publication Date: 2025-04-22YIJIADA MEDICAL TECH (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510066730.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-16
Publication Date
2025-04-22

AI Technical Summary

Technical Problem

After the existing light source linkage control system has stabilized the image brightness, the light source gear adjustment results in the exposure time and exposure gain not being adjusted, causing image brightness to change and flicker.

Method used

The automatic exposure algorithm and light source adjustment algorithm are used to predict the exposure amount of the next frame based on the exposure time and exposure gain of the current frame, and the system gain is calculated based on the light source gear, so that the image brightness remains unchanged through exposure redistribution.

Benefits of technology

When the light source gear changes, by adjusting the exposure time and exposure gain, the system gain remains unchanged, and the image brightness changes and flickering phenomena are avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119865705A_ABST
    Figure CN119865705A_ABST
Patent Text Reader

Abstract

The invention provides a light source and automatic exposure linkage control method and system, and the method comprises the steps: obtaining the predicted exposure quantity of a next frame based on the exposure time and exposure gain of a current frame through employing an automatic exposure algorithm, and enabling the predicted exposure quantity to be obtained through the calculation of the predicted exposure time and the predicted exposure gain; calculating the actual light source gear of the next frame based on the current light source gear by adopting a light source adjusting algorithm; calculating a current system gain according to the predicted exposure and a current light source gear; calculating actual exposure after redistribution according to the current system gain and the actual light source gear; and calculating the actual exposure time and the actual exposure gain of the next frame according to the redistributed actual exposure quantity. According to the light source and automatic exposure linkage control method and system, when the gear of the light source changes, the exposure is adjusted and distributed again, so that the brightness of the whole image is not changed, and the flicker condition is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of exposure control technology, and in particular to a method and system for controlling the linkage between a light source and automatic exposure. Background Art

[0002] In the traditional automatic exposure light linkage solution, when the current image brightness is stable, the consideration is given to whether to adjust the light source position according to the current exposure time and exposure gain. Once the exposure control system determines that the light source position needs to be changed, it will add or subtract based on the current light source position. For example, patent CN112565621A triggers the light source adjustment enable through a counter.

[0003] However, there is a serious problem in the existing light source linkage. For example, in patent CN112565621A, first, the light source linkage is turned on after the image brightness is stable. Once the image brightness is stable, any slight brightness change will be keenly noticed by the observer. In addition, the change in the light source brightness gear means that the light output of the entire exposure control system has changed, but the exposure time and exposure gain values ​​issued by the entire system have not been adjusted accordingly. In other words, at the moment when the image brightness is stable and the light source gear is adjusted, the exposure time and exposure gain have not changed, but the light output of the light source has changed. The consequence of this is that the image brightness changes.

[0004] In summary, in the existing exposure control method, when the image brightness reaches stability, the light source position begins to be adjusted, and the exposure time and exposure gain values ​​sent down are not adjusted accordingly. The change of the light source position will inevitably cause the image brightness to change. For the observer, the phenomenon seen is that after the image brightness stabilizes, it will suddenly flicker, then reach stability, and then suddenly flicker again. Summary of the invention

[0005] In response to the problems in the prior art, the purpose of the present application is to provide a method and system for controlling the linkage between a light source and automatic exposure. When the light source position changes, the exposure amount is also readjusted and allocated so that the brightness of the entire image remains unchanged, thereby avoiding the occurrence of flicker.

[0006] The present application provides a method for controlling a light source and automatic exposure linkage, comprising the following steps:

[0007] An automatic exposure algorithm is used to obtain a predicted exposure amount of the next frame based on the exposure time and exposure gain of the current frame, wherein the predicted exposure amount is calculated by the predicted exposure time and the predicted exposure gain;

[0008] Using the light source adjustment algorithm, based on the current light source position, the actual light source position of the next frame is calculated;

[0009] Calculate the current system gain based on the predicted exposure and the current light source position;

[0010] Calculate the actual exposure after redistribution according to the current system gain and the actual light source position;

[0011] The actual exposure time and actual exposure gain of the next frame are calculated according to the reallocated actual exposure amount.

[0012] In some embodiments, the exposure amount is the sum of an exposure time parameter and an exposure gain parameter, the exposure time parameter is a log function value of the predicted exposure time, and the exposure gain parameter is a log function value of the exposure gain.

[0013] In some embodiments, the current system gain is calculated according to the predicted exposure and the current light source gear gain, and the current light source gear gain is the log function value of the current light source gear;

[0014] The actual exposure after redistribution is calculated according to the current system gain and the actual light source gear gain, wherein the actual light source gear gain is a log function value of the actual light source gear.

[0015] In some embodiments, the current system gain is the sum of the predicted exposure and the current light source gear gain, and the actual exposure after redistribution is the difference between the current system gain and the actual light source gear gain.

[0016] In some embodiments, calculating the actual exposure time and the actual exposure gain of the next frame according to the reallocated actual exposure amount includes the following steps:

[0017] Determine whether the preset exposure time adjustment condition is met according to the actual exposure amount after redistribution;

[0018] If the exposure time adjustment condition is met, the actual exposure gain of the next frame is set to the minimum exposure gain, and the actual exposure time of the next frame is calculated according to the reallocated actual exposure amount and the minimum exposure gain;

[0019] If the exposure time adjustment condition is not met, the actual exposure time of the next frame is set to the maximum exposure time, and the actual exposure gain of the next frame is calculated according to the reallocated actual exposure amount and the maximum exposure time.

[0020] In some embodiments, judging whether the preset exposure time adjustment condition is met according to the actual exposure amount after redistribution includes the following steps:

[0021] Calculate a first threshold value according to the maximum exposure time and the minimum exposure gain;

[0022] Determine whether the actual exposure after redistribution is less than or equal to a first threshold, wherein the first threshold is equal to the sum of the log function value of the maximum exposure time and the log function value of the minimum exposure gain;

[0023] If yes, it is determined that the preset exposure time adjustment condition is met;

[0024] Otherwise, it is determined that the preset exposure time adjustment condition is not met.

[0025] In some embodiments, calculating the actual exposure time of the next frame according to the reallocated actual exposure amount and the minimum exposure gain includes the following steps:

[0026] Calculate the actual exposure time parameter of the next frame according to the reallocated actual exposure amount and the minimum exposure gain parameter, where the minimum exposure gain parameter is the log function value of the minimum exposure gain;

[0027] The actual exposure time of the next frame is calculated according to the actual exposure time parameter of the next frame, where the actual exposure time parameter of the next frame is a log function value of the actual exposure time of the next frame.

[0028] In some embodiments, calculating the actual exposure gain of the next frame according to the reallocated actual exposure and the maximum exposure time includes the following steps:

[0029] Calculate the actual exposure gain parameter of the next frame according to the reallocated actual exposure amount and the maximum exposure time parameter, where the maximum exposure time parameter is the log function value of the maximum exposure time;

[0030] The actual exposure gain of the next frame is calculated according to the actual exposure gain parameter of the next frame, where the actual exposure gain parameter of the next frame is a log function value of the actual exposure gain of the next frame.

[0031] In some embodiments, after calculating the actual exposure time of the next frame according to the reallocated actual exposure amount and the minimum exposure gain, the following steps are also included: determining whether the actual exposure time is less than or equal to the preset minimum exposure time, and if so, making the actual exposure time of the next frame equal to the minimum exposure time;

[0032] After calculating the actual exposure gain of the next frame according to the reallocated actual exposure amount and the maximum exposure time, the following steps are also included: determining whether the actual exposure gain is greater than or equal to the maximum exposure gain, and if so, making the actual exposure gain of the next frame equal to the maximum exposure gain.

[0033] The embodiment of the present application further provides a light source and automatic exposure linkage control system, which is used to implement a light source and automatic exposure linkage control method, and the system includes:

[0034] An automatic exposure module, used to obtain a predicted exposure amount of a next frame based on an exposure time and an exposure gain of a current frame using an automatic exposure algorithm, wherein the predicted exposure amount is calculated by the predicted exposure time and the predicted exposure gain;

[0035] A light source adjustment module is used to calculate the actual light source position of the next frame based on the current light source position by using a light source adjustment algorithm;

[0036] An exposure redistribution module is used to calculate the current system gain according to the predicted exposure and the current light source position; and to calculate the actual exposure after redistribution according to the current system gain and the actual light source position;

[0037] The exposure control module is used to calculate the actual exposure time and actual exposure gain of the next frame according to the reallocated actual exposure amount.

[0038] The light source and automatic exposure linkage control method and system provided in this application have the following advantages:

[0039] By adopting the present application, after obtaining the predicted exposure of the next frame and the actual light source position of the next frame, the current system gain is calculated, and then the exposure is redistributed according to the current system gain and the actual light source position, and then the actual exposure time and actual exposure gain actually issued are obtained, and the linkage control of the next frame is completed, so that when the actual light source position changes relative to the current light source position, the system gain can be kept unchanged, thereby ensuring that the image brightness does not change and avoiding the occurrence of flicker. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings.

[0041] Figure 1 is a flow chart of a method for controlling a light source and automatic exposure linkage according to an embodiment of the present application;

[0042] Figure 2 is a detailed flow chart of a light source and automatic exposure linkage control method according to an embodiment of the present application;

[0043] Figure 3 It is a structural schematic diagram of a light source and automatic exposure linkage control system according to an embodiment of the present application. DETAILED DESCRIPTION

[0044] The example embodiments will now be described more fully with reference to the accompanying drawings. However, the example embodiments can be implemented in a variety of forms and should not be construed as being limited to the embodiments set forth herein; on the contrary, these embodiments are provided so that the present application will be comprehensive and complete, and the concept of the example embodiments will be fully conveyed to those skilled in the art. The same reference numerals in the figures represent the same or similar structures, and thus their repeated descriptions will be omitted. "Or" and "or" in the specification may both mean "and" or "or". Although the terms "upper", "lower", "between", etc. may be used in this specification to describe different exemplary features and elements of the present application, these terms are used herein only for convenience, such as according to the directions of the examples described in the accompanying drawings. Nothing in this specification should be construed as requiring a specific three-dimensional direction of the structure to fall within the scope of the present application. Although "first" or "second" etc. are used in this specification to represent certain features, they are only used to represent the function, and are not used as a limitation on the number and importance of specific features.

[0045] In order to solve the technical problems in the prior art, the present application provides a method for controlling the linkage between a light source and automatic exposure, which is applied to the scene of the linkage control between a light source and an automatic exposure of a camera. Figure 1 As shown, the light source and automatic exposure linkage control method includes the following steps:

[0046] S100: using an automatic exposure algorithm to obtain a predicted exposure amount of a next frame based on the exposure time and exposure gain of a current frame, wherein the predicted exposure amount is calculated by the predicted exposure time and the predicted exposure gain;

[0047] The automatic exposure algorithm may adopt an existing camera automatic exposure algorithm, and predict the exposure time and exposure gain of the next frame according to the measurement structure of the light metering element and the exposure time and exposure gain of the current frame. After obtaining the predicted exposure time and predicted exposure gain of the next frame, the predicted exposure amount of the next frame is further calculated.

[0048] In this embodiment, the exposure is defined as the sum of the exposure time parameter and the exposure gain parameter, the exposure time parameter is the log function value of the predicted exposure time, and the exposure gain parameter is the log function value of the exposure gain; correspondingly, the predicted exposure is equal to the sum of the predicted exposure time parameter and the predicted exposure gain parameter, the predicted exposure time parameter is the log function value of the predicted exposure time, and the predicted exposure gain parameter is the log function value of the predicted exposure gain;

[0049] S200: using a light source adjustment algorithm to calculate the actual light source position of the next frame based on the current light source position;

[0050] Here, the light source adjustment algorithm may adopt an existing light source adjustment algorithm, for example, according to the current light source position, the predicted exposure time of the next frame and the predicted exposure gain, the actual light source position of the next frame is calculated, and the actual light source position is the light source position corresponding to the next frame of image shooting;

[0051] S300: Calculating the current system gain according to the predicted exposure and the current light source position;

[0052] The system gain is a physical quantity determined by the exposure time, exposure gain and light source level, which corresponds to the image brightness. When the system gain remains unchanged, the image brightness can be kept unchanged.

[0053] S400: Calculating the actual exposure after redistribution according to the current system gain and the actual light source position;

[0054] In this embodiment, the reallocated actual exposure is equal to the sum of the actual exposure time parameter of the next frame and the actual exposure gain parameter, the actual exposure time parameter is the log function value of the actual exposure time, and the actual exposure gain parameter is the log function value of the actual exposure gain;

[0055] When the actual light source position does not change relative to the current light source position, the reallocated actual exposure does not change relative to the predicted exposure. When the actual light source position changes relative to the current light source position, the reallocated actual exposure will also change accordingly to keep the system gain unchanged, that is, keep the image brightness unchanged.

[0056] S500: Calculating the actual exposure time and actual exposure gain of the next frame according to the reallocated actual exposure amount;

[0057] The calculated actual exposure time and actual exposure gain are the exposure time and exposure gain actually used when capturing the next frame of image.

[0058] By adopting the light source and automatic exposure linkage control method of the present application, after obtaining the predicted exposure of the next frame through step S100 and obtaining the actual light source position of the next frame through step S200, the current system gain is calculated through step S300, and then the exposure is redistributed according to the current system gain and the actual light source position through step S400, and then the actual exposure time and actual exposure gain actually issued are obtained through step S500 to complete the linkage control of the next frame, so that when the actual light source position changes relative to the current light source position, the system gain can be kept unchanged, thereby ensuring that the image brightness does not change and avoiding the occurrence of flicker.

[0059] Figure 2 FIG. 1 is a detailed flow chart of a light source and automatic exposure linkage control method according to an embodiment of the present application. Figure 2 As an example, the following specifically introduces the implementation of the automatic exposure linkage control method in a specific example. It can be understood that: Figure 2 The steps shown in and the following description are only examples and are not intended to limit the scope of protection of the present application.

[0060] like Figure 2 As shown, before step S100, step S010 is also included: reading the exposure time and exposure gain of the current frame. Here, the exposure time of the current frame is defined as T_curr, and the exposure gain of the current frame is defined as G_curr.

[0061] In this embodiment, step S100 includes the following steps:

[0062] Using the automatic exposure algorithm, based on the exposure time T_curr and exposure gain G_curr of the current frame, the predicted exposure time T_middle and predicted exposure gain G_middle of the next frame are obtained;

[0063] The predicted exposure time parameter T_middle_db is calculated based on the predicted exposure time T_middle, and the predicted exposure gain parameter G_middle_db is calculated based on the predicted exposure gain G_middle; wherein:

[0064] T_middle_db=log(T_middle) (Formula 1)

[0065] G_middle_db=log(G_middle) (Formula 2)

[0066] Calculate the sum of the predicted exposure time parameter T_middle_db and the predicted exposure gain parameter G_middle_db to obtain the predicted exposure of the next frame, that is, the predicted exposure is equal to (T_middle_db+G_middle_db). By processing the log function, the subsequent processing and calculation are all converted to the logarithmic domain. The db in the above parameters represents the new parameters after the corresponding parameters are converted to the logarithmic domain. In this application, the base of the log function is 2, 10 or other optional values, and the following is an example of base 2.

[0067] Before step S200, the method further includes step S020: reading the current light source gear. Here, the current light source gear is defined as Degree_c. In step S200, the actual light source gear of the next frame is defined as Degree_n.

[0068] In this embodiment, the current system gain is equal to the sum of the predicted exposure and the current light source gear gain. Step S300 includes the following steps:

[0069] The current light source gear gain Degree_c_db is calculated according to the current light source gear Degree_c, where:

[0070] Degree_c_db=log(Degree_c) (Formula 3)

[0071] The current system gain GAIN_C is calculated based on the predicted exposure (T_middle_db+G_middle_db) and the current light source gear gain Degree_c_db, where:

[0072] GAIN_C=T_middle_db+G_middle_db+Degree_c_db (Formula 4)

[0073] Here, the current system gain refers to the system gain when there is no change in the light source gear position and only the exposure time and exposure gain are changed.

[0074] When the actual light source position changes compared to the current light source position, if the predicted exposure is still used, the predicted system gain will change to GAIN_Mid, where:

[0075] GAIN_Mid=T_middle_db+G_middle_db+Degree_n_db (Formula 5)

[0076] The predicted system gain here refers to the system gain when the light source position becomes the actual light source position, and the exposure time and exposure gain become predicted values. Degree_n_db represents the value after the actual light source position Degree_n is converted to the logarithmic domain, that is, log(Degree_n). Since Degree_n_db and Degree_c_db are not equal, the predicted system gain GAIN_Mid will be unequal to the current system gain GAIN_C, thereby causing a change in image brightness. In order to keep the image brightness unchanged after the light source position changes and the system gain unchanged, the present application further adopts the above-mentioned step S400 to redistribute the exposure.

[0077] In this embodiment, the actual exposure after redistribution is the difference between the current system gain and the actual light source gear gain. Step S400 includes the following steps:

[0078] The actual light source position gain Degree_n_db is calculated according to the actual light source position Degree_n, where:

[0079] Degree_n_db=log(Degree_n) (Formula 6)

[0080] The actual exposure after redistribution (T_n_db+G_n_db) is calculated based on the current system gain GAIN_C and the actual light source gear gain Degree_n_db, where:

[0081] T_n_db+G_n_db=GAIN_C-Degree_n_db (Formula 7)

[0082] Among them, T_n_db is the actual exposure time parameter of the next frame, that is, the log function value log(T_n) of the actual exposure time T_n of the next frame, and G_n_db is the actual exposure gain parameter of the next frame, that is, the log function value log(G_n) of the actual exposure gain G_n of the next frame.

[0083] Therefore, after redistributing the exposure, the actual system gain GAIN_N becomes:

[0084] GAIN_N=T_n_db+G_n_db+Degree_n_db (Formula 8)

[0085] Combining Formula 7 and Formula 8, it can be seen that the current system gain GAIN_C is the same as the actual system gain GAIN_N, which keeps the image brightness unchanged and avoids flickering.

[0086] After the reallocated actual exposure is obtained in step S400, the actual exposure time and actual exposure gain of the next frame are calculated in step S500, and the sum of the log function value of the actual exposure time and the log function value of the actual exposure gain is equal to the actual exposure, thereby achieving the effect of unchanged system gain, that is, unchanged image. When adjusting the exposure time and exposure gain, since increasing the exposure time does not affect the image quality, while increasing the exposure gain will introduce unwanted noise, the exposure time is adjusted first, and when the exposure time reaches the maximum value, the exposure gain is adjusted.

[0087] like Figure 2 As shown, in this embodiment, the step S500: calculating the actual exposure time and the actual exposure gain of the next frame according to the reallocated actual exposure amount includes the following steps:

[0088] S510: judging whether the reallocated actual exposure meets the preset exposure time adjustment condition;

[0089] If the exposure time adjustment condition is met, then S520: the actual exposure gain of the next frame is set to the minimum exposure gain, and S530: the actual exposure time of the next frame is calculated according to the reallocated actual exposure amount and the minimum exposure gain;

[0090] If the exposure time adjustment condition is not met, then S540: the actual exposure time of the next frame is set to the maximum exposure time, and S550: the actual exposure gain of the next frame is calculated according to the reallocated actual exposure amount and the maximum exposure time.

[0091] The actual exposure is defined as A, that is, A=T_n_db+G_n_db. The step S510: judging whether the preset exposure time adjustment condition is met according to the reallocated actual exposure includes the following steps:

[0092] Calculate a first threshold value B according to the maximum exposure time T_max and the minimum exposure gain G_min;

[0093] The maximum exposure time and minimum exposure gain here refer to the maximum exposure time and minimum exposure gain set internally in the shooting camera;

[0094] In this embodiment, the first threshold value B is equal to the sum of the log function value of the maximum exposure time T_max and the log function value of the minimum exposure gain G_min, that is:

[0095] B = log(T_max) + log(G_min) (Formula 9)

[0096] Determine whether the actual exposure amount A after redistribution is less than or equal to the first threshold value B;

[0097] If A≤B, it is determined that the preset exposure time adjustment condition is met, which means that only the exposure time needs to be adjusted at this time, and the actual exposure gain is kept at the minimum value, which can minimize the noise caused by the exposure gain;

[0098] Otherwise, A>B, and it is determined that the preset exposure time adjustment condition is not met, which means that only the exposure gain needs to be adjusted at this time, keeping the actual exposure time at the maximum value, and adjusting the exposure gain to meet the shooting exposure requirements.

[0099] When A≤B, in step S520, the actual exposure gain of the next frame is made equal to the minimum exposure gain, that is, G_n=G_min. Step S530: Calculating the actual exposure time of the next frame according to the reallocated actual exposure and the minimum exposure gain, includes the following steps:

[0100] The actual exposure time parameter T_n_db of the next frame is calculated according to the reallocated actual exposure amount A and the minimum exposure gain parameter log(G_min), where the minimum exposure gain parameter log(G_min) is the log function value of the minimum exposure gain G_min;

[0101] The actual exposure time T_n of the next frame is calculated according to the actual exposure time parameter T_n_db of the next frame. The actual exposure time parameter T_n_db of the next frame is the log function value of the actual exposure time T_n of the next frame. Therefore, the actual exposure time T_n of the next frame satisfies:

[0102] T_n=2^(T_n_db+G_n_db-log(G_min)) (Formula 10)

[0103] The actual exposure time and actual exposure gain obtained by the above method can meet the actual exposure requirements. In this embodiment, after the actual exposure time T_n of the next frame is obtained according to formula 10, it is necessary to determine whether the calculated actual exposure time T_n is less than or equal to the minimum exposure time T_min. If the actual exposure time T_n is greater than the minimum exposure time T_min, the value calculated by formula 10 is used as the actual exposure time of the next frame. If the actual exposure time T_n is less than or equal to the minimum exposure time T_min, T_n=T_min, that is, to ensure that the actual exposure time will not be less than the minimum exposure time allowed. Here, the minimum exposure time is also the minimum exposure time set inside the camera.

[0104] When A>B, in step S540, the actual exposure time of the next frame is equal to the maximum exposure time, that is, T_n=T_max. Step S550: Calculating the actual exposure gain of the next frame according to the reallocated actual exposure and the maximum exposure time, includes the following steps:

[0105] The actual exposure gain parameter G_n_db of the next frame is calculated according to the reallocated actual exposure amount A and the maximum exposure time parameter log(T_max), where the maximum exposure time parameter log(T_max) is the log function value of the maximum exposure time T_max;

[0106] The actual exposure gain G_n of the next frame is calculated according to the actual exposure gain parameter G_n_db of the next frame, and the actual exposure gain parameter G_n_db of the next frame is the log function value of the actual exposure gain G_n of the next frame. Therefore, the actual exposure gain G_n of the next frame satisfies:

[0107] G_n=2^(T_n_db+G_n_db-log(T_max) (Formula 11)

[0108] The actual exposure time and actual exposure gain obtained by the above method can meet the actual exposure requirements. In this embodiment, after the actual exposure gain G_n of the next frame is calculated according to formula 11, it is also necessary to determine whether the actual exposure gain G_n is greater than or equal to the maximum exposure gain G_max. If the actual exposure gain G_n is less than the maximum exposure gain G_max, the value calculated by formula 11 is used as the actual exposure gain of the next frame. If the actual exposure gain G_n is greater than or equal to the maximum exposure gain G_max, G_n=G_max. That is, it is ensured that the actual exposure gain will not exceed the maximum exposure gain allowed. Here, the maximum exposure gain is also the maximum exposure gain set inside the camera.

[0109] Through the above steps, the actual light source gear Degree_n, the actual exposure time T_n and the actual exposure gain G_n of the next frame are finally obtained as the parameters actually sent to the light source and the camera when shooting the next frame.

[0110] like Figure 3 As shown, the embodiment of the present application also provides a light source and automatic exposure linkage control system, which is used to implement a light source and automatic exposure linkage control method, and the system includes:

[0111] The automatic exposure module M100 is used to obtain a predicted exposure amount of the next frame based on the exposure time and exposure gain of the current frame by using an automatic exposure algorithm, wherein the predicted exposure amount is calculated by the predicted exposure time and the predicted exposure gain;

[0112] The light source adjustment module M200 is used to calculate the actual light source position of the next frame based on the current light source position by using a light source adjustment algorithm;

[0113] The exposure redistribution module M300 is used to calculate the current system gain according to the predicted exposure and the current light source position; and calculate the actual exposure after redistribution according to the current system gain and the actual light source position;

[0114] The exposure control module M400 is used to calculate the actual exposure time and actual exposure gain of the next frame according to the reallocated actual exposure amount.

[0115] By adopting the light source and automatic exposure linkage control system of the present application, after obtaining the predicted exposure of the next frame through the automatic exposure module M100 and obtaining the actual light source position of the next frame through the light source adjustment module M200, the current system gain is calculated through the exposure redistribution module M300, and the exposure is redistributed according to the current system gain and the actual light source position. Then, the actual exposure time and actual exposure gain actually issued are obtained through the exposure control module M400 to complete the linkage control of the next frame, so that when the actual light source position changes relative to the current light source position, the system gain can be kept unchanged, thereby ensuring that the image brightness does not change and avoiding the occurrence of flicker.

[0116] In the light source and automatic exposure linkage control system, the functions of each module can be implemented by using the specific implementation steps of the light source and automatic exposure linkage control method described above, which will not be described in detail here.

[0117] The above content is a further detailed description of the present application in combination with specific preferred implementation methods, and it cannot be determined that the specific implementation of the present application is limited to these descriptions. For ordinary technicians in the technical field to which the present application belongs, several simple deductions or substitutions can be made without departing from the concept of the present application, which should be deemed to fall within the scope of protection of the present application.

Claims

1. A light source and automatic exposure linkage control method, characterized in that: include: Using an automatic exposure algorithm, based on the exposure time and exposure gain of the current frame, a predicted exposure amount of the next frame is obtained, wherein the predicted exposure amount is calculated by the predicted exposure time and the predicted exposure gain; Using the light source adjustment algorithm, based on the current light source position, the actual light source position of the next frame is calculated; Calculating the current system gain according to the predicted exposure and the current light source position; Calculate the actual exposure after redistribution according to the current system gain and the actual light source position; The actual exposure time and the actual exposure gain of the next frame are calculated according to the reallocated actual exposure amount.

2. The light source and automatic exposure linkage control method according to claim 1, characterized in that: The exposure amount is equal to the sum of an exposure time parameter and an exposure gain parameter, the exposure time parameter is a log function value of the exposure time, and the exposure gain parameter is a log function value of the exposure gain.

3. The light source and automatic exposure linkage control method according to claim 1, characterized in that: Calculate the current system gain according to the predicted exposure and the current light source gear gain, wherein the current light source gear gain is the log function value of the current light source gear; The actual exposure after redistribution is calculated according to the current system gain and the actual light source gear gain, wherein the actual light source gear gain is a log function value of the actual light source gear.

4. The light source and automatic exposure linkage control method according to claim 3, characterized in that: The current system gain is the sum of the predicted exposure and the current light source gear gain, and the reallocated actual exposure is the difference between the current system gain and the actual light source gear gain.

5. The light source and automatic exposure linkage control method according to claim 1, characterized in that: Calculating the actual exposure time and actual exposure gain of the next frame according to the reallocated actual exposure amount includes the following steps: Determining whether the preset exposure time adjustment condition is met according to the actual exposure amount after the reallocation; If the exposure time adjustment condition is met, the actual exposure gain of the next frame is set to the minimum exposure gain, and the actual exposure time of the next frame is calculated according to the reallocated actual exposure amount and the minimum exposure gain; If the exposure time adjustment condition is not met, the actual exposure time of the next frame is set to the maximum exposure time, and the actual exposure gain of the next frame is calculated according to the reallocated actual exposure amount and the maximum exposure time.

6. The light source and automatic exposure linkage control method according to claim 5, characterized in that: Judging whether the actual exposure amount after the reallocation meets the preset exposure time adjustment condition comprises the following steps: Calculate a first threshold value according to the maximum exposure time and the minimum exposure gain, wherein the first threshold value is equal to the sum of the log function value of the maximum exposure time and the log function value of the minimum exposure gain; Determining whether the actual exposure after the reallocation is less than or equal to the first threshold; If yes, it is determined that the preset exposure time adjustment condition is met; Otherwise, it is determined that the preset exposure time adjustment condition is not met.

7. The light source and automatic exposure linkage control method according to claim 5, characterized in that: Calculating the actual exposure time of the next frame according to the reallocated actual exposure and the minimum exposure gain comprises the following steps: Calculate the actual exposure time parameter of the next frame according to the reallocated actual exposure amount and the minimum exposure gain parameter, wherein the minimum exposure gain parameter is the log function value of the minimum exposure gain; The actual exposure time of the next frame is calculated according to the actual exposure time parameter of the next frame, where the actual exposure time parameter of the next frame is a log function value of the actual exposure time of the next frame.

8. The light source and automatic exposure linkage control method according to claim 5, characterized in that: Calculating the actual exposure gain of the next frame according to the reallocated actual exposure and the maximum exposure time comprises the following steps: Calculate the actual exposure gain parameter of the next frame according to the reallocated actual exposure amount and the maximum exposure time parameter, wherein the maximum exposure time parameter is the log function value of the maximum exposure time; The actual exposure gain of the next frame is calculated according to the actual exposure gain parameter of the next frame, where the actual exposure gain parameter of the next frame is a log function value of the actual exposure gain of the next frame.

9. The light source and automatic exposure linkage control method according to claim 5, characterized in that: After calculating the actual exposure time of the next frame according to the reallocated actual exposure amount and the minimum exposure gain, the method further includes the following steps: determining whether the actual exposure time is less than or equal to a preset minimum exposure time, and if so, making the actual exposure time of the next frame equal to the minimum exposure time; After calculating the actual exposure gain of the next frame according to the reallocated actual exposure and the maximum exposure time, the following step is also included: determining whether the actual exposure gain is greater than or equal to the maximum exposure gain; if so, making the actual exposure gain of the next frame equal to the maximum exposure gain.

10. A light source and automatic exposure linkage control system, characterized in that: The system is used to implement the light source and automatic exposure linkage control method according to any one of claims 1 to 9, and comprises: An automatic exposure module, used to obtain a predicted exposure amount of the next frame based on the exposure time and exposure gain of the current frame using an automatic exposure algorithm, wherein the predicted exposure amount is calculated by the predicted exposure time and the predicted exposure gain; A light source adjustment module is used to calculate the actual light source position of the next frame based on the current light source position by using a light source adjustment algorithm; An exposure redistribution module, used to calculate the current system gain according to the predicted exposure and the current light source position; and to calculate the actual exposure after redistribution according to the current system gain and the actual light source position; The exposure control module is used to calculate the actual exposure time and actual exposure gain of the next frame according to the reallocated actual exposure amount.