CN111598836A - System and method for adjusting optical fiber position and angle based on machine vision - Google Patents

System and method for adjusting optical fiber position and angle based on machine vision Download PDF

Info

Publication number
CN111598836A
CN111598836A CN202010297361.2A CN202010297361A CN111598836A CN 111598836 A CN111598836 A CN 111598836A CN 202010297361 A CN202010297361 A CN 202010297361A CN 111598836 A CN111598836 A CN 111598836A
Authority
CN
China
Prior art keywords
optical fiber
ccd
industrial camera
theta
electric
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010297361.2A
Other languages
Chinese (zh)
Other versions
CN111598836B (en
Inventor
张朋勇
黄川�
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Naylor Photoelectric Technology Co ltd
Original Assignee
Wuhan Naylor Photoelectric Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Naylor Photoelectric Technology Co ltd filed Critical Wuhan Naylor Photoelectric Technology Co ltd
Priority to CN202010297361.2A priority Critical patent/CN111598836B/en
Publication of CN111598836A publication Critical patent/CN111598836A/en
Application granted granted Critical
Publication of CN111598836B publication Critical patent/CN111598836B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D3/00Control of position or direction
    • G05D3/12Control of position or direction using feedback
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • G06T7/73Determining position or orientation of objects or cameras using feature-based methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Automation & Control Theory (AREA)
  • Mechanical Coupling Of Light Guides (AREA)
  • Optical Couplings Of Light Guides (AREA)

Abstract

The invention discloses a system and a method for adjusting the position and the angle of an optical fiber based on machine vision, the system comprises an industrial personal computer, an optical platform and a CCD industrial camera, the CCD industrial camera is arranged on a portal frame, the portal frame is arranged on the optical platform, two support columns are fixed on the optical platform, electric translation stages are respectively fixed on the two support columns, the axial leads of electric shafts of the two electric translation stages are parallel, optical fiber clamps for clamping the optical fiber are respectively supported on the two electric translation stages, two ends of the optical fiber are respectively clamped on the two optical fiber clamps, the industrial personal computer shoots the current position of the optical fiber by using the industrial camera, calculates the deviation distance between the current position and the target position and controls the electric translation stages to move, adjusts the optical fiber to the target position, detects the feedback deviation of the optical fiber in real time for repeated fine adjustment, controls the deviation value within a precision range, the invention can automatically adjust the optical fiber to the target, the requirement of adjustment precision is met, and full-automatic adjustment is realized.

Description

System and method for adjusting optical fiber position and angle based on machine vision
Technical Field
The invention relates to the field of optical fiber adjustment, in particular to a system and a method for adjusting the position and the angle of an optical fiber based on machine vision.
Background
The existing optical fiber adjusting equipment shoots and amplifies an optical fiber image through a camera, and an optical fiber clamp is manually adjusted to enable the optical fiber to be in a horizontal and middle position on human vision.
However, in the mode, the position is mainly recognized by naked eyes, the adjustment precision is poor, no feedback mechanism exists, the adjusted position is not controllable, and the production efficiency is not high.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a system and a method for adjusting the position and the angle of an optical fiber based on machine vision, which can automatically adjust the optical fiber to the center position of an area, improve the adjustment precision, realize full-automatic adjustment and improve the production efficiency.
The invention is realized by the following steps: the invention discloses a system for adjusting the position and the angle of an optical fiber based on machine vision, which comprises an industrial personal computer, an optical platform and a CCD industrial camera for shooting an optical fiber image, wherein the CCD industrial camera is arranged on a portal frame which is arranged on the optical platform, two support columns are fixed on the optical platform, electric translation tables are respectively fixed on the two support columns, the axial leads of electric shafts on the two electric translation tables are parallel, optical fiber clamps for clamping the optical fiber are respectively supported on the two electric translation tables, the optical fiber clamps are fixedly connected with the electric shafts on the electric translation tables, the CCD industrial camera is used for transmitting the shot optical fiber image to the industrial personal computer, the industrial personal computer shoots the position of the optical fiber by using the industrial camera, calculates the deviation distance and controls the electric translation tables to adjust the optical fiber to a correction position, detects the feedback deviation of the optical fiber in real time and carries out repeated, and controlling the deviation value within the precision range.
Further, CCD industrial camera is connected with the industrial computer, electronic translation platform is connected with motion controller, motion controller is connected with the industrial computer, motion controller is used for accepting the command signal of industrial computer, and the electronic axle of control electronic translation platform removes, drives the removal of optic fibre anchor clamps.
Further, the camera lens of the CCD industrial camera is arranged downwards and is positioned above the optical fiber. Of course, the industrial personal computer can be replaced by other equipment, the optical fiber image currently shot by the CCD industrial camera can be obtained, and the steps of the method for adjusting the position and the angle of the optical fiber based on machine vision are executed.
Further, a ring-shaped lamp is mounted on a camera lens of the CCD industrial camera.
Furthermore, the CCD industrial camera is installed on the CCD adjusting mechanism, the CCD industrial camera is driven to move through the CCD adjusting mechanism, the position of the CCD industrial camera for shooting the optical fiber is adjusted, and the CCD adjusting mechanism is installed on the portal frame.
The invention discloses a method for adjusting the position and the angle of an optical fiber based on machine vision, which comprises the following steps: carrying out angle adjustment to enable the angle of the optical fiber to be within a set target angle precision range, and specifically comprising the following steps: acquiring an optical fiber image currently shot by a CCD industrial camera, performing edge detection calculation on the optical fiber image to obtain included angles theta 1 and theta 2 between the upper edge and the lower edge of an optical fiber and an X axis in a camera coordinate system, further calculating to obtain a current included angle theta between an optical fiber central line and the X axis, then performing comparison calculation with a target included angle theta m, controlling electric axes at two ends of the optical fiber to move in opposite directions, performing coarse adjustment once, enabling the included angle theta between the optical fiber central line and the X axis after the coarse adjustment to be very close to theta m, judging whether the deviation between theta and theta m is within an allowable precision range, if not, performing feedback adjustment, controlling the electric axes at two ends of the optical fiber to perform micro movement with a fixed step length of A mu m towards the deviation reduction direction, detecting the current included angle theta between the optical fiber central line and the X axis again, and stopping the electric axes until the deviation between theta and theta m;
after the angle adjustment, the position adjustment is carried out, and the method specifically comprises the following steps: acquiring an optical fiber image shot by a CCD industrial camera at present, performing edge detection calculation on the optical fiber image to obtain coordinates of the upper edge and the lower edge of an optical fiber in a camera coordinate system, further calculating to obtain a longitudinal coordinate Y of a middle point of an optical fiber central line, then performing comparison calculation with a target Ym, controlling electric axes at two ends of the optical fiber to move in the same direction, performing coarse adjustment once, wherein the position Y of the optical fiber central line after the coarse adjustment is close to Ym, judging whether the deviation between Y and Ym is within an allowable precision range, if not, performing feedback adjustment, controlling the electric axes at two ends of the optical fiber to perform micro movement with a fixed step length of B mum towards the deviation reduction direction, detecting the longitudinal coordinate Y of the middle point of the optical fiber central line again, and stopping the electric axes until the deviation between Y and Ym is within the allowable precision range.
Furthermore, edge detection calculation is carried out on the optical fiber image to obtain included angles theta 1 and theta 2 between the upper edge and the lower edge of the optical fiber and the X axis in a camera coordinate system, the current included angle theta between the central line of the optical fiber and the X axis is further calculated, and the calculation formula is as follows:
Figure BDA0002452681990000031
further, performing edge detection calculation on the optical fiber image to obtain vertical coordinates Y1 and Y2 of the midpoints of the upper edge and the lower edge of the optical fiber in a camera coordinate system, and further calculating to obtain a vertical coordinate Y of the midpoint of the optical fiber center line, wherein the calculation formula is as follows:
Figure BDA0002452681990000032
further, before controlling the CCD industrial camera to shoot the image of the optical fiber, the position of the CCD industrial camera is adjusted, so that the CCD industrial camera shoots the middle part of the optical fiber.
The invention has the beneficial effects that: aiming at the problems of operation, use and precision of the existing optical fiber adjusting equipment, the optical fiber clamp is arranged on an electric shaft of an electric translation table, and the optical fiber adjusting process is automated by utilizing an industrial personal computer and a software program. And shooting the position of the optical fiber by using a high-pixel industrial camera, calculating a deviation distance, quickly adjusting the deviation distance to a correction position, detecting the feedback deviation of the optical fiber in real time, and repeatedly fine-adjusting the feedback deviation to control the deviation value within a precision range. The system provided by the invention is matched with the method provided by the invention to repeatedly clamp the optical fiber in certain process occasions, the optical fiber can be automatically adjusted to the middle position of the area, the position precision is +/-1 mu m, the angle precision is +/-0.005 degrees, the adjustment precision is improved, the full-automatic adjustment is realized, and the production efficiency is improved.
Drawings
FIG. 1 is a schematic diagram of a system for machine vision based fiber position and angle adjustment according to the present invention;
FIG. 2 is a schematic view of the present invention with an optical fiber clamped between two motorized shafts during angular adjustment;
FIG. 3 is an enlarged view of the fiber optic image area I of the industrial camera of FIG. 2 according to the present invention;
FIG. 4 is a schematic view of the angle adjustment of the present invention (only the centerline of the optical fiber is shown in the figure);
FIG. 5 is a schematic view of the position adjustment of the present invention (only the central line of the optical fiber is shown).
In the attached drawing, 1 is the optical platform, 2 is the right branch dagger, 3 is optic fibre, 31 is the optic fibre central line, 32 is optic fibre top sideline, 33 is optic fibre low side line, 4 is left optic fibre anchor clamps, 5 is the left branch dagger, 6 is left electronic translation platform, 7 is the portal frame, 8 is CCD horizontal adjustment mechanism, 9 is CCD vertical adjustment mechanism, 10 is CCD industry camera, 11 is the camera lens, 12 is the ring light, 13 is right electronic translation platform, 14 is right optic fibre anchor clamps.
Detailed Description
This embodiment discloses an exemplary embodiment of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Example one
Referring to fig. 1, the embodiment discloses a system for adjusting an optical fiber position and an angle based on machine vision, which includes an industrial personal computer, an optical platform 1 and a CCD industrial camera 10 for shooting an optical fiber image, wherein the CCD industrial camera 10 is installed on a portal frame 7, the portal frame 7 is installed on the optical platform 1, two support columns are fixed on the optical platform 1, namely a left support column 5 and a right support column 2, a left electric translation stage 6 is fixed on the left support column 5, a right electric translation stage 13 is fixed on the right support column 2, an axis of an electric shaft on the left electric translation stage 6 is parallel to an axis of an electric shaft on the right electric translation stage 13 (an axis of a power output shaft of a motor on the left electric translation stage 6 is parallel to an axis of a power output shaft of a motor on the right electric translation stage 13), a left optical fiber clamp 4 is supported on the left electric translation stage 6, electronic axle and the 4 fixed connection of left optical fiber anchor clamps on the electronic translation platform 6 in a left side, it has right optical fiber anchor clamps 14 to support on the electronic translation platform 13 in the right side, electronic axle and the 14 fixed connection of right optical fiber anchor clamps on the electronic translation platform 13 in the right side, the one end centre gripping of optic fibre is on left optical fiber anchor clamps 4, the other end centre gripping of optic fibre 3 is on right optical fiber anchor clamps 14, left side optical fiber anchor clamps 4, right optical fiber anchor clamps 14 are used for the centre gripping to treat the adjustment optic fibre, and make optic fibre have certain tension, it is lax to prevent to appear after. The left electric translation table 6 and the right electric translation table 13 are used for adjusting the position and the angle of the optical fiber, the optical fiber is translated when the left electric translation table 6 and the right electric translation table 13 move in the same direction, the position of the optical fiber can be adjusted, and the optical fiber is rotated when the left electric translation table 6 and the right electric translation table 13 move in the opposite direction, so that the angle of the optical fiber can be adjusted.
The optical fiber clamp is in sliding fit with the electric translation table. The electric shaft on the electric translation table is fixedly connected with the optical fiber clamp, and the optical fiber clamp is driven to move along the axial direction of the electric shaft through the electric shaft, so that the optical fiber is driven to move. The electric translation stage is used for supporting the optical fiber clamp and providing a guiding function for the optical fiber clamp. If the lower end face of the optical fiber clamp is provided with a groove, the upper end of the electric translation table is provided with a boss, and the groove of the lower end face of the optical fiber clamp is matched with the boss of the electric translation table to realize the guiding of the optical fiber clamp.
The CCD industrial camera 10 is used for transmitting a shot optical fiber image to an industrial personal computer, the industrial personal computer shoots the current position of an optical fiber by using the industrial camera, calculates the deviation distance between the current position and a target position and controls the electric translation stage to move, adjusts the optical fiber to the target position, detects the feedback deviation of the optical fiber in real time to carry out repeated fine adjustment, and controls the deviation value within a precision range.
Further, CCD industrial camera 10 is connected with the industrial computer, electronic translation platform is connected with motion controller, motion controller is connected with the industrial computer, motion controller is used for accepting the command signal of industrial computer, and the electronic axle of control electronic translation platform removes, drives the removal of optic fibre anchor clamps. The left electric translation table 6 and the right electric translation table 13 of the embodiment are respectively controlled by a motion controller, and the motion controller is connected with the industrial personal computer through Ethernet; the CCD industrial camera 10 of this embodiment is a USB3.0 camera, and is inserted into a USB3.0 port of an industrial personal computer.
The camera lens 11 of the CCD industrial camera 10 is disposed downward, and the camera lens 11 of the CCD industrial camera 10 is located above the optical fiber. The camera lens 11 is used for adjusting the camera magnification, so that the shot optical fiber image is clear, the pixels are enough, and the adjustment precision is ensured.
Further, a ring-shaped lamp 12 is mounted on the camera lens 11 of the CCD industrial camera 10, and the ring-shaped lamp 12 is used to improve the photographing brightness.
Further, the CCD industrial camera 10 is installed on a CCD adjusting mechanism, the CCD industrial camera 10 is driven to move through the CCD adjusting mechanism, the position of the CCD industrial camera 10 for shooting the optical fiber is adjusted, and the CCD adjusting mechanism is installed on the portal frame 7.
The CCD adjusting mechanism comprises a CCD horizontal adjusting mechanism 8 and a CCD vertical adjusting mechanism 9, the CCD horizontal adjusting mechanism 8 is used for adjusting the horizontal position of the CCD industrial camera 10 (such as adjusting the front, back and left and right positions of the CCD industrial camera 10 according to actual needs), the CCD vertical adjusting mechanism 9 is used for adjusting the vertical position of the CCD industrial camera 10, and the CCD industrial camera 10 needs to shoot the middle part of an optical fiber during adjustment so as to improve the optical fiber angle adjusting efficiency.
The CCD industrial camera 10 of this embodiment centre gripping is on CCD clamping device, and CCD clamping device fixes on the perpendicular adjustment mechanism 9 of CCD, and the perpendicular adjustment mechanism 9 of CCD includes the vertical first board and the vertical second board of vertical setting, and the horizontal adjustment mechanism 8 of CCD includes the horizontal first horizontal plate, the horizontal second board that the level set up, and the vertical first board and the vertical board sliding fit of second of the perpendicular adjustment mechanism 9 of CCD to through bolt fixed connection. The opposite surfaces of the first vertical plate and the second vertical plate of the CCD vertical adjusting mechanism 9 are respectively provided with a sliding chute and a sliding rail which are matched with each other. The cross sections of the slide rail and the slide groove which are matched with each other by the CCD vertical adjusting mechanism are trapezoidal, preferably isosceles, so that the first vertical plate and the second vertical plate cannot be separated along the horizontal direction. The position of the vertical direction of the CCD is adjusted by sliding the first vertical plate and the second vertical plate, and the first vertical plate and the second vertical plate are fixedly connected through bolts after the position is adjusted.
The first horizontal plate and the second horizontal plate of the CCD horizontal adjusting mechanism 8 are in sliding fit and are fixedly connected through bolts. The opposite surfaces of the first horizontal plate and the second horizontal plate of the CCD horizontal adjusting mechanism 8 are respectively provided with a sliding chute and a sliding rail which are matched with each other. The cross sections of the slide rail and the slide groove which are mutually matched with the CCD horizontal adjusting mechanism 8 are trapezoidal, preferably isosceles, so that the first horizontal plate and the second horizontal plate cannot be separated along the vertical direction. The position of the CCD in the horizontal direction is adjusted by sliding the first horizontal plate and the second horizontal plate, and the first horizontal plate is fixedly connected with the second horizontal plate through a bolt after the position is adjusted.
The CCD clamping device is fixedly connected with a first vertical plate of the CCD vertical adjusting mechanism 9, a bolt connected between the first vertical plate and a second vertical plate is loosened, the first vertical plate of the CCD vertical adjusting mechanism 9 can move up and down along the vertical direction along the second vertical plate, and therefore the CCD industrial camera 10 is driven to move up and down along the vertical direction. And a second vertical plate of the CCD vertical adjusting mechanism 9 is fixedly connected with a first horizontal plate of the CCD horizontal adjusting mechanism 8. And the bolts connecting the first horizontal plate and the second horizontal plate are loosened, and the first horizontal plate of the CCD horizontal adjusting mechanism 8 can move back and forth along the second horizontal plate along the horizontal direction, so that the CCD vertical adjusting mechanism 9 and the CCD industrial camera 10 are driven to move back and forth integrally. And a second horizontal plate of the CCD horizontal adjusting mechanism 8 is fixed at the upper end of the portal frame 7. If the CCD industrial camera 10 needs to move left and right along the horizontal direction, the structure same as the CCD horizontal adjusting mechanism 8 is adopted, and only the sliding direction of the two horizontal plates needs to be adjusted.
The optical fiber adjusting steps of the invention are as follows:
1) and installing the optical fiber. The optical fiber is arranged on the left/right optical fiber clamp, and certain tension of the optical fiber is required to be ensured during installation.
2) And (5) preparing before adjustment. And the CCD horizontal adjusting mechanism and the CCD vertical adjusting mechanism are adjusted to enable the CCD to shoot the middle position of the optical fiber.
3) And adjusting the lens of the camera to amplify the optical fiber to a proper multiple and clear.
4) And (4) roughly adjusting the angle of the optical fiber. And performing image processing on an industrial personal computer according to an optical fiber picture shot by the CCD, detecting the upper edge and the lower edge of the optical fiber, calculating an angle between the optical fiber and a camera coordinate system according to the detected edge, calculating the displacement required by the left/right electric translation stage according to the difference between the detected angle and a target angle, and controlling the translation stage to move to a target position.
5) And finely adjusting the angle of the optical fiber. After the coarse angle adjustment, the fiber has substantially reached the target angle, but may not yet be within the accuracy range. And at the moment, the angle of the optical fiber is continuously detected by utilizing feedback, and the left/right electric translation stages are controlled to perform corresponding micro displacement, so that the optical fiber is finally adjusted to be within the target angle precision range.
6) The fiber position is coarsely adjusted. And performing image processing on an industrial personal computer according to an optical fiber picture shot by the CCD, detecting the upper edge and the lower edge of the optical fiber, calculating the position of the center of the optical fiber in a camera coordinate according to the detected edge, calculating the displacement required by the left/right electric translation stage according to the difference between the detected position and the target position, and controlling the translation stage to move to the target position.
7) The fiber position is finely adjusted. After the coarse position adjustment, the fiber has substantially reached the target position, but may not yet be within the accuracy range. And at the moment, the center position of the optical fiber is continuously detected by using feedback, and the left/right electric translation stages are controlled to perform corresponding micro-displacement, so that the optical fiber is finally adjusted to be within the precision range of the target position.
8) And stopping performing edge detection processing on the optical fiber picture after the adjustment is finished.
Example two
Referring to fig. 1 to 5, the present embodiment discloses a method for adjusting a position and an angle of an optical fiber based on machine vision, which includes the following steps:
acquiring a fiber image currently shot by a CCD industrial camera, referring to FIG. 2, the horizontal direction distance between electric axes at two ends of a fiber is L, the fiber center offset angle is theta, the displacement required to be adjusted in angle calibration is C1,
Figure BDA0002452681990000081
carrying out angle adjustment to enable the angle of the optical fiber to be within a set target angle precision range, and specifically comprising the following steps: acquiring an optical fiber image currently shot by a CCD industrial camera, performing edge detection calculation on the optical fiber image to obtain included angles theta 1 and theta 2 between the upper edge and the lower edge of the optical fiber and an X axis in a camera coordinate system, further calculating to obtain a current included angle theta between the central line of the optical fiber and the X axis, then, after the comparison calculation with the target included angle thetam, the electric axes at two ends of the optical fiber are controlled to move in opposite directions for primary coarse adjustment, the included angle theta between the central line of the optical fiber and the X axis after the coarse adjustment is very close to thetam, at this time, whether the deviation between theta and thetam is within the allowable precision range (for example, the allowable precision range of the embodiment is set to be +/-0.005 degrees, and can be adjusted as required) needs to be judged, if the deviation is not within the allowable precision range, feedback adjustment is needed, the electric axes at two ends of the optical fiber are controlled to make a fixed step length A mu m (reverse) micro movement towards the deviation reducing direction, then theta is detected again until the deviation between theta and theta m is within the allowable precision range, and then the electric axes are stopped. The distance A in this example is 1 μm; of course, the distance A is not limited to 3 μm, and can be adjusted as needed.
After the angle adjustment, the position adjustment is carried out, and the method specifically comprises the following steps: acquiring an optical fiber image currently shot by a CCD industrial camera, performing edge detection calculation on the optical fiber image to obtain coordinates of the upper edge and the lower edge of an optical fiber in a camera coordinate system, further calculating to obtain a longitudinal coordinate Y of a middle point of an optical fiber center line, then performing comparison calculation with a target Ym, controlling the electric axes at two ends to move in the same direction for coarse adjustment, wherein the position Y of the optical fiber center line after coarse adjustment is close to the Ym, at the moment, judging whether the deviation between the Y and the Ym is within an allowable precision range (if the allowable precision range is set to +/-1μm in the embodiment, adjusting according to needs), if not, performing feedback adjustment, controlling the electric axes at two ends to slightly move in the deviation reducing direction by a fixed step length of B mum (same direction), and detecting again until the deviation between the Y and the Ym is within the allowable precision range, and then stopping the electric axes.
Furthermore, edge detection calculation is carried out on the optical fiber image to obtain included angles theta 1 and theta 2 between the upper edge and the lower edge of the optical fiber and the X axis in a camera coordinate systemAnd further calculating to obtain a current included angle theta between the central line of the optical fiber and the X axis, wherein the calculation formula is as follows:
Figure BDA0002452681990000082
further, performing edge detection calculation on the optical fiber image to obtain vertical coordinates Y1 and Y2 of the midpoints of the upper edge and the lower edge of the optical fiber in a camera coordinate system, and further calculating to obtain a vertical coordinate Y of the midpoint of the optical fiber center line, wherein the calculation formula is as follows:
Figure BDA0002452681990000091
further, before controlling the CCD industrial camera to shoot the image of the optical fiber, the position of the CCD industrial camera is adjusted, so that the CCD industrial camera shoots the middle part of the optical fiber.
The invention uses an industrial camera to read the position of the optical fiber in real time, monitors the position imaging of the optical fiber by combining a communication line with an industrial personal computer software program, intercepts the position of two boundary lines of the optical fiber as the real-time calculation with the datum line calculation, displays the relative position and angle with a base point, compares the relative position and angle with the equipment precision value, and provides a feedback value to carry out repeated fine adjustment until the precision requirement is met. The system provided by the invention is matched with the method provided by the invention, so that the adjustment precision is improved, the full-automatic adjustment is realized, and the production efficiency is improved.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (8)

