A kind of panda type polarization-preserving fiber end face axis fixation method
Technical field
The present invention relates to a kind of optical fiber axis fixation method of photoelectron technology, particularly relate to a kind of panda type polarization-preserving fiber end face axis fixation method of sensory field of optic fibre.
Background technology
Polarization maintaining optical fibre is the special optical fiber that a class has significant application value, has stronger polarization hold facility, be widely used in optical communication and sensory field of optic fibre to the polarized light vibrated along its polarization axis direction.
In the application of polarization maintaining optical fibre, in the manufacturing process of especially polarization-preserving optical fibre device, there is higher accuracy requirement to the coupling of two polarization maintaining optical fibre polarization axles or welding angle, therefore accurately determine that the polarization axle of polarization maintaining optical fibre is a gordian technique in its application.
Utilize the method for image processing techniques determination polarization maintaining optical fibre polarization axle to be divided into side-looking imaging method and end face imaging method two kinds, side-looking imaging method has imaging surface required distance strict, the shortcoming that dead axle error is large.
For end face imaging method dead axle, current domestic existing Patents relates to, and only mentions and carry out feature identification to polarization maintaining optical fibre end view drawing picture in patent CN103645537A, but does not set forth and to identify which feature and to carry out the step and method of feature identification; Patent CN103308978A proposes a kind of based on the method for end view drawing picture to panda type polarization-preserving fiber dead axle, Hough circle transformation is wherein used to carry out opal detection, there is operand large, the shortcoming that computing time is long, be unsuitable for the occasion higher to dead axle process requirement of real-time.
Summary of the invention
In order to solve Problems existing in background technology, the present invention proposes a kind of panda type polarization-preserving fiber end face axis fixation method, utilize the end view drawing picture of panda type polarization-preserving fiber, take into full account physical dimension and the distribution characteristics of panda type polarization-preserving fiber end face, dead axle precision is high, method real-time is good.
The technical solution used in the present invention is as follows:
1) Image semantic classification: panda type polarization-preserving fiber end view drawing, as ImSorce, with image upper left angle point for initial point sets up rectangular coordinate system, is converted to gray level image ImGray as ImSorce by the panda type polarization-preserving fiber end view drawing obtaining imaging clearly;
2) covering Circle Parameters detects: transfer gray level image ImGray to binary image ImBin by setting background gray threshold, wherein the gray-scale value of fiber section is 255, and the gray-scale value of background parts is 0; Carry out to the binary image ImBin obtained the covering marginal point that rim detection obtains fiber end face, recycling least square method is carried out justifying matching and is obtained the fiber end face covering center of circle (x
0, y
0) and radius r
0, x
0, y
0be respectively the horizontal stroke in the fiber end face covering center of circle, ordinate;
3) opal marginal point extracts: to step 1) the gray level image ImGray that obtains carries out Canny rim detection and obtains fiber end face edge image ImDetected, in scanning optical fiber end face edge image ImDetected, gray-scale value is all pixel (x of 255, y) and judge obtain opal marginal point set P, x, y are respectively horizontal stroke, the ordinate of pixel;
4) opal marginal point is separated: by judging the coordinate information of each opal marginal point, opal marginal point set P is divided into the first opal marginal point set P1 and the second opal marginal point set P2;
5) opal center of circle matching: utilize least square method to justify matching respectively to the first opal marginal point set P1 obtained and the second opal marginal point set P2, obtain the central coordinate of circle (x of the first opal respectively
1, y
1) and the central coordinate of circle (x of the second opal
2, y
2), x
1, y
1be respectively the horizontal stroke of the central coordinate of circle of the first opal, ordinate, x
2, y
2be respectively the horizontal stroke of the central coordinate of circle of the second opal, ordinate;
6) polarization axle angle is calculated: if x
1=x
2, then current polarization axle angle θ=90 ° of panda type polarization-preserving fiber; If
then adopt formula
calculate the current polarization axle angle θ of panda type polarization-preserving fiber, complete the dead axle of panda type polarization-preserving fiber end face.
Described step 3) in opal marginal point set P judge to obtain by with under type: if gray-scale value is any pixel (x, y) and the fiber end face covering center of circle (x of 255 in fiber end face edge image ImDetected
0, y
0) distance meet following formula, and with this pixel (x, y) with the fiber end face covering center of circle (x
0, y
0) a centrosymmetric pixel (2x
0-x, 2y
0-y) gray-scale value be 255, then this pixel (x, y) is opal marginal point, all opal marginal points composition opal marginal point set P:
Wherein, r
min=9 × r
0/ 125+5, r
max=95 × r
0/ 135, r
0for step 2) in the covering radius of circle of trying to achieve.
Described step 4) specifically adopt following methods: to calculate in opal marginal point set P all marginal points respectively to the covering center of circle (x
0, y
0) horizontal direction distance average d
1with vertical direction distance average d
2if: d
1<d
2, then allly in opal marginal point set P y>y is met
0opal marginal point form the first opal marginal point set P1, allly meet y≤y
0opal marginal point form the second opal marginal point set P2; If d
1>=d
2then allly in opal marginal point set P meet x>x
0opal marginal point form the first opal marginal point set P1, allly meet x≤x
0opal marginal point form the second opal marginal point set P2.
The invention has the beneficial effects as follows:
The present invention, by gathering the end view drawing picture of panda type polarization-preserving fiber and taking into full account physical dimension and the distribution characteristics of panda type polarization-preserving fiber end face, has the advantage that dead axle precision is high, operation time is few, is applicable to the occasion higher to dead axle process requirement of real-time.
Accompanying drawing explanation
Fig. 1 is panda type polarization-preserving fiber end face gray level image.
Fig. 2 is the bianry image for covering rim detection.
Fig. 3 is panda type polarization-preserving fiber covering marginal point image.
Fig. 4 is panda type polarization-preserving fiber end face edge image.
Fig. 5 is the opal marginal point image extracted.
Fig. 6 is isolated first opal marginal point image.
Fig. 7 is isolated second opal marginal point image.
Fig. 8 is opal parametric fitting results schematic diagram.
Embodiment
Below in conjunction with drawings and Examples, the invention will be further described.
Embodiments of the invention are as follows:
The present invention obtains the panda type polarization-preserving fiber end view drawing of imaging clearly as ImSorce, with image upper left angle point for initial point sets up rectangular coordinate system, panda type polarization-preserving fiber end view drawing is converted to gray level image ImGray as ImSorce, as shown in Figure 1.Transfer gray level image ImGray to binary image ImBin by setting background gray threshold, as shown in Figure 2, wherein the gray-scale value of fiber section is 255, and the gray-scale value of background parts is 0.Carry out to the binary image ImBin obtained the covering marginal point that rim detection obtains fiber end face, recycling least square method is carried out justifying matching and is obtained the fiber end face covering center of circle (149,149) and radius 135, and covering marginal point image as shown in Figure 3.
Canny rim detection is carried out to gray level image ImGray and obtains fiber end face edge image ImDetected, as shown in Figure 4.In scanning optical fiber end face edge image ImDetected, gray-scale value is all pixels (x, y) of 255 and judges to obtain opal marginal point set P, and x, y are respectively horizontal stroke, the ordinate of pixel.Opal marginal point set P judges to obtain by with under type:
If gray-scale value is that any pixel (x, y) of 255 meets with the distance in the fiber end face covering center of circle (149,149) in fiber end face edge image ImDetected
and with this pixel (x, y) with the fiber end face covering center of circle (149,149) a centrosymmetric pixel (298-x, gray-scale value 298-y) is 255, then this pixel (x, y) be opal marginal point, all opal marginal point composition opal marginal point set P.Such as, point (108 in the present embodiment, 71) and point (190,227) distance to the covering center of circle (149,149) is 88, and these 2 about the covering center of circle (149,149) Central Symmetry, therefore point (108,71) and point (190,227) are member in set P.The membership gathering P in the present embodiment is 422.Use geometric position residing for opal marginal point in this step simultaneously and about the symmetry in the covering center of circle as constraint condition, the opal marginal point extracted as shown in Figure 5, comparison diagram 4 can be found out, this process, while accurately extracting opal marginal point, effectively eliminates the circumocular noise spot of cat.
Calculate in opal point set P and arrive a little the covering center of circle (x
0, y
0) mean value of horizontal direction distance is 41, the mean value of vertical direction distance is 39, due to comparatively large apart from horizontal direction distance average, therefore meets x>x by all in opal marginal point set P
0opal marginal point form the first opal marginal point set P1, allly meet x≤x
0opal marginal point form the second opal marginal point set P2.Separation obtains the marginal point image of two opals as Fig. 6, shown in Fig. 7, can find out that the marginal point of two opals can be separated by this process rapidly and accurately, without the need to carrying out loop truss in edge image, be separated the marginal point obtained and can directly carry out the matching of opal Circle Parameters, so significantly decrease calculated amount and the operation time of the detection of opal Circle Parameters, improve opal Circle Parameters detection efficiency.
Least square method is utilized to justify matching respectively to the first opal marginal point set P1 obtained and the second opal marginal point set P2, obtain the central coordinate of circle (106.51 of the first opal respectively, 109.07) central coordinate of circle (187.79 of and the second opal, 189.29), fitting result signal as shown in Figure 8, adopts formula
calculating the current polarization axle angle of panda type polarization-preserving fiber is 44.62 °, completes the dead axle of panda type polarization-preserving fiber end face.In the present embodiment, the computing time of whole dead axle process is 26.71ms, compared to existing methodical dead axle process computing time about 500ms more fast effectively, can meet the occasion that some are higher to dead axle process requirement of real-time, such as panda type polarization-preserving fiber is fast to axle fusion process.
Thus, the present invention is by gathering the end view drawing picture of panda type polarization-preserving fiber and taking into full account physical dimension and the distribution characteristics of panda type polarization-preserving fiber end face, the marginal point of two opals can be extracted quickly and accurately respectively from the edge image of fiber end face, directly carry out the calculating of opal parameter fitting, significantly decrease calculated amount and the operation time of polarization-preserving fiber axis fixing, realize the polarization axle accurately determining panda type polarization-preserving fiber rapidly, be applicable to the occasion higher to dead axle process requirement of real-time.