A simple Flask API to detect freshness in fruits. The CNN has been trained using fresh and stale images of the follwing items :
Fruits |
---|
Banana |
Lemon |
Lulo |
Mango |
Orange |
Strawberry |
Tamarillo |
Tomato |
The dependencies are specified in requirements.txt
- Build the docker:
docker build . -t freshness:1.0
- Running the container :
docker run -it --net=host -v /path_to_images_folder:/usr/src/app/data --name fresh -d freshness:1.0
{
"docpath" : "/usr/src/app/data/your_image_name.jpg"
}