How sohom-chakma/malaria-api works
This repository provides a FastAPI service for malaria-image detection, plus a direct image-file inference mode. The main API workflow accepts image uploads, decodes supported formats, invokes YOLO inference, and returns per-image detections and status. A separate endpoint reports model configuration. The graph reflects the shown calls and model loading; README documentation is empty, and no other service integrations are evidenced.
Main entry points: inference.py YOLO inference · main.py Prediction endpoint · yolov26m.pt Model weights
Components 9
HTTP API
- Prediction endpoint
main.py - Model metadata
main.py
Image handling
- Image decoder
main.py
Model inference
- YOLO inference
inference.py - Model weights
yolov26m.pt - File inference CLI
inference.py
Other components
- API client
- Ultralytics YOLO
- CLI user
Connections 11
- API client → Prediction endpoint: uploads images
main.py - Prediction endpoint → Image decoder: decodes images
main.py - Prediction endpoint → YOLO inference: invokes inference
main.py - Prediction endpoint → API client: returns results
main.py - API client → Model metadata: requests metadata
main.py - Model metadata → API client: returns configuration
main.py - Model metadata → YOLO inference: reads model settings
main.py - YOLO inference → Model weights: loads weights
inference.py - YOLO inference → Ultralytics YOLO: runs prediction
inference.py - CLI user → File inference CLI: provides image paths
inference.py - File inference CLI → YOLO inference: invokes inference
inference.py