Optical fiber connector based on machine vision and semiconductor material surface detection method
Through the fiber optic connector detection method based on machine vision, image preprocessing, edge detection and curve fitting are used, combined with image splicing technology, to solve the problem of low traditional detection efficiency, achieve efficient fiber optic connector end face detection, and ensure detection Quality and efficiency.
Patent Information
- Application Number
- CN202410636838.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-22
- Publication Date
- 2024-08-30
AI Technical Summary
Traditional optical fiber connector end-face inspection efficiency is low, requires manual operation, and is difficult to ensure panoramic inspection of the connector, affecting inspection quality.
Using detection methods based on machine vision, including image preprocessing, single fiber positioning and segmentation processing, edge detection and extraction, curve fitting and image splicing, the core position and radius detection of the fiber end face is achieved through the Hough gradient method and the least squares method. , and obtain panoramic images through image stitching.
It greatly improves the efficiency of fiber end face inspection, ensures the quality of connector end faces, and enables efficient panoramic inspection without relying on manual operations.
Smart Images

Figure CN118570236A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of optical fiber end face detection, and in particular to an optical fiber connector and a semiconductor material surface detection method based on machine vision. Background Art
[0002] The function of the optical fiber connector is to connect optical fibers so that optical signals can be transmitted in the optical fiber system with very low loss. In order to minimize the impact of the optical fiber connector on the system when it is inserted into the optical communication line, its quality must be guaranteed, so its end face detection becomes very important. The geometric shape of the optical fiber connector has a decisive effect on its performance. Various special optical fiber end faces are processed by grinding and can be divided into PC type, UPC type and APC type according to the end face shape.
[0003] During the polishing process of the optical fiber end face, it is inevitable that there will be surface scratches, unevenness, and apex deviation, which will affect the quality of the connector. In order to ensure the performance parameters of the connector, it is necessary to conduct inspections. The traditional inspection method is through microscopic magnification and interference microscopy. Although it can ensure the quality of the inspection, the inspection efficiency is low and it needs to be done manually. Summary of the invention
[0004] In order to overcome the deficiencies of the prior art, the purpose of the present invention is to provide a method for detecting the surface of an optical fiber connector and a semiconductor material based on machine vision, which can greatly improve the detection efficiency of the optical fiber end face and ensure the quality of the connector end face.
[0005] The present invention is implemented by the following technical scheme: a method for detecting the surface of an optical fiber connector and a semiconductor material based on machine vision, comprising the following steps: step one: image preprocessing; filtering preprocessing of the end face image of the optical fiber connector; step two: positioning and segmentation processing of a single optical fiber; using the Hough gradient method to roughly locate the end face of a single optical fiber, determining a small area where the single optical fiber is located, and segmenting this area on the image, and performing subsequent image processing and analysis separately; step three: edge detection and extraction; edge detection and edge extraction of the optical fiber cladding on the image of the segmented single optical fiber end face; step four: curve fitting; extracting feature points of the optical fiber cladding boundary, and using the least squares method to perform ellipse fitting on this group of data points to obtain the core position and radius of the optical fiber.
[0006] Furthermore, the image preprocessing includes Gaussian filter preprocessing or median filter preprocessing.
[0007] Furthermore, the curve fitting step includes step 1: performing least squares fitting on all points to be fitted to obtain an initial ellipse fitting result; step 2: calculating the distance from all points to be fitted to the initial ellipse, and dividing all points to be fitted into three types according to the distance: points belonging to the ellipse, points that may belong to the ellipse, and points that do not belong to the ellipse; step 3: based on step 2, performing least squares ellipse fitting with the fitting points belonging to the ellipse, calculating the distance from the points that may belong to the ellipse in the second step to the new ellipse, and adding the points with a suitable distance from the new ellipse to the data points to be fitted. Step 4: repeating the above steps to obtain the final fitting result.
[0008] Furthermore, the machine vision-based optical fiber connector and semiconductor material surface detection method also includes image stitching, which includes the following steps: Step 1: Use image filtering and rough positioning to perform stitching preprocessing on the image to ensure the accuracy of image registration; Step 2: Perform image registration to determine the transformation relationship between adjacent images by extracting and matching image features; Step 3: Unify the image coordinate system, and according to the transformation relationship between adjacent images, unify the coordinate systems of multiple images to the same coordinate system; Step 4: Image fusion: Fusion and interpolation of overlapping areas in adjacent images to obtain a seamlessly connected full image.
[0009] Compared with the prior art, the present invention has the following beneficial effects:
[0010] 1. The present invention is a method for detecting the surface of optical fiber connectors and semiconductor materials based on machine vision. By sequentially performing image preprocessing, positioning and segmentation of a single optical fiber, edge detection and extraction, and curve fitting, the core position and radius of the end face of the optical fiber connector can be obtained, and its physical parameters can be detected, thereby greatly improving the detection efficiency of the optical fiber end face and ensuring the quality of the connector end face.
[0011] 2. The present invention provides a method for detecting the surface of optical fiber connectors and semiconductor materials based on machine vision, which also includes image stitching, so that during the detection of the end face of the optical fiber connector, if the field of view of the detector is too small to capture the panoramic view of the connector end face at one time, the full picture of the end face of the optical fiber connector can be obtained through image stitching, thereby realizing its overall end face detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 It is a flow chart of the optical fiber connector and semiconductor material surface detection method based on machine vision of the present invention. DETAILED DESCRIPTION
[0013] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0014] The purpose of the present invention is to provide a method for detecting the surface of an optical fiber connector and a semiconductor material based on machine vision in view of the defects of the prior art.
[0015] Embodiment 1
[0016] This embodiment provides a method for detecting the surface of an optical fiber connector and a semiconductor material based on machine vision. Figure 1 As shown, the following steps are included:
[0017] Step 1: Carry out image preprocessing; filter preprocess the fiber connector end face image; image preprocessing includes Gaussian filter preprocessing or median filter preprocessing. Remove the noise interference of the fiber connector end face image during the imaging and acquisition process to avoid the adverse effects of these noises on subsequent processing.
[0018] Step 2: Positioning and segmentation of a single optical fiber: Use the Hough gradient method to roughly position the end face of a single optical fiber, determine a small area where the single optical fiber is located, and segment this area on the image for subsequent image processing and analysis;
[0019] Step 3: Edge detection and extraction; perform edge detection on the segmented image of a single optical fiber end face and extract the edge of the optical fiber cladding; on a connector with multiple cores, there are multiple separate optical fiber end faces on the collected connector image, but only a single optical fiber end face needs to be detected, so each optical fiber end face needs to be segmented out from the image of the entire optical fiber connector end face.
[0020] Step 4: Curve fitting: extract the characteristic points of the fiber cladding boundary, use the least squares method to perform ellipse fitting on this set of data points, and obtain the core position and radius of the fiber.
[0021] The curve fitting steps include:
[0022] Step 1: Perform least squares fitting on all points to be fitted to obtain an initial ellipse fitting result;
[0023] Step 2: Calculate the distance from all the points to be fitted to the initial ellipse, and divide all the points to be fitted into three types according to the distance: points that belong to the ellipse, points that may belong to the ellipse, and points that do not belong to the ellipse;
[0024] Step 3: Based on step 2, use the fitting points belonging to the ellipse to do least squares ellipse fitting, calculate the distance from the points that may belong to the ellipse in the second step to the new ellipse, and add the points with a suitable distance to the new ellipse to the data points to be fitted.
[0025] Step 4: Repeat the above steps several times to get the final fitting result.
[0026] In the detection of the end face of the optical fiber connector, if the field of view of the detector is too small, it is not possible to capture the full view of the connector end face at one time. At this time, if you want to fully understand the full view of the end face of the optical fiber connector, you need to achieve it through image stitching. This embodiment provides a method for detecting the surface of an optical fiber connector and a semiconductor material based on machine vision, and its image stitching includes the following steps:
[0027] Step 1: Use image filtering and rough positioning to pre-process the image to ensure the accuracy of image registration;
[0028] Step 2: Carry out image registration, and determine the transformation relationship between adjacent images by extracting and matching image features;
[0029] Step 3: Unify the image coordinate system. According to the transformation relationship between adjacent images, the coordinate systems of multiple images are unified into the same coordinate system.
[0030] Step 4: Image fusion; fuse and interpolate the overlapping areas in adjacent images to obtain a seamlessly connected full image.
[0031] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.
Claims
1. A method for detecting the surface of optical fiber connectors and semiconductor materials based on machine vision, characterized in that: The following steps are involved: Step 1: Carry out image preprocessing; Perform filtering preprocessing on the end face image of the optical fiber connector; Step 2: Positioning and segmentation of a single optical fiber: Use the Hough gradient method to roughly position the end face of a single optical fiber, determine a small area where the single optical fiber is located, and segment this area on the image for subsequent image processing and analysis; Step 3: Edge detection and extraction: edge detection and edge extraction of the image of the end face of a single optical fiber obtained by segmentation; Step 4: Curve fitting: extract the characteristic points of the fiber cladding boundary, use the least squares method to perform ellipse fitting on this set of data points, and obtain the core position and radius of the fiber.
2. The method for detecting the surface of optical fiber connectors and semiconductor materials based on machine vision according to claim 1, characterized in that: The image preprocessing includes Gaussian filter preprocessing or median filter preprocessing.
3. The method for detecting the surface of optical fiber connectors and semiconductor materials based on machine vision according to claim 1, characterized in that: The curve fitting step includes Step 1: Perform least squares fitting on all points to be fitted to obtain an initial ellipse fitting result; Step 2: Calculate the distance from all the points to be fitted to the initial ellipse, and divide all the points to be fitted into three types according to the distance: points that belong to the ellipse, points that may belong to the ellipse, and points that do not belong to the ellipse; Step 3: Based on step 2, use the fitting points belonging to the ellipse to do least squares ellipse fitting, calculate the distance from the points that may belong to the ellipse in the second step to the new ellipse, and add the points with a suitable distance to the new ellipse to the data points to be fitted. Step 4: Repeat the above steps several times to get the final fitting result.
4. The method for detecting the surface of optical fiber connectors and semiconductor materials based on machine vision according to claim 1, characterized in that: It also includes image stitching, which includes the following steps: Step 1: Use image filtering and rough positioning to pre-process the image to ensure the accuracy of image registration; Step 2: Carry out image registration, and determine the transformation relationship between adjacent images by extracting and matching image features; Step 3: Unify the image coordinate system. According to the transformation relationship between adjacent images, the coordinate systems of multiple images are unified into the same coordinate system. Step 4: Image fusion; fuse and interpolate the overlapping areas in adjacent images to obtain a seamlessly connected full image.
