Giter Site home page Giter Site logo

faktion-usecase's Introduction

Computer vision for anomaly detection in pictures

White dice

ProjectData source and structureOur solutionsHow to use

The project

The aim of this (learning) project is to classify pictures of dice as anomalous vs. normal:

Anomalous dice Normal dice
The dice on the left are anomalous while those on the right are normal.

Data source and structure

The images used to build this project have been provided by Faktion and are available here. Please grab these assets and extract them in the root directory.

.
├── assets
|   ├── anomalous_dice
|   └── normal_dice
├── utils
├── .gitignore
├── main.py
└── README.md

Our solutions

1. OpenCV manipulations

This first approach consists in comparing any input picture of a die to be classified as anomalous vs. normal with templates of normal dice. If the input die is normal it should show a difference with the templates that is close to "zero". Whereas if the input die is anomalous, there should be a significant residual difference with the templates.

We found that the difference - in terms of pixels values - is a fair proxy of the dice class (normal or not) and allows to reach a 0.84 F1-score for the anomalous class on the original dataset.

2. Convolutional neural network (CNN)

This second approach consists in ...

How to use

You'll need Python installed on your computer to clone and run this application. From your command line:

# Clone this repository
$ git clone https://github.com/hakanErgin/faktion-usecase

# Go into the repository
$ cd faktion-usecase

# Install dependencies
$ pip install requirements.txt

# Run the main.py script
$ python run main.py

GitHub @hakanErgin @lyesds @nicesoul

faktion-usecase's People

Contributors

nicesoul avatar lyesds avatar hakanergin 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.