๐Ÿ—๏ธ 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

  1. Upload an image of concrete (JPG, PNG, etc.)
  2. Adjust the detection threshold if needed (0.1-0.9)
  3. Click "Detect Cracks" to process
  4. 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