How georgemuriithi/tomato-disease-detection works
Tomato Disease Detection is an image-classification product with mobile and web clients, two API deployment paths, and a CNN model. Users provide a leaf image and receive a disease label and confidence. The local API preprocesses the uploaded image and calls TensorFlow Serving; the GCF path loads a model from Cloud Storage and predicts directly. The notebook represents model development. Client-to-API links and some deployment wiring are documented in the README; the GCF path is not shown connected to the sampled clients at source level.
Main entry points: App.js Mobile App · gcf/main.py Cloud Function · local/main.py Local API · home.js Web Upload
Components 11
User Clients
- Mobile App
mobile-app/App.js - Device Permissions
mobile-app/Permissions.js - Web Upload
web-page/src/home.js
Prediction APIs
- Local API
apis/local/main.py - Cloud Function
apis/gcf/main.py
Model Inference
- TensorFlow Serving
- Cloud Storage
Model Assets
- CNN Model
Tomato-Disease-Detection-Model.ipynb - Serving Configs
config-files - Model Artifacts
models
Other components
- Farmer
Connections 17
- Farmer → Mobile App: provides image
README.md - Farmer → Web Upload: uploads image
README.md - Mobile App → Device Permissions: checks access
mobile-app/App.js - Mobile App → Local API: posts image
README.md - Web Upload → Local API: posts image
README.md - Web Upload → Cloud Function: posts image
README.md - Mobile App → Cloud Function: posts image
README.md - Local API → TensorFlow Serving: sends image batch
apis/local/main.py - TensorFlow Serving → Local API: returns predictions
apis/local/main.py - Cloud Function → Cloud Storage: downloads model
apis/gcf/main.py - Cloud Function → CNN Model: loads model
apis/gcf/main.py - Cloud Function → Cloud Function: classifies image
apis/gcf/main.py - Local API → Local API: maps class confidence
apis/local/main.py - Mobile App → Mobile App: shows result
mobile-app/App.js - Web Upload → Web Upload: shows result
web-page/src/home.js - Serving Configs → TensorFlow Serving: configures versions
README.md - Model Artifacts → Cloud Storage: uploaded model
README.md