This project provides a Python-based solution for detecting corrosion in pipes using image processing techniques such as edge detection, contrast enhancement, and heatmap generation to highlight corrosion-prone areas in an image.
- CLAHE (Contrast Limited Adaptive Histogram Equalization): Enhances the image contrast to make the detection robust against varying lighting conditions.
- Gaussian Smoothing: Reduces noise before edge detection to improve the accuracy of edge detection.
- Canny Edge Detection: Detects the edges of the pipe from an X-ray image.
- Heatmap Generation: Generates a heatmap based on the deviation of the detected pipe boundary from a reference line.
- Python 3.x
- OpenCV (
cv2
) - NumPy
- Matplotlib
You can install the necessary dependencies using pip:
pip install opencv-python numpy matplotlib