The invention relates to the technical field of hollow-
core optical fiber alignment, in particular to a hollow-
core optical fiber automatic alignment method and device, and the method comprises the steps: obtaining a first end face image of a first hollow-
core optical fiber and a second end face image of a second hollow-core
optical fiber; filtering the first end face image to obtain a first filtered image, and filtering the second end face image to obtain a second filtered image; the first filtering image is rotated angle by angle, and the rotated first filtering image and the second filtering image are subjected to cross-correlation calculation until the
optimal alignment angle corresponding to the maximum value of the
cross correlation coefficient is obtained; rotating the first hollow-core
optical fiber to an
optimal alignment angle so as to align the first hollow-core
optical fiber with the second hollow-core optical
fiber; according to the scheme, based on the end face image of the hollow-core optical
fiber, the end face information of the hollow-core optical
fiber can be efficiently extracted, the
image processing process is simplified, angle matching is optimized through a self-adaptive rotation adjustment
algorithm, and fiber cores and anti-
resonance structures of the two hollow-core optical fibers can be perfectly aligned.