Skip to content

This project aims comparing two pcb card using one of reference and other one test. But in the document there is more you can find information about python image comparison methods.

License

Notifications You must be signed in to change notification settings

muhammeddincmdx/PCB-Card-Defect-Detection-by-Comparison

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PCB Card Defect Detection by Comparison

This project aims to detect defects in PCB (Printed Circuit Board) cards using image comparison techniques. The main goal is to identify differences between a reference PCB card and a test PCB card, which may indicate defects such as missing components or misplaced parts.

Features

  • Image Comparison: Utilizes various methods like histogram comparison, template matching, and structural similarity index (SSIM) to compare images.
  • Alignment: Implements the Enhanced Correlation Coefficient (ECC) algorithm for aligning images and correcting small deformations.
  • Visualization: Uses matplotlib to visualize results, including displaying reference images, aligned images, average images, and differences.
  • Thresholding and Noise Reduction: Applies thresholding to highlight differences and uses morphological operations to reduce noise.
  • Edge Margin Handling: Implements edge margin to prevent displaying edge differences as rectangles due to snapshot quality issues.

Methods and Results

  • Histogram Comparison

resim

resim

  • Template Matching

resim

resim

resim

  • Feature Matching

resim

resim

resim

  • Structural Similarity Index Measure (SSIM)

resim

resim

resim

  • Absolute Difference

resim

resim

resim

  • Substract

resim

resim

resim

  • main.py-

resim

resim

resim

Limitation

Not: This code may not yield optimal results with all images. In my scenario, I work with PCB cards and strive to capture clear snapshots, adjusting certain parameters manually to improve performance.

Paper

https://medium.com/@me.muhammed.dinc/pcb-card-comparison-for-finding-defects-it-includes-python-image-comparison-method-f2cd3376e89e

About

This project aims comparing two pcb card using one of reference and other one test. But in the document there is more you can find information about python image comparison methods.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published