Code Monkey home page Code Monkey logo

defect_detection_webservice's Introduction

Surface Defect Detector

Welcome to this demonstration platform !

The goal is to demonstrate how to easily integrate a Tensorflow/Keras model into a microservice architecture to provide predictions on the fly.

The use case is surface defect detection from flat steel sheet images.

The architecture employed is made-up of 3 Docker containers as follows :

The key element here is the webservice named defect-api-service which is responsible for the generation of the prediction. Given an input image, it operates the surface defect detection and returns an augmented image and probability informations.

To illustrate its usage, the prediction webservice has been integrated into a basic web platform :

http://localhost/upload : select the image for anaysis

upload page


http://localhost/prediction?filename=5e1c6b7da.jpg : result of the prediction as returned by defect-api-service

prediction page


http://localhost/media/ : list of media file

media page

For each image submitted for defect detection, the defect-api-service stores three different files :

  • the original image itself
  • a json representation of the prediction
  • the image with an overlayed contour of the detected defectuous area (if any)

For details on the model architecture and training as well as on what the reported probabilities do measure, please kindly refer to this walkthough Jupyter Notebook.


KEYWORDS : Nginx, uwsgi, Gunicorn, container, Docker, Flask, REST api, webservice, Tensorflow, Keras, Computer Vision, CNN, U-Net, segmentation model, data augmentation, OpenCV

defect_detection_webservice's People

Contributors

aurelienmorgan avatar

Stargazers

 avatar  avatar

Watchers

 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.