Giter Club home page Giter Club logo

toothbrush-inspection's Introduction

Toothbrush-Inspection

Detect defect bamboo toothbrush with CNN based algorithm

This project is implemented to achieve 4 module detection

  1. Detect defect toothbrush from frontal toothbrush image
  2. Detect defect crack from frontal toothbrush image
  3. Detect defect side toothbrush from side toothbrush image
  4. Detect defect crack from back toothbrush image

Environment

pip install -r requirements.txt

1. Download Datset

download dataset from datasets

download datasets.tar and untar

tar -xvf datasets.tar 

2. Demo

0) inference 4 modules in real time

python new_main.py

1) inference with trained model

download models from trained models

and place it ..

/models/back_crack/mask_rcnn_toothbrush_crack_0069.h5
/models/brush/mask_rcnn_toothbrush_head_0020.h5
/models/brush/efficient-best_weight_220119_2.h5
/models/brush/eff0_220928_2.h5
/models/front_crack/mask_rcnn_toothbrush_crack_0084.h5

1-1) inference with your trained model with custom data

place wherever you want


  1. Detect defect toothbrush from frontal toothbrush image
python toothbrush_head_final.py

image

  1. Detect defect crack from frontal toothbrush image
python toothbrush_crack_final.py

image

  1. Detect defect side toothbrush from side toothbrush image
python toothbrush_side_final.py

image

  1. Detect defect crack from back toothbrush image
python toothbrush_back_final.py

image

2) inference 4 modules in real time (faster .ver using multiprocess)

python multi_que.py

3. Visualize

  1. Detect defect toothbrush from frontal toothbrush image
python toothbrush_head_final_visualize.py

example images :

image image

toothbrush-inspection's People

Contributors

chaelin0722 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.