A PCB auxiliary artificial detection method and system for visual perception and image operation
By employing a PCB inspection method that separates RGB three channels and performs pixel-level calculations, combined with machine screening and manual verification, the problems of low efficiency, high false alarm rate, and insufficient pixel-level precise positioning in existing technologies have been solved, achieving high-precision PCB appearance inspection with a low false alarm rate.
Patent Information
- Application Number
- CN202611415663.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-13
- Publication Date
- 2026-11-24
AI Technical Summary
Existing PCB appearance inspection technologies suffer from low efficiency, high false alarm rates, lack of human intervention mechanisms, and insufficient pixel-level precision positioning. In particular, they cannot effectively combine machine vision and human judgment when identifying complex defects.
By employing visual perception and image processing methods, PCB images are acquired through optical imaging equipment, and RGB three-channel separation and pixel-level calculations are performed. Combined with a collaborative inspection process of machine initial screening and manual review, pixel-level precise positioning and efficient inspection are achieved.
It achieves sub-pixel level defect localization, significantly reduces false alarm rate, improves detection accuracy and efficiency, reduces manual labor intensity, and supports adaptive detection of different PCB board surfaces.
Smart Images

Figure CN123160533A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of automated optical inspection (AOI) technology, specifically relating to a method and system for assisted manual inspection of PCB appearance by combining optical imaging equipment and image processing algorithms, and particularly relating to a method for detecting PCB appearance defects based on RGB three primary color channel separation and pixel-level calculation comparison. Background Technology
[0002] Printed circuit boards (PCBs) are one of the core components of electronic products. In the PCB manufacturing process, appearance quality inspection is a crucial step in ensuring product reliability. The main contents of PCB appearance inspection include: checking for defects such as open circuits, short circuits, gaps, and bumps in the circuit pattern, as well as surface imperfections such as scratches, foreign objects, and abnormal colors.
[0003] Currently, PCB visual inspection mainly employs the following two methods: (a) Manual visual inspection Manual visual inspection refers to the process by which operators use a magnifying glass or microscope to observe the PCB with their naked eyes to determine whether there are any appearance defects. This method has the following problems and disadvantages: (1) It is inefficient and difficult to meet the production capacity requirements in mass production scenarios; (2) The detection accuracy is affected by the subjective factors of the operators, and long-term work can easily lead to visual fatigue, resulting in an increased rate of missed detections; (3) The consistency of detection results is poor, and there may be significant differences in the detection conclusions between different operators and between the same operator at different time periods; (4) The labor cost is high and it is difficult to achieve continuous operation for 24 hours.
[0004] (ii) Automated Optical Inspection (AOI) Existing AOI systems typically use template comparison or morphological algorithms for defect identification. The basic process is: acquire PCB image → extract line contour → compare with standard data → output detection results. However, existing AOI technology still has the following problems and disadvantages: (1) high false alarm rate, easily misjudging dust, scratches, normal process marks, etc. as defects, increasing unnecessary manual review costs; (2) limited ability to identify certain types of defects (such as shallow scratches, false copper slag), with the risk of missed detection; (3) complex algorithm parameter adjustment, insufficient adaptability to different types of PCBs, requiring experienced engineers to re-adjust when changing lines; (4) relying solely on automatic machine judgment, lacking an effective manual intervention mechanism when encountering complex defects or edge situations, failing to fully leverage the advantages of human judgment in complex scenarios. In addition, existing image comparison methods are mostly overall grayscale comparison or edge contour comparison, which are not sensitive enough to subtle line width changes, local grayscale anomalies, etc., making it difficult to achieve pixel-level precise positioning.
[0005] In summary, the existing technology lacks a human-machine collaborative PCB appearance inspection solution that can leverage the advantages of efficient initial inspection by machine vision while also taking into account the accurate judgment capabilities of human review. Furthermore, existing image comparison methods still have shortcomings in pixel-level precise positioning. Summary of the Invention
[0006] (a) The technical problem that the invention aims to solve The technical problem to be solved by the present invention is to address the technical problems of low efficiency of manual inspection, high false alarm rate of pure AOI and lack of effective manual intervention mechanism, and the difficulty of achieving pixel-level accurate positioning by existing image comparison methods. The present invention provides a PCB-assisted manual inspection method and system based on visual perception and image processing.
[0007] (II) Technical Solution 1. Methodological and Technical Solution To address the aforementioned technical problems, this invention provides a PCB-assisted manual inspection method based on visual perception and image processing, comprising the following steps: Step A: Image Acquisition – Acquire the original appearance image of the PCB area to be tested using an optical imaging device, which includes an industrial-grade CCD or CMOS image sensor and a ring light source. Preferably, the ring light source illuminates the PCB surface at an angle of 30° to 45°. The system can automatically adjust the output intensity of the light source based on the brightness feedback of the image to adapt to changes in the color of different PCB surfaces and the reflective properties of the copper foil.
[0008] Step B: Image Preprocessing – The acquired raw appearance image is digitally processed to generate image data to be detected. The digital processing includes at least one of filtering and denoising, binarization segmentation, and edge enhancement. Preferably, filtering and denoising can employ median filtering or bilateral filtering algorithms.
[0009] Step C: Image Registration and Channel Separation – The image to be inspected is precisely registered at the pixel level with a preset reference image. The reference image is any one of the following: (a) a rasterized image generated by converting a PCB design file (such as a Gerber file); (b) a whole-board image template acquired from a qualified PCB board that has been manually confirmed to be defect-free. Pixel-level registration includes rigid transformation based on feature points (such as Mark points, line intersections) to correct for translation, rotation, and minor scaling deviations. After registration, the image to be inspected and the reference image are separated into R (red), G (green), and B (blue) primary color channels, forming six independent channel images (R to be inspected, R to reference, G to be inspected, G to reference, B to be inspected, and B to reference), with RGB values ranging from 0 to 1.
[0010] Step D: Inter-channel pixel operations and difference extraction—Perform pixel-level mathematical operations between images of corresponding color channels to generate difference images. The pixel-level mathematical operations include any one or a combination of the following: (a) Absolute value operation: D(x,y) = |xy| or |yx|, sensitive to absolute differences, suitable for detecting defects such as open circuits and gaps that cause pixel loss; (b) Quotient operation: R(x,y) = x / y or y / x, sensitive to relative changes, suitable for detecting grayscale anomalies such as scratches and protrusions. A result of 0 is displayed as black, and a result of 1 is displayed as white. The system presets a difference threshold (preferably the average value of pixel operations across the entire board). When the difference value of a pixel exceeds the threshold, it is determined that there is an anomaly at that location and it is marked as an abnormal pixel.
[0011] Step E: Human-Machine Collaborative Review – Abnormal pixels are presented in the entire board image as highlighted or contrasting colors. Specific presentation methods include: (a) Highlighting: Abnormal pixels are displayed in the entire board image with their original color overlaid and deepened; (b) Contrast: The original color of the abnormal area is inverted to enhance visual contrast. All abnormalities are displayed in highlighted form overlaid on the entire board image in the operation interface, eliminating the need for manual searching of suspicious locations. Manual intervention is performed immediately for areas of difference in highlighting, utilizing the "visual persistence" effect to confirm each area of difference, while simultaneously using the "visual persistence" effect to quickly traverse the entire board to ensure minimal possibility of missed detections. The system receives review instructions input by the manual input, including: confirming defects, marking as false alarms, and manually adding undetected defects.
[0012] Step F: Output of test results — Generate and output the final test results according to the review instructions.
[0013] 2. Two implementation methods for image acquisition The image acquisition of this invention can be performed using one of the following two methods: Method 1: Segmented Image Stitching (Scanning Type) – The PCB board is fixed on a moving platform and driven by a stepper motor or linear motor, moving to each shooting area in a set step size. The camera captures images area by area, which are then stitched together by software to form a complete image of the entire board. Preferably, the motion path adopts a "serpentine scanning" path. After scanning one line in the forward direction along the X-axis, the Y-axis steps to the next line, and the X-axis scans in the reverse direction, reducing idle travel time.
[0014] Method 2: Full-board imaging (fixed) - Using a large-area, high-resolution imaging system (such as two 25-megapixel CMOS cameras arranged side by side, with a telecentric lens), a single trigger can cover the entire board area, achieving full-board imaging without moving the PCB.
[0015] 3. System Technical Solution This invention also provides a PCB-assisted manual inspection system based on visual perception and image processing, comprising: Optical imaging module – used to acquire raw appearance images of the PCB area under test, including an industrial-grade CCD or CMOS image sensor and a ring light source illuminating at an angle of 30° to 45°, with dynamic brightness adjustment function. Image preprocessing module – used to digitally process the acquired raw appearance images to generate image data to be detected; Image registration and channel separation module – used to perform pixel-level registration between the image to be detected and the preset reference image, and to separate the two registered images into R, G, and B primary color channels respectively, forming six independent channel images; Pixel operation and difference extraction module - used to perform pixel-level mathematical operations between images of corresponding color channels, generate difference images, and mark the position as an abnormal pixel when the difference value of a pixel exceeds a preset threshold; Human-computer interaction module – used to display abnormal pixels in the whole image as highlights or contrast colors, and to receive manual verification instructions; The results output module is used to generate and output the final inspection results based on the review instructions.
[0016] (III) Beneficial Effects Compared with the prior art, the present invention has the following beneficial effects: (1) Pixel-level detection accuracy: Pixel-level mathematical operations based on the RGB three channels can achieve sub-pixel-level difference localization. The image to be detected is compared pixel by pixel with the reference image, and the accuracy is higher than that of traditional morphological comparison or overall grayscale comparison methods. It can accurately locate subtle defects such as line width deviation and edge concavity. At the same time, the independent operation and comprehensive judgment of the three channels can avoid missed detections caused by insufficient information in a single channel, and significantly improve the accuracy and reliability of detection.
[0017] (2) Reduce false alarm rate and improve detection accuracy: By using the human-machine collaboration mechanism of "machine initial screening + manual review", the advantages of machines in rapid screening and the advantages of human in complex judgment are brought into play, the high false alarm rate (30%-50%) of the AOI system is greatly reduced to below 5%, the detection efficiency is several times higher than that of manual, and the overall detection rate can reach more than 90%.
[0018] (3) Significantly reduce manual labor intensity: Manual labor only needs to use the "visual persistence" effect to confirm the differences in the highlighted areas of the system one by one, without the need to use magnification equipment to visually inspect the entire board of physical graphics point by point. At the same time, the "visual persistence" effect can be used to quickly traverse the entire board, reducing visual inspection time by nearly 60%, effectively reducing the visual fatigue and labor intensity of operators.
[0019] (4) Enhanced system adaptability: The system supports dynamic adjustment of light source brightness to adapt to changes in the color of different PCB boards and the reflective properties of copper foil. It supports two acquisition methods: regional scanning and splicing and whole board imaging at one time. It has good generalization and adaptability.
[0020] (5) Intuitive visual guidance: By highlighting or contrasting colors, the difference areas are displayed intuitively in the whole image, which makes manual review clear and goal-oriented, eliminating the need to search for suspicious locations and significantly improving review efficiency. Attached Figure Description
[0021] Figure 1 This is a schematic diagram of the overall structure of a PCB-assisted manual inspection method and system based on visual perception and image processing according to the present invention.
[0022] Figure 2 This is a flowchart of the detection method of the present invention.
[0023] Figure 3 This is a schematic diagram of the human-computer interaction interface of the present invention, wherein (a) is an interface for highlighting the defect location on the full PCB layout, and (b) is an interface for enlarging and verifying the defect in a local area.
[0024] Figure 4 This is a schematic diagram of the optical imaging module of the present invention.
[0025] Figure 5 This is a functional block diagram of the system of the present invention.
[0026] Figure 6 This is a schematic diagram illustrating the principle of RGB three-channel separation and pixel operation in this invention. Detailed Implementation
[0027] To make the objectives, technical solutions, and beneficial effects of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the preferred embodiments described herein are for illustrative and explanatory purposes only and are not intended to limit the invention. Example
[0028] This embodiment provides a PCB-assisted manual inspection method based on visual perception and image processing. Taking a certain type of motherboard (PCB size 200mm×150mm, line width / spacing 0.1mm / 0.1mm) as the inspection object, the invention is described in detail by combining regional scanning and splicing with RGB three-channel pixel-level comparison.
[0029] 1. Testing Preparation The PCB board to be tested is fixed on the moving platform. The system pre-imports the comparison benchmark data for this PCB model, which can be in one of the following two formats: (1) Visualized engineering drawings: Convert PCB design files (such as Gerber files) into rasterized reference images that match the camera resolution (5 megapixels) to ensure that the reference image and the acquired image are completely consistent in resolution and bit depth; (2) Standard template image: A qualified PCB board that has been manually confirmed to be free of defects is used as a template, and its whole board image is collected as a comparison benchmark.
[0030] In this embodiment, method (1) is selected, that is, importing Gerber files and converting them into rasterized reference images.
[0031] 2. Regional Image Acquisition This embodiment uses a region-based scanning and stitching image acquisition method, and the specific process is as follows: Motion control: The control system sends pulse commands to the linear motor, driving the stage to move along the X-axis in preset step sizes. The step size is set to 80% of the camera's field of view, with a 20% overlap area reserved to ensure sufficient feature points between adjacent images for subsequent stitching.
[0032] Image Acquisition: Each time the camera moves to a new shooting position, a 5-megapixel industrial CCD camera (20x optical magnification) is triggered to acquire a local image. The light source system uses a 30° ring light source, whose brightness is dynamically adjusted according to the reflective characteristics of the board surface in the current shooting area: the brightness is automatically reduced in areas with dense lines to avoid overexposure, and the brightness is automatically increased in areas with exposed substrate to avoid underexposure, ensuring that clear and uniform imaging effects are obtained in different areas.
[0033] Motion path: A "serpentine scanning" path is adopted - after scanning one line in the forward direction of the X-axis, the Y-axis steps to the next line, and the X-axis scans in the reverse direction. This cycle is repeated until the entire board is covered, in order to reduce idle travel time and improve acquisition efficiency.
[0034] In this embodiment, a total of multiple local images are captured across the entire board (the specific number depends on the ratio of the board size to the camera's field of view; in this embodiment, it is approximately 24 images, arranged in 4 rows × 6 columns).
[0035] 3. Image stitching The collected partial images are stitched together into a complete image of the entire plate using the following steps: (1) Feature extraction: Extract the intersection points of the lines from the overlapping areas of adjacent images as feature points to ensure that the feature points are evenly distributed and representative.
[0036] (2) Image registration: The transformation matrix is calculated by matching feature points to achieve sub-pixel level alignment between adjacent images and correct the small positioning deviation caused by the movement of the platform.
[0037] (3) Image fusion: The overlapping area is processed by a weighted fusion algorithm. The weights are assigned according to the pixel position (the center position of the overlapping area has the highest weight, and the weight of the edge position gradually decreases) to eliminate the splicing seam and generate a seamless whole plate image.
[0038] 4. RGB channel comparison and defect detection (1) Image registration and overlay The stitched image of the entire board to be inspected is precisely registered pixel-level with the rasterized reference image. The registration process is based on rigid transformation of feature points (such as Mark points and line intersections) to correct for translation, rotation, and minor scaling deviations, ensuring that the image to be inspected and the reference image correspond precisely in spatial position. The two registered images are then superimposed 1:1 to ensure that the same physical location corresponds to the same pixel coordinate.
[0039] (2) RGB three-channel separation The two superimposed images are then separated into R (red), G (green), and B (blue) primary color channels, forming six independent channel images: the R channel to be inspected, the reference R channel, the G channel to be inspected, the reference G channel, the B channel to be inspected, and the reference B channel. The pixel values of each channel are normalized to the 0-1 range.
[0040] (3) Inter-channel pixel operations Pixel-level mathematical operations are performed on each corresponding color channel. This embodiment uses absolute value calculation: D(x,y) = |xy|, calculating the difference values for the R, G, and B channels respectively. The calculation results in three difference images, where the value of each pixel represents the degree of difference between the image to be inspected and the reference image at that location and in that color channel. Absolute value calculation is sensitive to absolute differences and is suitable for detecting defect types such as open circuits and gaps that cause pixel loss or significant changes.
[0041] (4) Difference extraction and defect classification The system uses the average value of all pixels on the board as the difference threshold. When the difference value of a pixel in any channel exceeds this threshold, it is determined that there is an anomaly at that location and marked as an anomalous pixel. Anomalous pixels are clustered according to connected components to form defect regions. Based on the morphological characteristics of the anomalous regions, the following defect types are identified: Open circuit: Line interruption → Line pixels missing compared to baseline → Significant difference Short circuit: Excessive copper foil connections between lines → appearing as unwanted line pixels in the baseline diagram. Notch: The line edge is concave → the edge pixels are offset inward. Bump: The edge of the line bulges outward → the edge pixels shift outward. Scratches: Surface damage → abnormal grayscale values, sensitive to quotient calculations In this embodiment, a total of 47 areas of high brightness difference were detected on the entire board (which were subsequently confirmed by manual review to be 43 real defects + 4 false alarms).
[0042] 5. Human-machine collaborative review (1) Visual presentation of results All detected defect areas are visualized within the entire board image, and the visualization methods include: Highlighting: Abnormal pixels are highlighted in the same color to make the defect location immediately visible in the entire image. Contrast display: The abnormal area is inverted to enhance visual contrast and facilitates quick manual location.
[0043] The user interface is laid out as follows: the left side displays a list of defects (including defect type, coordinates, size, and serial number), and the right side displays a thumbnail of the entire board with highlighted marks. All anomalies are displayed in a highlighted overlay on the entire board image in the user interface, eliminating the need for manual searching for suspicious locations.
[0044] (2) Manual confirmation and verification When the operator clicks on any highlighted area, the system automatically pops up a magnified image of that location (which can be switched and compared with the reference image on the same screen). Utilizing the "visual persistence" effect, the system allows for quick switching between the image under inspection and the reference image to determine whether the difference represents a real defect. If a defect is confirmed, click the "Confirm" button. The system will record the defect type and coordinates and include it in the inspection report. If the report is determined to be a false positive (such as dust, minor scratches, normal manufacturing marks, or other appearance differences that do not affect electrical performance), click the "False Positive" button. The system will record this area as a false positive and will not include it in the report.
[0045] (3) Manually add markers After manually confirming the above defects, the entire board is quickly scanned using the "visual persistence" effect (to ensure minimal possibility of missed detection). If a defect is found that the system has missed marking, the abnormal area can be manually selected on the image and the defect type can be entered; the system will then add it to the inspection report.
[0046] (4) Review efficiency In this embodiment, the verification of each of the 47 high-brightness difference areas took about 10 minutes, while a purely manual visual inspection of the same model of PCB would take 50-70 minutes, reducing the visual inspection time by nearly 60%. Through the collaborative mode of "machine initial screening + manual verification", rapid full-coverage inspection of the entire board was achieved.
[0047] 6. Result Output After the review is completed, the system generates and outputs the final inspection result based on the manually entered review instructions. The inspection report includes the following: PCB board number and inspection time; Defect Summary Table (Defect Type, Coordinates, Confirmation Status); Overall board defect distribution diagram (including highlight / contrast markers); Comparison of magnified images of each defect with the corresponding baseline image.
[0048] The test report can be exported as a PDF or Excel file for use by production line quality management and maintenance personnel. Example
[0049] This embodiment provides another PCB-assisted manual inspection method based on visual perception and image processing, as an alternative implementation method parallel to Embodiment 1. The basic principle and core inspection process of this embodiment are the same as those of Embodiment 1; the main difference lies in the image acquisition method, which uses a single imaging of the entire board instead of segmented scanning and stitching.
[0050] 1. Testing Preparation The PCB board to be tested is fixed on the platform at the testing station. During the testing process, the PCB board remains stationary and does not need to be moved. The system pre-imports the comparison benchmark data for this model of PCB. In this embodiment, the whole-board image of a qualified PCB board is selected as the comparison benchmark.
[0051] 2. Whole-panel single-pass imaging acquisition Hardware configuration: Two 25-megapixel industrial CMOS cameras are arranged side by side, paired with a telecentric lens, which can completely cover a 200mm×150mm board area with a single trigger. The telecentric lens features low distortion and large depth of field, which can ensure that the imaging magnification of all areas within the board area is consistent, avoiding measurement errors caused by differences in viewing angle.
[0052] Light source configuration: Four sets of ring light sources are arranged around the imaging area at different angles (15°, 30°, 45°, 60°). The system can automatically select the optimal light source combination and brightness parameters based on the PCB board color and the reflective characteristics of the copper foil to ensure uniform illumination and no shadows across the entire board. In this embodiment, the system automatically selects a 30° ring light source as the main light source and a 45° ring light source as auxiliary lighting.
[0053] Image Acquisition: After the PCB board is fixed at the inspection station, the system controls two sets of cameras to expose synchronously under a single trigger signal, simultaneously acquiring the image of the entire board. The two acquired partial images (corresponding to the left and right halves of the board, respectively) are stitched together by software to form a complete image of the entire board.
[0054] 3. Image preprocessing The system performs preprocessing operations on the stitched complete image of the entire panel, including removing image noise using a median filtering algorithm, performing binarization segmentation using an adaptive thresholding algorithm, and performing edge enhancement using the Sobel operator. In this embodiment, since the cleanliness of the equipment environment is controllable during the single-stage imaging of the entire panel, the intensity and complexity of the preprocessing operations can be appropriately reduced.
[0055] 4. RGB channel comparison and defect detection (1) Image registration and overlay: The preprocessed image of the whole board to be inspected is precisely registered with the reference image at the pixel level. Based on the Mark point, the translation, rotation and small scaling deviations are corrected and then overlaid 1:1.
[0056] (2) RGB three-channel separation: The two superimposed images are separated into R, G and B three primary color channels to form six independent channel images. The pixel values of each channel are normalized to the 0-1 range.
[0057] (3) Inter-channel pixel operations: In this embodiment, the quotient operation R(x,y) = x / y is used as the main operation method, while the absolute value operation is reserved as a backup. The quotients of the three channels R, G, and B are calculated respectively to obtain three difference images.
[0058] (4) Difference extraction and defect classification: The system uses the average value of the pixels on the entire board as the difference threshold, marks abnormal pixels and clusters them according to connected components to form defect regions, and classifies them according to morphological features. In this embodiment, a total of 32 bright difference regions were detected on the entire board (which were subsequently confirmed by manual review to be 29 real defects + 3 false alarms).
[0059] 5. Human-machine collaborative review (1) Visual presentation of results: Two methods are used: highlighting and contrasting display. The left side of the operation interface displays the defect list, and the right side displays the whole board thumbnail and highlight mark.
[0060] (2) Manual confirmation and verification: The operator uses the "visual persistence" effect to switch back and forth between the image to be inspected and the reference image to confirm or mark the false alarms in the bright areas one by one.
[0061] (3) Manual supplementation of markings: Manually perform a quick traversal and review of the entire board. If any missing markings are found, manually select and enter the defect type.
[0062] (4) Verification efficiency: In this embodiment, the verification of each of the 32 high-brightness difference areas takes about 7 minutes, which reduces the visual inspection time by nearly 85%. Compared with the first embodiment, this embodiment avoids false defects caused by splicing errors due to the whole board being imaged at once, and the number of high-brightness difference areas is less, further improving the efficiency of manual verification.
[0063] 6. Result Output Similar to Example 1, generate a test report and export it as a PDF or Excel file.
[0064] This embodiment is applicable to rapid PCB inspection, with a short single-board inspection cycle, and is particularly suitable for online inspection scenarios in mass production lines.
Claims
1. A PCB-assisted manual inspection method based on visual perception and image processing, characterized in that, Includes the following steps: The original appearance image of the PCB area to be tested is acquired using optical imaging equipment; The system preprocesses the acquired raw appearance images to generate image data to be inspected; it performs pixel-level registration between the image to be inspected and a preset reference image, and then splits the two registered images into R, G, and B primary color channels to form six independent channel images; it performs pixel-level mathematical operations between the images of the corresponding color channels to generate difference images, and marks the position as an abnormal pixel when the difference value of a pixel exceeds a preset threshold; it presents the abnormal pixels in the whole image as highlights or contrast colors, and the abnormal areas are manually confirmed or corrected, receiving manual review instructions; it generates and outputs the final inspection result based on the review instructions.
2. The method according to claim 1, characterized in that, The optical imaging device includes an industrial-grade CCD or CMOS image sensor and a ring light source. The ring light source illuminates the PCB surface at an angle of 30° to 45°, and the system automatically adjusts the output intensity of the light source based on the brightness feedback of the image.
3. The method according to claim 1, characterized in that, The preprocessing includes at least one of filtering and denoising, binarization segmentation, and edge enhancement. The filtering and denoising uses median filtering or bilateral filtering algorithms.
4. The method according to claim 1, characterized in that, The reference image is any one of the following: a rasterized image generated by converting PCB design files; or a whole-board image template captured from a qualified PCB board that has been manually confirmed to be defect-free.
5. The method according to claim 1, characterized in that, The pixel-level registration includes rigid transformation based on feature points to correct translation, rotation, and scaling deviations. The feature points include Mark points or line intersections.
6. The method according to claim 1, characterized in that, The pixel-level mathematical operations include at least one of absolute value operations or quotient operations: the absolute value operation D(x,y)=|xy| or |yx| is used to detect open circuits and notch defects; the quotient operation R(x,y)=x / y or y / x is used to detect scratches and protrusion defects.
7. The method according to claim 1, characterized in that, The preset threshold is the average value of the pixels on the entire board.
8. The method according to claim 1, characterized in that, The presentation methods of the highlighted or contrasting colors include: highlighted display, in which abnormal pixels are displayed with their original color superimposed and deepened in the entire image; or contrasting display, inverting the original color of the abnormal area.
9. The method according to claim 1, characterized in that, The manual review instructions include: confirming the defect, marking it as a false alarm, and manually adding a mark for undetected defects.
10. The method according to claim 1, characterized in that, The image acquisition adopts either a regional scanning and stitching method or a whole-board single-shot imaging method: the regional scanning and stitching method is that the PCB board is driven by a stepper motor or linear motor to move to each shooting area according to a preset step size, and the camera acquires local images area by area, which are then stitched together to form a complete image of the whole board; the whole-board single-shot imaging method is that a large-area high-resolution camera or camera array is used to complete the whole-board image acquisition in a single trigger.
11. The method according to claim 10, characterized in that, In the segmented scanning and splicing method, the PCB board moves along a serpentine scanning path.
12. The method according to claim 1, characterized in that, The method can identify at least one of the following defect types: open circuit, short circuit, notch, bulge, and scratch.
13. A PCB-assisted manual inspection system based on visual perception and image processing, characterized in that, include: The optical imaging module is used to acquire the original appearance image of the PCB area to be tested, including an industrial-grade CCD or CMOS image sensor and a ring light source, with dynamic brightness adjustment function; the image preprocessing module is used to digitize the acquired original appearance image to generate the image data to be tested; the image registration and channel separation module is used to perform pixel-level registration between the image to be tested and a preset reference image, and to separate the two registered images into R, G, and B primary color channels respectively, forming six independent channel images; the pixel operation and difference extraction module is used to perform pixel-level mathematical operations between the images of the corresponding color channels to generate difference images, and to mark the position as an abnormal pixel when the difference value of a pixel exceeds a preset threshold; the human-computer interaction module is used to present abnormal pixels in the whole board image in the form of highlights or contrast colors, and to receive manual input verification instructions; The result output module is used to generate and output the final inspection result based on the review instruction.
14. The system according to claim 13, characterized in that, The optical imaging module also includes a motion control unit, which controls the PCB board to move at a preset step size to achieve regional scanning and stitching. The motion control unit uses a serpentine scanning path to control the movement of the PCB board.
15. The system according to claim 13, characterized in that, The optical imaging module employs a large-area, high-resolution camera or camera array, completing the acquisition of the entire board image in a single trigger; the digital processing performed by the image preprocessing module includes at least one of median filtering or bilateral filtering for noise reduction, binarization segmentation, and edge enhancement; the image registration and channel separation module performs rigid transformation based on Mark points or line intersections. The pixel-level mathematical operations performed by the pixel operation and difference extraction module include at least one of absolute value operation and quotient operation; the human-computer interaction module displays abnormal pixels in the whole image with highlights or contrast colors, so that the human does not need to search for suspicious locations.
