Giter Club home page Giter Club logo

cv-hackathon's Introduction

CV-hackathon

The repository contains 3 IPYNB files

  • Yolov5
  • Other_Approaches
  • dataset_creater

Rest other are utils and tools which are used along the code

Yolov5.ipynb

  • This file contains code to main approach used for detection
  • NOTE It is highly recomended that you upload and execute this file on Google Colab only

Other_Approaches.ipynb

  • This code file contains 3 other Approaches which were practised along with main code

dataset_creater.ipynb

  • Extracting ROIs out of images and creating dataset manualy can be very tedious task
  • This code file contains pragram to which make the process very easy
  • All the usage instructions are commented inside the file

**All the 3 files are well commented and code instructions and usage of other files present in this repository is directed in them

Final_results_csv_file

This contains the defect_box and defect_type csv files

Presentation

This is uploaded as AlphaQ.pptx

Approaches and Explanation

1. Using Morphological Operations

  • It is observed that the defect has different texture than the fabric. This is the basis of this approach.
  • Combination of Sobelx and Sobely operations are applied and binary thresholding is done. This seperated out the defect from the fabric. The following figure shows the results\

  • Borders of image contains noise, thus center portion of the frame is taken as ROI.
  • Image is divided into rectangles and pixel intensity of each is noted. Region with highest pixel intensity is considered to the the defect. The following image shows the same.

Following are the results of this method.

2. Using Feature Matching

  • Since all defects share a common texture which is different from the fabric, feature matching can be applied.
  • Points in the image with features similar to the defects are returned

3. Classification using Linear Binary Patterns (lbp)

  • Again exploiting the advantage that defects are textured different from the fabric, we compute lbp
  • That pattern is computed as local binary pattern and a histogram of patterns is formed. Then these histograms are fed to SVM Classifier for classification
  • Then while testing, the input image is divided into several rectangular sections and each of which is fed into SVM clalssifier.
  • The final ROI is taken as the intersection of all ROIs

Following image depects the same

4. YOLOv5

  • YOLOv5, an open sourced object detection algorithm by Ultralytics is used
  • Efficient and accurate than other object detection algorithms like rCNN, F-rCNN etc

gif

cv-hackathon's People

Contributors

kartik-aggarwal avatar

Watchers

James Cloos avatar

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.