Skip to content

pantment/xr_pipe_corrosion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Pipe Corrosion Detection

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.

Features

  • 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.

Dependencies

  • Python 3.x
  • OpenCV (cv2)
  • NumPy
  • Matplotlib

You can install the necessary dependencies using pip:

pip install opencv-python numpy matplotlib

Original Image and Corrosion Detected

Original Image

xray pipe image

Corrosion Detected

Overlay Image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages