Time-sharing stroboscopic controller control system and control method thereof
By designing a time-sharing strobe controller control system, including a strobe controller module, light source module, camera module, image processing module and synchronization calibration module, the problems of insufficient synchronization accuracy of multi-device trigger signal, low flexibility in multi-channel light source control and lack of dynamic calibration mechanism in the prior art are solved, and high-precision time synchronization and highly flexible light source and camera coordinated operation are achieved.
Patent Information
- Application Number
- CN202510105951.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-23
- Publication Date
- 2025-03-14
AI Technical Summary
The existing time-sharing strobe control system has insufficient synchronization accuracy of trigger signal in multiple devices, low flexibility in multi-channel light source control and lack of dynamic calibration mechanism.
A time-sharing strobe controller control system is designed, including a strobe controller module, a light source module, a camera module, an image processing module and a synchronization calibration module. The system generates multi-time light source control signals by receiving external trigger signals, realizes flexible lighting and brightness adjustment of the light source, and realizes high-precision time synchronization of multi-device trigger signals through the synchronization calibration module.
It realizes high-precision time synchronization of multi-device trigger signals, achieving synchronous accuracy of milliseconds or even microseconds, and solves the detection error problem caused by inconsistent trigger signals of multiple devices. At the same time, through the closed-loop calibration mechanism and the design of multi-time and multi-channel light sources and camera synchronization control, a highly flexible light source and camera coordinate operation is achieved to adapt to the needs of complex detection scenarios.
Smart Images

