A multi-camera calibration and light source linkage control method in product motion state
By using encoder pulse signals as a global timing reference in machine vision inspection, the linkage control of multiple cameras and light sources is realized, solving the problems of detection accuracy and light energy utilization of high-speed moving targets, and realizing high-precision, low-energy online dynamic calibration and adaptive light source control.
Patent Information
- Application Number
- CN202611217470.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-12
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies for machine vision inspection of high-speed moving targets suffer from several drawbacks: static calibration cannot compensate for mechanical deformation of the equipment and light decay of the light source; historical extrinsic parameters fail; imaging coordinate system shifts; mismatch in light source timing leads to inconsistent image spatial coordinates; light energy utilization is low; and there is a lack of online adaptive parameter update capabilities, making it difficult to meet the requirements of high-precision inspection.
The encoder pulse signal is used as the global timing reference to realize the linkage control of multiple cameras and light sources. The microcontroller calculates the speed, acceleration and displacement of the equipment in real time, and synchronously triggers the camera exposure and the start and stop of the light source. Combined with the closed-loop verification module, the parameters are automatically adjusted to realize online dynamic calibration and adaptive light source control.
It achieves microsecond-level synchronous control of multi-camera arrays, eliminates timing deviations, ensures stable detection accuracy, reduces energy consumption, and improves the collaborative calibration accuracy of multi-camera arrays and the level of system intelligence.
Smart Images

