How prysarious/plantnet-ai-plant-recognition-api-implementation works
This small FastAPI app accepts plant images in a browser, preprocesses each upload, queries Pl@ntNet for disease and species matches, and returns a combined result for display. The request handling and response shaping are implemented together in demo.py; the graph separates those responsibilities for clarity. The README describes the browser workflow and displayed fields, but the HTML source was not provided, so its internal behavior is not detailed.
Main entry points: demo.py Identify handler · index.html Upload and results page
Components 7
Browser interface
- Upload and results page
index.html
Identification API
- Identify handler
demo.py - Image preprocessing
demo.py - Result assembly
demo.py
Identification services
- Disease identification
- Species identification
Other components
- User
Connections 8
- User → Upload and results page: uploads image
README.md - Upload and results page → Identify handler: posts image
README.md - Identify handler → Image preprocessing: calls shrink
demo.py - Identify handler → Disease identification: requests diseases
demo.py - Identify handler → Species identification: requests species
demo.py - Identify handler → Result assembly: maps responses
demo.py - Result assembly → Upload and results page: returns results
README.md - Upload and results page → User: shows matches
README.md