Identificar planta com base na imagem

POST /identify-plant

Recebe uma imagem e retorna informações sobre a planta identificada.

multipart/form-data

Body Required

  • images array[string(binary)]

    Arquivos de imagem para identificar a planta.

  • latitude number(float)

    Latitude para geolocalização (opcional).

  • longitude number(float)

    Longitude para geolocalização (opcional).

Responses

  • 200 application/json

    Identificação bem-sucedida da planta

    Hide response attributes Show response attributes object
  • 400 application/json

    Erro na solicitação (imagem muito grande ou dados inválidos)

    Hide response attributes Show response attributes object
  • 404 application/json

    Planta não encontrada ou dados incompletos

    Hide response attributes Show response attributes object
  • 500 application/json

    Erro no servidor

    Hide response attributes Show response attributes object
POST /identify-plant
curl \
 --request POST 'http://localhost:8000/identify-plant' \
 --header "Content-Type: multipart/form-data" \
 --form "images[]=@file" \
 --form "latitude=42.0" \
 --form "longitude=42.0"
Response examples (200)
{
  "plant_id_response": {},
  "perenual_response": {}
}
Response examples (400)
{
  "error": "string",
  "details": "string"
}
Response examples (404)
{
  "error": "string",
  "response": {}
}
Response examples (500)
{
  "error": "string",
  "details": "string"
}