How mtoqeer-shahzad/fruit-ripeness-object-detection-using-deep-learning works
This is a fruit-ripeness web application: users sign up or log in, upload an image, receive a fruit/ripeness classification with confidence, and can view prediction history. The Django API also supports user administration and prediction-record management; the React app exposes these features through routed screens. The README documents the image preprocessing and MobileNetV2 workflow, but the sampled backend excerpt shows only part of that implementation. Frontend-to-backend links are shown where an excerpt exposes the API request; other unsampled wiring is omitted.
Main entry points: index.tsx Screen router · prediction/views.py Prediction endpoints · accounts/views.py Account endpoints · dashboard.tsx User dashboard
Components 21
React application
- Screen router
Front-End/Fruits_ripeness_object_detection_project/src/index.tsx - Login
Front-End/Fruits_ripeness_object_detection_project/src/components/Login.tsx - Sign up
Front-End/Fruits_ripeness_object_detection_project/src/components/signup.tsx - Home
Front-End/Fruits_ripeness_object_detection_project/src/components/home.tsx - Image upload
Front-End/Fruits_ripeness_object_detection_project/src/components/imageupload.tsx - Prediction view
Front-End/Fruits_ripeness_object_detection_project/src/components/Prediction.tsx - Prediction history
Front-End/Fruits_ripeness_object_detection_project/src/components/records.tsx - About
Front-End/Fruits_ripeness_object_detection_project/src/components/about.tsx - User dashboard
Front-End/Fruits_ripeness_object_detection_project/src/components/dashboard.tsx - Record management
Front-End/Fruits_ripeness_object_detection_project/src/components/admin_panel.tsx
Django API
- Account endpoints
Back-End/Fruits_ripeness_object_detection_project/myproject/accounts/views.py - Account routes
Back-End/Fruits_ripeness_object_detection_project/myproject/accounts/urls.py - Prediction endpoints
Back-End/Fruits_ripeness_object_detection_project/myproject/prediction/views.py - Prediction routes
Back-End/Fruits_ripeness_object_detection_project/myproject/prediction/urls.py - API configuration
Back-End/Fruits_ripeness_object_detection_project/myproject/myproject/settings.py - MobileNetV2 classifier
Back-End/Fruits_ripeness_object_detection_project/myproject/prediction/views.py
Models and persistence
- User model
Back-End/Fruits_ripeness_object_detection_project/myproject/accounts/models.py - Prediction records
Back-End/Fruits_ripeness_object_detection_project/myproject/prediction/models.py - SQLite database
Back-End/Fruits_ripeness_object_detection_project/myproject/myproject/settings.py
Other components
- User
- Email service
Connections 28
- User → Screen router: opens
Front-End/Fruits_ripeness_object_detection_project/src/index.tsx - Screen router → Login: routes to
Front-End/Fruits_ripeness_object_detection_project/src/index.tsx - Screen router → Sign up: routes to
Front-End/Fruits_ripeness_object_detection_project/src/index.tsx - Screen router → Home: routes to
Front-End/Fruits_ripeness_object_detection_project/src/index.tsx - Screen router → Image upload: routes to
Front-End/Fruits_ripeness_object_detection_project/src/index.tsx - Screen router → Prediction view: routes to
Front-End/Fruits_ripeness_object_detection_project/src/index.tsx - Screen router → Prediction history: routes to
Front-End/Fruits_ripeness_object_detection_project/src/index.tsx - Screen router → About: routes to
Front-End/Fruits_ripeness_object_detection_project/src/index.tsx - Screen router → User dashboard: routes to
Front-End/Fruits_ripeness_object_detection_project/src/index.tsx - Screen router → Record management: routes to
Front-End/Fruits_ripeness_object_detection_project/src/index.tsx - Sign up → Account endpoints: registers via
- Login → Account endpoints: authenticates via
- User dashboard → Account endpoints: manages users via
- Image upload → Prediction endpoints: posts image
Front-End/Fruits_ripeness_object_detection_project/src/components/imageupload.tsx - Prediction view → Prediction endpoints: posts image
Front-End/Fruits_ripeness_object_detection_project/src/components/Prediction.tsx - Prediction history → Prediction endpoints: fetches history
Front-End/Fruits_ripeness_object_detection_project/src/components/records.tsx - User dashboard → Prediction endpoints: fetches count
Front-End/Fruits_ripeness_object_detection_project/src/components/dashboard.tsx - Record management → Prediction endpoints: manages records via
- Account routes → Account endpoints: routes requests
Back-End/Fruits_ripeness_object_detection_project/myproject/accounts/urls.py - Prediction routes → Prediction endpoints: routes requests
Back-End/Fruits_ripeness_object_detection_project/myproject/prediction/urls.py - Account endpoints → User model: reads and writes
Back-End/Fruits_ripeness_object_detection_project/myproject/accounts/views.py - Prediction endpoints → Prediction records: reads and writes
Back-End/Fruits_ripeness_object_detection_project/myproject/prediction/views.py - Prediction endpoints → MobileNetV2 classifier: classifies image
Back-End/Fruits_ripeness_object_detection_project/myproject/prediction/views.py - MobileNetV2 classifier → Prediction records: stores result
Back-End/Fruits_ripeness_object_detection_project/myproject/prediction/views.py - User model → SQLite database: persists in
- Prediction records → SQLite database: persists in
- API configuration → SQLite database: configures
Back-End/Fruits_ripeness_object_detection_project/myproject/myproject/settings.py - Account endpoints → Email service: sends reset email