minamocake / SmartProductInspection

For develpment
0 stars 0 forks source link

Development Environment

OS:
macOS Mojave10.14.3

Linbraries:
tensorflow1.3.1 opencv-python4.0.0.21 keras 2.2.4 numpy 1.16.2

How to Use

Clone this repository

cd SmartProductInspection

*When using for the first time, you must delete all files of "list" folder.

Training

python ./CNN/train.py

Evaluating

python ./CNN/test.py  --model ./CNN/YOUR_MODEL_NAME

Realtime detection

python ./detect.py  --model ./CNN/YOUR_MODEL_NAME

VIEW

Please access by Web browser(Reccomend: FireFox) ./SmartProductInspection/prtotypeUI/index_en.html

If you wanna use original data

You need to make 2 folder "good" and "bad". Next you replace ./CNN/data/good and ./CNN/data/bad to its. Finally, you delete all files of "list" folder.

Also, you can classify three or more classes. If you make linked three or more folders and replace under the ./CNN/data , you can do it.

However, View maybe broken.