How saro0204/quantum-vision works
Quantum Vision is an agricultural monitoring application whose main workflow lets a farmer submit a leaf image, receive disease and severity predictions, and review a saved scan with treatment guidance. The React client reaches an Express API, which forwards scan images to a Flask inference service and stores scan results in MongoDB. Other product branches cover pest identification, weather and crop forecasts, fertilizer advice, voice assistance, analytics, and administration. The README documents the overall service flow; sampled files confirm scan persistence and voice integrations. Several unsampled feature implementations are represented at their existing directory paths.
Main entry points: controllers Feature handlers · routes API routes · scanController.js Scan handling · App.jsx React application
Components 21
Farmer application
- React application
frontend/src/App.jsx - Camera scanning
frontend/src/pages/CameraScan.jsx - Farm features
frontend/src/pages - API client
frontend/src/services/api.js
API and records
- Express API
backend/server.js - API routes
backend/routes - Authentication
backend/middleware/auth.js - Scan handling
backend/controllers/scanController.js - Feature handlers
backend/controllers - MongoDB records
backend/models
Agricultural intelligence
- Flask inference API
ai/app.py - Image prediction
ai/predict.py - Pest detection
ai/pest_detector.py - Treatment advice
ai/treatment_engine.py - Crop services
ai
Quantum modeling
- Quantum modules
pennylane_qv/pennylane_qv - Quantum engine
pennylane_qv/pennylane_qv/engine.py - Feature encoding
pennylane_qv/pennylane_qv/embeddings.py
Other components
- Farmer
- Gemini service
- Murf speech service
Connections 21
- Farmer → React application: uses
- React application → Camera scanning: routes to
frontend/src/App.jsx - React application → Farm features: routes to
frontend/src/App.jsx - Camera scanning → API client: submits scans
frontend/src/pages/CameraScan.jsx - API client → Express API: calls API
- Express API → API routes: mounts
backend/server.js - API routes → Authentication: protects routes
backend/routes/scanRoutes.js - API routes → Scan handling: dispatches
backend/routes/scanRoutes.js - API routes → Feature handlers: dispatches
backend/routes/pestRoutes.js - Scan handling → Flask inference API: forwards image
backend/controllers/scanController.js - Flask inference API → Image prediction: invokes
ai/app.py - Flask inference API → Pest detection: uses
ai/app.py - Scan handling → MongoDB records: stores scan
backend/controllers/scanController.js - Scan handling → MongoDB records: creates alerts
backend/controllers/scanController.js - Image prediction → Quantum modules: uses quantum layer
ai/predict.py - Quantum engine → Feature encoding: pads features
pennylane_qv/pennylane_qv/engine.py - Treatment advice → Quantum modules: optimizes treatment
ai/treatment_engine.py - Feature handlers → Crop services: feature services
- Feature handlers → MongoDB records: uses records
backend/controllers/scanController.js - Feature handlers → Gemini service: requests chat
backend/controllers/voiceController.js - Feature handlers → Murf speech service: requests speech
backend/controllers/voiceController.js