A method for controlling trigger delay of light source controller
By combining the delay value and environmental factors of the light source controller and the camera, different control signals and modes are generated, the problem of delay control accuracy under the influence of environmental factors in the prior art is solved, and the synchronization between the light source controller and the camera is improved. and analytical stability.
Patent Information
- Application Number
- CN202411201933.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-29
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2044-08-29
AI Technical Summary
The existing light source controller trigger delay control method cannot accurately adapt to environmental factors, resulting in low visual detection accuracy and efficiency, and delay problems during mode switching.
By conducting time-delay experiments on the light source controller and the camera, obtaining control delay values and photography delay values, generating environmental interference values based on environmental factors, setting threshold range division levels, generating different control signals for triggering delay control, and Mode switching is achieved through monitoring and analysis and floating tuning mechanisms dynamically adjusting the monitoring cycle.
It realizes more accurate time-lapse control and mode adaptability adjustment, improves synchronization between the light source controller and the camera, ensures sufficient effective image data analysis, and improves stability and reliability.
Smart Images

Figure CN118714461B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of machine vision, and in particular to a light source controller trigger delay control method. Background Art
[0002] Machine vision is to use machines to replace human eyes for measurement and judgment. The machine vision system converts the captured target into an image signal through a machine vision product (i.e., an image capture device, which is divided into CMOS and CCD), transmits it to a dedicated image processing system, obtains the morphological information of the captured target, and converts it into a digital signal based on pixel distribution, brightness, color and other information. During the image capture process of the machine vision system, auxiliary lighting is required to improve the clarity and contrast of the image. However, there will be a certain delay in the signal reception between the light source controller and the camera, and the signal reception delay characteristics of the light source controller and the camera are different. The existing light source controller trigger delay control method cannot adaptively adjust the delay control method based on the delay characteristic analysis results of the light source controller and the camera, resulting in low visual detection accuracy and efficiency.
[0003] The Chinese invention patent with application number 202310769427.7 provides a light source controller trigger delay control method. By conducting delay experiments on the light source controller and the camera, the control delay value and the photographic delay value are obtained, and then the corresponding delay control signal is generated according to the numerical values of the control delay value and the photographic delay value, and delay control of different modes is performed. The monitoring period is set to detect and analyze the photographic image to adjust the mode.
[0004] However, in the prior art patents, only control delay values and camera delay values are used to perform delay control in different modes and a monitoring period is set to analyze and adjust the mode, which ignores the impact of environmental factors on photography and cannot ensure that a sufficient amount of valid image data can be obtained for monitoring and analysis in each monitoring period, resulting in the inability to accurately achieve delay control. In addition, there is still a delay during the mode switching process, resulting in reduced accuracy. Summary of the invention
[0005] The present application solves the problem in the prior art that environmental factors are ignored and delay control cannot be accurately implemented by providing a method for triggering delay control of a light source controller, thereby achieving the technical effect of accurately implementing delay control according to environmental factors.
[0006] The present application provides a light source controller trigger delay control method, the method comprising:
[0007] Conduct a delay experiment on the light source controller to obtain a control delay value, conduct a delay experiment on the camera to obtain a photography delay value, obtain environmental factors and comprehensively generate an environmental interference value; set an environmental threshold range and a delay threshold range, compare the environmental interference value with the environmental threshold to divide the level, and compare the delay difference with the delay threshold range to divide the level; generate different control signals according to different levels, and trigger delay control according to different control signals;
[0008] Generate an initial monitoring cycle, obtain the environmental interference value contained in the initial monitoring cycle, divide the initial monitoring cycle into several monitoring domains according to different environmental interference values, monitor and analyze the captured images in the monitoring domains respectively, generate initial analysis results, adjust the range of the initial monitoring cycle according to the floating tuning mechanism according to the initial analysis results, form an optimal monitoring time domain, conduct in-depth monitoring and analysis according to the optimal monitoring time domain, and generate an in-depth detection report;
[0009] Switching modes according to the in-depth inspection report and mode optimization mechanism;
[0010] Among them, the control signal includes an environmental adaptation synchronization signal, a slight delay compensation signal, a moderate asynchronous adjustment signal, and a rapid change response signal. Each signal corresponds to a delay control mode, including an environmental adaptation synchronization mode, a slight delay compensation mode, a moderate asynchronous adjustment mode, and a rapid change response mode; the delay difference is the absolute value of the difference between the control delay value and the photographic delay value; the number of monitoring domains and the number of environmental interference values correspond one to one.
[0011] Furthermore, the monitoring and analysis includes obtaining a corresponding contrast index and contrast fluctuation rate based on the captured images within each of the monitoring domains, generating a change curve in combination with the environmental interference value of the monitoring domain and the corresponding time node, setting a threshold range for the contrast index and the contrast fluctuation rate, and judging whether the shooting effect within the monitoring domain meets the requirements; processing all images within the initial monitoring period, calculating a constant contrast index and a constant contrast fluctuation rate, and generating a constant curve; judging the matching degree of the delay control mode based on the change curve and the constant curve, and generating an initial analysis result; the initial analysis result includes a normal or abnormal judgment result for each of the monitoring domains.
[0012] Furthermore, the floating tuning mechanism adjusts the scope of the initial monitoring cycle according to the abnormal situation in the initial analysis results according to the trigger standard and the pre-set adjustment range, and the in-depth monitoring and analysis conducts an in-depth analysis of the abnormal monitoring domain within the optimal monitoring time domain to generate an in-depth detection report.
[0013] Furthermore, the mode optimization mechanism includes an adaptive switching rule, which selects the pre-test mode to be switched and sets a pre-test mode group according to the in-depth detection report. The pre-test mode group obtains the captured images within a monitoring domain of the pre-test mode and determines whether the pre-test mode is more accurate. If it is a positive result, a corresponding formal switching signal is generated to switch the mode; if it is a negative result, the pre-test mode group is reset until the maximum number of pre-tests is reached. If it is still a negative result, the current mode is maintained and an early warning is issued.
[0014] Furthermore, the pattern optimization mechanism also includes prediction conversion rules, which set a sequence prediction model according to the environmental interference value in the change curve and the corresponding time node information. The sequence prediction model predicts the pattern of subsequent monitoring domains based on the current monitoring domain as the starting point, extends the prediction range and generates a prediction pattern sequence.
[0015] Furthermore, the sequence prediction model is based on two monitoring domains as the basic step size until a monitoring domain with the same environmental interference value as the current monitoring domain is obtained to form a final prediction range, and each monitoring domain and the corresponding environmental interference value within the prediction range are respectively generated into corresponding prediction modes to form a prediction mode sequence.
[0016] Furthermore, the prediction mode sequence also includes a signal sending time, and the signal sending time is the sum of a pre-conversion value and a switching delay value. The pre-conversion value is the difference between a time node of a current monitoring domain and a time node of a monitoring domain that needs to be converted, and the switching delay value is the time from when a switching signal is issued to when the switching is actually completed.
[0017] Furthermore, the switching delay value is obtained by real-time monitoring of the mode switching process, marking the mode signal issuance time and the actual conversion time, and the difference between the issuance time and the actual conversion time is the switching delay value.
[0018] Furthermore, the actual conversion time of each mode and the instantaneous value after the mode switching are obtained to generate multiple captured images, and each captured image is analyzed and judged until a stable and satisfactory captured image is monitored, and the time experienced at this time is marked as the waiting reaction time of each mode, and the optimal signal sending time of each mode is generated according to the signal sending time and the waiting reaction time of each mode.
[0019] Furthermore, the instantaneous value is an extremely short time value after the mode switching. The time sampling window is defined according to the actual conversion time. The time sampling window is the length of the instantaneous value. The length of the time sampling window should be greater than one-fifth of the actual conversion time length and less than one-third of the actual conversion time length.
[0020] One or more technical solutions provided in this application have at least the following technical effects or advantages:
[0021] By considering the control delay value, photography delay value and environmental interference value affected by environmental factors, four delay control modes are generated by dividing them into different levels, so as to achieve more precise delay control and adaptive adjustment of delay control modes, and improve the synchronization between the light source controller and the camera; through the monitoring analysis and floating tuning mechanism, the range of the monitoring cycle is dynamically adjusted to ensure that sufficient captured images are accurately obtained for analysis, provide more accurate analysis results, achieve accurate analysis and improve stability and reliability. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 The present invention is an overall flow chart of a light source controller trigger delay control method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0023] To facilitate the understanding of the present invention, the present application will be described more comprehensively below with reference to the relevant drawings; the drawings show preferred embodiments of the present invention, but the present invention can be implemented in many different forms and is not limited to the embodiments described herein; on the contrary, the purpose of providing these embodiments is to enable a more thorough and comprehensive understanding of the disclosed content of the present invention.
[0024] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which the present invention belongs; the terms used in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention; the term "and / or" used herein includes any and all combinations of one or more related listed items.
[0025] Embodiment 1: Figure 1 As shown, a method for controlling a trigger delay of a light source controller comprises:
[0026] S100: Conduct a delay experiment on the light source controller to obtain a control delay value, conduct a delay experiment on the camera to obtain a photography delay value, obtain environmental factors and comprehensively generate an environmental interference value; set an environmental threshold range and a delay threshold range, compare the environmental interference value with the environmental threshold and divide them into levels, compare the delay difference with the delay threshold range and divide them into levels; generate different control signals according to different levels, and trigger delay control according to different control signals.
[0027] In some embodiments, the process of obtaining the control delay value includes: marking the moment when the light source controller receives the trigger signal as the receiving moment, marking the moment when the light source lights up as the response moment, and marking the difference between the response moment and the receiving moment as the control delay value; the environmental threshold range is set according to the environmental interference value, including the minimum environmental threshold and the maximum environmental threshold, and is divided into three different levels, including a low interference range (not greater than the minimum environmental threshold), a medium interference range (between the minimum environmental threshold and the maximum environmental threshold), and a high interference range (greater than the maximum environmental threshold). ), for example, the environmental threshold range can be set to [20, 40], then the levels are divided into low interference [0, 20]; medium interference (20, 40]; higher than 40 is high interference; the delay threshold range includes a minimum delay threshold, a medium delay threshold and a maximum delay threshold. The delay difference is not greater than the minimum delay threshold and is divided into the first level. The delay difference is greater than the minimum delay threshold and less than the medium delay threshold and is divided into the second level. The delay difference is greater than the medium delay threshold and less than the maximum delay threshold and is divided into the third level. The delay difference is greater than the maximum delay threshold and is divided into the fourth level.
[0028] Four delay signals and delay modes are set corresponding to four different levels, the environmental adaptation synchronization mode: the environmental interference value is in the low interference range and the delay threshold is at the first level; the slight delay compensation mode: the environmental interference value is in the medium interference range and the delay threshold is at the second level; the moderate asynchronous adjustment mode: the environmental interference value is in the medium interference range and the delay threshold is at the third level; the rapid change response mode: the environmental interference value is in the high interference range and the delay threshold is at the fourth level.
[0029] The environmental factors include but are not limited to temperature, humidity and light intensity; the environmental factors are collected by a variety of different sensors, the collected environmental factor data are preprocessed, and features related to environmental interference are extracted from the preprocessed data, such as temperature fluctuation value, temperature change rate, and light change rate; specifically, a time window needs to be preset, and the difference between the maximum and minimum temperature in the time window is calculated to obtain the temperature fluctuation value; similarly, the humidity change amount and the light intensity change in the time window are calculated to obtain the humidity change rate and the light change rate; weight values are set for the temperature fluctuation value, the humidity change rate, and the light change rate, respectively, and the environmental interference value is comprehensively calculated using the weighted average method. When performing weight allocation, the weight size of the light change rate should be set to be above 0.7. Preferably, the weight values are set to light change rate: 0.7; temperature fluctuation value: 0.15; temperature change rate: 0.15; the specific calculation method is to use the temperature fluctuation value, the humidity change rate, and the light change rate to multiply and sum them with the corresponding weights to generate the environmental interference value.
[0030] S200: Generate an initial monitoring cycle, obtain an environmental interference value included in the initial monitoring cycle, divide the initial monitoring cycle into a number of monitoring domains according to different environmental interference values, monitor and analyze the captured images in the monitoring domains respectively, generate initial analysis results, adjust the range of the initial monitoring cycle according to the floating tuning mechanism according to the initial analysis results, form an optimal monitoring time domain, perform in-depth monitoring evaluation according to the optimal monitoring time domain, and generate an in-depth detection report;
[0031] The monitoring and analysis includes obtaining a corresponding contrast index and contrast fluctuation rate based on the captured images in each of the monitoring domains, generating a change curve in combination with the environmental interference value of the monitoring domain and the corresponding time node, setting a threshold range for the contrast index and the contrast fluctuation rate, and judging whether the shooting effect in the monitoring domain meets the requirements; processing all images in the initial monitoring period, calculating a constant contrast index and a constant contrast fluctuation rate, and generating a constant curve; judging the matching degree of the delay control mode based on the change curve and the constant curve, and generating an initial analysis result; the initial analysis result includes a normal or abnormal judgment result of each of the monitoring domains.
[0032] In some embodiments, the initial monitoring period is pre-set according to the time window used in the above-mentioned environmental factor collection. Preferably, according to multiple experimental measurements, the initial monitoring period must include at least two time windows. The monitoring analysis is to obtain the corresponding contrast index and contrast fluctuation rate based on the captured images in each monitoring domain, obtain the contrast index and contrast fluctuation rate in all monitoring domains to generate a change curve, the change curve includes the environmental interference value in each monitoring domain and the corresponding time node information, and the time node information is the time node information when the captured image is captured; set the threshold range of the contrast index and the contrast fluctuation rate to determine whether the shooting effect in the monitoring domain meets the requirements; process all images in the initial monitoring period, calculate the average value of all contrast values as a constant contrast index, calculate the average value of the variance as a constant contrast fluctuation rate, generate a constant curve, determine whether the shooting effect in the monitoring domain is stable according to the contrast index and contrast fluctuation rate in each monitoring domain, determine the matching degree of the delay control mode according to the change curve and the constant curve, and generate an initial analysis result. The changing curve and the constant curve are comprehensively analyzed. In the changing curve, the environmental interference value and the mode to which they belong for each monitoring domain are marked, and whether they meet the requirements is marked. The changing trends of the environmental interference value and the mode to which they belong are judged based on the cross-analysis with the constant curve, and the matching degree of the delay control mode is judged to generate an initial analysis result. The initial analysis result includes the normal or abnormal judgment result of each monitoring domain, and also includes the change amplitude and continuity of the abnormal situation. For example, when the environmental interference value or the delay difference exceeds the preset range for more than three consecutive monitoring domains, it is marked as a mode abnormality; if the environmental interference value and the delay difference in more than three consecutive monitoring domains are normal, but the captured images do not meet the requirements, it is determined that the hardware is abnormal; different solutions are made for each abnormal situation.
[0033] The floating tuning mechanism adjusts the scope of the initial monitoring cycle according to the trigger criteria and the pre-set adjustment range based on the abnormal situation in the initial analysis results. The in-depth monitoring and analysis conducts an in-depth analysis of the abnormal monitoring domain within the optimal monitoring time domain to generate an in-depth detection report.
[0034] In some embodiments, the floating tuning mechanism is used to dynamically adjust the initial monitoring period, and the triggering criteria include the continuous range and degree of change of the anomaly. If the continuous range of the abnormal situation is large, for example, anomalies have occurred in more than two consecutive monitoring domains, in order to ensure the accuracy of the analysis results of the abnormal monitoring domain, it is necessary to ensure that there are more than two normal monitoring domains before and after the abnormal monitoring domain to assist in the analysis. If this is not met, it is necessary to adjust the range of the initial monitoring period according to a pre-set adjustment range, that is, to expand the range of the initial monitoring period, and generate an optimal monitoring time domain to further determine the cause of the anomaly; the in-depth monitoring and analysis is a secondary in-depth analysis of the abnormal monitoring domain, thereby ensuring the accuracy of the anomaly analysis and generating an in-depth detection report.
[0035] S300: Switching modes according to the in-depth detection report and the mode optimization mechanism.
[0036] In some embodiments, the in-depth detection report performs an in-depth analysis of the abnormal monitoring domain to obtain analysis results, and performs corresponding processing based on the analysis results. If it is determined to be a hardware abnormality, an alarm warning is issued in a timely manner; if it is determined to be a mode problem, a specific mode analysis report and corresponding environmental interference values and delay differences are given, and a mode optimization mechanism is used to select a suitable delay control mode to switch the current mode.
[0037] Among them, the control signal includes an environmental adaptation synchronization signal, a slight delay compensation signal, a moderate asynchronous adjustment signal, and a rapid change response signal. Each signal corresponds to a delay control mode, including an environmental adaptation synchronization mode, a slight delay compensation mode, a moderate asynchronous adjustment mode, and a rapid change response mode; the delay difference is the absolute value of the difference between the control delay value and the photographic delay value; the number of monitoring domains and the number of environmental interference values correspond one to one.
[0038] In this embodiment, the control delay value, the photography delay value and the environmental interference value affected by environmental factors are comprehensively considered, and the environmental threshold range and the delay threshold range are set respectively. Different levels are divided to generate four delay control modes, so as to achieve more precise delay control and adaptive adjustment of the delay control mode, improve the synchronization between the light source controller and the camera, and solve the synchronization problem between the light source controller and the camera under different environmental conditions; by considering environmental factors and calculating the environmental interference value, the control mode can be adjusted to reduce the impact of environmental interference on the shooting effect; by dynamically adjusting the range of the monitoring cycle through monitoring analysis and floating tuning mechanism, it can ensure that sufficient shooting images are accurately obtained for analysis, provide more accurate analysis results, and detect abnormalities in time and handle them in different ways, thereby improving stability and reliability.
[0039] The technical solutions in the above embodiments of the present application have at least the following technical effects or advantages:
[0040] The present application comprehensively considers the control delay value, photography delay value and environmental interference value affected by environmental factors, divides different levels to generate four delay control modes, realizes more precise delay control and adaptive adjustment of delay control modes, and improves the synchronization between the light source controller and the camera; by considering environmental factors and calculating environmental interference values, the control mode can be adjusted to reduce the impact of environmental interference on the shooting effect; through monitoring analysis and floating tuning mechanism, the range of the monitoring cycle is dynamically adjusted to ensure that sufficient shooting images are accurately obtained for analysis, provide more accurate analysis results, and be able to detect anomalies in time and handle them in different ways, thereby achieving accurate analysis and improving stability and reliability.
[0041] Example 2: In Example 1, environmental factors are added and environmental interference values are generated. At the same time, a floating tuning mechanism is set to dynamically adjust the monitoring period to ensure the accuracy of monitoring and analysis. However, when the mode optimization mechanism is used to switch the mode in the above embodiment, a switching delay will occur, resulting in a reduction in visual detection accuracy.
[0042] The mode optimization mechanism includes an adaptive switching rule, which selects the pre-test mode to be switched and sets a pre-test mode group according to the in-depth detection report. The pre-test mode group obtains the captured images within a monitoring domain of the pre-test mode and determines whether the pre-test mode is more accurate. If it is a positive result, a corresponding formal switching signal is generated to switch the mode; if it is a negative result, the pre-test mode group is reset until the maximum number of pre-test times is reached. If it is still a negative result, the current mode is maintained and an early warning is issued.
[0043] In some embodiments, based on the in-depth detection report, the pre-test mode that needs to be switched is automatically selected and a pre-test mode group is formed. By obtaining the captured images of the pre-test mode in the monitoring domain, it is determined whether the pre-test mode is more accurate. If the determination result is positive, a formal switching signal is generated to execute the mode switching; the in-depth detection report is analyzed to identify the problem points and improvement directions of the current mode, and the pre-test mode that needs to be switched is determined according to the problem points and improvement directions. According to the determined pre-test mode, a pre-test mode group is set, and a unique identifier is assigned to each pre-test mode group for distinction and management. In the selected monitoring domain, the pre-test mode group is run, and the captured images of the pre-test mode in the monitoring domain are collected and pre-processed. The captured images of the pre-test mode are compared with the captured images of the current mode, and the performance of the pre-test mode in various indicators is evaluated. According to the comparative analysis results, it is determined whether the pre-test mode is more accurate. If the pre-test mode is better than the current mode in terms of indicators, it is determined to be a positive result. If the pre-test mode is determined to be a positive result, a corresponding formal switching signal is generated and the mode switching operation is performed. If it is a negative result, the pre-test mode group is reset until the maximum number of pre-tests is reached. If it is still a negative result, the current mode is maintained and an early warning is issued. Preferably, the maximum number of pre-tests cannot exceed three times, and the environmental factors, monitoring cycle and mode status during the early warning are automatically recorded.
[0044] In some embodiments, by setting adaptive switching rules and improving the pre-test mode group, the pre-test mode that needs to be switched can be selected more accurately. By accurately judging the effect of the pre-test mode, it can ensure that a better mode is selected when switching modes, thereby improving the accuracy of visual detection and ensuring that the switched mode can achieve more precise delay control; setting adaptive switching rules can further reduce the delay value caused by mode switching, increase the response speed of the light source controller, improve the overall work efficiency, and realize the instant response and efficient operation of the light source controller during mode switching.
[0045] The technical solutions in the above embodiments of the present application have at least the following technical effects or advantages:
[0046] By setting adaptive switching rules and improving the pre-test mode group, the present application can more accurately select the pre-test mode that needs to be switched. By accurately judging the effect of the pre-test mode, it can ensure that a better mode is selected when switching modes, thereby improving the accuracy of visual detection. Setting adaptive switching rules can further reduce the delay value caused by mode switching, thereby achieving the effect of instant response and efficient operation of the light source controller when switching modes.
[0047] Embodiment three: In the above embodiment, adaptive switching rules are used to select the pre-test mode that needs to be switched according to the in-depth detection report and set the pre-test mode group for switching, ensuring that the switched mode can achieve more accurate delay control, while also reducing the mode switching delay value. This embodiment makes further improvements on the above basis.
[0048] The pattern optimization mechanism also includes prediction conversion rules, which set a sequence prediction model according to the environmental interference value in the change curve and the corresponding time node information. The sequence prediction model uses the current monitoring domain as the starting point to perform pattern prediction on subsequent monitoring domains, extend the prediction range and generate a prediction pattern sequence.
[0049] The sequence prediction model is based on two monitoring domains as the basic step length until a monitoring domain with the same environmental interference value as the current monitoring domain is obtained to form a final prediction range. Each monitoring domain and the corresponding environmental interference value within the prediction range are respectively generated into corresponding prediction modes to form a prediction mode sequence.
[0050] In some embodiments, the prediction conversion rule is set based on the environmental interference value in the change curve and the corresponding time node information, and the sequence prediction model is used to predict the pattern of the current monitoring domain and the subsequent monitoring domain. The sequence prediction model is a prediction tool starting from the current monitoring domain, which can predict the pattern of the subsequent monitoring domain based on the historical monitoring analysis record, and predicts based on two monitoring domains as the basic step length until a monitoring domain consistent with the environmental interference value of the current monitoring domain is found, thereby determining the final prediction range. Within this prediction range, each monitoring domain and the corresponding environmental interference value will generate a corresponding prediction mode, and the prediction mode is arranged according to the time series to form a prediction mode sequence; the prediction range is extended by continuously starting from the current monitoring domain and predicting according to the basic step length until a monitoring domain consistent with the starting environmental interference value is found, ensuring that the prediction mode sequence can cover a longer future time period, thereby improving the accuracy of the prediction and the possibility of seamless switching. The sequence prediction model is based on the time series prediction algorithm, and uses the data of historical monitoring analysis as training data for optimization, which can accurately predict the pattern of the subsequent monitoring domain. The time series prediction algorithm uses existing technologies such as ARIMA, LSTM, etc.
[0051] The prediction mode sequence also includes a signal sending time, which is the sum of a pre-conversion value and a switching delay value. The pre-conversion value is the difference between a time node of the current monitoring domain and a time node of the monitoring domain that needs to be converted. The switching delay value is the time from sending a switching signal to actually completing the switching.
[0052] The switching delay value is obtained by real-time monitoring of the mode switching process, marking the mode signal issuance time and the actual conversion time, and the difference between the issuance time and the actual conversion time is the switching delay value.
[0053] In some embodiments, a signal sending time is generated based on a pre-conversion value and a switching delay value. The pre-conversion value is used to switch modes according to a generated predicted mode sequence. The time interval from the current monitoring domain to the mode switch in the sequence is the pre-conversion value. For example, in the three mode predictions in the sequence, there are A seconds between the current monitoring domain and the first mode switch, that is, the first mode will be switched after A seconds, then A seconds is the pre-conversion value of the first mode; the switching delay value is obtained by real-time monitoring of the mode switching process to mark the mode signal issuance time and the actual conversion time, and the difference between the issuance time and the actual conversion time is the switching delay value.
[0054] In some embodiments, a sequence prediction model is set according to the environmental interference value in the change curve and the corresponding time node information, and the mode of the subsequent monitoring domain can be predicted based on the information of the current monitoring domain, and arranged in time series to form a prediction mode sequence, thereby improving the accuracy of the prediction and the possibility of seamless switching, and reducing the waiting time and switching time of the mode switching; by predicting the conversion rules and calculating the signal sending time, the switching signal can be issued in advance before the actual need for switching, ensuring that the mode switching can be completed quickly and seamlessly when the switching time node arrives; by monitoring the mode switching process and calculating the switching delay value, the switching process is optimized and adjusted, thereby reducing the delay value and improving the response speed and stability of the system.
[0055] The technical solutions in the above embodiments of the present application have at least the following technical effects or advantages:
[0056] The present application can more accurately predict the mode of the future monitoring domain through the sequence prediction model and prediction conversion rules, thereby achieving the effect of improving the accuracy of mode switching and reducing switching delay.
[0057] Embodiment 4: In the above embodiment, a pre-conversion value and a switching delay value are set, which can predict the modes adapted by multiple subsequent monitoring domains and send out conversion signals in advance, thereby realizing seamless switching between modes and reducing the switching delay between modes. However, each mode will have a different waiting reaction time after the actual conversion, which affects the visual accuracy.
[0058] According to the actual conversion time corresponding to each mode, the instantaneous value after each mode switching is obtained, and multiple captured images are generated within the instantaneous value. Each captured image is analyzed and judged until a stable and satisfactory captured image is monitored, and the time experienced at this time is marked as the waiting reaction time of each mode. According to the signal sending time and the waiting reaction time of each mode, the optimal signal sending time for each mode is generated.
[0059] The instantaneous value is an extremely short time value after the mode is switched. The time sampling window is defined according to the actual conversion time. The time sampling window is the length of the instantaneous value. The length of the time sampling window should be greater than one-fifth of the actual conversion time length and less than one-third of the actual conversion time length.
[0060] In some embodiments, after the mode of the light source controller is switched, its brightness will change in a very short time. The brightness value after the change is an instantaneous value. By monitoring this instantaneous value, the reaction speed and stability of the light source controller after the mode switching can be judged. The instantaneous value is an extremely short time value after the mode switching. The time sampling window is defined according to the actual conversion time. The time sampling window is the length of the instantaneous value. The length of the time sampling window should be greater than one-fifth of the actual conversion time length and less than one-third of the actual conversion time length. According to multiple experimental measurements, the sampling window should be short enough to capture the initial reaction after the mode switching, but also long enough to Ensure that stable state values can be obtained, and sample time windows according to different actual conversion times to obtain instantaneous values more accurately; capture multiple images within the instantaneous value, each image corresponds to an instantaneous state and time node, analyze each captured image to determine whether it is stable and meets the requirements, mark the stable and compliant captured images, and record the time experienced at this time as the waiting reaction time of the mode. The waiting reaction time of each mode is different, and the optimal signal sending time should be generated based on the unique waiting reaction time of each mode; calculate the optimal signal sending time for each mode based on the signal sending time and the waiting reaction time of each mode. This optimal time can ensure that after the mode is switched, a stable and compliant state can be achieved in the shortest time, further reducing the waiting reaction time after the mode is switched, improving visual accuracy and user experience, and achieving more accurate and faster seamless mode switching by optimizing the signal sending time.
[0061] In this embodiment, multiple captured images are generated using actual conversion time and instantaneous value, each image corresponds to a specific instantaneous state and time node, and a unique waiting reaction time corresponding to the mode is calculated. According to the signal sending time and the waiting reaction time of each mode, the optimal signal sending time of each mode is calculated. By calculating and generating the waiting reaction time for each mode, the specific waiting time and reaction speed of each mode after the actual conversion can be more accurately reflected. Different modes have significant differences in waiting reaction time after the actual conversion, and have different characteristics and conversion requirements. The dedicated waiting reaction time can better adapt to the unique needs of each mode, improve the mode switching speed and stability, and thus achieve seamless and accurate switching.
[0062] The technical solutions in the above embodiments of the present application have at least the following technical effects or advantages:
[0063] By calculating and generating the waiting reaction time for each mode, the present application can more accurately reflect the specific waiting time and reaction speed of each mode after the actual conversion, eliminate the significant differences between different modes after the actual conversion, and achieve the effect of improving the mode switching speed and stability.
[0064] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A light source controller trigger delay control method, characterized in that: The method comprises: Conduct a delay experiment on the light source controller to obtain a control delay value, conduct a delay experiment on the camera to obtain a photography delay value, obtain environmental factors and comprehensively generate an environmental interference value; set an environmental threshold range and a delay threshold range, compare the environmental interference value with the environmental threshold to divide the level, and compare the delay difference with the delay threshold range to divide the level; generate different control signals according to different levels, and trigger delay control according to different control signals; Generate an initial monitoring cycle, obtain the environmental interference value contained in the initial monitoring cycle, divide the initial monitoring cycle into several monitoring domains according to different environmental interference values, monitor and analyze the captured images in the monitoring domains respectively, generate initial analysis results, adjust the range of the initial monitoring cycle according to the floating tuning mechanism according to the initial analysis results, form an optimal monitoring time domain, conduct in-depth monitoring and analysis according to the optimal monitoring time domain, and generate an in-depth detection report; Switching modes according to the in-depth inspection report and mode optimization mechanism; Among them, the control signal includes an environmental adaptation synchronization signal, a slight delay compensation signal, a moderate asynchronous adjustment signal, and a rapid change response signal. Each signal corresponds to a delay control mode, including an environmental adaptation synchronization mode, a slight delay compensation mode, a moderate asynchronous adjustment mode, and a rapid change response mode; the delay difference is the absolute value of the difference between the control delay value and the photographic delay value; the number of monitoring domains and the number of environmental interference values correspond one to one.
2. A light source controller trigger delay control method as claimed in claim 1, characterized in that: The monitoring and analysis includes obtaining a corresponding contrast index and contrast fluctuation rate based on the captured images in each of the monitoring domains, generating a change curve in combination with the environmental interference value of the monitoring domain and the corresponding time node, setting a threshold range for the contrast index and the contrast fluctuation rate, and judging whether the shooting effect in the monitoring domain meets the requirements; processing all images in the initial monitoring period, calculating a constant contrast index and a constant contrast fluctuation rate, and generating a constant curve; judging the matching degree of the delay control mode based on the change curve and the constant curve, and generating an initial analysis result; the initial analysis result includes a normal or abnormal judgment result of each of the monitoring domains.
3. A light source controller trigger delay control method as claimed in claim 1, characterized in that: The floating tuning mechanism adjusts the scope of the initial monitoring cycle according to the trigger criteria and the pre-set adjustment range based on the abnormal situation in the initial analysis results. The in-depth monitoring and analysis conducts an in-depth analysis of the abnormal monitoring domain within the optimal monitoring time domain to generate an in-depth detection report.
4. A light source controller trigger delay control method as claimed in claim 1, characterized in that: The mode optimization mechanism includes an adaptive switching rule, wherein the adaptive switching rule selects the pre-test mode to be switched according to the in-depth detection report and sets a pre-test mode group, wherein the pre-test mode group obtains a captured image within a monitoring domain of the pre-test mode and determines whether the pre-test mode is more accurate, and if the result is positive, generates a corresponding formal switching signal to switch the mode; If the result is negative, the pre-test mode group is reset until the maximum number of pre-tests is reached. If the result is still negative, the current mode is maintained and an early warning is issued.
5. A light source controller trigger delay control method as claimed in claim 1, characterized in that: The pattern optimization mechanism also includes prediction conversion rules, which set a sequence prediction model according to the environmental interference value in the change curve and the corresponding time node information. The sequence prediction model uses the current monitoring domain as the starting point to perform pattern prediction on subsequent monitoring domains, extend the prediction range and generate a prediction pattern sequence.
6. A light source controller trigger delay control method as claimed in claim 5, characterized in that: The sequence prediction model is based on two monitoring domains as the basic step length until a monitoring domain with the same environmental interference value as the current monitoring domain is obtained to form a final prediction range. Each monitoring domain and the corresponding environmental interference value within the prediction range are respectively generated into corresponding prediction modes to form a prediction mode sequence.
7. A light source controller trigger delay control method as claimed in claim 5, characterized in that: The prediction mode sequence also includes a signal sending time, which is the sum of a pre-conversion value and a switching delay value. The pre-conversion value is the difference between a time node of the current monitoring domain and a time node of the monitoring domain that needs to be converted. The switching delay value is the time from sending a switching signal to actually completing the switching.
8. A light source controller trigger delay control method as claimed in claim 7, characterized in that: The switching delay value is obtained by real-time monitoring of the mode switching process, marking the mode signal issuance time and the actual conversion time, and the difference between the issuance time and the actual conversion time is the switching delay value.
9. A light source controller trigger delay control method as claimed in claim 8, characterized in that: According to the actual conversion time corresponding to each mode, the instantaneous value after each mode switching is obtained, and multiple captured images are generated within the instantaneous value. Each captured image is analyzed and judged until a stable and satisfactory captured image is monitored, and the time experienced at this time is marked as the waiting reaction time of each mode. According to the signal sending time and the waiting reaction time of each mode, the optimal signal sending time of each mode is generated; the instantaneous value is an extremely short time value after the mode switching, and a time sampling window is defined according to the actual conversion time. The time sampling window is the length of the instantaneous value, and the length of the time sampling window should be greater than one-fifth of the actual conversion time length and less than one-third of the actual conversion time length.
