Positioning method of PCB and industrial control equipment
By using an eight-channel CCD vision imaging module and a multi-camera unified world coordinate calibration method, the problem that the existing single-sided multi-CCD vision positioning architecture cannot simultaneously acquire the target positions on the front and back of the PCB board is solved, thus achieving high-precision alignment control and improved processing accuracy.
Patent Information
- Application Number
- CN202611224428.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-13
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2046-08-13
AI Technical Summary
In the current PCB inner layer core board processing, the single-sided multi-CCD vision positioning architecture cannot simultaneously acquire the accurate spatial position information of the front and back targets of the board, resulting in the inability to detect layer deviation defects in advance. Furthermore, the coordinate reference between multiple cameras is not unified, which affects the alignment accuracy and processing tolerance.
An eight-channel CCD vision imaging module is adopted, including four industrial CCD cameras at the top and bottom. Through a multi-camera unified world coordinate calibration method, the target images of the front and back of the PCB board are acquired simultaneously, and the pixel coordinates are transformed to a unified equipment world coordinate system to generate alignment control information.
It enables the synchronous acquisition of coordinate data of dual-sided targets under a unified spatiotemporal reference, which improves alignment accuracy and machining accuracy, and reduces the scrap rate caused by layer deviation defects.
Smart Images

Figure CN122742295B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of printed circuit board (PCB) processing technology, and more specifically, to a PCB alignment processing method and industrial control equipment. Background Technology
[0002] In the PCB inner layer core board processing, punching machines are widely used in the automated punching process after PCB inner layer etching, mainly for processing multi-layer PCB lamination positioning holes and rivet holes. The current mainstream mass production solution in the industry adopts a single-sided multi-CCD vision positioning architecture, which involves placing two or four CCD cameras on the upper side of the PCB core board. The equipment software only acquires target image data on the upper surface of the board, calculates the board's positional offset, and drives the platform to complete the correction compensation before performing the punching operation.
[0003] However, the existing solutions mentioned above have many shortcomings. Layer misalignment defects cannot be detected before the punching process, leading to the scrapping of core boards with layer misalignment after lamination. The expansion and contraction compensation model is based on linear assumptions and cannot handle local nonlinear distortion caused by uneven etching and copper thickness differences, making it difficult to meet the micron-level processing tolerances of high-precision PCBs. The two-CCD solution lacks redundant verification logic, resulting in poor fault tolerance for abnormal points; while the four-CCD solution can filter single-point imaging interference, its global one-time compensation strategy means that all punching positions on the board share the same set of compensation parameters, making it impossible to perform point-by-point differentiated optimization for different positions. Furthermore, multi-camera time-sharing shooting in single-sided imaging mode results in asynchronous acquisition errors, and the pixel coordinates of each camera are independent, leading to an inconsistent coordinate reference system and affecting the accuracy of target spatial position determination. Simultaneously, the punching program and the backend X-Ray inspection software data are isolated and lack closed-loop linkage, making adaptive iterative optimization of process parameters impossible.
[0004] Therefore, how to simultaneously obtain accurate spatial position information of the front and back targets of the sheet metal during the punching process, so as to realize pre-layer deviation detection and high-precision alignment compensation, has become a technical problem that urgently needs to be solved in this field. Summary of the Invention
[0005] The main purpose of this application is to provide a PCB board alignment processing method and industrial control equipment to solve the technical problems of existing single-sided imaging punching equipment that can only collect single-sided target information of the board and cannot simultaneously acquire the spatial position of the front and back targets, as well as the limited alignment accuracy caused by the inconsistency of coordinate references among multiple cameras. The application aims to achieve the technical effect of simultaneously acquiring double-sided target coordinate data under a unified spatiotemporal reference, and providing an accurate and consistent data foundation for subsequent alignment control.
[0006] To achieve the above objectives, the first aspect of this application proposes a PCB board alignment processing method, comprising: providing an eight-channel CCD vision imaging module, the imaging module including four industrial CCD cameras respectively disposed at the four corners above the PCB board conveying path and four industrial CCD cameras respectively disposed at the four corners below the PCB board; controlling each industrial CCD camera to synchronously acquire images of the PCB board to obtain eight original images of the PCB board, the eight original images including Mark target images at the four corners of the front side of the PCB board and Mark target images at the four corners of the back side of the PCB board; performing image preprocessing on each original image to extract the pixel coordinates of each Mark target in its corresponding camera pixel coordinate system; transforming each extracted pixel coordinate to a unified device world coordinate system through a preset multi-camera unified world coordinate calibration method to obtain the physical coordinates of each Mark target in the unified world coordinate system, and outputting each physical coordinate as double-sided target coordinate data; generating alignment control information based on the double-sided target coordinate data and outputting it to the control system of the PCB punching equipment, so that the control system of the PCB punching equipment can perform alignment operations on the PCB board based on the alignment control information.
[0007] In the above scheme, a pre-defined multi-camera unified world coordinate calibration method is used to transform the extracted pixel coordinates to a unified device world coordinate system, thereby obtaining the physical coordinates of each Mark target in the unified world coordinate system. This includes: controlling eight industrial CCD cameras to acquire multi-angle images of a standard chessboard calibration board; performing lens distortion correction on each industrial CCD camera based on the acquired multi-angle images, and solving for the intrinsic parameter matrix and distortion coefficients of each industrial CCD camera; calculating the spatial pose parameters of each industrial CCD camera in the device space, and generating a transformation matrix from the pixel coordinates of each industrial CCD camera to the unified world coordinate system; and transforming the extracted pixel coordinates to the unified device world coordinate system based on the transformation matrix, thereby obtaining the physical coordinates of each Mark target in the unified world coordinate system.
[0008] In the above scheme, based on the transformation matrix, the extracted pixel coordinates are transformed to a unified device world coordinate system to obtain the physical coordinates of each Mark target in the world coordinate system. This includes: determining the pixel equivalent of each CCD camera based on the transformation matrix, where the pixel equivalent is the physical size corresponding to a unit pixel; and converting the pixel coordinates of each Mark target to physical coordinates in the unified world coordinate system using a conversion formula based on the pixel equivalent. The conversion formula is as follows:
[0009] in, , These are pixel coordinate values; , Physical coordinates in the world coordinate system; In pixel equivalents.
[0010] In the above scheme, the extracted pixel coordinates are transformed to a unified device world coordinate system by a preset multi-camera unified world coordinate calibration method, so as to obtain the physical coordinates of each Mark target in the unified world coordinate system. This includes: controlling eight industrial CCD cameras to re-acquire a standard chessboard calibration board according to a preset time period or punching cycle; verifying the transformation matrix of each industrial CCD camera and the platform origin of the three-axis servo attitude adjustment platform of the PCB punching equipment based on the re-acquired standard chessboard calibration board; and responding to the verification result exceeding the preset deviation range, re-executing the preset multi-camera unified world coordinate calibration method to transform the extracted pixel coordinates to a unified device world coordinate system, so as to obtain the physical coordinates of each Mark target in the unified world coordinate system.
[0011] In the above scheme, image preprocessing is performed on each of the original images to extract the pixel coordinates of each Mark target in its corresponding camera pixel coordinate system. This includes: converting the eight original images to grayscale; performing Gaussian filtering to reduce noise in the grayscale images; extracting edges from the denoised images to identify the contour features of the Mark targets; removing invalid noise contours from the extracted contour features to output the Mark target contour image; and extracting the coordinates of the center point or feature point of the Mark target contour image as the pixel coordinates of each Mark target in its corresponding pixel coordinate system.
[0012] In the above scheme, the imaging module also includes: a synchronization trigger board connected to each industrial CCD camera; controlling each industrial CCD camera to synchronously acquire images of the PCB board, including: sending a global hardware-level synchronization trigger signal to each industrial CCD camera through the synchronization trigger board, controlling each industrial CCD camera to synchronously start exposure, so that the exposure start time deviation of each industrial CCD camera is controlled within microseconds, so as to control each industrial CCD camera to synchronously acquire images of the PCB board.
[0013] In the above scheme, the imaging module also includes: a ring-shaped supplementary light source connected to each industrial CCD camera; the method also includes: during the synchronous image acquisition process, adjusting the brightness of each ring-shaped supplementary light source so that the illumination uniformity of the field of view area corresponding to each industrial CCD camera meets the Mark target recognition requirements.
[0014] In the above scheme, image preprocessing is performed on each original image to extract the pixel coordinates of each Mark target in its corresponding camera pixel coordinate system. This includes: using a multi-template matching algorithm to identify Mark targets in the eight original images. The multi-template matching algorithm has multiple templates built-in for circular targets, cross targets, square targets, and irregular targets. Based on the identified Mark target type, the corresponding template is called to extract the coordinates of the center point or feature point of each Mark target, which are used as the pixel coordinates of each Mark target in its corresponding pixel coordinate system.
[0015] In the above scheme, alignment control information is generated based on the double-sided target coordinate data and output to the control system of the PCB punching equipment. This allows the control system to perform alignment operations on the PCB board based on the alignment control information. The process includes: calculating the relative positional deviation between the front and back targets of the PCB board based on the double-sided target coordinate data; generating alignment control information based on the double-sided target coordinate data and the relative positional deviation and outputting it to the control system of the PCB punching equipment; wherein the alignment control information includes: attitude correction control information and / or layer deviation determination information; generating the alignment control information includes at least one of the following: calculating the translation and rotation angles of the PCB board based on the physical coordinates of the four corners of the front target in the double-sided target coordinate data; generating attitude correction control information based on the translation and rotation angles; and generating layer deviation determination information based on the relative positional deviation.
[0016] To achieve the above objectives, a second aspect of this application proposes an industrial control device, including a processor and a memory storing a computer program, which implements the PCB board alignment processing method described above when the processor runs the computer program.
[0017] The technical solutions provided by the embodiments of this application may include the following beneficial effects: In this application, an eight-channel CCD vision imaging module is provided. The imaging module includes four industrial CCD cameras positioned at the four corners above the PCB board conveying path and four industrial CCD cameras positioned at the four corners below the PCB board. Each industrial CCD camera is controlled to synchronously acquire images of the PCB board to obtain eight raw images of the PCB board. These eight raw images include Mark target images at the four corners of the front and four corners of the back of the PCB board. Each raw image undergoes image preprocessing to extract the pixel coordinates of each Mark target in its corresponding camera pixel coordinate system. Using a preset multi-camera unified world coordinate calibration method, the extracted pixel coordinates are transformed to a unified device world coordinate system to obtain the physical coordinates of each Mark target in the unified world coordinate system. These physical coordinates are then output as double-sided target coordinate data. Alignment control information is generated based on the double-sided target coordinate data and output to the control system of the PCB punching equipment, allowing the control system to perform alignment operations on the PCB board based on the alignment control information. Firstly, by providing eight industrial CCD cameras respectively positioned on the top and bottom sides of the PCB board and simultaneously acquiring images of the PCB board, complete target images of the four corners of the front and back sides of the PCB board can be obtained at once, avoiding timing errors introduced by time-division shooting. Secondly, by preprocessing the eight raw images and extracting the pixel coordinates of each target, a unified format of raw data is provided for subsequent coordinate transformation. On this basis, the independent pixel coordinates are transformed to the same device world coordinate system through a multi-camera unified world coordinate calibration method, eliminating the deviation of inconsistent coordinate references between multiple cameras. This allows the physical coordinates of each target to be spatially correlated and calculated under the same reference system, thereby generating alignment control information based on the double-sided target coordinate data, which is then used by the control system to perform alignment operations on the PCB board. Therefore, the embodiments of this application can simultaneously acquire the coordinate data of the double-sided target, unify the coordinate system of multiple cameras, and spatially correlate the coordinate data of the double-sided target within a single image acquisition process. This provides a data foundation for achieving high-precision alignment operation that takes into account both the front and back states of the board material, and provides a strong guarantee for effectively improving the alignment accuracy and process yield control capability of PCB punching. Attached Figure Description
[0018] The accompanying drawings, which form part of this application, are used to provide a further understanding of the application and to make other features, objects, and advantages of the application more apparent. The illustrative embodiments and descriptions of this application are used to explain the application and do not constitute an undue limitation of the application. In the drawings: Figure 1 A flowchart illustrating the alignment process of a PCB board provided in an embodiment of this application; Figure 2This is a schematic diagram of the structure of the industrial control equipment provided in the embodiments of this application. Detailed Implementation
[0019] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0020] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this application described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0021] In this application, the terms "upper," "lower," "left," "right," "front," "rear," "top," "bottom," "inner," "outer," "middle," "vertical," "horizontal," "lateral," and "longitudinal" indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. These terms are primarily for the purpose of better describing this application and its embodiments, and are not intended to limit the indicated device, element, or component to having a specific orientation, or to be constructed and operated in a specific orientation.
[0022] Furthermore, in addition to indicating location or positional relationship, some of the aforementioned terms may also have other meanings. For example, the term "above" may also be used in some cases to indicate a certain dependency or connection relationship. Those skilled in the art can understand the specific meaning of these terms in this application based on the specific circumstances.
[0023] Furthermore, the terms "installation," "setup," "equipped with," "connection," "linked," and "socketing" should be interpreted broadly. For example, "connection" can be a fixed connection, a detachable connection, or an integral structure; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or an internal connection between two devices, components, or parts. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.
[0024] It should be noted that the embodiments of this application can be applied to the field of visual alignment and layer misalignment detection in the punching process of PCB inner layer core boards. For example, by deploying a double-sided eight-channel CCD imaging module, a three-axis servo attitude adjustment platform, and an industrial control host on the PCB punching production line, multi-dimensional data such as the front and back corner Mark target images of the PCB board on the conveying path, real-time platform pose data, and historical punching batch yield statistics are obtained. Using the method of this application, a unified spatial mapping relationship including board surface target nodes, coordinate system nodes, attitude compensation nodes, and layer deviation judgment nodes is constructed. The pixel coordinates of each target are transformed to the same physical reference through a multi-camera unified world coordinate calibration method. After obtaining the double-sided target coordinates, the layer deviation is judged first. If the layer deviation exceeds the preset qualified tolerance, the interception and diversion are directly pulled to terminate the subsequent alignment compensation process. If the layer deviation is qualified, the optimal alignment control parameters are output by combining the dynamic screening domain convergence screening algorithm to drive the actuator to complete the punching positioning. This aims to replace the limitations of traditional technologies that rely solely on single-sided target fitting or global uniform expansion and contraction compensation to achieve double-sided differentiated deformation adaptation and layer deviation pre-interception.
[0025] Understandably, the high-precision punching and alignment of the inner core board of a PCB currently faces two major challenges: "lack of spatial uniformity in alignment reference" and "difficulty in attributing the deformation differences between the front and back sides". First, the lack of spatial uniformity in alignment references is reflected in the fact that existing punching equipment mostly adopts a single-sided multi-CCD time-division acquisition scheme. The pixel coordinate systems of each camera are independent of each other, and can only calculate the overall translation and rotation angle of the board. It is impossible to establish a unified physical coordinate reference covering the front and back of the board, which leads to a systematic deviation in the determination of the target spatial position. When the board itself undergoes non-uniform expansion and contraction in the X / Y direction, the alignment accuracy drops sharply, making it difficult to meet the micron-level processing tolerances of high-order multilayer boards. Second, the difficulty in attributing the deformation differences between the front and back sides is reflected in the fact that existing methods treat all target features equally and cannot distinguish the contributions of the front and back pattern offsets. When the target fitting posture of the four corners of the front side of the same board is good, but the target of the same origin on the back side has undergone layer offset (for example, uneven spraying of etching solution causes asynchronous expansion and contraction of the copper layer on the front and back sides), due to the lack of dual-sided coordinate comparison capability based on a unified reference, the equipment cannot identify the anomaly, causing the core board with layer offset defects to continue to flow into the lamination process, ultimately resulting in the scrapping of the entire board.
[0026] Based on this, the embodiments of this application aim to provide an accurate PCB board alignment processing method and industrial control equipment that has spatial consistency and can take into account the differential deformation of the front and back of the board, so as to assist the operators and process engineers of the punching production line to quickly identify abnormal layer misalignment of the board, accurately compensate for non-uniform deformation of the front and back, improve the positioning accuracy and product yield of the PCB punching process, and reduce the scrap cost of high-end multilayer boards caused by layer misalignment.
[0027] The technical solution of this application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0028] Please see Figure 1 , Figure 1 This is a flowchart illustrating the PCB board alignment method provided in the embodiments of this application, as shown below. Figure 1 As shown, applied to industrial control equipment, the method includes: Step 101: Provide an eight-channel CCD vision imaging module, which includes four industrial CCD cameras located at the four corners above the PCB board transport path and four industrial CCD cameras located at the four corners below the PCB board transport path.
[0029] It should be noted that this method is executed by industrial control equipment, which is an industrial control computer. This type of computer uses a bus architecture to detect and control industrial production processes and their electromechanical equipment. Industrial control equipment typically includes a central processing unit (CPU), hard disk, memory, various data interfaces, and a human-machine interface, and runs a real-time operating system and control protocols. Compared to ordinary commercial computers, industrial control equipment features high reliability, good real-time performance, strong hardware scalability, and good maintainability, making it more suitable for long-term stable operation in industrial environments with dust, temperature and humidity variations, and electromagnetic interference. In this embodiment, the industrial control equipment serves as the core computing and control unit of the entire alignment processing method. It is communicatively connected to an eight-channel industrial CCD camera, a synchronous trigger board, a ring-shaped supplementary light source, and a three-axis servo attitude adjustment platform, and is used to execute steps such as image acquisition control, image preprocessing, coordinate calibration transformation, alignment control information generation, and output.
[0030] An industrial CCD camera refers to an industrial-grade digital camera that uses a charge-coupled device (CCD) as its image sensor. An industrial CCD camera consists of an optical lens, a timing and synchronization signal generator, a vertical driver, and analog / digital signal processing circuitry. Its working principle is as follows: the CCD image sensor has thousands of photosensitive elements (photosensitive points) on a semiconductor silicon wafer. Each photosensitive element generates a charge signal proportional to the illumination after receiving light. This charge signal is transferred, amplified, and output under the influence of driving pulses, and then converted from analog to digital to generate a digital image signal. Compared to ordinary commercial cameras, industrial CCD cameras have advantages such as short shutter speed (capable of capturing high-speed moving objects), progressive scan (low image distortion), and high shooting speed (capable of capturing several to hundreds of images per second). In this embodiment, each industrial CCD camera is positioned above and below the PCB board transport path to synchronously acquire images of the Mark targets on the front and back of the PCB board after receiving a synchronization trigger signal.
[0031] Specifically, the eight-channel industrial CCD camera setup is as follows: Four industrial CCD cameras are positioned above the PCB board's transport path, at each of the four corners of the PCB board, to capture Mark target images at the four corners of the front side of the PCB board. Similarly, four industrial CCD cameras are positioned below the PCB board's transport path, at each of the four corners of the PCB board, to capture Mark target images at the four corners of the back side of the PCB board. Here, "four corners" refers to the four apex regions of the rectangular surface of the PCB board, namely the front left corner, front right corner, rear left corner, and rear right corner along the PCB board transport direction (X direction), corresponding to the first, second, third, and fourth corners of the PCB board in the equipment coordinate system, respectively. Each industrial CCD camera's field of view covers the Mark target in its corresponding corner region, and the eight cameras together achieve simultaneous imaging coverage of eight Mark targets at the four corners of the front and back sides of the PCB board. By placing cameras above and below the PCB board conveying path, and with subsequent synchronous trigger control, simultaneous frame acquisition of targets on both sides of the PCB board can be achieved, providing an image data basis for subsequent acquisition of double-sided target coordinate data and layer offset detection.
[0032] Step 102: Control each industrial CCD camera to synchronously acquire images of the PCB board to obtain eight raw images of the PCB board.
[0033] The eight original images include Mark target images at the four corners of the front side of the PCB board and Mark target images at the four corners of the back side.
[0034] The raw image refers to the digital image signal directly output by the industrial CCD camera after receiving the synchronization trigger signal, through photoelectric conversion and analog-to-digital conversion, without any image processing (such as image enhancement, filtering and noise reduction, contrast stretching, color correction, etc.). The raw image retains all pixel information recorded by the camera's photosensitive element, including details of the effective target area, background texture, and noise interference components. In this embodiment, eight industrial CCD cameras output raw images within their respective fields of view. Each raw image corresponds to an imaging field of view of a angular region, including the PCB board surface image, the Mark target image, and any interference information such as dust, scratches, and ambient stray light within that field of view. The raw image serves as input data for subsequent image preprocessing steps, and its data integrity and acquisition timing consistency directly affect the accuracy and reliability of target coordinate extraction.
[0035] In this context, the Mark target image refers to the portion of the original image that includes the Mark target image. The "target" (or "Mark point") is a graphic marker pre-set at the four corners of the PCB board surface, used in the visual alignment system to identify and locate the spatial position and orientation of the PCB board. In this embodiment, targets are set at the four corners of the front and back sides of the PCB board, totaling eight targets. The target shape can be circular, cross-shaped, square, or irregular, with a typical feature being a clear geometric center (such as the center of a circle, the intersection of a cross, or the geometric center of a square), facilitating the extraction of its precise coordinates by the visual algorithm. A complete Mark target image is characterized by a significant grayscale difference between the target graphic and its background (i.e., the copper foil or substrate area on the PCB board surface) in a specific region of the original image, allowing the target outline to be recognized and extracted by the image preprocessing algorithm. Taking a circular target as an example, its Mark target image appears as a circular bright spot (or dark spot) surrounded by a background area with opposite grayscale values. The visual algorithm can extract the center pixel coordinates of the circular target through edge detection and circle fitting.
[0036] For example, the industrial control equipment sends a global hardware-level synchronization trigger signal to eight industrial CCD cameras simultaneously through a synchronization trigger board, controlling the eight industrial CCD cameras to start exposure at the same time and perform synchronous image acquisition on the PCB board, thereby obtaining eight original images.
[0037] In some embodiments, the imaging module further includes: a synchronization trigger board connected to each industrial CCD camera; controlling each industrial CCD camera to synchronously acquire images of the PCB board, including: The synchronous trigger board sends a global hardware-level synchronous trigger signal to each industrial CCD camera, controlling each industrial CCD camera to start exposure synchronously, so that the deviation of the exposure start time of each industrial CCD camera is controlled within microseconds, so as to control each industrial CCD camera to synchronously acquire images of the PCB board.
[0038] Specifically, the synchronous trigger board is electrically connected to the trigger interfaces of eight industrial CCD cameras. The industrial control equipment sends acquisition commands to the synchronous trigger board via the data bus. Upon receiving the command, the synchronous trigger board simultaneously outputs TTL trigger pulses of the same level and pulse width to the eight industrial CCD cameras, causing each industrial CCD camera to start exposure and output image data at the same time. Since each camera shares the same trigger source and the trigger signals arrive simultaneously, the deviation of the exposure start time of each camera can be controlled within microseconds, thereby effectively eliminating the time-division multiplexing acquisition asynchronous error and ensuring that the front and back target coordinate data on which subsequent layer offset calculation and coordinate comparison depend are strictly aligned in time.
[0039] In some embodiments, the imaging module further includes: a ring-shaped supplementary light source respectively connected to each industrial CCD camera; the method further includes: During the synchronous image acquisition process, the brightness of each ring-shaped supplementary light source is adjusted to ensure that the illumination uniformity of the corresponding field of view area of each industrial CCD camera meets the requirements for Mark target recognition.
[0040] Specifically, during the synchronous acquisition process, the industrial control equipment also adjusts the brightness of each ring-shaped supplementary light source to ensure that the illumination uniformity of the corresponding field of view of each industrial CCD camera meets the requirements for Mark target recognition. Each ring-shaped supplementary light source is set up corresponding to a set of industrial CCD cameras, and its brightness can be independently adjusted by the industrial control equipment via pulse width modulation (PWM). Because the ambient lighting conditions above and below the PCB board conveying path differ (the upper area is significantly affected by workshop ambient light, while the lower area is in a sheltered environment with weaker ambient light), if all ring-shaped supplementary light sources use the same brightness, it will lead to a large difference in image brightness between the upper and lower cameras, affecting the stability of subsequent target recognition. By independently adjusting the brightness of each ring-shaped supplementary light source, it is possible to adapt to the actual lighting conditions of each camera, ensuring uniform and appropriate illumination within the field of view of each camera, thereby improving the accuracy and repeatability of Mark target edge extraction.
[0041] Thus, after the raw images acquired by the industrial CCD camera are output to the industrial control equipment through step 102, the industrial control equipment associates the eight raw images with their respective camera numbers, acquisition timestamps, and synchronization frame numbers and stores them in memory for subsequent image preprocessing steps.
[0042] Furthermore, in some optional implementations, synchronous image acquisition can be performed after the PCB board has completed pre-alignment coarse adjustment. Pre-alignment coarse adjustment refers to using two sets of CCD cameras above the device to acquire the coordinates of the target feature points on the surface of the board and driving a three-axis servo attitude adjustment platform to complete a rough alignment, thus narrowing the large-scale offset deviation of the board to a preset range before performing the synchronous image acquisition step. By pre-narrowing the deviation, it can be ensured that the target images acquired by the eight industrial CCD cameras are all within the effective field of view of each camera, avoiding the situation where some targets are out of the camera's field of view due to excessive initial offset of the board, thus preventing the acquisition of complete eight-channel target image data.
[0043] Step 103: Perform image preprocessing on each original image and extract the pixel coordinates of each Mark target in its corresponding camera pixel coordinate system.
[0044] In some implementations, image preprocessing is performed on each original image to extract the pixel coordinates of each Mark target in its corresponding camera pixel coordinate system, including: The original images described in the eight channels are converted to grayscale respectively; Perform Gaussian filtering on the grayscale image to reduce noise; Edge extraction is performed on the denoised image to identify the contour features of the Mark target; The extracted contour features are subjected to invalid noise contour removal, and the Mark target contour image is output. Extract the coordinates of the center point or feature point of the Mark target contour image, and use them as the pixel coordinates of each Mark target in its corresponding pixel coordinates.
[0045] Specifically, for each original image, the industrial control equipment sequentially performs grayscale processing, Gaussian filtering for noise reduction, edge extraction, invalid noise contour removal, and pixel coordinate extraction.
[0046] For example, since the raw images output by industrial CCD cameras are typically color images or images containing multi-channel color information, and subsequent edge extraction and target recognition rely solely on the image's brightness information, with color information itself not participating in target localization calculations and significantly increasing data processing volume, the raw images are first converted to grayscale. Grayscale conversion can employ a weighted average method, assigning different weight coefficients to the red (R), green (G), and blue (B) channels based on the human eye's sensitivity to different color components, and calculating the grayscale value of each pixel. After grayscale conversion, each pixel uses only one grayscale value (usually an integer between 0 and 255) to represent its brightness information, effectively reducing the amount of data required for subsequent processing while preserving the contrast information between the target and the background.
[0047] For example, grayscale images typically contain noise interference introduced by factors such as changes in ambient light in industrial environments, thermal noise from CCD sensors, and circuit transmission noise. This noise causes random fluctuations in the grayscale values of pixels in the image, affecting the accuracy of subsequent edge detection. Therefore, Gaussian filtering is used to denoise grayscale images. The core idea of Gaussian filtering is: for each pixel in the image, a neighborhood window (such as a 3×3 or 5×5 window) is taken centered on it; the weight coefficients of each pixel within the window are calculated using a Gaussian function; then, the grayscale values of all pixels within the window are weighted and averaged, and the weighted average is used as the filtered grayscale value of that pixel. Essentially, Gaussian filtering is a low-pass filter that can effectively suppress high-frequency noise while preserving the overall structural information of the image. Through Gaussian filtering denoising, the edge contours of the Mark target in the image are smoother and more continuous, while the grayscale values of isolated noise points such as dust particles and micro-scratches are reduced, providing a cleaner data foundation for subsequent edge extraction.
[0048] For example, edge extraction is performed on the denoised image to identify the contour features of the Mark target. An edge is a set of pixels in an image where the grayscale value changes drastically, typically corresponding to the boundary of an object. In this embodiment, there is a significant grayscale difference between the Mark target (e.g., circular, cross-shaped, square, etc.) and the surrounding PCB board surface (copper foil or substrate), forming a clear grayscale step at the target edge. The purpose of edge extraction is to detect these grayscale step locations, thereby outlining the contour of the Mark target. It is understood that edge extraction can employ the Canny edge detection algorithm. This algorithm first calculates the gradient magnitude and gradient direction of each pixel in the image, then eliminates most non-edge pixels through non-maximum suppression, and finally determines the final edge pixels through double threshold detection and edge connection. The Canny algorithm has good signal-to-noise ratio and positioning accuracy, and can accurately extract the closed contour of the Mark target, providing reliable edge information for subsequent contour filtering and coordinate extraction.
[0049] For example, the contour map obtained after edge extraction may contain noise contours caused by factors such as dust particles, surface scratches, ambient light, and slight warping of the board, in addition to the true contour of the Mark target. These noise contours can interfere with the accurate positioning of the target center point or feature points, and therefore need to be removed. The removal of invalid noise contours can be achieved using at least one or more combinations of the following methods: Area filtering: Calculate the area enclosed by each contour, and discard contours with an area smaller than a preset area threshold (e.g., 10 pixels) or larger than a preset area upper limit as noise contours. Dust particles are usually small in area, while large-area board scratches or reflective areas are large, neither of which meet the size characteristics of the Mark target.
[0050] Shape filtering: Calculate the roundness (i.e., the ratio of the outline area to the area of its circumcircle) or rectangularity of each contour, and discard contours whose shape features do not conform to the target's geometry as noise contours. For example, for a circular target, the roundness of its contour should be close to 1; contours that deviate significantly from this value can be identified as noise.
[0051] Gray-scale consistency screening: Calculate the difference between the average gray-scale value of the region inside the contour and the average gray-scale value of the background region outside the contour. Contours with a gray-scale difference less than a preset threshold are identified as noise contours and removed. There should be a clear gray-scale contrast between the Mark target and its background. If the gray-scale difference between the inside and outside of a contour is too small, it indicates that the contour is not the true edge of the target.
[0052] Thus, through the above invalid noise contour removal operation, a high-purity Mark target contour image is finally output, in which only the true contour of each Mark target is retained, thereby ensuring the accuracy of subsequent coordinate extraction.
[0053] After obtaining high-purity Mark target contour images, the coordinates of the center point or feature point of each Mark target contour image are extracted as the pixel coordinates of each Mark target in its corresponding camera pixel coordinate system.
[0054] In this embodiment, converting the eight original color images into grayscale images through grayscale processing effectively reduces the amount of data in subsequent image processing while preserving the contrast information between the target and the background, thus improving processing efficiency without sacrificing target recognizability. Gaussian filtering is used to smooth the grayscale images, effectively suppressing random interference introduced by changes in ambient light, CCD sensor thermal noise, and circuit transmission noise, resulting in smoother and more continuous target edge contours and improving the signal-to-noise ratio and positioning accuracy of subsequent edge extraction. Edge extraction identifies target contour features, accurately separating the target image from the background and providing reliable edge data for subsequent contour filtering and coordinate positioning. Eliminating invalid noise contours from the extracted contours filters out false contour interference caused by dust particles, surface scratches, ambient stray light, and slight warping of the board, preventing non-target features from being misidentified as valid targets. Furthermore, by extracting the center point or feature point coordinates of the contour image as the pixel coordinates of each Mark target, the target position can be quantified into precise coordinate values, providing accurate and reliable input data for subsequent multi-camera unified world coordinate calibration. As can be seen, the above steps are sequentially connected and purified step by step, forming a complete, stable and accurate target coordinate extraction process. This can effectively improve the accuracy and repeatability of Mark target pixel coordinate extraction, and lay a high-quality data foundation for subsequent multi-camera coordinate calibration and alignment control information generation.
[0055] In some implementations, image preprocessing is performed on each of the original images to extract the pixel coordinates of each Mark target in its corresponding camera pixel coordinate system, including: A multi-template matching algorithm is used to identify Mark targets in the eight original images. The multi-template matching algorithm has multiple templates that correspond to circular targets, cross targets, square targets and irregular targets respectively. Based on the identified Mark target type, the corresponding template is called to extract the coordinates of the center point or feature point of each Mark target, which are then used as the pixel coordinates of each Mark target in its corresponding pixel coordinate system.
[0056] It's important to note that the core idea of the multi-template matching algorithm is as follows: For different types (shapes) of Mark targets, a corresponding geometric template library is pre-built. During real-time image processing, the extracted target contour is matched one by one with each template in the library. Based on the matching results, the type of the current target is identified, and then the coordinate extraction strategy corresponding to that type is called to accurately extract the coordinates of the target's center point or feature points. The advantage of multi-template matching is that it "packages" multiple templates into a composite template descriptor. A single search can return all possible matching results and their corresponding template labels, avoiding code duplication and increased time consumption caused by writing independent recognition processes for each target type.
[0057] Specifically, the multi-template matching algorithm has several built-in templates, including: Circular targets are the most common type of Mark targets on PCB boards. During template matching, the circular target template pre-records the geometric features of a standard circular target, including the radius range, edge gradient distribution pattern, and grayscale contrast between the center and circumference. When the target contour extracted from the original image successfully matches the circular template, the algorithm calls the circular target coordinate extraction strategy: performing circle fitting on the target contour (such as using the least squares method or Hough transform circle detection method), fitting the center coordinates and radius, and using the fitted center coordinates as the pixel coordinates of the Mark target.
[0058] A crosshair target is formed by the intersection of two perpendicular line segments, commonly used in positioning scenarios requiring clear directional indication. The crosshair target template pre-records the geometric features of the crosshair target, including the length ratio of the two line segments, the intersection angle (90°), the range of line segment widths, and the grayscale features of the intersection point. When the target outline successfully matches the crosshair template, the algorithm invokes a crosshair target coordinate extraction strategy: performing line detection on the target outline (e.g., using the Hough transform line detection method), extracting two perpendicular line segments, and calculating the coordinates of the intersection point of the two lines as the pixel coordinates of the Mark target.
[0059] The square target consists of a closed rectangle formed by four sides joined end to end, with its geometric center serving as the positioning reference point. The square target template pre-records the geometric features of the square target, including the range of side lengths, the four corner angles (90°), the aspect ratio range, and the grayscale features of the central region. When the target outline successfully matches the square template, the algorithm invokes the square target coordinate extraction strategy: corner detection is performed on the target outline, the coordinates of the four corner points are extracted, and the geometric center coordinates of the four corner points (i.e., the intersection of the diagonals) are calculated as the pixel coordinates of the Mark target.
[0060] Irregularly shaped targets refer to customized Mark targets other than circular, cross-shaped, and square ones. The irregularly shaped target template pre-records the contour shape features of the target, including geometric moments (such as Hu moments), the perimeter-to-area ratio, and convex hull features. When the target contour successfully matches the irregularly shaped template, the algorithm calls the irregularly shaped target coordinate extraction strategy: calculating the centroid of the region enclosed by the target contour (i.e., the ratio of the first-order geometric moment to the zero-order geometric moment), which is used as the pixel coordinates of the Mark target. The introduction of irregularly shaped target templates enables this application to be compatible with various customized target designs in the PCB industry, avoiding the problem of unrecognizable targets due to their unique shapes.
[0061] During real-time operation, the workflow of the multi-template matching algorithm is as follows: First, the industrial control equipment inputs the high-purity Mark target contour image obtained in step 103 after grayscale conversion, Gaussian filtering for noise reduction, edge extraction, and removal of invalid noise contours into the multi-template matching module.
[0062] Secondly, the multi-template matching module calculates the similarity between the extracted target contour features and each of the built-in template types. Similarity calculation can employ a shape-based matching method, determining the matching score by comparing the edge point distance or shape context similarity between the target contour and the template. The template type with the highest matching score is the current target's recognition result.
[0063] Then, based on the identified target type, the algorithm automatically routes to the corresponding coordinate extraction branch: for circular targets, it calls circle fitting to extract the center; for cross targets, it calls line detection to extract the intersection point; for square targets, it calls corner detection to extract the geometric center; and for irregular targets, it calls centroid calculation to extract the contour centroid.
[0064] Finally, the extracted center point or feature point coordinates are output as the pixel coordinates of the Mark target in its corresponding camera pixel coordinate system for use in the multi-camera unified world coordinate calibration in step 104.
[0065] Thus, this embodiment employs a multi-template matching algorithm with built-in multiple target templates to perform Mark target recognition on eight original images. Based on the recognition results, it calls the corresponding coordinate extraction strategy, enabling compatibility with multiple target types and improving equipment versatility. Specifically, the Mark target shape of incoming PCB boards is not standardized; different PCB manufacturers and product models may use circular, cross-shaped, square, or various customized irregularly shaped targets. By embedding a template library corresponding to multiple target shapes into the algorithm and employing targeted coordinate extraction strategies for different target shapes (circle fitting to extract the center, line detection to extract the intersection, corner detection to extract the geometric center, and centroid calculation to extract the contour centroid), the same vision alignment system can handle PCB boards with various target shapes. Operators do not need to change the algorithm or adjust the software configuration for different target types to complete the automatic alignment of different types of PCB boards. This significantly improves the adaptability of punching equipment to diversified orders and reduces the time cost and operational complexity of equipment changeover and debugging. Simultaneous recognition via a single search improves processing efficiency. Traditional methods involve writing independent recognition processes for each target type, executing them sequentially via loops or conditional structures. This not only increases code complexity but, more importantly, increases the overall image processing time. Multi-template matching, on the other hand, "packages" multiple templates into a composite template descriptor, returning all possible matching results and their corresponding template labels in a single search, achieving parallel search. In the eight-channel synchronous acquisition scenario of this application, each original image needs to complete target recognition and coordinate extraction. If template matching is used one by one, the processing time for eight images would increase exponentially; however, multi-template matching can complete recognition in a single search, significantly shortening the image processing time for a single PCB board. Combined with the eight-channel synchronous acquisition in step 102, this further improves the overall alignment efficiency. Furthermore, adaptive routing based on target type improves coordinate extraction accuracy. Different types of targets have different geometric features: the positioning reference for a circular target is the center of the circle, for a cross-shaped target it is the intersection of two lines, for a square target it is the geometric center, and for an irregularly shaped target it is the centroid of the contour. Applying a uniform coordinate extraction method (such as uniformly calculating the centroid of the contour) to all types of targets can lead to problems such as center offset for circular targets and inaccurate intersection points for cross targets, introducing unnecessary coordinate errors. This application automatically routes to the corresponding coordinate extraction strategy based on the target type identified through multi-template matching, ensuring that the coordinate extraction method for each type of target matches its geometric features. This adaptive "identification-routing-extraction" mechanism effectively avoids the incompatibility of a uniform extraction method for targets of different shapes, ensuring that the pixel coordinate extraction accuracy for all types of targets meets the accuracy requirements for subsequent calibration and alignment.
[0066] Finally, to provide an accurate data foundation for subsequent high-precision calibration, it's important to note that the subsequent multi-camera unified world coordinate calibration and alignment control information generation both rely on the accuracy of the pixel coordinates of each Mark target output in step 103. If there are deviations in the target coordinate extraction, it will directly lead to a decrease in the accuracy of the calibration transformation matrix, thus affecting the final alignment control accuracy. Accurate target type identification and precise coordinate extraction through multi-template matching provide accurate and reliable pixel coordinate data for subsequent unified world coordinate calibration, ensuring the accuracy of the entire alignment process from the source.
[0067] Step 104: Using a preset multi-camera unified world coordinate calibration method, the extracted pixel coordinates are transformed to a unified device world coordinate system to obtain the physical coordinates of each Mark target in the unified world coordinate system, and the physical coordinates are output as double-sided target coordinate data.
[0068] The multi-camera unified world coordinate calibration method refers to the method of simultaneously obtaining the pixel coordinates of a reference calibration object with known spatial coordinates (such as a standard checkerboard calibration plate) on the imaging plane of an eight-channel industrial CCD camera, establishing a mathematical mapping relationship between the pixel coordinate system of each camera and the world coordinate system of the same device, thereby unifying the imaging results of all cameras under the same physical reference system.
[0069] In multi-camera vision systems, each industrial CCD camera has its own independent pixel coordinate system, a two-dimensional coordinate system with its origin at the top left corner of the image sensor and measured in pixels. Because the installation position, orientation angle, and lens distortion characteristics of each camera differ, the pixel coordinates of the same spatial point will be different in images from different cameras. Without unifying these coordinates to a common physical reference frame, it is impossible to perform spatial correlation and calculations on target coordinate data from different cameras.
[0070] Among them, the equipment world coordinate system is a three-dimensional rectangular coordinate system established with the physical space of the PCB punching equipment as the reference.
[0071] Industrial vision systems typically involve multiple coordinate systems: pixel coordinates (with the top-left corner of the image as the origin and pixels as the unit), image physical coordinates (with the image center as the origin and millimeters as the unit), camera coordinates (with the camera's optical center as the origin), and world coordinates (with a fixed point in the device space as the origin). The device world coordinates are the "world coordinates" mentioned here. They are physical coordinates with a fixed physical point on the PCB punching equipment (such as the center point of the punching table, the reference corner point of the equipment frame, or the zero point of a three-axis servo attitude adjustment platform) as the origin, and three orthogonal directions in the device space (usually X, Y, and Z) as the coordinate axes, measured in millimeters.
[0072] The device world coordinate system is a fixed and unchanging physical reference. Regardless of how the CCD camera is mounted or moved, the device world coordinate system is always anchored to the physical structure of the device. All target coordinate data from different cameras must ultimately be transformed into the same device world coordinate system in order to perform spatial position calculations and comparisons under the same reference datum.
[0073] In some implementations, a preset multi-camera unified world coordinate calibration method is used to transform the extracted pixel coordinates to a unified device world coordinate system, thereby obtaining the physical coordinates of each Mark target in the unified world coordinate system, including: Control eight industrial CCD cameras to acquire multi-angle images of a standard chessboard calibration board; Based on the acquired multi-angle images, lens distortion correction is performed on each CCD camera, and the intrinsic parameter matrix and distortion coefficient of each CCD camera are solved. Solve the spatial pose parameters of each CCD camera in the device space, and generate the transformation matrix from the pixel coordinates of each CCD camera to the unified world coordinates. Based on the transformation matrix, the extracted pixel coordinates are transformed to a unified device world coordinate system to obtain the physical coordinates of each Mark target in the unified world coordinate system.
[0074] Specifically, acquiring multi-angle images of the standard checkerboard calibration board can be understood as using the standard checkerboard calibration board as a calibration reference for multi-camera unified world coordinate calibration. The checkerboard calibration board is a planar calibration board with a black and white checkerboard pattern printed on its surface. The physical dimensions of each square (e.g., 5mm×5mm or 10mm×10mm) are known precisely in advance, and the three-dimensional coordinates of the intersection points (corner points) between the squares in the world coordinate system can be accurately calculated accordingly. During the calibration process, the standard checkerboard calibration board is placed within the common field of view of eight industrial CCD cameras. Since the eight industrial CCD cameras are positioned above and below the PCB board transport path, to ensure that all cameras can acquire valid images of the calibration board, the calibration board needs to be placed in a spatial position that can be simultaneously captured by four cameras above and four below. The industrial control equipment controls the eight industrial CCD cameras to acquire images of the calibration board. To obtain sufficient calibration point data and improve calibration accuracy, it is usually necessary to change the orientation of the calibration board (such as tilting or rotating) and acquire multiple sets of calibration board images under different poses. Each industrial CCD camera acquires one set of multi-angle calibration board images, for a total of eight sets of image data.
[0075] Specifically, lens distortion correction and intrinsic parameter matrix solving can be understood as follows: for each multi-angle calibration board image acquired by a CCD camera, the industrial control equipment performs lens distortion correction separately and solves for the intrinsic parameter matrix and distortion coefficients of each camera. During the manufacturing and assembly process of industrial CCD cameras, due to processing and assembly errors in the lens, image distortion occurs during actual imaging. Lens distortion mainly includes two types: radial distortion and tangential distortion. Radial distortion is caused by the bending of light rays due to imperfect lens shape, manifested as bending of straight lines near the edges in the image (barrel distortion or pincushion distortion); tangential distortion is caused by imaging deviation due to the non-parallelism between the lens and the image sensor. During the calibration process, the industrial control equipment first extracts the pixel coordinates of all checkerboard corner points in each calibration board image using a corner detection algorithm (such as the findChessboardCorners function in OpenCV). Since the three-dimensional coordinates of each corner point on the checkerboard calibration board in the world coordinate system are known (determined by the actual physical size of the square), and the pixel coordinates of each corner point in the image can be extracted through corner point detection, each calibration board image provides a set of correspondences between "three-dimensional world coordinates and two-dimensional pixel coordinates".
[0076] Based on multiple sets of calibration board images acquired under different poses, the industrial control equipment utilizes classic camera calibration algorithms such as Zhang's calibration method to establish a projection model from 3D world coordinates to 2D pixel coordinates. This projection model includes the camera's intrinsic parameter matrix and distortion coefficients. The intrinsic parameter matrix describes the geometric relationship of the camera projecting 3D spatial points onto the 2D image plane, and its main parameters include: Focal length (f): The distance at which the camera lens focuses light onto the image sensor, which determines the scaling ratio of the image; Principal point coordinates (u0, v0): The intersection of the optical axis and the image sensor plane, i.e., the position of the image center in the pixel coordinate system; Pixel size (dx, dy): The actual physical size of each pixel unit on the image sensor.
[0077] The distortion coefficients describe the mathematical parameters of lens distortion, including radial distortion coefficients (k1, k2, k3) and tangential distortion coefficients (p1, p2).
[0078] By using nonlinear optimization algorithms (such as the Levenberg-Marquardt algorithm), industrial control equipment can simultaneously solve for the intrinsic parameter matrix and distortion coefficients of each camera, thereby minimizing the reprojection error between the projection points of all calibration board corner points mapped onto the image through the projection model and their actual detected pixel coordinates.
[0079] It's important to note that lens distortion correction is crucial because, during subsequent coordinate transformations, the pixel coordinates in the image are first compensated for based on the calculated distortion coefficients. This eliminates imaging bias caused by lens distortion, allowing the pixel coordinates to more accurately reflect the target's true position in the image. This step ensures that the accuracy of subsequent coordinate transformations is unaffected by lens manufacturing errors.
[0080] Specifically, regarding the spatial pose parameter calculation and transformation matrix generation, it can be understood that after solving the intrinsic parameter matrix and distortion coefficients of each camera, the industrial control equipment further calculates the spatial pose parameters of each CCD camera in the device space, generating a transformation matrix from the pixel coordinate system of each camera to a unified world coordinate system. The spatial pose parameters include the three-dimensional position coordinates (X, Y, Z) and attitude angles (pitch, yaw, roll) of each camera relative to the device's world coordinate system. These parameters collectively determine the exact position and orientation of each CCD camera in the device's physical space. The physical meaning of the pose parameters is as follows: 3D position coordinates (X, Y, Z): Spatial coordinates of the camera's optical center in the device's world coordinate system; Pitch: The angle at which the camera's optical axis is tilted relative to the horizontal plane; Yaw: The angle of deflection of the camera's optical axis in the horizontal plane; Roll angle: The angle of rotation of the camera around its own optical axis.
[0081] Spatial pose parameters constitute the camera's extrinsic matrix (i.e., rotation matrix R and translation vector T). The extrinsic matrix describes the rigid body transformation relationship from the world coordinate system to the camera coordinate system. Specifically, the rotation matrix R defines the rotational transformation from the world coordinate system to the camera coordinate system, and the translation vector T defines the position of the origin of the world coordinate system in the camera coordinate system. By combining the solved intrinsic matrix and distortion coefficients, a complete projection model can be established from "3D points in the device's world coordinate system" to "pixels in the camera's pixel coordinate system".
[0082] Based on the above projection model, industrial control equipment can derive the transformation matrix from the "camera pixel coordinate system" to the "unified device world coordinate system". The mathematical essence of this transformation matrix is the mapping relationship that maps any pixel coordinate (u, v) in the camera image back to its physical coordinate (x, y) in the device world coordinate system. The generation of the transformation matrix considers three factors: The camera's intrinsic parameter matrix (determines the conversion relationship between pixel coordinates and physical coordinates in the camera coordinate system); The camera's extrinsic parameters matrix (determines the spatial pose relationship between the camera coordinate system and the device world coordinate system); The lens distortion factor (which determines whether pixel coordinates need to be corrected for distortion first).
[0083] The resulting transformation matrix is a 3×3 or 4×4 homogeneous transformation matrix, containing all mapping information from pixel coordinates to world coordinates. Each CCD camera corresponds to an independent transformation matrix, and the eight transformation matrices are stored in the memory of the industrial control equipment for subsequent coordinate conversion and retrieval during actual production.
[0084] Specifically, regarding the conversion from pixel coordinates to physical coordinates, it can be understood that in the actual mass production process, after the industrial control equipment completes the extraction of target pixel coordinates in step 103, it can call the pre-stored transformation matrix corresponding to each camera to convert the pixel coordinates of each Mark target into physical coordinates in the device's world coordinate system.
[0085] Specifically, for the Mark target pixel coordinates (u, v) extracted from each original image, the industrial control equipment performs the following operations: First, based on the camera number corresponding to the image path, the distortion coefficient of that camera is retrieved from the memory, and the pixel coordinates are corrected for distortion to eliminate the imaging deviation introduced by lens distortion.
[0086] Then, based on the camera's intrinsic parameter matrix, the corrected pixel coordinates are converted into normalized physical coordinates in the camera coordinate system.
[0087] Next, based on the camera's extrinsic parameter matrix (i.e., spatial pose parameters), the coordinates in the camera coordinate system are transformed to the device world coordinate system.
[0088] Finally, the transformed physical coordinates (x, y) are output. These physical coordinates are in millimeters (or micrometers) and directly reflect the actual position of the Mark target in the physical space of the PCB punching equipment.
[0089] After performing the above conversion operation on the pixel coordinates of the eight Mark targets one by one, the industrial control equipment can obtain the physical coordinates of the eight targets in the same device world coordinate system. These physical coordinates can be directly used for the subsequent output of double-sided target coordinate data, the calculation of attitude correction, and the determination of layer offset, without the need for any further coordinate system conversion.
[0090] In this embodiment, by pre-completing the unified world coordinate calibration of eight industrial CCD cameras, and calling the pre-stored transformation matrix during actual production to convert pixel coordinates to physical coordinates, the deviation of inconsistent coordinate references among multiple cameras is eliminated; the conversion from pixel-level precision to physical-level precision is achieved, and one-time calibration and reuse are realized, improving production efficiency; finally, the precision loss caused by multiple coordinate conversions is avoided.
[0091] In some implementations, based on the transformation matrix, the extracted pixel coordinates are transformed to a unified device world coordinate system to obtain the physical coordinates of each Mark target in the unified world coordinate system, including: Based on the transformation matrix, the pixel equivalent of each CCD camera is determined, where the pixel equivalent is the physical size corresponding to a unit pixel. Based on the pixel equivalent, the pixel coordinates of each Mark target are converted into physical coordinates in a unified world coordinate system using a conversion formula, wherein the conversion formula is:
[0092] in, , These are pixel coordinate values; , Physical coordinates in the world coordinate system; In pixel equivalents.
[0093] In this embodiment, the pixel equivalent of each camera is determined according to the transformation matrix, and the pixel coordinates are converted into physical coordinates under a unified world coordinate system using a linear conversion formula. This establishes a precise mapping relationship between pixel values and physical dimensions, enabling the target coordinates of eight industrial CCD cameras from different positions and imaging magnifications to be compared and calculated under the same physical scale and the same reference standard. This fundamentally eliminates the systematic deviation caused by the inconsistency of measurement scales of multiple cameras. At the same time, the linear conversion method has low computational load and high execution efficiency, which can meet the high real-time requirements of punching alignment. It provides an accurate, unified and reliable physical coordinate data foundation for subsequent attitude correction and layer deviation detection, forming a technical closed loop from calibration to application with the calibration process in the above embodiment.
[0094] In some implementations, a preset multi-camera unified world coordinate calibration method is used to transform the extracted pixel coordinates to a unified device world coordinate system, thereby obtaining the physical coordinates of each Mark target in the unified world coordinate system, including: According to a preset time period or punching cycle, the eight-channel industrial CCD camera is controlled to re-acquire the standard chessboard calibration plate. Based on the re-acquired standard chessboard calibration board, the transformation matrix of each industrial CCD camera and the platform origin of the three-axis servo attitude adjustment platform of the PCB punching equipment are verified. When the verification result exceeds the preset deviation range, the preset multi-camera unified world coordinate calibration method is re-executed to transform the extracted pixel coordinates to a unified device world coordinate system, thereby obtaining the physical coordinates of each Mark target in the unified world coordinate system.
[0095] In this embodiment, the standard checkerboard calibration board is automatically re-acquired according to a preset time period or punching cycle. The transformation matrix of each CCD camera and the platform origin of the three-axis servo attitude adjustment platform are periodically checked. When the check result exceeds the preset deviation range, the multi-camera unified world coordinate calibration method is automatically re-executed to correct the transformation matrix and platform origin. Thus, the periodic self-verification and self-recovery of coordinate calibration accuracy are achieved without manual intervention. This effectively eliminates the zero-point drift and coordinate reference deviation accumulation problems caused by factors such as long-term operation of the mechanical platform, temperature drift, and vibration. It ensures the accuracy stability and reliability of the multi-camera unified world coordinate calibration method under long-term continuous mass production conditions, and avoids the hidden danger of the alignment accuracy gradually decreasing or even exceeding the tolerance range due to calibration parameter drift. At the same time, the automated verification process reduces the manpower and time costs of manual periodic inspection and manual recalibration, and improves the intelligence level of the equipment and the quality consistency of mass production.
[0096] Step 105: Generate alignment control information based on the coordinate data of the double-sided target and output it to the control system of the PCB punching equipment, so that the control system of the PCB punching equipment can perform alignment operation on the PCB board based on the alignment control information.
[0097] In some embodiments, alignment control information is generated based on the coordinate data of the double-sided target and output to the control system of the PCB punching equipment, so that the control system of the PCB punching equipment can perform alignment operations on the PCB board based on the alignment control information, including: Based on the coordinate data of the double-sided targets, calculate the relative positional deviation between the front target and the back target of the PCB board; Based on the coordinate data of the double-sided target and the relative position deviation, alignment control information is generated and output to the control system of the PCB punching equipment; The alignment control information includes: attitude correction control information and / or layer deviation determination information; The generation of alignment control information includes at least one of the following: Based on the physical coordinates of the four corners of the front side of the double-sided target coordinate data, the translation and rotation angle of the PCB board are calculated; the attitude correction control information is generated based on the translation and rotation angle. The layer offset determination information is generated based on the relative position deviation.
[0098] Specifically, the industrial control equipment first reads the physical coordinates of the targets at the four corners of the front side and the four corners of the back side of the PCB board from the double-sided target coordinate data output in step 104. The physical coordinates of the i-th target on the front side are denoted as (x...). u,i y u,i (x) u,i y u,i The physical coordinates of the i-th homologous target on the reverse side are (x... d,i y d,i (x) d,i y d,i ), i=1,2,3,4, which correspond to the four corners of the PCB board respectively.
[0099] For each pair of targets of the same origin (i.e., targets whose front and back faces are located at the same angle), the industrial control equipment calculates the positional difference in the X and Y directions, which is taken as the relative positional deviation of the target pair. The specific calculation formula is as follows: Δx bias,i =x u,i x d,i Δy bias,i =y u,i y d,i Where, Δx bias,i and Δy bias,i These represent the relative positional deviations of the i-th pair of homologous targets in the X and Y directions, respectively. The physical meaning of this deviation is the positional offset of the i-th target on the front side of the PCB relative to the i-th homologous target on the back side in a unified world coordinate system. If the deviation is zero, it indicates that the front and back patterns are perfectly aligned at that corner; if the deviation is not zero, it indicates that there is a layer offset at that corner.
[0100] After the relative position deviations of the four pairs of homologous targets are calculated, the industrial control equipment associates and stores these deviations with the corresponding target position numbers, which serve as the data basis for generating subsequent layer deviation determination information.
[0101] Furthermore, the industrial control equipment generates alignment control information based on the coordinate data of the double-sided target and the aforementioned relative position deviation, and outputs it to the control system of the PCB punching equipment. The alignment control information includes attitude correction control information and / or layer deviation determination information. The industrial control equipment can choose to generate one or both of these based on actual process requirements. Specifically, this includes: Firstly, attitude correction control information is generated. When it is necessary to correct the current placement attitude of the PCB board, the industrial control equipment calculates the translation and rotation angle of the PCB board based on the physical coordinates of the four front corner targets in the double-sided target coordinate data, and generates attitude correction control information based on the translation and rotation angle.
[0102] In actual operation, after the PCB board enters the punching station on the conveyor path, its actual placement and orientation often deviate from the theoretical reference position. These deviations can be decomposed into three degrees of freedom: translation in the X direction (ΔX), translation in the Y direction (ΔY), and rotation angle (θ) about a direction perpendicular to the board surface. Among them, the translation reflects the overall positional offset of the PCB board in the horizontal plane, and the rotation angle reflects the deflection of the PCB board about its central axis.
[0103] The industrial control equipment uses coordinate transformation algorithms (such as least squares matching or three-point positioning) to solve for the translation amounts ΔX, ΔY, and rotation angle θ that optimally align the four front-facing corner targets based on the differences between their actual physical coordinates and corresponding theoretical reference coordinates. Specifically, an optimization model can be constructed as follows: find a set of (ΔX, ΔY, θ) such that the overall deviation between the four front-facing targets and their respective theoretical reference coordinates is minimized after translation and rotation transformations.
[0104] After obtaining the translation and rotation angles, the industrial control equipment encapsulates these parameters into attitude correction control information and outputs it to the control system of the PCB punching equipment. Upon receiving the attitude correction control information, the control system drives the three-axis servo attitude adjustment platform to execute the corresponding displacement and rotation actions. The three-axis servo attitude adjustment platform adopts a three-axis parallel linkage structure: U-axis lateral translation, V-axis and W-axis coordinated motion, and planar rotation. The U-axis is driven independently to achieve translation adjustment in the X-axis coordinate system; the V-axis and W-axis are fed synchronously to achieve translation adjustment in the Y-axis coordinate system; and the V and W-axis move in opposite directions at differential speeds to complete the angular rotation adjustment of the platform in the XY plane. Through three-axis linkage, the platform drives the PCB board placed on it to complete micron-level attitude correction, making the actual placement attitude of the PCB board approach the theoretical reference attitude.
[0105] Secondly, layer offset determination information is generated. When it is necessary to detect the layer offset status between the front and back patterns of the PCB board, the industrial control equipment generates layer offset determination information based on the relative position deviation of each pair of original targets calculated above.
[0106] Layer misalignment refers to the spatial misalignment between the front and back patterns of a PCB board. In the manufacturing process of multilayer PCBs, the front and back patterns of the inner core board are formed through multiple processes such as etching and lamination. Due to factors such as uneven etching solution spraying, lamination stress release, and high-temperature baking, the copper layers on both sides may experience varying degrees of expansion and contraction, causing the original targets on both sides to no longer coincide in spatial position, resulting in layer misalignment. If the layer misalignment exceeds the allowable tolerance range, the core board with layer misalignment defects will inevitably be scrapped after subsequent lamination.
[0107] The industrial control equipment measures the relative positional deviation (Δx) of four pairs of identical targets. bias,i Δy bias,i The relative positional deviation of all target pairs is compared with the preset layer misalignment tolerance. If the relative positional deviation of all target pairs is within the layer misalignment tolerance range, the layer misalignment of the PCB board is deemed acceptable; if the relative positional deviation of any target pair exceeds the layer misalignment tolerance range, the layer misalignment of the PCB board is deemed unacceptable.
[0108] Based on the judgment results, the industrial control equipment generates layer deviation judgment information. This information includes the specific deviation values (Δx) for each pair of target objects originating from the same source. bias,i Δy bias,i The system outputs the layer misalignment judgment information to the control system of the PCB punching equipment. The control system can then perform at least one of the following operations: display the layer misalignment judgment information on the human-machine interface for operators to view; for boards with unqualified layer misalignment, trigger the automatic diversion mechanism for defective boards to remove them from the conveyor path, preventing them from flowing into subsequent lamination processes and causing the entire board to be scrapped; and upload the layer misalignment data to the production management system for quality traceability and statistical analysis.
[0109] It should be noted that the generation of attitude correction control information and layer misalignment judgment information can be executed independently or simultaneously. In actual production scenarios, industrial control equipment typically generates two types of information simultaneously: on the one hand, attitude correction control information drives the three-axis platform to correct the current placement attitude of the PCB board, ensuring accurate punching positions; on the other hand, layer misalignment judgment information performs pre-detection of the layer misalignment status of the board, intercepting defective boards with layer misalignment defects. These two types of information work together to achieve dual control over the PCB board's "position correction" and "quality screening."
[0110] In this embodiment, the relative positional deviation between the front target and the back target of the same origin is calculated based on the coordinate data of the double-sided target. Based on this deviation and the coordinate data of the double-sided target, alignment control information containing attitude correction control information and / or layer deviation judgment information is generated. This achieves the decoupling of the timing and functional coordination between the pre-layer deviation detection and attitude correction. That is, after obtaining the coordinates of the double-sided target, layer deviation judgment is first performed based on the relative positional deviation of the front and back targets of the same origin. If the layer deviation exceeds the preset acceptable tolerance, the process is directly intercepted and the subsequent alignment compensation process is terminated to avoid invalid calculations and processing losses. Only after the layer deviation is qualified can the attitude correction stage be entered. The translation and rotation angles are calculated based on the physical coordinates of the four corner targets of the front to drive the three-axis platform to complete the micron-level attitude correction. Both systems share the coordinate data of dual-sided targets acquired in a single imaging session. Layer deviation judgment intercepts unqualified boards before the process begins, while attitude correction precisely corrects qualified boards. They do not interfere with each other and complement each other. This not only breaks through the functional limitations of traditional solutions that "only adjust attitude without checking deviation," but also prevents layer deviation defects from flowing into the pressing process and causing the entire board to be scrapped. At the same time, the "one-acquisition-multiple-use" data sharing mode reduces waiting time and repeated acquisition costs between processes, improving overall operational efficiency. It jointly ensures the yield rate of punching processing and product consistency from two dimensions: board quality screening and positional accuracy control.
[0111] In summary, the above embodiments achieve the following: First, by providing eight industrial CCD cameras respectively positioned on the top and bottom sides of the PCB board and simultaneously acquiring images of the PCB board, complete target images of the four corners of the front and back sides of the PCB board can be obtained at once, avoiding timing errors introduced by time-division shooting. Second, by preprocessing the eight raw images and extracting the pixel coordinates of each target, a unified format of raw data is provided for subsequent coordinate transformation. On this basis, the multi-camera unified world coordinate calibration method is used to transform the independent pixel coordinates to the same device world coordinate system, eliminating the deviation of inconsistent coordinate references between multiple cameras. This allows the physical coordinates of each target to be spatially correlated and calculated under the same reference system, thereby enabling the generation of alignment control information based on the double-sided target coordinate data, which is then used by the control system to perform alignment operations on the PCB board. Therefore, the embodiments of this application can simultaneously acquire the coordinate data of the double-sided target, unify the coordinate system of multiple cameras, and spatially correlate the coordinate data of the double-sided target within a single image acquisition process. This provides a data foundation for achieving high-precision alignment operation that takes into account both the front and back states of the board material, and provides a strong guarantee for effectively improving the alignment accuracy and process yield control capability of PCB punching.
[0112] Based on the same inventive concept as the foregoing embodiments, this application provides an industrial control device, such as... Figure 2 As shown, the device includes: a processor 310 and a memory 311 storing a computer program; wherein, Figure 2The processor 310 shown in the diagram does not indicate that there is only one processor 310, but only indicates the positional relationship of the processor 310 relative to other devices. In practical applications, there can be one or more processors 310; similarly, Figure 2 The memory 311 illustrated in the diagram has the same meaning, that is, it is only used to indicate the positional relationship of memory 311 relative to other devices. In practical applications, the number of memories 311 can be one or more. When the processor 310 runs the computer program, it implements the alignment processing method of the PCB board applied to the above-mentioned device. The device may also include: at least one network interface 312. The various components in the device are coupled together through a bus system 313. It is understood that the bus system 313 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 313 also includes a power bus, a control bus, and a status signal bus. However, for clarity, in Figure 2 The general designated all buses as Bus System 313.
[0113] The memory 311 can be volatile memory or non-volatile memory, or both. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), ferromagnetic random access memory (FRAM), flash memory, magnetic surface memory, optical disc, or compact disc read-only memory (CD-ROM); magnetic surface memory can be disk storage or magnetic tape storage. Volatile memory can be random access memory (RAM), used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), SyncLink Dynamic Random Access Memory (SLDRAM), and Direct Rambus Random Access Memory (DRRAM).The memory 311 described in the embodiments of this application is intended to include, but is not limited to, these and any other suitable types of memory.
[0114] The memory 311 in this embodiment is used to store various types of data to support the operation of the device. Examples of this data include: any computer programs used to operate on the device, such as operating systems and applications; contact data; phonebook data; messages; pictures; videos, etc. The operating system includes various system programs, such as the framework layer, core library layer, driver layer, etc., used to implement various basic services and handle hardware-based tasks. Applications can include various applications, such as media players, browsers, etc., used to implement various application services. Here, the program implementing the method of this embodiment can be included in the application.
[0115] Based on the same inventive concept as the foregoing embodiments, this embodiment also provides a computer-readable storage medium storing a computer program. The computer-readable storage medium can be a magnetic random access memory (FRAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM), etc.; it can also be various devices including one or any combination of the above-mentioned memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc. When the computer program stored in the computer-readable storage medium is executed by a processor, it implements the above-mentioned PCB board alignment processing method. For the specific steps implemented when the computer program is executed by the processor, please refer to [link to relevant documentation]. Figure 1 The description of the illustrated embodiments will not be repeated here.
[0116] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0117] In this document, the terms “comprising,” “including,” or any other variations thereof are intended to cover non-exclusive inclusion, which includes not only the elements listed but also other elements not expressly listed.
[0118] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A PCB board alignment processing method, characterized in that, Includes the following steps: An eight-channel CCD vision imaging module is provided. The imaging module includes eight industrial CCD cameras, wherein four of the industrial CCD cameras are respectively located at the four corners above the PCB board conveying path, and the other four industrial CCD cameras are respectively located at the four corners below the PCB board conveying path. The industrial CCD cameras are controlled to synchronously acquire images of the PCB board to obtain eight raw images of the PCB board. The eight raw images include Mark target images at the four corners of the front side and Mark target images at the four corners of the back side of the PCB board. Each of the original images is preprocessed to extract the pixel coordinates of each Mark target in its corresponding camera pixel coordinate system; The multi-camera unified world coordinate calibration method transforms the extracted pixel coordinates to a unified device world coordinate system, obtaining the physical coordinates of each Mark target in the unified world coordinate system. These physical coordinates are then output as dual-sided target coordinate data. The multi-camera unified world coordinate calibration method includes: The eight industrial CCD cameras are controlled to acquire multi-angle images of the standard chessboard calibration board. Based on the acquired multi-angle images, lens distortion correction is performed on each of the industrial CCD cameras, and the intrinsic parameter matrix and distortion coefficient of each industrial CCD camera are solved. Solve the spatial pose parameters of each industrial CCD camera in the device space, and generate the transformation matrix from the pixel coordinates of each industrial CCD camera to the unified world coordinates. Based on the transformation matrix, the extracted pixel coordinates are transformed to a unified device world coordinate system to obtain the physical coordinates of each Mark target in the unified world coordinate system. The alignment control information is generated based on the double-sided target coordinate data and output to the control system of the PCB punching equipment, so that the control system of the PCB punching equipment can perform alignment operation on the PCB board based on the alignment control information, including: calculating the relative positional deviation between the front target and the back target of the PCB board based on the double-sided target coordinate data; generating alignment control information based on the double-sided target coordinate data and the relative positional deviation and outputting it to the control system of the PCB punching equipment.
2. The method according to claim 1, characterized in that, The step of transforming the extracted pixel coordinates to a unified device world coordinate system according to the transformation matrix to obtain the physical coordinates of each Mark target in the unified world coordinate system includes: Based on the transformation matrix, the pixel equivalent of each industrial CCD camera is determined, where the pixel equivalent is the physical size corresponding to a unit pixel. Based on the pixel equivalent, the pixel coordinates of each Mark target are converted into physical coordinates in a unified world coordinate system using a conversion formula, wherein the conversion formula is: in, , These are pixel coordinate values; , Physical coordinates in the world coordinate system; In pixel equivalents.
3. The method according to claim 1, characterized in that, The method further includes: According to a preset time period or punching cycle, the eight-channel industrial CCD camera is controlled to re-acquire the standard chessboard calibration plate. Based on the re-acquired standard chessboard calibration board, the transformation matrix of each industrial CCD camera and the platform origin of the three-axis servo attitude adjustment platform of the PCB punching equipment are verified. When the verification result exceeds the preset deviation range, the multi-camera unified world coordinate calibration method is re-executed to convert the extracted pixel coordinates to a unified device world coordinate system, thereby obtaining the physical coordinates of each Mark target in the unified world coordinate system.
4. The method according to claim 1, characterized in that, The step of performing image preprocessing on each of the original images to extract the pixel coordinates of each Mark target in its corresponding camera pixel coordinate system includes: The original images described in the eight channels are converted to grayscale respectively; Perform Gaussian filtering on the grayscale image to reduce noise; Edge extraction is performed on the denoised image to identify the contour features of the Mark target; The extracted contour features are subjected to invalid noise contour removal, and the Mark target contour image is output. Extract the coordinates of the center point or feature point of the Mark target contour image, and use them as the pixel coordinates of each Mark target in its corresponding pixel coordinates.
5. The method according to claim 1, characterized in that, The imaging module further includes: a synchronization trigger board connected to each of the industrial CCD cameras; The control of each of the industrial CCD cameras to synchronously acquire images of the PCB board includes: The synchronization trigger board sends a global hardware-level synchronization trigger signal to each of the industrial CCD cameras to control the synchronous start of exposure of each industrial CCD camera, so that the deviation of the exposure start time of each industrial CCD camera is controlled within microseconds, so as to control the industrial CCD cameras to synchronously acquire images of the PCB board.
6. The method according to claim 5, characterized in that, The imaging module further includes: a ring-shaped supplementary light source connected to each of the industrial CCD cameras; The method further includes: During the synchronous image acquisition process, the brightness of each of the ring-shaped supplementary light sources is adjusted so that the illumination uniformity of the corresponding field of view area of each of the industrial CCD cameras meets the requirements for Mark target recognition.
7. The method according to claim 1, characterized in that, The step of performing image preprocessing on each of the original images to extract the pixel coordinates of each Mark target in its corresponding camera pixel coordinate system includes: A multi-template matching algorithm is used to identify Mark targets in the eight original images. The multi-template matching algorithm has multiple templates that correspond to circular targets, cross targets, square targets and irregular targets respectively. Based on the identified Mark target type, the corresponding template is called to extract the coordinates of the center point or feature point of each Mark target, which are then used as the pixel coordinates of each Mark target in its corresponding pixel coordinate system.
8. The method according to claim 1, characterized in that, The alignment control information includes: attitude correction control information and / or layer deviation determination information; The generation of alignment control information includes at least one of the following: Based on the physical coordinates of the four corners of the front side of the double-sided target coordinate data, the translation and rotation angle of the PCB board are calculated; the attitude correction control information is generated based on the translation and rotation angle. The layer offset determination information is generated based on the relative position deviation.
9. An industrial control device, characterized in that, include: The processor and the memory storing a computer program implement the alignment processing method for the PCB board according to any one of claims 1 to 8 when the processor runs the computer program.
Citation Information
Patent Citations
Three-dimensional data extraction method applied to large-format workpiece
CN112197701A
Lightweight binocular vision structure three-dimensional displacement and motion trail measurement method and system
CN121185183A
