This repository shows a simple example of deploying a image classification model as a REST API using Flask. The server is hosted on Amazon Web Service (AWS).
The model are pretrained from here, it can predict 11 classes : 'apple','atm card','cat','banana','bangle','battery','bottle','broom','bulb','calender','camera'.
To call the API, there are two methods. First method is to use the Postman application and the second one is using a Python script.
In Body -> form-data, insert KEY as 'image', choose File type and upload your image in the VALUE tab.
Clone this repository and execute call.py with server url and image path as arguments.
python call.py -f "image_classification/test_imgs/apple.jpeg" -url http://127.0.0.1:8000