How jeevilucky143143-create/imgx-ai works
IMGX.AI is a web platform for authenticated, hierarchical image classification. A user registers or signs in, submits an image, receives a prediction with confidence and alternatives, and can inspect or clear saved classification history. The README documents the ResNet-50, taxonomy, co-occurrence, and uncertainty capabilities; source excerpts show the API, persistence setup, and frontend session/API behavior, but do not expose the full classifier implementation or all page-to-service calls.
Main entry points: main.py FastAPI routes · api.js API client · App.jsx App and routes · AuthContext.jsx Session state
Components 18
Web application
- App and routes
src/App.jsx - Session state
src/context/AuthContext.jsx - Image submission
src/pages/ClassifyPage.jsx - Prediction details
src/pages/ResultPage.jsx - History explorer
src/pages/HistoryPage.jsx - API client
src/services/api.js
API and identity
- FastAPI routes
backend/main.py - JWT and passwords
backend/auth.py - Request dependencies
backend/dependencies.py - API schemas
backend/schemas.py
Vision classification
- Image classifier
backend/classifier.py - Hierarchical taxonomy
backend/taxonomy.py - Domain analyzers
backend/domain_analyzers.py - Human detection
backend/human_detector.py
Persistence
- ORM and database
backend/database.py - User and history records
backend/models.py
External services
- Supabase image storage
Other components
- User
Connections 18
- User → App and routes: uses
- App and routes → Session state: provides session
- Session state → API client: auth requests
- Image submission → API client: submits image
- API client → FastAPI routes: REST requests
- FastAPI routes → JWT and passwords: hashes and signs
- FastAPI routes → Request dependencies: resolves access
- FastAPI routes → API schemas: validates payloads
- FastAPI routes → Image classifier: runs inference
- Image classifier → Hierarchical taxonomy: classifies hierarchy
- FastAPI routes → ORM and database: opens sessions
- ORM and database → User and history records: maps records
- FastAPI routes → User and history records: persists history
- FastAPI routes → Supabase image storage: uploads image
- Prediction details → API client: loads image URL
- History explorer → API client: reads and clears
- FastAPI routes → Domain analyzers: analyzes domains
- FastAPI routes → Human detection: checks humans