1. A system for machine vision based fiber position and angle adjustment, comprising: comprises an industrial personal computer, an optical platform and a CCD industrial camera for shooting optical fiber images, wherein the CCD industrial camera is arranged on a portal frame, the portal frame is arranged on the optical platform, two support columns are fixed on the optical platform, electric translation tables are respectively fixed on the two support columns, the axial leads of electric shafts on the two electric translation tables are parallel, optical fiber clamps for clamping optical fibers are respectively supported on the two electric translation tables, the optical fiber clamp is fixedly connected with an electric shaft on the electric translation table, the CCD industrial camera is used for transmitting the shot optical fiber image to an industrial personal computer, the industrial personal computer shoots the current position of the optical fiber by using the industrial camera, calculates the deviation distance between the current position and the target position, controls the electric translation stage to move, adjusts the optical fiber to the target position, detects the feedback deviation of the optical fiber in real time, carries out repeated fine adjustment and controls the deviation value within the precision range.
2. The system of machine-vision-based fiber optic position and angle adjustment of claim 1, wherein: the CCD industrial camera is connected with an industrial personal computer, the electric translation platform is connected with the motion controller, the motion controller is connected with the industrial personal computer, and the motion controller is used for receiving an instruction signal of the industrial personal computer, controlling the electric shaft of the electric translation platform to move and driving the optical fiber clamp to move.
3. The system of machine-vision-based fiber optic position and angle adjustment of claim 1, wherein: the camera lens of the CCD industrial camera is arranged downwards and is positioned above the optical fiber; an annular lamp is arranged on a camera lens of the CCD industrial camera.
4. The system of machine-vision-based fiber optic position and angle adjustment of claim 1, wherein: the CCD industrial camera is installed on the CCD adjusting mechanism, the CCD industrial camera is driven to move through the CCD adjusting mechanism, the position of the optical fiber shot by the CCD industrial camera is adjusted, and the CCD adjusting mechanism is installed on the portal frame.
5. A method for machine vision based fiber position and angle adjustment, comprising the steps of:
carrying out angle adjustment to enable the angle of the optical fiber to be within a set target angle precision range, and specifically comprising the following steps: acquiring an optical fiber image currently shot by a CCD industrial camera, performing edge detection calculation on the optical fiber image to obtain included angles theta 1 and theta 2 between the upper edge and the lower edge of an optical fiber and an X axis in a camera coordinate system, further calculating to obtain a current included angle theta between an optical fiber central line and the X axis, then performing comparison calculation with a target included angle theta m, controlling electric axes at two ends of the optical fiber to move in opposite directions, performing coarse adjustment once, enabling the included angle theta between the optical fiber central line and the X axis after the coarse adjustment to be very close to theta m, judging whether the deviation between theta and theta m is within an allowable precision range, if not, performing feedback adjustment, controlling the electric axes at two ends of the optical fiber to perform micro movement with a fixed step length of A mu m towards the deviation reduction direction, detecting the current included angle theta between the optical fiber central line and the X axis again, and stopping the electric axes until the deviation between theta and theta m;
after the angle adjustment, the position adjustment is carried out, and the method specifically comprises the following steps: acquiring an optical fiber image shot by a CCD industrial camera at present, performing edge detection calculation on the optical fiber image to obtain coordinates of the upper edge and the lower edge of an optical fiber in a camera coordinate system, further calculating to obtain a longitudinal coordinate Y of a middle point of an optical fiber central line, then performing comparison calculation with a target Ym, controlling electric axes at two ends of the optical fiber to move in the same direction, performing coarse adjustment once, wherein the position Y of the optical fiber central line after the coarse adjustment is close to Ym, judging whether the deviation between Y and Ym is within an allowable precision range, if not, performing feedback adjustment, controlling the electric axes at two ends of the optical fiber to perform micro movement with a fixed step length of B mum towards the deviation reduction direction, detecting the longitudinal coordinate Y of the middle point of the optical fiber central line again, and stopping the electric axes until the deviation between Y and Ym is within the allowable precision range.
6. The method of machine-vision-based fiber optic position and angle adjustment of claim 5, wherein: performing edge detection calculation on the optical fiber image to obtain included angles theta 1 and theta 2 between the upper edge and the lower edge of the optical fiber and the X axis in a camera coordinate system, and further calculating to obtain a current included angle theta between the central line of the optical fiber and the X axis, wherein the calculation formula is as follows:
Figure FDA0002452681980000021
7. the method of machine-vision-based fiber optic position and angle adjustment of claim 5, wherein: performing edge detection calculation on the optical fiber image to obtain vertical coordinates Y1 and Y2 of the midpoints of the upper edge and the lower edge of the optical fiber in a camera coordinate system, and further calculating to obtain a vertical coordinate Y of the midpoint of the optical fiber center line, wherein the calculation formula is as follows:
Figure FDA0002452681980000022
8. the method of machine-vision-based fiber optic position and angle adjustment of claim 5, wherein: before controlling the CCD industrial camera to shoot the image of the optical fiber, adjusting the position of the CCD industrial camera to enable the CCD industrial camera to shoot the middle part of the optical fiber.
CN202010297361.2A 2020-04-15 2020-04-15 System and method for adjusting position and angle of optical fiber based on machine vision Active CN111598836B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010297361.2A CN111598836B (en) 2020-04-15 2020-04-15 System and method for adjusting position and angle of optical fiber based on machine vision

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010297361.2A CN111598836B (en) 2020-04-15 2020-04-15 System and method for adjusting position and angle of optical fiber based on machine vision

