An interactive web application for segmenting retinal fluid regions in OCT images
Screenshots β’ Installation β’ Usage
KITE is a web-based tool designed to assist medical professionals in segmenting retinal fluid regions in Optical Coherence Tomography (OCT) images. The tool combines traditional image processing techniques with state-of-the-art deep learning models to provide accurate, efficient, and user-friendly medical image annotation.
- πΌοΈ Interactive Annotation Tools: Point, line, box, and fill tools for precise manual annotation
- π€ Multiple Segmentation Algorithms:
- KITE Algorithm: Custom region-growing approach using OpenCV
- U-Net: Deep learning model trained on DUKE OCT dataset
- MedSAM: Foundation model for medical image segmentation
- π Web-Based Interface: Django based
- π Real-Time Processing: Fast segmentation with immediate visual feedback
- πΎ Export Capabilities: Download results in PNG and NPY formats
- π¨ Layer Management: Organize and edit multiple segmentation layers
- Clinical Research: Generate annotated datasets for training ML models
- Medical Education: Teaching tool for understanding retinal pathology
- Ophthalmology Practice: Assist in diagnosis and treatment planning
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββ
β Frontend β β Backend β β AI Models β
β β β β β β
β β’ HTML/CSS/JS βββββΊβ β’ Django REST βββββΊβ β’ U-Net β
β β’ Konva.js β β β’ Image Pipeline β β β’ MedSAM β
β β’ Annotation β β β’ File Handling β β β’ Traditional β
β Tools β β β β CV Methods β
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββ
- Python 3.8+
- Node.js (for frontend dependencies)
- CUDA-compatible GPU (optional, for faster deep learning inference)
git clone https://github.com/your-username/KITE.git
cd KITEUsing conda (recommended):
conda create --name kite-env python=3.10
conda activate kite-envUsing venv:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activatepip install -r requirements.txtTo use the MedSAM segmentation model, you need to manually download the model weights.
Instructions are provided in:
models/README.md
cd website
python manage.py migrate
python manage.py collectstaticpython manage.py runserverVisit http://localhost:8000 to access the application.
- Select Algorithm: Choose between KITE, U-Net, or MedSAM
- Upload Image: Upload your OCT image (JPEG format) or choose provided the demo image
- Annotate (if using KITE / MedSAM): Use annotation tools to mark regions of interest
- Segment: Click "Ready to Segment!" to process the image
- Edit: Refine results using manual editing tools
- Export: Download segmentation masks in your preferred format
Note: It is possible to upload previous annotations or mask results and edit them in KITE mode.
Upload Image β Annotate ROI β Traditional Segmentation β Manual Refinement β Export
Upload Image β Automatic Segmentation β Manual Refinement β Export
Upload Image β Draw Bounding Boxes β AI Segmentation β Manual Refinement β Export
- HTML5/CSS3: Modern web standards
- JavaScript: Interactive functionality
- Konva.js: Canvas-based annotation tools
- Django: Web framework and REST API
- Python: Core programming language
- OpenCV: Traditional image processing
- NumPy/SciPy: Scientific computing
- PyTorch: Deep learning framework
- U-Net: Custom trained model on DUKE dataset
- MedSAM: Foundation model integration
(from KITE mode)
- Annotation
- Segmentation
- Mask Layers
This project is licensed under the MIT License.
KoΓ§ University COMP 491 Capstone Project Team
- Duru TandoΔan
- Mislina AkΓ§a
- Sinemis ToktaΕ
- YamaΓ§ ΓmΓΌr
Project Advisor: ΓiΔdem GΓΌndΓΌz Demir β KoΓ§ University
- DUKE University OCT Dataset
- U-Net and MedSAM research communities
- OpenCV and PyTorch communities
- Integration with additional clinical data (text, metadata)
- Support for other medical imaging modalities (MRI, CT)
- Real-time collaborative annotation
- Advanced AI model fine-tuning capabilities
- Clinical validation studies
- Ronneberger, O., Fischer, P., & Brox, T. (2015). U-Net: Convolutional networks for biomedical image segmentation.
- Ma, J., He, Y., Li, F., et al. (2024). Segment anything in medical images. Nature Communications.


