This project prepares the concrete crack dataset for machine learning and deep learning applications.
The preprocessing pipeline includes:
- Image resizing (256 × 256)
- Pixel normalization
- Grayscale conversion
- Data augmentation
- Horizontal Flip
- Vertical Flip
- Rotation (±10–15°)
- Zoom (5–10%)
- Binary mask generation using OpenCV
- Resize images to 256 × 256
- Normalize pixel values
- Convert images to grayscale
- Organize dataset into train/test folders
- Horizontal Flip
- Vertical Flip
- Rotation
- Zoom
- Gaussian Blur
- Canny Edge Detection
- Morphological Dilation
- Binary Thresholding
SDNET2018-Preprocessing/
│
├── dataset_preprocessing.py
├── generate_masks.py
├── README.md
├── requirements.txt
├── .gitignore
└── output_examples/
Install the required packages:
pip install -r requirements.txtpython dataset_preprocessing.pypython generate_masks.pyExample outputs generated by the preprocessing pipeline are available in the output_examples/ folder.
- Python
- OpenCV
- NumPy
SDNET2018 – A Concrete Crack Image Dataset for Machine Learning Applications.





