How prxnesh/brain-tumor-classifier-prototype2 works
NeuroVision AI is a full-stack brain-imaging decision-support prototype. The main workflow is a user selecting an MRI, CT, or paired scans in the React client; the FastAPI API routes inference to modality-specific classifier services and returns predictions, Grad-CAM overlays, and structured reports for visualization or PDF export. The client also offers scan-context chat through an optional local Ollama service. The README documents CT and fusion as wired but dependent on trained weights. Relationships for API calls are based on documented capabilities; unsampled implementation details are not inferred.
Main entry points: App.tsx Analysis workspace · main.py HTTP API and routing · ChatPanel.tsx Scan chat · classifier_service.py Modality inference and Grad-CAM
Components 13
Analysis client
- Analysis workspace
frontend/src/App.tsx - Tumor overlay
frontend/src/BoundingBoxOverlay.tsx - Processing state
frontend/src/ProcessingOverlay.tsx - Model statistics
frontend/src/NerdStatsTab.tsx - Scan chat
frontend/src/ChatPanel.tsx - PDF report export
frontend/src/reportPdf.ts
Inference API
- HTTP API and routing
backend/app/main.py - API response schemas
backend/app/schemas.py - Runtime settings
backend/app/config.py
Model and reporting
- Modality inference and Grad-CAM
backend/app/services/classifier_service.py
Optional assistant
- Report and chat client
backend/app/services/ollama_service.py
Other components
- Clinician / user
- Ollama service
Connections 14
- Clinician / user → Analysis workspace: uploads scans
README.md - Analysis workspace → HTTP API and routing: requests inference
README.md - HTTP API and routing → Modality inference and Grad-CAM: runs prediction
backend/app/main.py - HTTP API and routing → API response schemas: returns typed responses
backend/app/main.py - HTTP API and routing → Runtime settings: reads settings
backend/app/main.py - HTTP API and routing → Report and chat client: enhances reports
backend/app/main.py - Report and chat client → Ollama service: calls model API
backend/app/services/ollama_service.py - Analysis workspace → Tumor overlay: renders
frontend/src/App.tsx - Analysis workspace → Processing state: renders
frontend/src/App.tsx - Analysis workspace → Model statistics: renders
frontend/src/App.tsx - Analysis workspace → Scan chat: renders
frontend/src/App.tsx - Analysis workspace → PDF report export: exports report
frontend/src/App.tsx - Scan chat → HTTP API and routing: sends chat
frontend/src/ChatPanel.tsx - Modality inference and Grad-CAM → HTTP API and routing: returns predictions
backend/app/main.py