Skip to content

Implementing CNN model to detect defects on images

Notifications You must be signed in to change notification settings

eric052199/Defect-Detection

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Defect-Detection

Introduction

Automated optical inspection (AOI) [1] is an automated visual inspection of printed circuit board (PCB) (or LCD,transistor) manufacture where a camera autonomously scans the device under test for both catastrophic failure (e.g. missing component) and quality defects (e.g. fillet size or shape or component skew). It is commonly used in the manufacturing process because it is a non-contact test method. It is implemented at many stages through the manufacturing process including bare board inspection, solder paste inspection (SPI), pre-reflow and post-reflow as well as other stages. The Institute of Electronics and Optoelectronics in Industrial Technology Research Institute(ITRI) has spent years on developing flexible displays, hoping to elevate the production quality with AOI technology during the pilot run. This time we have invited experts from different fields to join us, and focus on identifying defect classifications of AOI image data that are offered so as to elevate the identification efficiency of AOI through statistical science

Evaluation Criteria

After classification models of defect prediction are offered by researchers participating in the issue, the back-end of the system would process them in bathces regularly to calculate the score. Evaluations are conducted by calculating the corresponding accuracy rate of the actual value.

image

Data description

There are six categories included in image data that the issue offers (1 normal category + 5 defect categories)

The download data file (aoi_data.zip) includes:

  • train_images.zip: image data for training (PNG format), 2,528 images in total.
  • train.csv: includes 2 columns, ID and Label.
    • ID: the image filename
    • Label: defect classification category (0: normal, 1: void, 2: horizontal defect, 3: vertical defect, 4: edge defect, 5: particle)
  • test_images.zip: image data for testing (PNG format), 10,142 images in total.
  • test.csv: includes 2 columns, ID and Label.
    • ID: the image filename
    • Label: defect classification category (the value can be only one of the following numbers: 0, 1, 2, 3, 4, 5)

Usage

  1. Download the training and test data from AOI website link

  2. Run the sort.py to distribute the images into six files.

  3. Implement the train.py to train the model.

  4. Run the predict.py to present the outcome.

Achievement

Accuracy: 98.66% with epoch 100.

image

About

Implementing CNN model to detect defects on images

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%