Python API can classify Base64 encoded images to determine if there is a pet in the image or not.
- The API returns
True
if the animal in the image is not wild and returnsFalse
if the animal in the image is wild. - The API returns
False
if there is no animal in the image - Using the generated public URL, a POST request can be sent that has a JSON body include the encoded image.
- The API using an image recognition model, get the animal name from the image.
- Using NLTK and the name recognized from the image, check if the animal in the image is wild or not.
- using the generated public URL, ex: "https://b45dbd2667f8.ngrok.io"
- Request body in json format
{ file : "encoded image" }
image | Base64 equivalent | Request URL | Expected Output |
---|---|---|---|
https://b45dbd2667f8.ngrok.io/classifyimage/ |
|
||
https://b45dbd2667f8.ngrok.io/classifyimage/ |
|
||
https://b45dbd2667f8.ngrok.io/classifyimage/ |
|
||
https://b45dbd2667f8.ngrok.io/classifyimage/ |
|
- Python3 - to build the ML models and the API
- Google Colaboratory
- Postman - to test the API