Figure CN119629806A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of strobe controllers, in particular to a time-sharing strobe controller control system and a control method thereof. Background Art
[0002] In industrial inspection and image acquisition systems, the time-sharing strobe controller is the key control core responsible for coordinating the timing synchronization between light source lighting and camera shooting. However, with the increasing complexity of inspection scenes, existing technologies have exposed a series of problems in practical applications.
[0003] The trigger signal synchronization of existing time-sharing strobe control systems mostly relies on a static delay compensation mechanism. Typically, this mechanism adjusts the trigger timing between devices by presetting delay parameters, but ignores the dynamic errors that may occur during the operation of the system. For example, due to fluctuations in device performance, communication delays, or external environmental interference, the time difference between trigger signals may change continuously, and static compensation cannot respond to these changes in real time. This time offset problem causes the light source and camera shooting action to be out of sync, thus affecting the accuracy of the detection results, especially in high-speed industrial detection scenarios.
[0004] At the same time, the existing multi-channel light source control solutions lack flexibility in design. Traditional solutions often use a single timing configuration, that is, each trigger only allows the light source channels to light up in a fixed order. This design can still meet the needs when dealing with simple detection tasks, but it is powerless in complex scenarios that require dynamic lighting in different areas and time periods. For example, in multi-area detection, different detection areas have different requirements for light source brightness, timing, and lighting time, and the existing solutions cannot provide sufficient channel configuration freedom, limiting the system's ability to adapt to diverse tasks.
[0005] In addition, in multi-device collaborative control systems, the accuracy of the trigger signal is extremely high, but the existing technology is usually relatively rudimentary in terms of calibration mechanisms. Calibration mostly relies on static time synchronization during initial settings, and lacks real-time monitoring and closed-loop adjustment capabilities. Once errors accumulate during system operation, the synchronization of the trigger signal will drop rapidly, causing the camera to fail to capture key images or the light source to fail to light up at the right time. This design limits the stability of the system, especially in high-speed multi-device collaborative scenarios, which can easily lead to operational failures. Summary of the invention
[0006] In view of the deficiencies in the prior art, the present invention provides a time-sharing strobe controller control system and a control method thereof, which solve the problems of the prior art time-sharing strobe control system in terms of insufficient synchronization accuracy of multi-device trigger signals, low flexibility in multi-channel light source control and lack of a dynamic calibration mechanism.
[0007] To achieve the above objectives, the present invention is implemented through the following technical solutions: a time-sharing strobe controller control system, comprising: The strobe controller module is used to receive an external trigger signal and generate a multi-time sequence light source control signal according to the signal to control the lighting time, extinguishing time, lighting sequence and brightness of the light source module; The light source module is composed of a plurality of channel light sources, which are lit in sequence according to the control signal of the strobe controller module, and the brightness of each channel can be adjusted independently; The camera module is used to receive the trigger signal of the strobe controller module and shoot the target image synchronously with the lighting process of the light source module; the image processing module is used to receive the image data of the camera module, analyze the grayscale information of the image, and generate an adjustment signal to feed back to the strobe controller module; The synchronization calibration module is used to calibrate the time offset of the trigger signals between multiple devices to ensure the synchronization of the trigger timing between the devices.
[0008] Preferably, the strobe controller module comprises: A signal receiving unit, used to receive an external input signal, wherein the input signal is an encoder signal, a trigger signal or an external sensor signal; A timing generation unit, used to generate a lighting timing control signal of the light source module according to the input signal, including a lighting time, an extinguishing time and a lighting sequence; The adjustment unit is used to dynamically adjust the timing control signal of the light source according to the adjustment signal fed back by the image processing module.
[0009] Preferably, the light source module comprises: A multi-channel light source array, each of which is connected to a control signal of a strobe controller module to support independent lighting and brightness adjustment; The driving unit is used to provide independent current drive for the multi-channel light source array, and the magnitude of the driving current is proportional to the brightness of the light source; the heat dissipation unit is used to dissipate the heat generated by the multi-channel light source in real time during the stroboscopic operation process.
[0010] Preferably, the camera module comprises: The trigger unit is used to receive the trigger signal of the strobe controller module and shoot the target image synchronously with the lighting time of the light source module; the data transmission unit is used to transmit the shot image data to the image processing module in real time for analysis and processing.
[0011] Preferably, the image processing module includes: An image analysis unit, used for receiving image data from the camera module, analyzing image grayscale information and generating an adjustment signal; A grayscale mean calculation unit, used to calculate the grayscale mean of the target image, compare it with the target grayscale value, and generate an adjustment signal according to the deviation; The data feedback unit is used to feed back the adjustment signal to the strobe controller module to adjust the brightness of the light source and the timing control signal.
[0012] Preferably, the synchronous calibration module includes: A time offset measurement unit is used to measure the time difference between trigger signals of multiple devices; The offset compensation unit is used to perform time offset compensation based on the time difference so that the trigger signals of all devices can reach a synchronous state; the calibration monitoring unit is used to monitor the synchronization calibration results in real time and recalibrate when the trigger signal error exceeds a preset threshold.
[0013] A time-sharing strobe controller control method comprises the following steps: S1, receiving an external trigger signal through the strobe controller module to start the light source lighting process; S2, the strobe controller module generates a lighting timing control signal for the light source module according to the external trigger signal; S3, the light source module lights up the light source channels in sequence according to the control signal, and synchronously triggers the camera module to collect images; S4, the image processing module receives the image data of the camera module, analyzes the difference between the grayscale mean value of the image and the target value, and generates an adjustment signal; S5, the strobe controller module dynamically optimizes the timing and brightness of the light source according to the adjustment signal; S6. Synchronous calibration module performs time offset calibration on trigger signals of multiple devices Preferably, the step S2 specifically includes the following steps: S2.1. The strobe controller module receives an external input signal through a signal receiving unit, wherein the input signal includes an encoder signal, a trigger signal or an external sensor signal; S2.2, the timing generation unit calculates the lighting timing control signal of the light source according to the received external input signal, and the lighting timing control signal includes the lighting time, the extinguishing time and the lighting channel sequence; S2.3. The adjustment unit dynamically updates the parameters of the lighting timing control signal according to the adjustment signal fed back by the image processing module, and adjusts the brightness and timing distribution of the light source.
[0014] The present invention provides a time-sharing strobe controller control system and a control method thereof, which have the following beneficial effects: 1. The present invention adopts the time offset measurement and compensation technology in the synchronization calibration module, which can realize high-precision time synchronization of multi-device trigger signals and achieve millisecond or even microsecond synchronization accuracy. Compared with the prior art method that relies on simple delay compensation, the present invention solves the problem of detection inaccuracy caused by inconsistent trigger signals of multiple devices, and is particularly suitable for complex scenarios with multi-channel light sources and multi-camera collaboration.
[0015] 2. The present invention introduces a calibration monitoring unit through a closed-loop calibration mechanism to monitor and dynamically adjust the trigger signal error between devices in real time, thereby achieving a continuous and stable synchronization effect. Different from the traditional technical solution that lacks monitoring after a one-time calibration, the present invention can automatically trigger recalibration when the signal offset exceeds the threshold, avoiding the synchronization failure problem caused by environmental interference or error accumulation, making the system operation more reliable.
[0016] 3. The present invention adopts a design of multi-timing, multi-channel light source and camera synchronous control, allowing users to flexibly configure 1-10 timings. Each timing can independently light up multiple channels and trigger shooting, realizing highly flexible light source and camera collaborative operation. Compared with the fixed timing or single channel lighting solutions in the prior art, the present invention solves the needs for multi-area lighting and multi-camera shooting in complex detection scenes, and provides higher adaptability and accuracy for high-dynamic scenes such as industrial assembly lines. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a system framework diagram of the present invention; Figure 2 It is a module framework diagram of the strobe controller of the present invention; Figure 3 It is a framework diagram of a light source module of the present invention; Figure 4 A camera module framework diagram of the present invention; Figure 5 It is a framework diagram of the image processing module of the present invention; Figure 6 This is a framework diagram of the synchronous calibration module of the present invention; Figure 7 It is a schematic flow chart of the control method of the present invention; Figure 8 It is a schematic diagram of the time-sharing strobe controller capture and multi-channel timing control of the present invention. DETAILED DESCRIPTION
[0018] The following will be combined with the drawings in the specification of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0019] Please refer to the attached Figure 1 The embodiment of the present invention provides a time-sharing strobe controller control system, comprising: The strobe controller module is used to receive an external trigger signal and generate a multi-time sequence light source control signal according to the signal to control the lighting time, extinguishing time, lighting sequence and brightness of the light source module; Please refer to the attached Figure 2 In this embodiment, the strobe controller module includes a signal receiving unit, a timing generation unit and an adjustment unit. The specific functions of each unit are as follows: The main function of the signal receiving unit is to collect trigger signals from the outside and provide input basis for subsequent timing generation and dynamic adjustment.
[0020] Generally, the signal receiving unit can receive three types of input signals, including but not limited to: Encoder signals, used to synchronize with the position or speed information of target objects in industrial automation scenarios; A trigger signal is used to directly start the lighting process of the light source module; External sensor signals, such as optical sensors or distance sensors, are used to initiate the strobe control process based on the detection condition of the target object.
[0021] In a possible implementation, the signal receiving unit may adopt a high-sensitivity digital interface design to ensure the accuracy and real-time performance of signal acquisition. In addition, the receiving unit may have a built-in anti-interference circuit to ensure that the signal is stable and reliable in a complex electromagnetic environment.
[0022] The timing generation unit generates a lighting timing control signal for the light source module according to the input signal transmitted by the signal receiving unit. The lighting timing control signal includes but is not limited to the following items: The lighting time of the light source, that is, the duration of each channel light source being turned on; The light source extinction time, that is, the interval time after each channel light source is turned off; The order of lighting channels is used to determine the sequential lighting rules of multi-channel light sources.
[0023] Specifically, the timing generation unit will dynamically generate a lighting timing that meets the detection conditions based on the frequency and amplitude of the external signal and the specific requirements of the detection scene. For example, in a scene where the target object is moving at high speed, the timing generation unit can shorten the lighting time and the extinguishing time, thereby increasing the stroboscopic frequency and ensuring clear capture of the target.
[0024] In some embodiments, the timing generation unit may use the following mathematical model to optimize the lighting timing: Where: T f represents the total timing cycle of each frame; k represents the number of timings in each frame; T on,i Indicates the lighting time of the light source in the i-th time sequence; T off,i Indicates the light source off time of the i-th time sequence.
[0025] In a possible implementation, the timing generation unit can adjust k, T according to the frame rate requirement of the system and the speed of the detection target. on,i and T off,i For example, when a higher image resolution is required, the sampling accuracy can be improved by increasing the number of time series k.
[0026] The adjustment unit dynamically updates the timing control signal according to the adjustment signal fed back by the image processing module. The adjustment content includes the brightness, lighting sequence and timing distribution of the light source.
[0027] Generally, the adjustment unit will adjust the brightness of the light source according to the results of the grayscale analysis. For example, when the detection area is not illuminated enough, the adjustment unit will increase the driving current of the light source to increase the brightness. Conversely, if the detection area is too bright, the driving current will be reduced to avoid overexposure.
[0028] As an option, the adjustment unit can also dynamically update the order of lighting channels. For example, when detecting multi-area targets, the adjustment unit can prioritize lighting the light source channels corresponding to the key areas to highlight the detection focus.
[0029] In a possible implementation, the adjustment unit may use the following formula to adjust the brightness of the light source: L j =η·I j Where: L j represents the brightness of the light source of the jth channel; η represents the photoelectric conversion efficiency of the light source; I j Represents the driving current of the jth channel.
[0030] Combined with the gray mean calculation formula: The regulation unit can be adjusted by adjusting I j The value of Close to the target gray value
[0031] The strobe controller module is connected to the external trigger signal source through the signal receiving unit to ensure that the system can respond to external changes in real time; it interacts with the light source module through the timing generation unit to generate precise lighting timing control signals; it forms a closed-loop feedback with the image processing module through the adjustment unit to dynamically adjust the brightness and lighting sequence of the light source.
[0032] For example, in a detection scenario, when the target object passes through the detection area at high speed, the signal receiving unit will collect the high-frequency trigger signal from the encoder, and the timing generation unit will shorten the lighting time T on,i And reduce the extinguishing time T off,i , in order to increase the stroboscopic frequency. At the same time, if the detected image is too dark, the adjustment unit will increase the driving current I of the light source j , thereby improving image quality.
[0033] The light source module is composed of multiple channel light sources. The multiple channel light sources are lit in sequence according to the control signal of the strobe controller module, and the brightness of each channel can be adjusted independently; Please refer to the attached Figure 3 In this embodiment, the light source module includes a multi-channel light source array, a driving unit and a heat dissipation unit. The functions of each component unit are described as follows.
[0034] In this embodiment, the multi-channel light source array is composed of a plurality of independent light source channels. Each channel light source is connected to the control signal of the strobe controller module, and supports independent adjustment of the lighting time, the extinguishing time and the brightness.
[0035] In general, the number of light source channels can be configured according to specific application requirements. For example, in a high-precision surface detection scenario, more channels can be configured to cover the detection area, thereby improving the uniformity of lighting and the flexibility of light source control. The lighting state (on or off) of each channel light source is directly controlled by the lighting timing control signal generated by the strobe controller module.
[0036] Specifically, the light source array supports the lighting of different channels in different areas. For example, when detecting targets in multiple areas, the strobe controller module can selectively light up the light source channels corresponding to the key areas, while turning off the light sources in other areas, to reduce energy consumption and increase the brightness of the key areas to be detected.
[0037] As an option, the light source channel can be implemented using a high-efficiency light-emitting diode (LED), which has the advantages of fast response speed and low energy consumption, and is suitable for working scenarios with frequent switching.
[0038] The driving unit is responsible for providing independent current drive for the multi-channel light source array and achieving precise control of brightness.
[0039] In a possible implementation, the driving unit can adjust the brightness of the light source by controlling the driving current of each channel. The relationship between the driving current and the brightness of the light source is: L j =η·I j Where: L j represents the brightness of the j-th channel light source, in lumens; η represents the photoelectric conversion efficiency of the light source, in lumens / ampere; I j Represents the drive current of the jth channel in amperes.
[0040] Specifically, when the light source needs higher brightness, the driver unit will increase the current I of the corresponding channel. j For example, in the detection area where the target surface is darker, the driver unit can increase the current to 1.2 times the standard value to provide stronger illumination. In addition, the driver unit can also dynamically update the current value according to the adjustment signal of the strobe controller module to adapt to the illumination requirements of the detection target.
[0041] Generally, the driver unit supports constant current drive design to ensure the stability of the light source brightness. As an option, the driver unit can integrate a current protection circuit to automatically limit the current when the current exceeds the safe range, thereby protecting the normal operation of the light source array.
[0042] The function of the heat dissipation unit is to dissipate the heat generated by the multi-channel light source in the stroboscopic operation process in real time, ensuring the stability of the light source module under high-intensity stroboscopic conditions.
[0043] In a possible implementation, the heat dissipation unit may adopt a design that combines active heat dissipation with passive heat dissipation. For example, under normal working conditions, passive heat dissipation through an aluminum heat sink can meet the needs; while in high-frequency strobe or high-brightness working scenarios, a built-in air cooling device may be enabled for active heat dissipation.
[0044] Specifically, the heat dissipation unit can monitor the operating temperature of the light source module in real time. For example, when the temperature exceeds the set threshold (such as 70°C), the heat dissipation unit will immediately start the fan to accelerate heat dissipation; when the temperature returns to the normal range (such as below 50°C), the fan will automatically stop running.
[0045] As an option, the cooling unit can also be combined with a temperature control circuit to achieve intelligent temperature management. For example, when the ambient temperature is low, the cooling unit will reduce the fan running time, thereby reducing energy consumption and noise.
[0046] In this embodiment, the light source module realizes comprehensive control of lighting time, brightness and stability through the coordinated work of the multi-channel light source array, the driving unit and the heat dissipation unit.
[0047] Specifically, the workflow of the light source module is as follows: The strobe controller module sends a lighting timing control signal to the light source module, including the lighting time, extinguishing time and brightness parameters of each channel; The driving unit in the light source module provides corresponding current to each channel according to the control signal to control the light source to light up; The multi-channel light source array lights up each channel in turn according to the instructions of the control signal, realizing the regional lighting of the detection area; The heat dissipation unit dissipates heat in real time when the light source array is lit, avoiding heat accumulation problems caused by frequent switching.
[0048] In one possible application scenario, the inspection target is a high-speed moving industrial part. At this time, the multi-channel light source array of the light source module can continuously provide lighting for the camera in a high-frequency manner, while the drive unit dynamically adjusts the light source brightness to adapt to the surface characteristics of different parts. When the inspection task intensity is high, the heat dissipation unit automatically intervenes to ensure the stable operation of the light source module.
[0049] The camera module is used to receive the trigger signal of the strobe controller module and to capture the target image synchronously with the lighting process of the light source module; Please refer to the attached Figure 4 In this embodiment, the camera module mainly includes a trigger unit and a data transmission unit. The two work together to achieve synchronous acquisition and efficient transmission of the target image.
[0050] In this embodiment, the function of the trigger unit is to receive a trigger signal from the strobe controller module and accurately synchronize with the lighting time of the light source module.
[0051] Generally, the trigger unit can receive a high-precision digital trigger signal, which can be a pulse signal or other digital logic signal. The trigger unit will start the camera's shooting process according to the timing information of the trigger signal to ensure that the shooting time is completely consistent with the lighting time of the light source module.
[0052] Specifically, the time accuracy of the trigger signal has a direct impact on the synchronous shooting. For example, when detecting a high-speed moving target object, the time deviation of the trigger signal may cause image blur or incomplete exposure. Therefore, in a possible implementation, the time response accuracy of the trigger unit can reach the microsecond level to ensure synchronization.
[0053] As an option, the trigger unit can also support multiple trigger modes, such as external trigger mode and software trigger mode. In external trigger mode, the camera shoots according to the external pulse signal sent by the strobe controller module; in software trigger mode, the trigger signal is generated by the strobe controller through system instructions. This design increases the flexibility of the system.
[0054] In some embodiments, the trigger unit can also detect the quality of the trigger signal in real time, such as signal strength and stability, and feed back the signal status to the strobe controller module. This feedback mechanism helps to avoid shooting failures caused by abnormal signals.
[0055] The data transmission unit is responsible for transmitting the target image data collected by the trigger unit to the image processing module in real time for analysis.
[0056] Generally, the data transmission unit adopts a high-speed digital interface design, such as USB, GigE (Gigabit Ethernet) or CameraLink, to ensure the fast transmission of large data volumes of images. For example, in a high-resolution image acquisition scenario, the data transmission unit needs to support a transmission rate of at least 100MB / s to avoid transmission bottlenecks.
[0057] Specifically, the data transmission unit needs to meet the following conditions: The transmission delay is low, usually less than 1ms, to ensure that the image processing module can receive image data in real time; Supports data integrity verification mechanism to prevent data loss or errors in complex industrial environments.
[0058] As a possible implementation, the data transmission unit can also support multi-task transmission, for example, transmitting multiple images to the image processing module at the same time in the same time period. This design is particularly important in the scenario where multiple cameras work together.
[0059] In some embodiments, the data transmission unit also supports a compressed transmission mode. For example, when the transmission bandwidth is limited, the image data can be losslessly compressed before being transmitted. This method can save bandwidth resources and ensure image quality.
[0060] In this embodiment, the camera module is connected to the strobe controller module and the light source module through the trigger unit, and is connected to the image processing module through the data transmission unit, so as to collaboratively realize the acquisition and transmission of the target image.
[0061] Generally, the strobe controller module generates a trigger signal according to the detection task and sends the signal to the trigger unit of the camera module. At the same time, the strobe controller module also sends a lighting control signal to the light source module to ensure the consistency between the light source lighting time and the camera shooting time.
[0062] Specifically, when the trigger unit receives the trigger signal, it immediately starts the camera shooting process. After the shooting is completed, the data transmission unit transmits the acquired image data to the image processing module in real time. For example, in the scene of detecting dynamic targets, the light source module illuminates the target object in milliseconds, and the camera module captures multiple continuous images with microsecond time accuracy. The captured image data is transmitted to the image processing module for defect detection or other analysis tasks.
[0063] In scenarios where multiple devices work together, the camera module also needs to maintain a high degree of synchronization with other devices. For example, in a multi-camera system, the trigger unit of each camera module needs to receive a unified trigger signal to ensure the consistency of the shooting time points of multiple cameras. In addition, the transmission path of each camera module needs to be designed independently to avoid interference between multiple transmissions.
[0064] In some embodiments, the trigger unit of the camera module can be directly linked with the image processing module. For example, in an intelligent detection system, when the image processing module detects that the brightness of the target area is insufficient, the feedback signal can be used to trigger the camera module to take a second shot, thereby obtaining more accurate image data.
[0065] As an option, the data transmission unit can pre-process the transmission data in combination with the AI-assisted algorithm. For example, the transmission unit can first perform regional cropping on the image data and only transmit valid data in the detection area. This approach can significantly reduce the transmission bandwidth requirements and improve data processing efficiency.
[0066] An image processing module is used to receive image data from the camera module, analyze the grayscale information of the image, and generate an adjustment signal to feed back to the strobe controller module; Please refer to the attached Figure 5 In this embodiment, the image processing module is mainly composed of an image analysis unit, a grayscale mean value calculation unit and a data feedback unit. These units work together to achieve real-time analysis and dynamic adjustment of the image.
[0067] In this embodiment, the function of the image analysis unit is to receive image data from the camera module, extract grayscale information of the target image and perform preliminary processing.
[0068] Generally, the image analysis unit receives digitized image data, which is represented in the form of a pixel matrix, and each pixel corresponds to a grayscale value (for example, the grayscale value ranges from 0 to 255). The image analysis unit analyzes these grayscale values and extracts the grayscale distribution of the region of interest in the image.
[0069] In a possible implementation, the image analysis unit can process the image by region according to a preset detection rule. For example, in surface defect detection, the image analysis unit can divide the target image into multiple regions, calculate the grayscale characteristics of each region, and extract information such as brightness change and contrast change to generate a more accurate adjustment signal.
[0070] In some embodiments, the image analysis unit may also perform image preprocessing operations, such as denoising, edge enhancement, or brightness equalization, which help improve the accuracy and reliability of image analysis.
[0071] The grayscale mean calculation unit calculates the grayscale value of the target image and compares the calculation result with the target grayscale value to generate deviation information reflecting the brightness and timing of the light source.
[0072] Specifically, the grayscale mean is calculated as: in: Represents the grayscale mean of the image; G(m,n) represents the grayscale value of the mth and nth pixels in the image; M and N represent the number of rows and columns of the image, that is, the resolution of the image.
[0073] In general, the grayscale mean calculation unit will With the target gray value Compare them and calculate the deviation between the two: ΔG is the deviation value, which is used to determine whether the current light source brightness needs to be adjusted.
[0074] In a possible implementation, when ΔG>0, it indicates that the overall brightness of the image is insufficient and the brightness of the light source needs to be increased; when ΔG<0, it indicates that the image is too bright and the brightness of the light source needs to be reduced.
[0075] In some embodiments, the grayscale mean calculation unit can also calculate the grayscale values of multiple regions separately. For example, in regional detection, an independent grayscale mean and deviation value can be calculated for each region to generate a more refined adjustment signal to meet the detection requirements of complex scenes.
[0076] The function of the data feedback unit is to transmit the adjustment signal generated by the grayscale mean value calculation unit to the strobe controller module for dynamically adjusting the brightness and lighting timing of the light source.
[0077] Generally, the adjustment signal includes the following two types of information: The adjustment range of the light source brightness, such as increasing or decreasing the brightness of a light source channel; Suggestions for optimizing the lighting timing, such as extending or shortening the lighting time of the light source.
[0078] Specifically, the data feedback unit generates a brightness adjustment signal according to the deviation value ΔG: I′ j =I j +K p ΔG Where: I′ j Represents the adjusted light source driving current; I j Indicates the current light source driving current; K p It is the adjustment coefficient used to control the sensitivity of brightness adjustment.
[0079] In a possible implementation, the data feedback unit transmits the adjustment signal to the adjustment unit of the strobe controller module in real time, so that the brightness and timing of the light source can quickly respond to changes in the detection scene.
[0080] In some embodiments, the data feedback unit may also store the history records of the adjustment signal for subsequent analysis or optimization. For example, when detecting complex targets, the history records may be used to construct an adjustment model, thereby further improving the adaptive capability of the system.
[0081] In this embodiment, the image processing module realizes closed-loop regulation of light source control through the collaboration of the image analysis unit, the grayscale mean value calculation unit and the data feedback unit.
[0082] Specifically, when the camera module acquires the target image, it transmits the image data to the image analysis unit of the image processing module in real time. The image analysis unit analyzes the grayscale distribution of the image, extracts the brightness information of the key area, and transmits the analysis result to the grayscale mean calculation unit.
[0083] The grayscale mean calculation unit calculates the grayscale value of the image and compares it with the target grayscale value. According to the deviation value, the grayscale mean calculation unit generates an adjustment signal, including brightness adjustment and timing optimization suggestions.
[0084] The data feedback unit sends the adjustment signal to the strobe controller module to update the lighting parameters of the light source. After receiving the adjustment signal, the strobe controller module dynamically adjusts the working state of the light source through the adjustment unit to optimize the image quality.
[0085] For example, in surface defect detection, if the image analysis unit detects that the brightness of a certain area is insufficient, the grayscale mean calculation unit will generate a positive deviation value ΔG>0, and the data feedback unit will transmit a signal to the strobe controller module to increase the brightness of the corresponding light source channel, ultimately improving the detection effect.
[0086] In some embodiments, the image processing module can be combined with a deep learning algorithm to further analyze the image data. For example, by training a neural network model, the image processing module can identify complex surface defects or specific target features and generate more accurate adjustment signals based on the recognition results.
[0087] As an option, the grayscale mean calculation unit can also support a variety of statistical methods. For example, the grayscale variance of an image can be calculated to analyze the contrast changes of the image. This method is suitable for target detection scenarios with complex surface textures.
[0088] The synchronization calibration module is used to calibrate the time offset of the trigger signals between multiple devices to ensure the synchronization of the trigger timing between the devices.
[0089] Please refer to the attached Figure 6 and attached Figure 8 In this embodiment, the synchronization calibration module includes a time offset measurement unit, an offset compensation unit and a calibration monitoring unit. The units cooperate with each other to complete the time synchronization of multi-device trigger signals.
[0090] In this embodiment, the time offset measurement unit is used to capture the timestamp of each frame of the trigger signal and measure the time difference between multiple devices as a basis for subsequent compensation.
[0091] In general, the time offset measurement unit can obtain the timestamp of each signal by accurately recording the trigger signals of multiple devices. For example, within one frame, the encoder signal generated by the strobe controller module triggers multiple light sources to light up and the camera to shoot. The time offset measurement unit can simultaneously collect the timestamps of these trigger signals to form a time difference matrix.
[0092] In one possible implementation, the trigger signal timestamp of each device is generated by a high-precision clock with a time resolution of nanoseconds. The time offset measurement unit captures the timestamp t of each trigger signal. i , and calculate the time deviation by comparing: Δt i =t max -t i Where: t i Indicates the trigger signal timestamp of the i-th device; t max Indicates the maximum timestamp among all device trigger signals; Δt i Indicates the time offset of the i-th device.
[0093] In a possible implementation, the time offset measurement unit captures the trigger signal timestamp through a hardware timing module (such as a high-frequency counter or FPGA), and the time resolution can reach nanoseconds to meet the requirements of high-speed multi-device collaboration. For example, when each frame contains 10 time sequences, and each time sequence triggers 5 devices (such as light source channels and cameras), the time offset measurement unit needs to collect 50 timestamps and calculate their offsets.
[0094] As an option, the time offset measurement unit can use a distributed synchronous clock, where all devices synchronize timing based on the same clock source, thereby improving time measurement accuracy and reducing computational complexity.
[0095] In this embodiment, the offset compensation unit calculates the time offset Δt according to the time offset measurement unit. i,j , time compensation is performed on the trigger signals of each device to make the trigger signals of all devices reach a synchronized state.
[0096] Specifically, the compensated timestamp can be expressed as: Δt i,j =t i,ref -t i,j Where: t i,j is the trigger timestamp of device j after compensation in the i-th timing; Δt i,j It is the time offset, which is used to compensate the delay of the trigger signal.
[0097] In this embodiment, the offset compensation unit adjusts the device trigger time by inserting a delay so that it is aligned with the reference time. For example, if the trigger time of device j is earlier than the reference time t i,ref 2μs, the compensation unit will insert a 2μs delay for it.
[0098] For the lighting control of multi-channel light sources, the offset compensation unit needs to compensate the lighting signals of multiple channels separately. For example, when lighting three channels of the light source in one sequence, the offset compensation unit compensates the offset of each channel according to the offset Δt i,j , insert different delays into the lighting signal to make it reach the synchronous lighting state.
[0099] As an option, the offset compensation unit can be combined with the timing generation logic of the strobe controller module to dynamically adjust the compensation delay. For example, when the system needs to shorten the light source lighting cycle, the offset compensation unit will automatically reduce the compensation delay to ensure that the trigger signal is synchronized and meets the task time limit.
[0100] In this embodiment, the calibration monitoring unit is used to monitor the compensated synchronization state in real time, and trigger recalibration when it is detected that the synchronization error exceeds a preset threshold.
[0101] Typically, the calibration monitoring unit measures the compensated timestamps a second time and calculates the synchronization error: ∈ s =max(t i ′ ,j )-min(t i ′ ,j ) Where: ∈ s Indicates the maximum time difference of the trigger signal in the same timing after compensation; t i ′ ,j is the trigger timestamp of device j after compensation.
[0102] When the synchronization error ∈ s Exceeding the threshold ∈ th , the calibration monitoring unit triggers a recalibration process, including re-measuring the time offset and adjusting the compensation parameters.
[0103] Specifically, the calibration monitoring unit can also actively optimize the compensation mechanism based on the multi-frame synchronization error trend. For example, in a high-speed continuous acquisition scenario, if the synchronization error is detected to be increasing, the calibration monitoring unit will trigger pre-calibration in advance to avoid error accumulation and signal inaccuracy.
[0104] As an option, the calibration monitoring unit can also record the historical data of each calibration, including the time offset Δt i,j , compensate for delays and synchronization errors, etc., for subsequent system performance analysis and optimization.
[0105] The synchronization calibration module forms a closed-loop time synchronization mechanism through the collaboration of time offset measurement, offset compensation and calibration monitoring. After starting a frame of data acquisition, the encoder signal generated by the controller triggers the light source module to light up and the camera to shoot. The time offset measurement unit records the timestamp of each trigger signal and calculates the offset, the offset compensation unit compensates for the time offset, and the calibration monitoring unit verifies the synchronization status in real time to ensure that the trigger signals of each device are completely synchronized within each timing.
[0106] For example, in a capture process that includes five time sequences, the synchronization calibration module measures and compensates for the time offset of the light source lighting signal and camera trigger signal of each time sequence in turn, ensuring that the five groups of camera shooting signals in each time sequence are completely synchronized, thereby meeting the requirements of high-precision image acquisition.
[0107] The time-sharing strobe controller control system described below and the time-sharing strobe controller control method described above can be referred to in correspondence with each other. Please refer to the attached Figure 7 , a time-sharing strobe controller control method, comprising the following steps: S1, receiving an external trigger signal through the strobe controller module to start the light source lighting process; S2, the strobe controller module generates a lighting timing control signal for the light source module according to the external trigger signal; S3, the light source module lights up the light source channels in sequence according to the control signal, and synchronously triggers the camera module to collect images; S4, the image processing module receives the image data of the camera module, analyzes the difference between the grayscale mean value of the image and the target value, and generates an adjustment signal; S5, the strobe controller module dynamically optimizes the timing and brightness of the light source according to the adjustment signal; S6. The synchronization calibration module performs time offset calibration on trigger signals of multiple devices.
[0108] The S2 step specifically includes the following steps: S2.1. The strobe controller module receives an external input signal through a signal receiving unit, wherein the input signal includes an encoder signal, a trigger signal or an external sensor signal; S2.2, the timing generation unit calculates the lighting timing control signal of the light source according to the received external input signal, and the lighting timing control signal includes the lighting time, the extinguishing time and the lighting channel sequence; S2.3. The adjustment unit dynamically updates the parameters of the lighting timing control signal according to the adjustment signal fed back by the image processing module, and adjusts the brightness and timing distribution of the light source.
[0109] The method of this embodiment can be used to execute the above system embodiment, and its principles and technical effects are similar, which will not be repeated here.
[0110] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A time-sharing strobe controller control system, characterized in that: include: The strobe controller module is used to receive an external trigger signal and generate a multi-time sequence light source control signal according to the signal to control the lighting time, extinguishing time, lighting sequence and brightness of the light source module; The light source module is composed of a plurality of channel light sources, which are lit in sequence according to the control signal of the strobe controller module, and the brightness of each channel can be adjusted independently; The camera module is used to receive the trigger signal of the strobe controller module and to capture the target image synchronously with the lighting process of the light source module; An image processing module is used to receive image data from the camera module, analyze the grayscale information of the image, and generate an adjustment signal to feed back to the strobe controller module; The synchronization calibration module is used to calibrate the time offset of the trigger signals between multiple devices to ensure the synchronization of the trigger timing between the devices.
2. A time-sharing strobe controller control system according to claim 1, characterized in that: The strobe controller module comprises: A signal receiving unit, used to receive an external input signal, wherein the input signal is an encoder signal, a trigger signal or an external sensor signal; A timing generation unit, used to generate a lighting timing control signal of the light source module according to the input signal, including a lighting time, an extinguishing time and a lighting sequence; The adjustment unit is used to dynamically adjust the timing control signal of the light source according to the adjustment signal fed back by the image processing module.
3. A time-sharing strobe controller control system according to claim 1, characterized in that: The light source module comprises: A multi-channel light source array, each of which is connected to a control signal of a strobe controller module to support independent lighting and brightness adjustment; A driving unit, used to provide independent current driving for the multi-channel light source array, wherein the magnitude of the driving current is proportional to the brightness of the light source; The heat dissipation unit is used to dissipate the heat generated by the multi-channel light source in real time during the stroboscopic operation.
4. A time-sharing strobe controller control system according to claim 1, characterized in that: The camera module comprises: A trigger unit, used to receive a trigger signal from the strobe controller module and capture a target image in synchronization with the lighting time of the light source module; The data transmission unit is used to transmit the captured image data to the image processing module in real time for analysis and processing.
5. A time-sharing strobe controller control system according to claim 1, characterized in that: The image processing module comprises: An image analysis unit, used for receiving image data from the camera module, analyzing image grayscale information and generating an adjustment signal; A grayscale mean calculation unit is used to calculate the grayscale mean of the target image, compare it with the target grayscale value, and generate an adjustment signal according to the deviation; The data feedback unit is used to feed back the adjustment signal to the strobe controller module to adjust the brightness of the light source and the timing control signal.
6. A time-sharing strobe controller control system according to claim 1, characterized in that: The synchronous calibration module comprises: A time offset measurement unit is used to measure the time difference between trigger signals of multiple devices; An offset compensation unit is used to perform time offset compensation according to the time difference so that the trigger signals of all devices can reach a synchronous state; The calibration monitoring unit is used to monitor the synchronization calibration results in real time and re-calibrate when the trigger signal error exceeds a preset threshold.
7. A time-sharing strobe controller control method, characterized in that: The following steps are involved: S1, receiving an external trigger signal through the strobe controller module to start the light source lighting process; S2, the strobe controller module generates a lighting timing control signal for the light source module according to the external trigger signal; S3, the light source module lights up the light source channels in sequence according to the control signal, and synchronously triggers the camera module to collect images; S4, the image processing module receives the image data of the camera module, analyzes the difference between the grayscale mean value of the image and the target value, and generates an adjustment signal; S5, the strobe controller module dynamically optimizes the timing and brightness of the light source according to the adjustment signal; S6. The synchronization calibration module performs time offset calibration on trigger signals of multiple devices.
8. A time-sharing strobe controller control method according to claim 7, characterized in that: The S2 step specifically includes the following steps: S2.
1. The strobe controller module receives an external input signal through a signal receiving unit, wherein the input signal includes an encoder signal, a trigger signal or an external sensor signal; S2.2, the timing generation unit calculates the lighting timing control signal of the light source according to the received external input signal, and the lighting timing control signal includes the lighting time, the extinguishing time and the lighting channel sequence; S2.
3. The adjustment unit dynamically updates the parameters of the lighting timing control signal according to the adjustment signal fed back by the image processing module, and adjusts the brightness and timing distribution of the light source.
Citation Information
Cited By
System and method for synchronously triggering light source and camera
CN121486675A
Industrial flying shooting method, device and equipment for micro component appearance detection
CN122016652A