Publications (2)

Publication Number Publication Date
CN111598836A true CN111598836A (en) 2020-08-28
CN111598836B CN111598836B (en) 2023-07-04

Family

ID=72184993

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010297361.2A Active CN111598836B (en) 2020-04-15 2020-04-15 System and method for adjusting position and angle of optical fiber based on machine vision

Country Status (1)

Country Link
CN (1) CN111598836B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112369350A (en) * 2020-11-10 2021-02-19 南通大学 Biological fixation fine adjustment device and fine adjustment method for biological antenna perception research mechanism
CN113483794A (en) * 2021-09-08 2021-10-08 西北工业大学 F-P sensor preparation facilities convenient to monitoring angle regulation and length
CN115865192A (en) * 2023-02-16 2023-03-28 钇芯光子技术(深圳)有限公司 Quick testing arrangement of optical device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003099129A (en) * 2001-09-25 2003-04-04 Ojima Shisaku Kenkyusho:Kk Controller for positioning mechanism
JP2013029758A (en) * 2011-07-29 2013-02-07 Sumitomo Electric Ind Ltd Core position specification method and alignment device
CN103308978A (en) * 2013-05-29 2013-09-18 北京航空航天大学 Automatic polarization-maintaining optical fiber axis positioning system
CN105068180A (en) * 2015-07-16 2015-11-18 北京航空航天大学 Side-view imaging azimuth-aligning method and apparatus for polarization maintaining fiber
CN105785505A (en) * 2016-05-12 2016-07-20 中国工程物理研究院总体工程研究所 Photonic crystal optical fiber axis determination device and axis determination method
CN110888202A (en) * 2019-11-18 2020-03-17 桂林电子科技大学 Optical fiber coupler and control method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003099129A (en) * 2001-09-25 2003-04-04 Ojima Shisaku Kenkyusho:Kk Controller for positioning mechanism
JP2013029758A (en) * 2011-07-29 2013-02-07 Sumitomo Electric Ind Ltd Core position specification method and alignment device
CN103308978A (en) * 2013-05-29 2013-09-18 北京航空航天大学 Automatic polarization-maintaining optical fiber axis positioning system
CN105068180A (en) * 2015-07-16 2015-11-18 北京航空航天大学 Side-view imaging azimuth-aligning method and apparatus for polarization maintaining fiber
CN105785505A (en) * 2016-05-12 2016-07-20 中国工程物理研究院总体工程研究所 Photonic crystal optical fiber axis determination device and axis determination method
CN110888202A (en) * 2019-11-18 2020-03-17 桂林电子科技大学 Optical fiber coupler and control method thereof

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
T. GENG等: "Research on vision-based waveguide alignment of optical fiber", PROCEEDINGS OF 2012 INTERNATIONAL CONFERENCE ON MEASUREMENT *
武志宏: "基于CCD和图像处理技术的六角光纤几何尺寸测量***的研究", 中国硕士学位论文全文库 *
裘建新等: "基于图像处理技术的光纤准直器封装新方法", 《光学精密工程》, no. 09 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112369350A (en) * 2020-11-10 2021-02-19 南通大学 Biological fixation fine adjustment device and fine adjustment method for biological antenna perception research mechanism
CN112369350B (en) * 2020-11-10 2021-12-14 南通大学 Biological fixation fine adjustment device and fine adjustment method for biological antenna perception research mechanism
CN113483794A (en) * 2021-09-08 2021-10-08 西北工业大学 F-P sensor preparation facilities convenient to monitoring angle regulation and length
CN113483794B (en) * 2021-09-08 2021-11-09 西北工业大学 F-P sensor preparation facilities convenient to monitoring angle regulation and length
CN115865192A (en) * 2023-02-16 2023-03-28 钇芯光子技术(深圳)有限公司 Quick testing arrangement of optical device
CN115865192B (en) * 2023-02-16 2023-05-12 钇芯光子技术(深圳)有限公司 Quick testing device of optical device

Also Published As

Publication number Publication date
CN111598836B (en) 2023-07-04

Similar Documents

Publication Publication Date Title
CN111598836A (en) System and method for adjusting optical fiber position and angle based on machine vision
KR101404892B1 (en) Camera system for aligning components of a pcb
CN103528954B (en) A kind of magnetic shoe detection light source and camera adjusting device
CN110888202A (en) Optical fiber coupler and control method thereof
CN210864118U (en) Optical fiber coupler
CN1245646C (en) Automatic coupling package and angle compensated scan technique and system for waveguide device
KR102305905B1 (en) Three dimensional photographing device and the angle adjustment method using this
CN212181178U (en) Optical fiber adjusting device based on machine vision
WO2001044850A2 (en) Lens alignment system for solid state imager
WO2021137488A1 (en) Laser processing system and laser processing method
CN111596425A (en) Automatic light focusing system for collimator to focus light
CN100392348C (en) Electric image measurer
CN111551566A (en) Device and method for detecting surface defects of printed circuit board
CN216595621U (en) Full-automatic vertical counter shaft coupling device
CN107026179A (en) The automatic alignment apparatus and method of a kind of imaging sensor part
CN111999810B (en) Automatic optical fiber end cap alignment welding device and method based on machine vision positioning
WO2022141863A1 (en) Multi-channel pre-alignment system and method based on machine vision
CN115061297A (en) Dual-camera automatic alignment and plugging system and method for vehicle-mounted liquid crystal display module connector
KR101394398B1 (en) Regulator of camera module and setting method of the same
CN113900270A (en) Precision positioning equipment and automatic optical axis precision positioning method
US11644634B2 (en) Optical axis alignment apparatus of camera module
CN114883237B (en) Device alignment and butt joint system and method based on machine vision
CN117030714B (en) Mobile phone middle frame appearance detection mechanism and detection method
JPH04320333A (en) Semiconductor wafer processing device
CN113624209B (en) Module flat cable calibration equipment and calibration method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant