A collection of simple and reusable Python scripts for image segmentation tasks — including mask processing, RGB color extraction, visualization, metrics, and more.
- ✅ Extract unique RGB values from segmentation masks
- 🎨 Convert RGB masks to label indices and vice versa
- 📊 Evaluate segmentation with metrics like IoU and Dice Score
- 🖼️ Overlay masks on images for visualization
- ⚙️ Easily customizable for your dataset and model output
- Python 3.7+
- OpenCV
- NumPy
- tqdm
- PIL (Pillow)
Pull requests, suggestions, and bug reports are welcome!
If you have a useful segmentation utility, feel free to submit a PR.
Created by Nikhil Tomar
For more tutorials and guides, follow the repo and stay updated!