This project compares traditional OpenCV human boundary detection with SAM2 segmentation using RGB and thermal images.
- GrabCut segmentation
- Contour detection
- Human boundary extraction
- HSV color thresholding
- Morphological operations
- Contour detection
- Human boundary extraction
- RGB SAM2 IoU Score: 0.7646
- Thermal SAM2 IoU Score: 0.3021
The RGB image produced a stronger SAM2 segmentation result than the thermal image.
The results are displayed using a Streamlit web application.
app.py- Streamlit web applicationrgb_boundary.py- RGB boundary detectionthermal_boundary.py- Thermal boundary detectionrgb_images/- RGB input imagethermal_images/- Thermal input imageresults/- OpenCV and SAM2 results