How kadamyogiraj/crop-disease-detection-app- works
PlantCare AI is a Flask plant-care application with an Expo mobile shell that opens the hosted web app in a WebView. Users reach the Flask server, authenticate, submit plant images for diagnosis, and can use chat and review saved records. The sampled server excerpt shows diagnosis through Gemini and persistence through SQLite; the repository also contains a separate model-based prediction service and image-processing layer, but no sampled evidence connects that service to the Flask request flow. The tree lists page templates and model assets; their internal wiring is not shown.
Main entry points: app.py Flask routes · database.py SQLite records · predict.py Disease prediction · App.js Mobile WebView
Components 12
Client apps
- Mobile WebView
PlantAppMobile/App.js
Web application
- Web pages
PlantAppFlask/templates - Flask routes
PlantAppFlask/app.py - Account operations
PlantAppFlask/app.py - Plant chat
PlantAppFlask/app.py - Image diagnosis route
PlantAppFlask/app.py
Diagnosis services
- Gemini Vision
- Disease prediction
PlantAppFlask/predict.py - Image processing
PlantAppFlask/image_processor.py - Model assets
PlantAppFlask/model
Persistence
- SQLite records
PlantAppFlask/database.py
Other components
- Plant-care user
Connections 13
- Plant-care user → Mobile WebView: opens app
PlantAppMobile/App.js - Mobile WebView → Flask routes: loads hosted site
PlantAppMobile/App.js - Plant-care user → Flask routes: uses web app
- Flask routes → Account operations: routes account requests
PlantAppFlask/app.py - Flask routes → Plant chat: routes chat requests
PlantAppFlask/app.py - Flask routes → Image diagnosis route: routes image requests
PlantAppFlask/app.py - Image diagnosis route → Gemini Vision: analyzes image
PlantAppFlask/app.py - Account operations → SQLite records: reads and writes
PlantAppFlask/app.py - Image diagnosis route → SQLite records: saves diagnosis
PlantAppFlask/app.py - Plant chat → SQLite records: saves conversation
PlantAppFlask/app.py - Disease prediction → Image processing: uses processing
PlantAppFlask/predict.py - Disease prediction → Model assets: loads model
- Flask routes → Web pages: serves pages