PiyushM1 / Car-classification-API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Car-classification-API

The API was developed using Flask. It loads 3 models that I trained here using Monk library, receives pictures from the user and returns the predicted make, model and year.

Setup

  • Clone this repository, or download as zip and extract to a directory
  • Activate the virtual environment
  • Install the requirements using pip install -r requirements.txt

Usage

  • Run the app using python app.py
  • To test the API using cURL
    • Install cURL using pip install curl

    • Run the following command after updating the path to the image

      curl -X POST -F file=@<image_path> 'http://0.0.0.0:5000/predict'

  • To test the API using a user interface
    • Open http://0.0.0.0:5000 in a web browser
    • Upload an image using the webpage and press the predict button

About


Languages

Language:Python 99.8%Language:Shell 0.1%Language:HTML 0.0%Language:JavaScript 0.0%Language:CSS 0.0%Language:Dockerfile 0.0%