Figure CN123185459A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of visual inspection technology, and more specifically, to a method for multi-camera calibration and light source linkage control in the motion state of a product. Background Technology
[0002] In the fields of machine vision inspection, 3D reconstruction, high-precision measurement of moving objects, and industrial automated quality inspection, image acquisition and visual calibration technology for high-speed moving workpieces, moving carriers, and dynamic targets is the core foundation for achieving high-precision visual inspection.
[0003] In machine vision dynamic detection scenarios, for high-speed moving targets, the existing mainstream solutions mainly include: static calibration after shutdown followed by calling historical parameters for dynamic photography, fixed hard triggering of PLC / IO for linkage lighting, and independent timing control of a single camera in low-speed scenarios. However, these solutions have inherent flaws in dynamic applications: static calibration cannot compensate for mechanical deformation and light decay caused by long-term equipment movement, resulting in the failure of historical extrinsic parameters and the offset of the imaging coordinate system, directly destroying the benchmark for 3D reconstruction and dimensional measurement; fixed delay triggering lacks dynamic timing compensation, and there is a timing phase deviation between the camera exposure center, the light source pulse window, and the actual position of the target, which not only leads to inconsistencies in the spatial coordinates of multi-view images, but also causes local underexposure or overexposure if the supplementary lighting does not strictly cover the effective exposure period; at the same time, the constant light source or rigid triggering mode causes a large amount of invalid illumination, resulting in low light energy utilization and accelerated light source decay; in addition, the calibration process relies on manual shutdown operation and cannot update parameters online adaptively, and there is a lack of unified dynamic timing benchmarks and real-time relative pose calibration capabilities among the cameras, making it difficult for the overall collaborative calibration accuracy of multi-camera arrays to meet the stringent requirements of current high-speed and high-precision industrial inspection. Summary of the Invention
[0004] To address the shortcomings of existing technologies, the present invention aims to provide a method for multi-camera calibration and light source linkage control in the motion state of a product.
[0005] To achieve the above objectives, the present invention provides the following technical solution: a method for multi-camera calibration and light source linkage control in product motion state, comprising the following steps: S1. System Initialization and Parameter Configuration: Install the encoder on the drive shaft or transmission mechanism of the motion equipment and connect the encoder to the high-speed counting port of the microcontroller; install multiple cameras, light sources, and calibration boards, with each camera's field of view simultaneously including the product under test and the calibration board; complete the communication and data connection between the microcontroller, cameras, light sources, and industrial computer; configure the basic parameters of the cameras, light sources, calibration boards, and microcontroller. S2. Establish global timing reference for encoder: The microcontroller acquires encoder pulse signals in real time through the high-speed counting port and uses the pulse count as the global timing reference. Based on the encoder pulse count, the microcontroller calculates the real-time velocity v, acceleration a, and displacement s of the motion device in real time. The microcontroller also converts the pulse signal into a unified timestamp signal as a synchronous clock source for multiple cameras and light sources. S3. Two-way communication between industrial computer and microcontroller: The industrial computer sends the target exposure time t, gain d, trigger delay and light source brightness parameters of each camera to the microcontroller according to the current vision inspection requirements; after receiving the parameters, the microcontroller initially sets the light source illumination duration T to t, and automatically updates T=t every time the exposure time t is updated; the microcontroller sends the real-time collected velocity v, acceleration a, displacement s and timing reference information to the industrial computer in real time; S4. Camera and Light Source Adaptive Timing Linkage Control: The microcontroller calculates the exclusive trigger timing of each camera based on the encoder timing reference. The trigger time of the light source is completely synchronized with the camera exposure start time, and the light source extinguishing time is synchronized with the camera exposure end time. When the encoder pulse count reaches the preset trigger condition, the microcontroller simultaneously sends a trigger signal to the corresponding camera and light source, triggering the camera to start exposure and the light source to light up synchronously. S5. Online dynamic calibration during motion: During the continuous motion of the equipment, the microcontroller triggers the camera to acquire images that simultaneously include the product under test and the calibration board. The calibration program of the industrial control computer processes the images, calculates the camera distortion parameters, intrinsic parameter matrix, extrinsic parameter matrix and relative pose relationship between multiple cameras, compares the current calibration parameters with the initial parameters, calculates the camera parameter deviation, corrects the parameter offset caused by motion inertia, vibration and mechanical deformation, and sends the corrected parameters to the microcontroller and camera. S6. Timing Closed-Loop Verification and Adaptive Update: After each image acquisition and dynamic calibration is completed, the industrial control computer verifies the timing synchronization error and calibration parameter deviation. If the error or deviation exceeds the preset threshold, the industrial control computer sends the optimized control parameters to the microcontroller, and the microcontroller automatically iteratively adjusts the trigger delay, exposure time, and light source brightness parameters. S7. System Operation and Anomaly Handling: During continuous equipment operation, the microcontroller cyclically performs timing calculations, camera and light source triggering, and data feedback, while the industrial control computer cyclically performs image acquisition, dynamic calibration, and parameter correction and distribution. When the encoder signal is interrupted, triggering fails, or calibration parameter deviation exceeds the threshold, the system automatically triggers an alarm and records the anomaly log.
[0006] Compared with the prior art, the present invention has the following beneficial effects: This invention has five significant advantages: First, by using the encoder pulse as the sole global timing reference, it unifies and synchronizes multi-camera exposure, light source start / stop, and calibration sampling, achieving microsecond-level linkage and completely eliminating timing deviations among multiple devices, thus solving the problem of multi-angle image misalignment for moving targets. Simultaneously, it breaks the inherent pattern of "calibrating while the machine is stopped, taking pictures while it's running," automatically inserting online calibration processes during continuous device movement, correcting parameter drift caused by vibration and deformation in real time, and ensuring stable detection accuracy throughout the entire process. Furthermore, the light source is synchronously turned on and off only during camera exposure, eliminating invalid illumination. Combined with imaging brightness feedback, it adaptively adjusts exposure and illumination parameters, eliminating overexposure and underexposure, and significantly reducing energy consumption and light source decay. In addition, for multi-camera arrays, differentiated trigger delays are set for each camera under a unified reference, synchronously completing the joint calibration of relative pose involving internal and external components, significantly improving the overall collaborative accuracy of the array. Finally, through a closed-loop verification module, timing errors and calibration deviations are automatically detected, and control parameters are autonomously iteratively optimized when thresholds are exceeded, achieving full-process adaptive updates without manual calibration, comprehensively ensuring the intelligent and stable long-term operation of the system.
[0007] The above description is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention and to implement it according to the contents of the specification, the preferred embodiments of the present invention are described in detail below with reference to the accompanying drawings. Specific embodiments of the present invention are given in detail below with reference to the accompanying drawings. Attached Figure Description
[0008] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings: Figure 1 This is a schematic diagram of the overall process of an embodiment of the present invention. Detailed Implementation
[0009] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.
[0010] In the description of the embodiments of the present invention, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicating orientation or positional relationships, are based on the orientation or positional relationships shown in the accompanying drawings, or the orientation or positional relationships commonly used when the product of the invention is in use. These are merely for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the present invention. Furthermore, the terms "first," "second," and "third," etc., are only used to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0011] In this invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," "linking," and "fixing," etc., should be interpreted broadly. For example, they can refer to a connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.
[0012] Reference Figure 1 In one embodiment of this application, a method for multi-camera calibration and light source linkage control under product motion conditions includes the following steps: S1. System Initialization and Parameter Configuration: Install the encoder on the drive shaft or transmission mechanism of the motion equipment, ensuring stable pulse signal output, and connect the encoder to the high-speed counting port of the microcontroller; install multiple cameras, light sources, and calibration boards, with each camera's field of view simultaneously including the product under test and the calibration board, aligning the light source with the camera's optical axis to ensure uniform illumination; complete the communication and data connections between the microcontroller, cameras, light sources, and industrial computer, ensuring stable signal links; configure the basic parameters of the cameras, light sources, calibration boards, and microcontroller on the industrial computer. S2. Establish a global timing reference for the encoder: The microcontroller acquires encoder pulse signals in real time through a high-speed counting port and uses the pulse count as a global timing reference. All subsequent actions are synchronized with this reference. The microcontroller calculates the real-time velocity v, acceleration a, and displacement s of the moving device based on the encoder pulse count. The microcontroller converts the pulse signal into a unified timestamp signal as a synchronous clock source for multiple cameras and light sources, replacing the traditional fixed delay triggering mode and eliminating the inherent delay deviation between different devices. S3. Two-way communication between industrial computer and microcontroller: The industrial computer sends the target exposure time t, gain d, trigger delay and light source brightness parameters of each camera to the microcontroller according to the current vision inspection requirements; after receiving the parameters, the microcontroller initially sets the light source illumination duration T to t, and automatically updates T=t every time the exposure time t is updated; the microcontroller sends the real-time collected velocity v, acceleration a, displacement s and timing reference information to the industrial computer in real time, providing motion state data for the industrial computer's dynamic calibration and image analysis; S4. Camera and Light Source Adaptive Timing Linkage Control: Based on the encoder timing reference, the microcontroller calculates the exclusive trigger timing for each camera by combining the installation position and shooting angle of each camera. The trigger time of the light source is completely synchronized with the start time of the camera exposure, and the extinguishing time of the light source is synchronized with the end time of the camera exposure, realizing "exposure-synchronized supplemental lighting and immediate extinguishing of the light source after exposure". When the encoder pulse count reaches the preset trigger condition, the microcontroller simultaneously sends a trigger signal to the corresponding camera and light source, triggering the camera to start exposure and the light source to light up synchronously. The camera exposure time is t, and the light source lighting time is T = t. The light source is extinguished immediately after the exposure ends, avoiding the problems of high energy consumption and rapid wear caused by the light source being constantly on. S5. Online Dynamic Calibration During Motion: During the continuous motion of the equipment, the calibration program of the industrial control computer is started synchronously. The microcontroller triggers the camera to acquire images that simultaneously include the product under test and the calibration board. The calibration program of the industrial control computer processes the images (identifies the feature points of the calibration board, combines the camera's intrinsic and extrinsic parameter models), calculates the camera distortion parameters, intrinsic parameter matrix, extrinsic parameter matrix and the relative pose relationship between multiple cameras, compares the current calibration parameters with the initial parameters, calculates the camera parameter deviation, corrects the parameter offset caused by motion inertia, vibration and mechanical deformation, realizes the real-time correction of the camera calibration parameters, and sends the corrected parameters (exposure time, gain, distortion parameters, etc.) to the microcontroller and the camera. S6. Timing Closed-Loop Verification and Adaptive Update: After each image acquisition and dynamic calibration is completed, the industrial control computer verifies the timing synchronization error and calibration parameter deviation. If the error or deviation exceeds the preset threshold, the industrial control computer sends the optimized control parameters to the microcontroller. The microcontroller automatically iteratively adjusts the trigger delay, exposure time, and light source brightness parameters to achieve self-updating of timing control and calibration parameters. The system continuously executes a closed-loop process of "acquisition-calibration-verification-optimization" without manual intervention, ensuring the stability of timing synchronization accuracy and calibration accuracy during long-term operation; S7. System Operation and Anomaly Handling: During continuous equipment movement, the microcontroller uses the encoder signal as a reference to cyclically perform timing calculations, camera and light source triggering, and data feedback. The industrial control computer cyclically performs image acquisition, dynamic calibration, and parameter correction and distribution to achieve continuous visual detection in motion. When the encoder signal is interrupted, triggering fails, or calibration parameter deviation exceeds the threshold, the system automatically triggers an alarm and records the anomaly log. The system supports automatic restoration of calibration parameters after shutdown, and adds an absolute encoder or power failure memory function. After restarting, it reads the current absolute pulse phase and executes the automatic zero-return process of 'finding the reference zero point', without the need for manual recalibration, thus ensuring production efficiency.
[0013] In a preferred embodiment of this application, step S1 completes the control line connection between the microcontroller and the camera and the light source, the communication line connection between the microcontroller and the industrial control computer, and the data line connection between the camera and the industrial control computer. The camera's basic parameters include initial exposure time t0, gain d0, and trigger mode (external trigger), and these parameters are sent to the microcontroller. The light source parameters include initial brightness and illumination duration (which is matched with the camera exposure time by default), and the light source is set to external trigger control mode; The calibration board parameters are configured by inputting the calibration board dimensions, checkerboard or dot spacing, and number of feature points into the calibration program on the industrial control computer. The basic parameters of the microcontroller include encoder pulse resolution, motion direction, speed sampling period, and timing synchronization error threshold.
[0014] In a preferred embodiment of this application, the formulas for calculating the real-time velocity v, acceleration a, and displacement s in S2 are as follows: Displacement s = number of pulses × pulse equivalent, where pulse equivalent = unit displacement of motion mechanism / number of encoder lines; during system initialization, pulse equivalent self-calibration is performed: the control device moves a fixed physical distance (such as laser rangefinder or grating ruler calibration), and automatically calculates and stores the actual pulse equivalent; Velocity v = Δs / Δt, where Δt is the sampling period; Acceleration a = Δv / Δt.
[0015] In a preferred embodiment of this application, the light source in S3 is lit only during camera exposure and is turned off immediately after the exposure ends.
[0016] As a preferred embodiment of this application, the specific method for calculating the exclusive trigger timing of each camera in S4 is as follows: based on the encoder pulse, the time point at which the product under test arrives at the center of the field of view of each camera is calculated according to the device's motion displacement, and the exposure trigger time of each camera is set accordingly; in the multi-camera array scenario, the microcontroller sets differentiated trigger delays for different camera positions based on a unified timing reference, adapts to the dynamic acquisition requirements of different shooting positions, and ensures that the acquisition actions of all cameras are accurately matched with the position of the moving target.
[0017] As a preferred embodiment of this application, in step S4, for high-speed motion scenarios, the microcontroller adaptively adjusts the exposure time t according to the real-time speed v, shortening the exposure time when the speed increases to avoid image ghosting; at the same time, it synchronously adjusts the light source brightness, and a preset exposure-brightness linkage calibration table stores the optimal exposure time and light source brightness combination parameters corresponding to different speed ranges to ensure stable imaging brightness.
[0018] In a preferred embodiment of this application, the image of the product under test and the image of the calibration board in S5 are the same image, which are collected synchronously during the continuous movement of the equipment without the need for additional downtime for data collection. The industrial control computer receives images captured by the camera and motion state data sent by the microcontroller, providing synchronous timing and motion information for calibration calculations; The microcontroller adjusts the subsequent exposure and light source triggering timing based on the corrected parameters, achieving seamless integration of dynamic calibration and image acquisition.
[0019] As a preferred embodiment of this application, the timing synchronization error in S6 is the time difference between the camera exposure trigger time, the light source lighting time and the encoder timing reference, with a preset threshold of ±1μs. If the error exceeds the preset threshold, the timing synchronization is determined to be abnormal. The calibration parameter deviation is the deviation between the current calibration parameter and the historical parameter. When the deviation changes by more than 0.1%, the camera parameter offset is determined to be abnormal.
[0020] In a preferred embodiment of this application, after the alarm is triggered in S7, the industrial control computer can adjust the control parameters according to the preset strategy to avoid detection failure.
[0021] This invention overcomes the technical limitations of traditional static calibration and fixed-timing linkage. Its core innovations focus on five dimensions: unified timing reference, dynamic online calibration, adaptive timing linkage, precise synchronization of light source and camera, and real-time compensation for motion errors, as detailed below: 1. Establish a unified timing reference to achieve microsecond-level synchronous control of multiple devices. This invention innovatively establishes a global hardware timing synchronization benchmark, abandoning the traditional fixed delay triggering mode. It uses the encoder signal pulse counting signal of the motion device as the synchronization clock source, and collects the target's motion speed and displacement parameters in real time. It unifies the exposure triggering of multiple cameras, shutter control, light source start and stop, and calibration sampling actions with the global timing benchmark, realizing microsecond-level synchronous linkage of all cameras and light source devices, completely eliminating multi-device timing deviations, and solving the problem of multi-angle image misalignment of moving targets. 2. Mechanism for online calibration and time-series fusion of motion processes Breaking away from the industry's inherent model of "calibrating while the machine is stopped and taking pictures while it is running," a dynamic interleaved timing control logic is designed. In the operation images of equipment in continuous motion and uninterrupted production, multiple cameras are automatically triggered to perform online calibration. The calibration action, image acquisition action, and light source supplementation action are performed simultaneously without stopping the machine or manual intervention. This achieves seamless integration of dynamic operation and real-time calibration, and corrects camera parameter errors caused by motion inertia, vibration, and mechanical deformation in real time, ensuring stable detection accuracy throughout the process. 3. Intelligent timing control with precise linkage between light source and camera exposure Abandoning the traditional control method of constant light source illumination and fixed start / stop, an exposure-matching light source timing logic is designed to precisely match the start of camera exposure to turn on the light source and the end of exposure to turn off the light source immediately, achieving precise linkage of "camera exposure synchronous lighting and light turning off immediately after exposure"; at the same time, the camera exposure parameters and light intensity are adaptively fine-tuned according to dynamic imaging brightness data to prevent overexposure and underexposure problems and reduce light source energy consumption and equipment wear. 4. Multi-camera overall collaborative calibration timing optimization For multi-camera array scenarios, a differentiated timing control strategy is designed. Based on the installation position, shooting angle, and imaging distance of each camera, a unified timing benchmark is established while the trigger timing of each camera is finely adjusted. Under the premise of ensuring the synchronization of multiple cameras, the dynamic acquisition needs of different camera positions are adapted, and the internal and external parameters and relative pose of all cameras are calibrated simultaneously to improve the overall collaborative detection accuracy of multi-camera arrays. 5. Closed-loop timing verification and self-update mechanism This invention adds a timing closed-loop verification module. After each dynamic calibration and image acquisition, it automatically verifies the timing synchronization error and calibration parameter deviation. If the error exceeds the threshold, it automatically iterates and optimizes the timing control parameters and calibration parameters, realizing full-process adaptive updates of timing control, camera calibration, and light source linkage. No manual calibration is required, which greatly improves the system's automation, intelligence, and long-term operational stability.
[0022] The working principle includes the following steps: system initialization and parameter configuration, establishing a global timing reference for the encoder, bidirectional communication between the industrial computer and the microcontroller, adaptive timing linkage control between the camera and the light source, online dynamic calibration of the motion process, timing closed-loop verification and adaptive update, and system operation and anomaly handling.
[0023] The above description is merely a preferred embodiment of the present invention. The scope of protection of the present invention is not limited to the above embodiments. All technical solutions falling within the scope of the present invention's concept are within the scope of protection of the present invention. It should be noted that for those skilled in the art, any improvements and modifications made without departing from the principle of the present invention should also be considered within the scope of protection of the present invention.
[0024] Furthermore, it should be understood that although this specification describes embodiments, not every embodiment contains only one independent technical solution. This narrative style is merely for clarity. Those skilled in the art should consider the specification as a whole, and the technical solutions in each embodiment can also be appropriately combined to form other embodiments that can be understood by those skilled in the art.
Claims
1. A method for multi-camera calibration and light source linkage control under product motion conditions, characterized in that, Includes the following steps: S1. System Initialization and Parameter Configuration: Install the encoder on the drive shaft or transmission mechanism of the motion equipment and connect the encoder to the high-speed counting port of the microcontroller; install multiple cameras, light sources, and calibration boards, with each camera's field of view simultaneously including the product under test and the calibration board; complete the communication and data connection between the microcontroller, cameras, light sources, and industrial computer; configure the basic parameters of the cameras, light sources, calibration boards, and microcontroller. S2. Establish global timing reference for encoder: The microcontroller acquires encoder pulse signals in real time through the high-speed counting port and uses the pulse count as the global timing reference. Based on the encoder pulse count, the microcontroller calculates the real-time velocity v, acceleration a, and displacement s of the motion device in real time. The microcontroller also converts the pulse signal into a unified timestamp signal as a synchronous clock source for multiple cameras and light sources. S3. Two-way communication between industrial computer and microcontroller: The industrial computer sends the target exposure time t, gain d, trigger delay and light source brightness parameters of each camera to the microcontroller according to the current vision inspection requirements; After receiving the parameters, the microcontroller initially sets the light source illumination duration T to t, and automatically updates T=t every time the exposure time t is updated in the future. The microcontroller transmits the real-time collected velocity v, acceleration a, displacement s, and timing reference information to the industrial computer in real time. S4. Camera and Light Source Adaptive Timing Linkage Control: The microcontroller calculates the exclusive trigger timing of each camera based on the encoder timing reference. The trigger time of the light source is completely synchronized with the camera exposure start time, and the light source extinguishing time is synchronized with the camera exposure end time. When the encoder pulse count reaches the preset trigger condition, the microcontroller simultaneously sends a trigger signal to the corresponding camera and light source, triggering the camera to start exposure and the light source to light up synchronously. S5. Online dynamic calibration during motion: During the continuous motion of the equipment, the microcontroller triggers the camera to acquire images that simultaneously include the product under test and the calibration board. The calibration program of the industrial control computer processes the images, calculates the camera distortion parameters, intrinsic parameter matrix, extrinsic parameter matrix and relative pose relationship between multiple cameras, compares the current calibration parameters with the initial parameters, calculates the camera parameter deviation, corrects the parameter offset caused by motion inertia, vibration and mechanical deformation, and sends the corrected parameters to the microcontroller and camera. S6. Timing Closed-Loop Verification and Adaptive Update: After each image acquisition and dynamic calibration is completed, the industrial control computer verifies the timing synchronization error and calibration parameter deviation. If the error or deviation exceeds the preset threshold, the industrial control computer sends the optimized control parameters to the microcontroller, and the microcontroller automatically iteratively adjusts the trigger delay, exposure time, and light source brightness parameters. S7. System Operation and Anomaly Handling: During continuous equipment operation, the microcontroller cyclically performs timing calculations, camera and light source triggering, and data feedback, while the industrial control computer cyclically performs image acquisition, dynamic calibration, and parameter correction and distribution. When the encoder signal is interrupted, triggering fails, or calibration parameter deviation exceeds the threshold, the system automatically triggers an alarm and records the anomaly log.
2. The multi-camera calibration and light source linkage control method for product motion state according to claim 1, characterized in that, In step S1, the control lines connecting the microcontroller to the camera and the light source are completed, the communication lines connecting the microcontroller to the industrial computer are completed, and the data lines connecting the camera to the industrial computer are completed. The camera's basic parameters include initial exposure time t0, gain d0, and trigger mode, and these parameters are sent to the microcontroller. The light source parameters include initial brightness and illumination duration, and the light source is set to external trigger control mode; The calibration board parameters are configured by inputting the calibration board dimensions, checkerboard or dot spacing, and number of feature points into the calibration program on the industrial control computer. The basic parameters of the microcontroller include encoder pulse resolution, motion direction, speed sampling period, and timing synchronization error threshold.
3. The multi-camera calibration and light source linkage control method for product motion state according to claim 1, characterized in that, The formulas for calculating the real-time velocity v, acceleration a, and displacement s in S2 are as follows: Displacement s = number of pulses × pulse equivalent, where pulse equivalent = unit displacement of motion mechanism / number of encoder lines; Velocity v = Δs / Δt, where Δt is the sampling period; Acceleration a = Δv / Δt.
4. The multi-camera calibration and light source linkage control method for product motion state according to claim 1, characterized in that: The light source in S3 is lit only during camera exposure and is turned off immediately after the exposure ends.
5. The multi-camera calibration and light source linkage control method for product motion state according to claim 1, characterized in that, The specific method for calculating the dedicated trigger timing of each camera in S4 is as follows: based on the encoder pulse, calculate the time point when the product under test arrives at the center of the field of view of each camera according to the movement displacement of the device, and set the exposure trigger time of each camera accordingly. In multi-camera array scenarios, the microcontroller sets differentiated trigger delays for different camera positions based on a unified timing reference.
6. The multi-camera calibration and light source linkage control method for product motion state according to claim 5, characterized in that: In S4, for high-speed motion scenarios, the microcontroller adaptively adjusts the exposure time t according to the real-time speed v. When the speed increases, the exposure time is shortened, and the brightness of the light source is adjusted synchronously.
7. The multi-camera calibration and light source linkage control method for product motion state according to claim 1, characterized in that: The image of the product under test and the image of the calibration board in S5 are the same image, which are collected synchronously during the continuous movement of the equipment. The industrial control computer receives images captured by the camera and motion state data sent by the microcontroller, providing synchronous timing and motion information for calibration calculations; The microcontroller adjusts the subsequent exposure and light source triggering timing based on the corrected parameters.
8. The multi-camera calibration and light source linkage control method for product motion state according to claim 1, characterized in that: The timing synchronization error in S6 is the time difference between the camera exposure trigger time, the light source illumination time and the encoder timing reference. The preset threshold is ±1μs. If the error exceeds the preset threshold, the timing synchronization is determined to be abnormal. The calibration parameter deviation is the deviation between the current calibration parameter and the historical parameter. When the deviation changes by more than 0.1%, the camera parameter offset is determined to be abnormal.
9. The multi-camera calibration and light source linkage control method for product motion state according to claim 1, characterized in that: After an alarm is triggered in S7, the industrial control computer can adjust the control parameters according to a preset strategy.
