Evaluate Image

POST /api/herb/evaluate

The endpoint for evaluating an image of a plant to identify what plant it is

Args: image (UploadFile): the image to evaluate
token (oauth2 bearer token): the token for the user

Returns: (str) The plant identified in the image (float) The probability of the plant identified in the image

Body Required

  • image string(binary) Required

Responses

  • 200

    Successful Response

  • 404

    The requested page was not found

  • 422

    Validation Error

    Hide response attribute Show response attribute object
POST /api/herb/evaluate
curl \
 -X POST http://api.example.com/api/herb/evaluate \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: multipart/form-data" \
 -F "image=@file"
Request example
{
  "image": "@file"
}
Request examples
{
  "image": "@file"
}
Response examples (422)
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}
Response examples (422)
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}