Git Product home page Git Product logo

aoi-defect-detection's Introduction

AOI-defect-detection

Automated Optical Inspection(AOI) is a critical technique which is used in the manufacture and test of electronics printed circuit boards, PCBs and so on. AOI defect detection allows us to inspect is there any defects on electronics assemblies or in particular PCBs fastly and accurately. It is the method to ensure that the quality of product can be built correctly and without manufacturing faults.

In the training process, I use data augmentation in order to apply more data, then I use VGG16, Densenet121 and so on model to train the network. In comparison with multiple pre-trained model, the result shows that Densenet performs the best among all.

Content

Environment

  • Python: 3.6.5
  • Keras: 2.2.5
  • Tensorflow: 1.14.0

Method

  1. Here we use the data from Industrial Technology Research Institute - Aidea to classify the defect. Unzip the file, it includes:

    • train_images.zip: 2528 images.
    • test_images.zip:10142 images.
    • train.csv:two columns, ID and Label respectively.
    • test.csv:two columns, ID and Label respectively.
    • ID is for the name of the png file. Label is for the class(0: normal, 1: void, 2: horizontal defect, 3: vertical defect, 4: edge defect, 5: particle)
  2. Create a folder. Put the file inside the floder. And create

    • Train_image
    • Test_image
  3. Run the py file.

Honor

In private score gets 99.42500 % in accuracy.

Notice

In order not to violate the rules of the competition, the code provided here is just the example of the code. Not the exact code which is uploaded in th competition. You can change the network structure on your own.

Reference

https://aidea-web.tw/topic/a49e3f76-69c9-4a4a-bcfc-c882840b3f27

https://keras.io/applications/

https://keras.io/applications/#densenet

aoi-defect-detection's People

Contributors

jellyfish1456 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

guardian4ngel

aoi-defect-detection's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.