Web-application based on ML model to detect crack in an image.
The idea of the project is to detect the crack in the image for that we used two models exception and resnet and for ui we have used flask.
Datasets used in this project *concret images-https://data.mendeley.com/datasets/5y9wdsg2zt/1/ *It consist of 40000 images 20000 as cracked one and 20000 no crack images.
-
Change directory
$ cd crack_detection
-
Install Requirements
$ pip install -r requirements.txt
-
Train Model
Skip this step if you want to use pretrained model
Tested with python 3.9
$ python models/model.py
-
Run Server
$ python app.py
-
Open http://127.0.0.1:5000/ in browser and use the UI to test concrete crack detection.
-
Try CURL requests
$ curl -X POST -F file=@data/train/crack/15000_1.jpg http://127.0.0.1:5000/predict {"prediction":"crack"}