How saicharan0417/dyslexia-detection-using-cnn-and-svm works
This repository is a handwriting-image dyslexia-classification project with a FastAPI demo. Its main runtime workflow accepts an image, preprocesses it, applies CNN feature extraction and SVM classification, then records and returns a prediction. It also includes dataset preparation and CNN/SVM development notebooks. The README provides little architectural detail, and the API excerpt omits the central inference lines, so model-call links reflect the documented project structure and loaded assets; uncertain notebook-to-artifact wiring is not shown.
Main entry points: main.py FastAPI endpoints · preprocessing/preprocessing.py Dataset preparation · FastAPI and Database/preprocessing.py Image preprocessing · cnn_feature_extractor.keras CNN feature extractor
Components 19
API and history
- FastAPI endpoints
FastAPI and Database/main.py - Account operations
FastAPI and Database/main.py - Prediction history
FastAPI and Database/main.py
Image inference
- Uploaded image
- Image preprocessing
FastAPI and Database/preprocessing.py - CNN feature extractor
FastAPI and Database/model/cnn_feature_extractor.keras - SVM classifier
FastAPI and Database/model/svm_model1.pkl - CNN model asset
FastAPI and Database/model/cnn_model.keras - Class and confidence
Dataset preparation
- Handwriting dataset
- Dataset preparation
preprocessing/preprocessing.py - Prepared splits
preprocessing/test.npz
Model development
- CNN feature development
CNN and Feature_Extraction/NeuroWrite_Member2_CNN.ipynb - CNN artifacts
CNN and Feature_Extraction/cnn_feature_extractor.keras - CNN model artifact
CNN and Feature_Extraction/cnn_model.keras - SVM evaluation
SVM and Evaluation/svm_model.ipynb - SVM model artifact
SVM and Evaluation/svm_model1.pkl
Other components
- Client
- Supabase
Connections 12
- Client → FastAPI endpoints: sends requests
- FastAPI endpoints → Account operations: dispatches auth
- FastAPI endpoints → Uploaded image: receives image
- FastAPI endpoints → Image preprocessing: preprocesses image
- FastAPI endpoints → CNN feature extractor: extracts features
- FastAPI endpoints → SVM classifier: classifies features
- FastAPI endpoints → Class and confidence: returns prediction
- FastAPI endpoints → Prediction history: records and reads
- Account operations → Supabase: uses when configured
- Prediction history → Supabase: uses when configured
- Handwriting dataset → Dataset preparation: provides images
- Dataset preparation → Prepared splits: writes splits