Disclosure of Invention
In order to solve the technical problems, the invention provides a method for detecting the fusion power of an optical fiber end face, which is realized by the following technical scheme:
a fusion power detection method of an optical fiber end face, an optical fiber is provided with the optical fiber end face, and the optical fiber end face is provided with a circle center; the optical fiber end face is the optical fiber end face after fusion treatment, the edge of the optical fiber end face is provided with arc transition to the end face main body,
Acquiring an image shot along the axial direction of the end face of the optical fiber;
A plurality of point light sources uniformly distributed around the end face of the optical fiber; in the axial direction of the optical fiber end face, a plurality of point light sources are positioned in front of the optical fiber end face; when the projection direction is the axial direction of the optical fiber end face, and the plane of the image of the optical fiber end face is taken as a projection plane, the projections of the point light sources are positioned on the concentric circle of the projection of the circle center;
The point light source can generate a light reflecting area on the edge of one side corresponding to the optical fiber end face, and the light reflecting area is imaged on the image of the optical fiber end face;
In the projection plane, the virtual straight line formed by the projection of the point light source and the projection of the circle center forms two intersection points with the edge of the reflecting area generated by the corresponding point light source, wherein the intersection point close to the corresponding point light source is a first intersection point, and the intersection point far from the corresponding point light source is a second intersection point;
and acquiring distance information between each first intersection point or each second intersection point and the circle center, comparing the distance information with a set threshold value, and judging that the fusion power of the optical fiber end face is overlarge and the optical fiber end face is unqualified if the distance information is smaller than the set threshold value.
It is preferred that the composition of the present invention,
S1: obtaining image information of the end face of the optical fiber, wherein the image information represents bright and dark pixel values;
s2: scanning the image to obtain the outline information of the optical fiber end face in the image;
S3: acquiring the information of the transverse-longitudinal ratio according to the profile information of the optical fiber end face so as to acquire the center coordinates of the optical fiber end face;
s4: obtaining straight line information between the point light sources according to the coordinate information of the point light sources and the circle center coordinate information of which the relative positions are fixed in the image;
s5: scanning outwards from the circle center coordinates according to the straight line information, and searching first point coordinates which are located on the straight line information and represent bright values, wherein the point coordinates representing the bright values are the second intersection points;
S6: and obtaining the distance information between the second intersection point and the circle center according to the point coordinates and the circle center coordinates which represent the bright value.
Preferably, the number of the point light sources is four, and the point light sources are positioned in the directions of transverse pixels and longitudinal pixels of the fiber end face image;
And the coordinates of the circle center on the projection plane are fixed coordinates, or the circle center coordinates of the optical fiber end face are obtained by obtaining the contour information of the optical fiber end face in the image and obtaining the information of the transverse-longitudinal ratio according to the contour information.
Preferably, the plurality of point light sources sequentially emit light, and images of the end faces of the optical fibers when the plurality of single point light sources emit light are obtained.
The invention also provides a fusion power detection method of the optical fiber end face, the optical fiber is provided with the optical fiber end face, and the optical fiber end face is provided with a circle center; the optical fiber end face is the optical fiber end face after fusion treatment, the edge of the optical fiber end face is provided with arc transition to the end face main body,
Acquiring an image shot along the axial direction of the end face of the optical fiber;
A plurality of point light sources uniformly distributed around the end face of the optical fiber; in the axial direction of the optical fiber end face, a plurality of point light sources are positioned in front of the optical fiber end face; when the projection direction is the axial direction of the optical fiber end face, and the plane of the image of the optical fiber end face is taken as a projection plane, the projections of the point light sources are positioned on the concentric circle of the projection of the circle center; the two point light sources are in a group, and on a projection plane, the two point light sources of the group are positioned at two sides of the circle center and positioned on the same straight line passing through the circle center;
The point light source can generate a light reflecting area on the edge of one side corresponding to the optical fiber end face, and the light reflecting area is imaged on the image of the optical fiber end face;
in the projection plane, the two points are positioned on a virtual straight line formed by projection of a group of two point light sources, the straight line and the edge of a reflection area generated by the corresponding point light source form two intersection points, the intersection point close to the corresponding point light source is a first intersection point, and the intersection point far from the corresponding point light source is a second intersection point;
and acquiring distance information between the two first intersection points or the second intersection points of each group, comparing the distance information with a set threshold value, and judging that the fusion power of the optical fiber end face is overlarge and the optical fiber end face is unqualified if the distance information is smaller than the set threshold value.
It is preferred that the composition of the present invention,
S1: obtaining image information of the end face of the optical fiber, wherein the image information represents bright and dark pixel values;
s2: scanning the image to obtain the outline information of the optical fiber end face in the image;
S3: obtaining straight line information between two point light sources of one group according to the coordinate information of the point light sources of each group with fixed relative positions in the image;
S5: scanning from the inner side to the outer side of the end face of the optical fiber according to the linear information, and searching for first point coordinates which are positioned on the linear information and represent bright values at two ends, wherein the point coordinates represent the bright values as a group of two second intersection points;
S6: and obtaining the distance information of the two second intersection points according to the two point coordinates representing the bright values of each group.
Preferably, the point light sources have two groups, and the point light sources are located in the lateral pixel and longitudinal pixel directions of the fiber end face image.
The invention also provides a fusion power detection method of the optical fiber end face, the optical fiber is provided with the optical fiber end face, and the optical fiber end face is provided with a circle center; the optical fiber end face is the optical fiber end face after fusion treatment, the edge of the optical fiber end face is provided with arc transition to the end face main body,
Acquiring an image shot along the axial direction of the end face of the optical fiber;
a plurality of point light sources uniformly distributed around the end face of the optical fiber; in the axial direction of the optical fiber end face, a plurality of point light sources are positioned in front of the optical fiber end face; when the projection direction is the axial direction of the optical fiber end face, and the plane of the image of the optical fiber end face is taken as a projection plane, the projections of the point light sources are positioned on the concentric circle of the projection of the circle center; setting a virtual straight line in the horizontal and/or vertical directions in the projection plane by taking the projection of the circle center as a center point, thereby obtaining the transverse and/or longitudinal value-taking direction information taking the circle center as a passing point on the corresponding image;
The point light source can generate a light reflecting area on the edge of one side corresponding to the optical fiber end face, and the light reflecting area is imaged on the image of the optical fiber end face;
rotating the image of the end face of the optical fiber, wherein the rotating angle is an included angle between a corresponding point light source and a virtual straight line in the horizontal and/or vertical direction in a projection plane by taking the center of a circle as a midpoint;
The rotated image takes the circle center as a passing point, and transverse and/or longitudinal scanning is carried out in the image of the end face of the optical fiber to obtain first point coordinates which are positioned in the transverse and/or longitudinal direction and represent the bright value, and distance information of the point coordinates representing the bright value and the circle center coordinates is obtained;
and acquiring distance information of each point coordinate representing the bright value and the center coordinate, comparing the distance information with a set threshold value, and judging that the fusion power of the optical fiber end face is overlarge and the optical fiber end face is unqualified if the distance information is smaller than the set threshold value.
Preferably, the plurality of point light sources sequentially emit light, and images of the end faces of the optical fibers when the plurality of single point light sources emit light are obtained.
Preferably, the number of the point light sources is four, and the point light sources are positioned in the directions of transverse pixels and longitudinal pixels of the fiber end face image;
And the coordinates of the circle center on the projection plane are fixed coordinates, or the circle center coordinates of the optical fiber end face are obtained by obtaining the contour information of the optical fiber end face in the image and obtaining the information of the transverse-longitudinal ratio according to the contour information.
Preferably, a virtual straight line in the horizontal and/or vertical direction is set in the projection plane by taking the center of the optical fiber end face as the center point, and a straight line passing through pixels in the same row and/or column of the center point in an image of the optical fiber end face is taken as the virtual straight line in the horizontal and/or vertical direction.
Preferably, the two point light sources are a group, and on the projection plane, the two point light sources of the group are positioned at two sides of the center of the circle and positioned on the same straight line passing through the center of the circle.
It is preferred that the composition of the present invention,
S1: obtaining image information of the end face of the optical fiber, wherein the image information represents bright and dark pixel values;
s2: scanning the image to obtain the outline information of the optical fiber end face in the image;
S3: acquiring information of the transverse-longitudinal ratio according to the profile information of the optical fiber end face so as to acquire circle center coordinates of the optical fiber end face, and acquiring transverse and/or longitudinal value position direction information taking the circle center as a passing point on a corresponding image according to the circle center coordinate information;
S4: calculating the rotation angle information of each point light source according to the coordinate information of each point light source with fixed relative positions and the circle center coordinate information in the image, and rotating the image of the end face of the optical fiber;
s5: after each rotation, scanning is performed along the transverse direction and/or the longitudinal direction with the circle center as the passing point, and a first point coordinate which is positioned in the transverse direction and/or the longitudinal direction and represents a bright value is obtained.
The invention also provides a fusion power detection method of the optical fiber end face, the optical fiber is provided with the optical fiber end face, and the optical fiber end face is provided with a circle center; the optical fiber end face is the optical fiber end face after fusion treatment, the edge of the optical fiber end face is provided with arc transition to the end face main body,
Acquiring an image shot along the axial direction of the end face of the optical fiber;
A plurality of point light sources uniformly distributed around the end face of the optical fiber; in the axial direction of the optical fiber end face, a plurality of point light sources are positioned in front of the optical fiber end face; when the projection direction is the axial direction of the optical fiber end face, and the plane of the image of the optical fiber end face is taken as a projection plane, the projections of the point light sources are positioned on the concentric circle of the projection of the circle center;
The point light source can generate a light reflecting area on the edge of one side corresponding to the optical fiber end face, and the light reflecting area is imaged on the image of the optical fiber end face;
The two point light sources are in a group, and on a projection plane, the two point light sources of the group are positioned at two sides of the circle center and positioned on the same straight line passing through the circle center;
detecting the distance between two reflection areas formed by a group of two point light sources on an image;
And comparing the distance information with a set threshold value, and if the distance information is smaller than the set threshold value, judging that the fusion power of the optical fiber end face is overlarge and the optical fiber end face is failed.
The invention has the beneficial effects that: the method for detecting the fusion power of the optical fiber end face can be applied to fusion equipment, crescent reflection of the optical fiber end face is obtained through irradiation of a plurality of point light sources, and whether the fusion power of the optical fiber end face is overlarge is judged through calculation of the distance between the first intersection point or the second intersection point and the circle center.
Detailed Description
The invention is further described below with reference to the drawings and detailed description.
The equipment adopted by the method is shown in fig. 1, and the optical fiber 1 is provided with an optical fiber end face, and the optical fiber end face is provided with a circle center. The optical fiber end face is the optical fiber end face after the fusion treatment in the prior art, the edge of the optical fiber end face is provided with an arc transition to the end face main body, and impurities such as burrs, dust particles and the like caused by optical fiber cutting can be eliminated on the optical fiber end face after the fusion treatment. As shown in fig. 2, a, b, c, d in fig. 2 is a schematic cross-sectional simulation diagram of the fiber end face when the melting power is sequentially from small to large and a set of symmetrical point light sources are adopted, wherein the black part outside the edge of the fiber end face is a virtual position representing the generated reflection, and as the melting power is larger, the fiber end face is more pointed, because the edge part of the fiber end face is more easily melted relative to the middle part, and after melting, the fiber end face is more and more approximately semicircular due to the tension effect of the liquid state. Since the end face portion of the optical fiber is partially melted during the melting process, the edge portion located on the end face of the optical fiber may be protruded to form a mushroom-like shape as shown in fig. 3 under the influence of gravity or tension. If the fusion power is too high, the edge portion of the end face of the optical fiber protrudes beyond the optical fiber, so that the fused optical fiber cannot penetrate into a device requiring high precision such as a ferrule when the optical fiber is inserted into an optical fiber connector. Here, fig. 2 and 3 are side views of the optical fiber 1, and the camera 3 used in this patent is directed to the end face of the optical fiber, and the forward end face of the optical fiber is photographed, so that the case where the end face of the optical fiber protrudes cannot be directly photographed from the side, nor the case where the edge of the end face of the optical fiber protrudes cannot be photographed. Meanwhile, fig. 3 is a schematic diagram showing an exaggerated state of the edge protrusion of the optical fiber end face, which is hardly seen by naked eyes.
The melting end is realized by the heat brought by the electric arc, and the melting speed is high due to the special property of the electric arc, so that even if the discharge power is consistent every time, the melting power when the heat brought by the electric arc acts on the end face of the optical fiber can be different. The fusion power in this patent refers primarily to the power of the heat from the arc acting on the fiber end face.
When the optical fiber end face detection is carried out, a plurality of point light sources emit light simultaneously or sequentially, so that the camera 3 can obtain images of the optical fiber end face when the point light sources emit light. The point light sources need to emit light simultaneously or sequentially and are related to the number of the point light sources, and if the number of the point light sources is too large, the formed reflecting areas are connected to each other to influence each other, so that the point light sources need to emit light sequentially and poll. The image may be displayed on the melting end apparatus through a display screen, and the pixels located on the image may be different from the pixels to be calculated in the method, and the pixels displayed on the image may be pixels subjected to compression processing for display. The processor and the memory of the fuse terminal device process the image, copy the pixel data obtained by the camera into a opened calculation area, and perform binarization processing on the gray value of the pixel. And when the gray value exceeding the set gray value is a bright point and when the gray value falling below the set gray value is a black point, black-and-white image information of the optical fiber end face is formed, and the black value and the white value of the black-and-white image in the optical fiber end face correspond to the dark place and the light reflection area of the image. In calculating the information of the light reflection area, some noise points caused by equipment noise, error interference or external environment are removed, for example, an area smaller than a specified pixel number can be defined as the noise point, and the information of the light reflection area is not counted.
In the axial direction of the optical fiber or the optical fiber end face, a plurality of point light sources 2 are located in front of the optical fiber end face. On the projection in the axial direction, a plurality of point light sources 2 are positioned on the concentric circle of the center of the optical fiber, and the point light sources 2 are uniformly distributed around the end face of the optical fiber.
The fiber end face is placed in a closed dark space, and the point light source 2 emits light to impinge on the fiber end face, where the point light source functions to produce light reflection at the curved edge of the fiber end face, rather than a light source that illuminates the entire fiber end face. As shown in fig. 3 and 4, since the point light source is provided and the fiber end face is a circular cross section, the camera 3 located on the front face of the fiber end face can only receive the reflection generated by the bent portion of the edge of the fiber end face, and the reflection is a crescent-shaped reflection area. The reflection generated at the end face part of the optical fiber end face, which is approximately parallel to the ccd plane of the camera 3, is not received by the camera 3, the back background of the point light source 2, which is far away from the optical fiber end face, can form a white background in the imaged image, the crescent reflection is generated in the imaging of the optical fiber end face, and the rest end face parts can form dark optical fiber end face images. Meanwhile, in the actual device, the relative positions of the light source 2 and the optical fiber 1 are far, and the ratio of the diameters of the optical fibers 1 to the distances between the light source 2 and the optical fibers 1 is very large, so that even if the optical fibers 1 need to be fixed on the device each time, the positions can have a certain error, but the error is very large in relation to the distances between the light source 2 and the optical fibers 1, and therefore, the relative angle between the center of the optical fibers 1 and the light source 2 can be considered to be fixed.
For the number of point light sources, more than two point light sources can be theoretically used, and four point light sources are generally adopted in the actual use process. Although the name point light source is used in this patent, it may also be a parallel light source each facing the end face of the fiber.
When the projection direction is the axial direction of the optical fiber end face and the plane of the optical fiber end face where the image is located is taken as a projection plane, the projections of the point light sources are positioned on the concentric circle of the projection of the circle center. If the image formed by the camera 3 is regarded as a projection plane, which is a virtual image, the relative position of the spot light source can be observed and fixed if the imaging area of the camera 3 is sufficiently large. The point light source can generate a light reflection area at the edge of the optical fiber end face when emitting light, the light reflection area is imaged on the image of the optical fiber end face, theoretically if the imaging area is large enough, the position of the point light source can also appear on the image, so the image of the optical fiber end face can also be understood as the projection image. The description mode of the projection plane is mainly that the image shot by the camera is mainly an image of the end face of the optical fiber, in general, a point light source does not appear in a real image, and the image and the point light source are placed in the same plane for convenient description and subsequent calculation, so that the description mode of the projection plane is adopted.
Example 1:
if the reflective areas formed by the simultaneous lighting of the point light sources 2 are not connected with each other, the information of the image can be directly obtained, the area of each reflective area in the end face of the optical fiber is calculated, if the reflective image is affected by the simultaneous lighting of the point light sources 2, the point light sources 2 can be sequentially lighted, and the area of the reflective area in the end face of the optical fiber after the point light sources 2 are independently lighted is obtained. Generally, the four point light sources do not affect each other.
As shown in fig. 4 and 5, in the projected image, the relative positions of the point light sources are fixed, and have known fixed coordinate positions, and are located on a virtual straight line formed by the projection (i.e., the fixed coordinates) of the point light sources and the projection of the circle center, where the straight line forms two intersection points with the edge of the reflective area generated by the corresponding point light source, the intersection point close to the corresponding point light source is a first intersection point, and the intersection point far from the corresponding point light source is a second intersection point.
And acquiring distance information between each second intersection point and the circle center, comparing the distance information with a set threshold value, and judging that the fusion power of the end face of the optical fiber is overlarge and the end face of the optical fiber is unqualified if the distance information is smaller than the set threshold value.
The above process may be:
S1: obtaining image information of the end face of the optical fiber, wherein the image information represents bright and dark pixel values; the bright and dark pixel values may be pixels representing black and white values after binarization processing;
S2: scanning the image to obtain the outline information of the optical fiber end face in the image; the profile information of the end face of the optical fiber can be coordinate information of four tangent points of a circle obtained through transverse and longitudinal scanning; it may also be the entire circular contour obtained by contour extraction;
S3: acquiring the information of the transverse-longitudinal ratio according to the profile information of the optical fiber end face so as to acquire the center coordinates of the optical fiber end face; the length information of the diameter or the radius can be obtained while the circle center coordinates are obtained, and the length of the diameter or the radius can be used as the maximum length of scanning;
s4: obtaining straight line information between the coordinate information of each point light source and the center coordinate information according to the coordinate information of each point light source with fixed relative positions in the image;
S5: scanning outwards from the center coordinates according to the straight line information, and searching for first point coordinates which are located on the straight line information and represent bright values, wherein the point coordinates representing the bright values are second intersection points; after the center coordinates are obtained, the relative positions of the point light sources and the center are fixed, namely, the relative direction angles are fixed, so that the straight line information is the fixed direction angles, the straight line information is scanned outwards from the center according to the direction angles of the straight line information, and the scanned straight line is the straight line of the point light sources and the center; the first bright spot scanned outwards is necessarily a crescent-shaped reflective area;
S6: and obtaining the distance information between the second intersection point and the circle center according to the point coordinates and the circle center coordinates which represent the bright value.
In practice, point sources may be placed in lateral and longitudinal directions relative to the image pixels for ease of calculation. If the connecting line of the point light source and the center is not in the transverse and longitudinal directions of the image pixel, a fixed included angle is necessarily formed between the connecting line of the point light source and the center and the transverse and longitudinal directions, at this time, the scanning mode can be that the transverse and/or longitudinal pixels are used as reference edges to be gradually increased, the connecting line of the corresponding point light source and the center is calculated and scanned in a triangular transformation mode according to the known and fixed included angle, and finally the distance information between the second intersection point and the center is obtained.
This patent judges the protrusion situation of optic fibre terminal surface through detecting the distance of two crescent to judge fused power size. While the edge bulge of the side part of the optical fiber end face is related to the fused power, if the fused power is too large, the edge bulge can be possibly caused, and the size of the edge bulge can not be directly measured through the power, but whether the edge of the optical fiber end face bulges or not can be indirectly judged from the power size, so that whether the optical fiber end face is qualified or not can be judged.
If the four light sources are positioned in the directions of the transverse pixels and the longitudinal pixels of the optical fiber end face image, the circle center coordinates are obtained and then scanned outwards along the transverse direction and the longitudinal direction of the circle center coordinates, and meanwhile the length from the circle center to the second intersection point is conveniently calculated.
In this patent, four point light sources are mainly described as examples.
When judging whether the fusion power of the optical fiber end face is excessive:
For example, the distance information between the four groups of second intersection points and the circle center is 8.90, 8.32, 8.55 and 8.89 after detection. The judged threshold value is 7, and four data are all larger than the set threshold value, so that the fact that the protrusion of the end face of the optical fiber is smaller proves that the protrusion of the end face of the optical fiber is smaller, and the fact that the two protrusions are smaller means that the power is at a lower level, and the edge of the end face of the optical fiber cannot protrude. If the distance information between the four sets of second intersection points and the center of the circle is 6.73, 7.13, 6.81 and 6.89, respectively, wherein the data is smaller than the threshold value 7, the fusion power of the optical fiber end face is proved to be too large, the side part of the optical fiber end face possibly protrudes out of the optical fiber end face body, and the optical fiber end face is judged to be unqualified.
The distance information is a virtual value, not an actual value of the distance between the two, which is calculated and compressed mainly according to the number of pixels on the end face of the optical fiber, and is a numerical value of the virtual distance information. The allowable minimum distance threshold 7 may be obtained according to practical experimental data, and is mainly determined according to whether the protruding portion of the side face of the optical fiber after the end face of the optical fiber is melted can successfully penetrate into the optical fiber connector. Other data in this patent are consistent with this embodiment and corresponding data will not be described in detail.
The invention also provides another embodiment, in particular:
Example 2:
Two groups of point light sources are arranged in one group, and the point light sources are arranged in the horizontal and vertical directions, namely the directions of the horizontal pixels and the vertical pixels of the image. And on the projection plane, a group of two point light sources are positioned at two sides of the center of the circle and positioned on the same straight line passing through the center of the circle.
In the projection plane, the two points are positioned on a virtual straight line formed by projection of a group of two point light sources, the straight line and the edge of a reflection area generated by the corresponding point light source form two intersection points, the intersection point close to the corresponding point light source is a first intersection point, and the intersection point far from the corresponding point light source is a second intersection point.
And acquiring distance information of two second intersection points of the two groups, comparing the distance information with a set threshold value, and judging that the fusion power of the end face of the optical fiber is overlarge and the end face of the optical fiber is unqualified if the distance information is smaller than the set threshold value.
The above process may be:
s1: obtaining image information of the end face of the optical fiber, wherein the image information represents bright and dark pixel values;
s2: scanning the image to obtain the outline information of the optical fiber end face in the image;
S3: obtaining straight line information between two point light sources of one group according to the coordinate information of the point light sources of each group with fixed relative positions in the image;
S5: scanning from the inner side to the outer side of the end face of the optical fiber according to the linear information, and searching for first point coordinates which are positioned on the linear information and represent bright values at two ends, wherein the point coordinates represent the bright values as a group of two second intersection points; a point representing a black value can be randomly found on a straight line in the end face of the optical fiber, and then scanning is carried out to two sides;
s6: distance information of two second intersection points is obtained according to each group of two point coordinates representing the bright value.
The point light sources are arranged in two groups, and the point light sources are positioned in the horizontal pixel direction and the vertical pixel direction of the fiber end face image.
The main difference between this embodiment 2 and embodiment 1 is that a virtual straight line is formed directly in the image, and then scanned directly from the middle to both sides, and the calculation amount is smaller.
Example 3:
the fusion power detecting method for fiber end face includes the steps of providing fiber end face with center and fiber end face with center. The optical fiber end face is the optical fiber end face after fusion treatment, and the edge of the optical fiber end face is provided with an arc transition to the end face main body.
An image taken along the axial direction of the end face of the optical fiber is acquired.
And the point light sources are uniformly distributed around the end face of the optical fiber. In the axial direction of the optical fiber end face, a plurality of point light sources are positioned in front of the optical fiber end face. When the projection direction is the axial direction of the optical fiber end face and the plane of the optical fiber end face where the image is located is taken as a projection plane, the projections of the point light sources are positioned on the concentric circle of the projection of the circle center. Virtual straight lines in the horizontal and/or vertical directions are arranged in the projection plane by taking the projection of the circle center as a center point, so that the transverse and/or longitudinal value-taking direction information taking the circle center as a passing point on the corresponding image is obtained.
The point light source can create a light reflective area at the edge of the side corresponding to the fiber end face that is imaged onto the image of the fiber end face.
And rotating the image of the end face of the optical fiber, wherein the rotating angle is an included angle between the corresponding point light source and a virtual straight line in the horizontal and/or vertical direction in the projection plane by taking the center of a circle as a midpoint.
And the rotated image takes the circle center as a passing point, and performs transverse and/or longitudinal scanning in the image of the end face of the optical fiber to obtain a first transverse and/or longitudinal point coordinate representing a bright value, and distance information of the point coordinate representing the bright value and the circle center coordinate is obtained.
And acquiring distance information of each point coordinate representing the bright value and the center coordinate, comparing the distance information with a set threshold value, and judging that the fusion power of the optical fiber end face is overlarge and the optical fiber end face is unqualified if the distance information is smaller than the set threshold value.
The solution of this embodiment 3 is to rotate the image to either the landscape or portrait orientation. As described above, the relative angle between the center of the optical fiber 1 and the light source 2 can be considered to be fixed, so that if the light source 2 is not disposed in the horizontal or vertical pixel direction of the image with the center as the midpoint, the center and the light source 2 have an angle therebetween in the horizontal or vertical direction of the pixel, and the angle of the angle is fixed, so that the image can be rotated and then scanned directly in the horizontal or vertical direction. Of course, to avoid complicated operations, the light source 2 is disposed in the horizontal or vertical direction of the pixel centered on the center of the circle in the image, and in this case, it can be understood that the rotation angle is 0. Therefore, the scheme of rotating the image can be understood as that the position of the image is not moved, that is, the image is not rotated, and the image is directly valued in a predetermined direction.
The point light sources can emit light in sequence, and images of the end faces of the optical fibers when the point light sources emit light are obtained.
And obtaining the circle center coordinates of the optical fiber end face by obtaining the contour information of the optical fiber end face in the image and obtaining the information of the transverse-longitudinal ratio according to the contour information.
When the coordinates of the circle center on the projection plane are fixed coordinates, the image information of the optical fiber end face is obtained through binarization processing, then the image of the optical fiber end face is rotated, and the image can be obtained and then rotated according to the coordinates of the circle center which are regarded as fixed as the circle center.
The method comprises the steps of obtaining image information of an optical fiber end face through binarization processing, carrying out edge detection on an image to obtain outline information of the optical fiber end face in the image, obtaining information of a transverse-longitudinal ratio according to the outline information of the optical fiber end face to obtain circle center coordinates of the optical fiber end face, and rotating the image of the optical fiber end face by taking the circle center coordinates of the optical fiber end face as a center point, namely rotating the image after obtaining the circle center coordinates.
For the sake of calculation, a straight line passing through pixels in the same row and/or column of the center of a circle in an image of the end face of the optical fiber is taken as a virtual straight line in the horizontal and/or vertical directions, and the virtual straight line can be regarded as an X-axis and a Y-axis taking the center of the circle as a midpoint and taking the horizontal and longitudinal pixel directions passing through the midpoint as a coordinate system.
The two point light sources are in a group, and on the projection plane, the two point light sources of the group are positioned at two sides of the circle center and positioned on the same straight line passing through the circle center. At this time, the distance between two reflections can be directly obtained by scanning from the center of the circle to the two sides along the transverse or longitudinal coordinates.
The above process may be:
s1: obtaining image information of the end face of the optical fiber, wherein the image information represents bright and dark pixel values;
s2: scanning the image to obtain the outline information of the optical fiber end face in the image;
S3: acquiring information of the transverse-longitudinal ratio according to the profile information of the optical fiber end face so as to acquire circle center coordinates of the optical fiber end face, and acquiring transverse and/or longitudinal value-taking direction information taking the circle center as a passing point on a corresponding image according to the circle center coordinate information;
S4: calculating the rotation angle information of each point light source according to the coordinate information of each point light source with fixed relative positions and the circle center coordinate information in the image, and rotating the image of the end face of the optical fiber;
s5: after each rotation, scanning is performed along the transverse direction and/or the longitudinal direction with the circle center as the passing point, and a first point coordinate which is positioned in the transverse direction and/or the longitudinal direction and represents a bright value is obtained.
The invention also provides a fusion power detection method of the optical fiber end face, the optical fiber is provided with the optical fiber end face, and the optical fiber end face is provided with a circle center. The optical fiber end face is the optical fiber end face after fusion treatment, the edge of the optical fiber end face is provided with arc transition to the end face main body, and an image of the optical fiber end face taken along the axial direction is obtained.
And the point light sources are uniformly distributed around the end face of the optical fiber. In the axial direction of the optical fiber end face, a plurality of point light sources are positioned in front of the optical fiber end face. When the projection direction is the axial direction of the optical fiber end face and the plane of the optical fiber end face where the image is located is taken as a projection plane, the projections of the point light sources are positioned on the concentric circle of the projection of the circle center.
The point light source can create a light reflective area at the edge of the side corresponding to the fiber end face that is imaged onto the image of the fiber end face.
The two point light sources are in a group, and on the projection plane, the two point light sources of the group are positioned at two sides of the circle center and positioned on the same straight line passing through the circle center. The distance between two light reflecting areas formed by a group of two point light sources on the image is detected.
And comparing the distance information with a set threshold value, and if the distance information is smaller than the set threshold value, judging that the fusion power of the optical fiber end face is overlarge and the optical fiber end face is failed.
The distance between the light reflecting areas formed by the two point light sources in a group can be a straight line between the point light sources and the circle center, or a fixed line segment arranged according to the position of the point light sources. Since the crescent reflection area generated by the point light source is in an irregular shape, the distance between the two crescent reflection areas can be set by itself, and besides the distance detection modes of embodiment 1 and embodiment 2, the distance between the tip points of the two crescent reflection areas can also be directly measured, and the threshold value for comparison can be set according to the mode, so long as the crescent distance can be relatively detected under the same standard.
In this patent, the distance from each first intersection point to the center of the circle or the distance from each second intersection point to the center of the circle may be used as a reference value, and the difference between the first intersection point and the second intersection point may be used as a reference value, or multiple value taking manners may be performed simultaneously.