Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aurelienmorgan/defect_detection_webservice
Surface Defect Detection as a Tensorflow/Keras model microservice container.
https://github.com/aurelienmorgan/defect_detection_webservice
cnn computer-vision containers data-augmentation docker flask gunicorn jupyter-notebook keras nginx opencv python rest-api segmentation-model tensorflow u-net uwsgi webservice
Last synced: 18 days ago
JSON representation
Surface Defect Detection as a Tensorflow/Keras model microservice container.
- Host: GitHub
- URL: https://github.com/aurelienmorgan/defect_detection_webservice
- Owner: aurelienmorgan
- Created: 2020-09-09T12:30:58.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-07-23T13:14:16.000Z (over 3 years ago)
- Last Synced: 2024-04-26T09:27:27.562Z (8 months ago)
- Topics: cnn, computer-vision, containers, data-augmentation, docker, flask, gunicorn, jupyter-notebook, keras, nginx, opencv, python, rest-api, segmentation-model, tensorflow, u-net, uwsgi, webservice
- Language: Python
- Homepage:
- Size: 93.4 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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 :
![](flask_app/app/static/images/docker_network.png)
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
>```http://localhost/prediction?filename=5e1c6b7da.jpg``` :
result of the prediction as returned by ```defect-api-service```
>```http://localhost/media/``` :
list of media file
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```