API - pasqualedem/CrowdCounting-on-VisDrone2020 Wiki

Run the server locally without docker


If you just want to run the api:

pip install -r requirements.txt

Run api

python src/api.py

Those commands will run the api, which will accept requests on port 8000.

The API is accessible at the following endpoints:

Request of prediction

The request is made by passing:

An example of request with curl:

curl -X 'POST' \
  'http://www.drone-crowdcounting.com/predictions/images?count=true&heatmap=true' \
  -H 'accept: application/json' \
  -H 'Content-Type: multipart/form-data' \
  -F '[email protected]<filename.format>;type=image/jpeg'