How youseef3550/concrete-crack-inspection works
This is a classical digital-image-processing system for detecting concrete surface cracks and classifying structural condition. The principal workflow loads an image, runs a selectable pipeline to produce a crack mask and—on the advanced path—morphological measurements and a PASS/MONITOR/FAIL assessment, then presents or evaluates the result. Separate branches support interactive inspection, dataset acquisition, and reproducible benchmarking. Edges reflect the README and shown source references; unsampled modules are included where documented, but uncertain calls are omitted.
Main entry points: pipeline.py Pipeline Engine · run_experiments.py Tuning and Ablations · app.py Interactive Web Demo · data.py Image and Mask Loading
Components 17
Image Inputs
- Crack Dataset
data - Dataset Fetcher
data/download_data.py - Image and Mask Loading
src/data.py
Image Processing
- Spatial Enhancement
src/enhancement.py - Noise Restoration
src/restoration.py - Frequency Filtering
src/frequency.py - Crack Segmentation
src/segmentation.py - Pipeline Engine
src/pipeline.py
Assessment and Evaluation
- Morphology and Measurement
src/morphology.py - Image Metrics and RLE
src/metrics.py - Benchmark and Failure Analysis
src/evaluate.py - Tuning and Ablations
experiments/run_experiments.py
Inspection Interfaces
- Single-Image Inspection
src/run_pipeline.py - Interactive Web Demo
app/app.py
Other components
- Civil Engineer
- Concrete Image
- Mask and Verdict
Connections 25
- Dataset Fetcher → Crack Dataset: fetches
README.md - Crack Dataset → Image and Mask Loading: loads pairs
README.md - Concrete Image → Single-Image Inspection: submits
README.md - Single-Image Inspection → Image and Mask Loading: loads image
src/run_pipeline.py - Single-Image Inspection → Pipeline Engine: runs Pipeline C
src/run_pipeline.py - Pipeline Engine → Spatial Enhancement: enhances
src/pipeline.py - Pipeline Engine → Frequency Filtering: filters
src/pipeline.py - Pipeline Engine → Crack Segmentation: segments
src/pipeline.py - Pipeline Engine → Morphology and Measurement: measures damage
README.md - Pipeline Engine → Mask and Verdict: produces mask and verdict
README.md - Single-Image Inspection → Image Metrics and RLE: encodes mask
src/run_pipeline.py - Mask and Verdict → Civil Engineer: reports
README.md - Civil Engineer → Interactive Web Demo: selects image and pipeline
app/app.py - Interactive Web Demo → Image and Mask Loading: loads samples
app/app.py - Interactive Web Demo → Pipeline Engine: runs selected pipeline
app/app.py - Interactive Web Demo → Image Metrics and RLE: shows metrics
app/app.py - Interactive Web Demo → Mask and Verdict: presents inspection
README.md - Benchmark and Failure Analysis → Image and Mask Loading: loads and splits data
src/evaluate.py - Benchmark and Failure Analysis → Pipeline Engine: evaluates pipelines
src/evaluate.py - Benchmark and Failure Analysis → Image Metrics and RLE: scores predictions
src/evaluate.py - Tuning and Ablations → Image and Mask Loading: loads development data
experiments/run_experiments.py - Tuning and Ablations → Frequency Filtering: tunes filters
experiments/run_experiments.py - Tuning and Ablations → Crack Segmentation: tunes thresholds
experiments/run_experiments.py - Tuning and Ablations → Morphology and Measurement: tunes morphology
experiments/run_experiments.py - Tuning and Ablations → Image Metrics and RLE: scores trials
experiments/run_experiments.py