Evaluate Image
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
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"
}
]
}