Team Members: Kyle Theodore, Tuan Minh Dao, Huy Nguyen, Cassio Everling
A semi-automatic computer vision annotation system that enables fast, high-quality object boundary generation using classical vision techniques and interactive user input.
This project demonstrates an end-to-end interactive annotation pipeline combining segmentation, contour extraction, feature matching, and annotation propagation — built collaboratively using Agile development practices.
Manual pixel-level annotation is time-consuming, inconsistent, and costly for large datasets.
This tool reduces annotation effort by allowing users to:
- Click once inside an object
- Automatically generate a refined segmentation mask
- Extract a clean object contour
- Propagate annotations across similar frames using feature matching
The system prioritizes:
- Accuracy
- Interpretability
- User control
- No dependency on deep learning training pipelines
The pipeline consists of:
- Edge Detection & Preprocessing
- Region-Growing Segmentation
- Morphological Mask Refinement
- Contour Extraction
- Feature Matching & Annotation Propagation
- Interactive GUI Integration
Each module is independently implemented and integrated into a PyQt5-based interface.
- Python 3
- OpenCV (including SIFT via opencv-contrib)
- NumPy
- SciPy
- scikit-image
- Pandas
- PyQt5
- SIFT (Scale-Invariant Feature Transform)
- RANSAC (Affine transformation estimation)
- Canny Edge Detection
- Sobel Edge Detection
- Iterative Canny
- Morphological Closing / Opening
- Region Growing Segmentation
- Contour Extraction (cv2.findContours)
Dependencies listed in requirements.txt.
- Default: Canny + Gaussian smoothing (σ = 1.5)
- Optional: Sobel, Iterative Canny
- Morphological cleanup for edge gap reduction
- Adjustable thresholds via GUI sliders
Quantitative Results (Edge Completeness):
- Canny: 67%
- Sobel: 45%
- Iterative Canny: 55%
- Seed-based segmentation (user click)
- Supports grayscale and RGB similarity metrics
- Adjustable threshold
- Boundary protection & region size limits
- Multi-click correction (logical OR mask merging)
Mean Segmentation Performance:
- IoU: 0.9675
- Accuracy: 0.9944
- Precision: 0.9811
- Recall: 0.9857
- F1: 0.9833
- Closing (gap filling)
- Opening (noise removal)
- Produces smooth, continuous masks
- Largest contour containing seed selected
- Clean boundary overlay
- Compact representation for propagation
Instead of training-heavy models, propagation uses:
- SIFT feature extraction
- Mask-filtered keypoints
- RANSAC affine transformation (100 iterations, 1.0 inlier threshold)
- Semantic validation layer to select best transformation
This allows annotation transfer across frames without requiring dataset training.
- Load image or video frames
- Toggle edge maps, masks, contour overlays
- Click-based segmentation
- Multi-seed correction
- Threshold tuning sliders
- Save segmentation mask
- Load next frame for propagation
- Save propagated annotations
Strong performance across varied objects with high IoU and F1.
Works well for:
- High-detail textured objects (books, controllers)
Limitations:
- Low-texture surfaces (e.g., smooth knives)
- Cluttered backgrounds
- Large object displacement
These limitations are consistent with classical CV constraints.
This project was developed collaboratively by four engineers using Agile practices:
- Modular architecture design
- Independent feature modules (preprocessing, segmentation, propagation)
- Pull request workflow & branch management
- Iterative feature refinement
- Parameter experimentation & benchmarking
- Integrated GUI testing
The repository reflects real-world team collaboration, including commit history, merges, and iterative improvements.
pip install -r requirements.txtpython main.pypython tests/test_preprocessing.pypython tests/test_segmantation.py input_image.pngpython tests/test_propagation.py