The invention discloses a phi OTDR (
Optical Time Domain Reflectometer) tube cleaner collision
signal identifying and positioning device and method. The phi OTDR tube cleaner collision
signal identifying and positioning device comprises a data preprocessing module, a kurtosis preliminary judgment module, an
edge detection module, a
line segment segmentation module and an inverted V matching module, the data preprocessing module is used for preprocessing input original space-time diagram data and outputting a 0-1
binary image; the kurtosis preliminary judgment module judges the image after band-pass filtering and before binarization, and if the judgment is passed, an
edge detection module is carried out; the
edge detection module detects the 0-1
binary image and outputs left and right
oblique line detection results; a
line segment segmentation module performs
line segment segmentation operation on the left and right
oblique line detection results, outputs left and right
oblique line segment segmentation results, and obtains the number of left and right oblique line segments; and the inverted V matching module adopts an iteration mode, takes a pair of left and right oblique line segments with the closest upper end point each time, matches the left and right oblique line segments into an inverted V pattern according to a
distance threshold value, and outputs a final inverted V
pattern detection result. The method has good
interpretability and high anti-interference performance, and a good application effect can be achieved in a
pipe cleaner positioning task.