๐๏ธ Concrete Crack Segmentation
AI-Powered Crack Detection for Infrastructure Inspection
Upload a concrete image to detect and segment cracks automatically!
- Model: Improved UNet (4-level encoder-decoder)
- Accuracy: 99.77% Dice Score
- Speed: Real-time inference
๐ค Input
0.1 0.9
๐ Results
โน๏ธ How to Use
- Upload an image of concrete (JPG, PNG, etc.)
- Adjust the detection threshold if needed (0.1-0.9)
- Click "Detect Cracks" to process
- View results in different formats:
- Original: Input image
- Mask: Binary segmentation (white=cracks, black=background)
- Visualization: Overlay with cracks highlighted in red
๐ Image Requirements
- Format: JPG, PNG, BMP, WebP
- Size: Recommended 256ร256 or larger
- Content: Concrete surfaces (walls, pavements, structures)
- Lighting: Well-lit images for best results
โ๏ธ Technical Details
- Model: UNet with 7.8M parameters
- Input: RGB images (automatically resized to 256ร256)
- Output: Probability maps + binary masks
- Processing Time: ~50-100ms per image
- Device: GPU (CUDA) if available, otherwise CPU
๐ฏ Results Interpretation
| Crack % | Status | Action |
|---|---|---|
| < 0.5% | ๐ข Good | No action needed |
| 0.5-2% | ๐ก Fair | Monitor regularly |
| 2-5% | ๐ Caution | Schedule inspection |
| > 5% | ๐ด Warning | Urgent inspection required |
Model Status: Production Ready โ
Created by: samir-mohamed
License: MIT
Repository: https://github.com/samir-m0hamed/Concrete-Crack-Segmentation-via-UNet