How to measure camera position deviation

A method for measuring and correcting camera positional deviation on robot arms using a marked jig and image analysis improves object detection accuracy by addressing the calibration gap in existing technologies.

JP7576620B2Active Publication Date: 2024-10-31FUJI CORP
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
JP2022536096
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-07-17
Publication Date
2024-10-31
Estimated Expiration
2040-07-17

AI Technical Summary

Technical Problem

Existing methods do not address the calibration and measurement of positional deviation for cameras attached to robot arms, which is crucial for accurate object detection.

Method used

A method involving a robot arm with a camera parallel to its rotation axis, using a marked jig attached to the hand, capturing images at multiple rotational positions, and determining positional deviation based on mark position differences.

Benefits of technology

Accurately measures and corrects for camera positional deviation, improving object recognition accuracy by adjusting for shifts and rotations, enhancing robot work precision.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007576620000004
    Figure 0007576620000004
  • Figure 0007576620000005
    Figure 0007576620000005
  • Figure 0007576620000006
    Figure 0007576620000006
Patent Text Reader

Abstract

This positional deviation measurement method for a camera is applied to a robot having a robot arm, a hand attached to the tip section of the robot arm via a rotary shaft, and a camera attached to the robot arm such that the optical axis of the camera is parallel to the rotary shaft. The method comprises: a step (a) for mounting a jig having a mark to the hand; a step (b) for imaging the mark with the camera at multiple rotation positions while rotating the hand around the rotating shaft; and a step (c) for deriving positional deviations of the camera on the basis of differences between the positions of the mark imaged in the respective captured images captured at the multiple rotation positions and ideal mark positions.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This specification discloses a method for measuring the positional deviation of a camera. [Background technology]

[0002] Conventionally, a robot equipped with an arm has been proposed that calibrates a camera installed independently of the arm (see, for example, Patent Document 1). The procedure for calibrating the camera involves first setting three rotation axes X, Y, and Z of a hand coordinate system, and operating the arm so as to rotate a calibration pattern held at the hand around each rotation axis. Next, the camera captures pattern images of the calibration pattern at multiple rotation positions around each rotation axis. These pattern images are then used to estimate a coordinate transformation matrix between the hand coordinate system and the camera coordinate system. According to this procedure, external parameters that can be used to calculate the coordinate transformation between the hand coordinate system and the camera coordinate system are obtained, making it possible to detect the position of an object using a camera. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2019-14031 A Summary of the Invention [Problem to be solved by the invention]

[0004] Although the above-mentioned Patent Document 1 describes the calibration of a camera installed independently of an arm, it does not mention anything about calibrating a camera attached to an arm (measuring positional deviation).

[0005] A primary object of the present disclosure is to provide a simple method for measuring the positional deviation of a camera attached to an arm. [Means for solving the problem]

[0006] The camera positional deviation amount measuring method of the present disclosure employs the following means to achieve the above-mentioned main object.

[0007] The camera position deviation amount measuring method disclosed herein includes: 1. A method for measuring a positional deviation of a camera in a robot having a robot arm, a hand attached to a tip of the robot arm via a rotation shaft, and a camera attached to the robot arm such that an optical axis of the camera is parallel to the rotation shaft, comprising: (a) attaching a jig having a mark to the hand; (b) capturing images of the mark with the camera at a plurality of rotation positions while rotating the hand around the rotation axis; a step (c) of calculating a positional deviation of the camera based on a difference between a position of the mark shown in each captured image taken at each of the plurality of rotational positions and an ideal position of the mark; The gist of the invention is to provide the following:

[0008] The camera positional deviation measurement method disclosed herein measures the positional deviation of a camera in a robot having a robot arm, a hand attached to the tip of the robot arm via a rotation axis, and a camera attached to the robot arm so that its optical axis is parallel to the rotation axis. In this method, a jig with a mark is attached to the hand, and the mark is captured by the camera at multiple rotational positions while the hand is rotated around the rotation axis. Then, the camera positional deviation is calculated based on the difference between the position of the mark in each captured image captured at each of the multiple rotational positions and the ideal position of the mark. This allows the measurement of the positional deviation of the camera attached to the arm to be performed by a simple procedure. [Brief description of the drawings]

[0009] [Figure 1] FIG. 2 is an external perspective view of the working robot. [Diagram 2] FIG. [Diagram 3] FIG. 2 is a block diagram showing an electrical connection relationship between a robot body and a control device. [Figure 4] FIG. 11 is an explanatory diagram showing an example of a camera position deviation measurement procedure. [Diagram 5] FIG. 13 is an explanatory diagram showing how a jig with a mark is attached. [Figure 6] 1 is an explanatory diagram showing the designed camera field of view and the actual camera field of view when a positional deviation occurs in the camera; [Figure 7] FIG. 11 is an explanatory diagram for explaining a positional deviation (xc, yc) and a rotational deviation θc in an XvrYvr coordinate system based on an actual camera field of view. [Figure 8] FIG. 11 is an explanatory diagram for explaining a positional deviation (xci, yci) in the XviYvi coordinate system based on the designed camera field of view. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] Next, an embodiment of the present disclosure will be described with reference to the drawings.

[0011] Fig. 1 is an external perspective view of a working robot, Fig. 2 is a side view of a robot body, and Fig. 3 is a block diagram showing the electrical connection relationship between the robot body and a control device.

[0012] The working robot 1 is configured as a horizontal articulated robot that performs a predetermined task on a workpiece W (for example, a transport task of picking up and transporting the workpiece W, or an assembly task of picking up the workpiece W and assembling it to an object, etc.). The working robot 1 comprises a robot body 10 (see Figs. 1 to 3) and a control device 70 (see Fig. 3) that controls the robot body 10. As shown in Figs. 1 and 2, the robot body 10 comprises a base 11 and an articulated arm 20.

[0013] The base 11 is fixed to the workbench 2 and supports the base end side of the multi-joint arm 20. The multi-joint arm 20 includes a first arm 21, a first arm driver 30, a second arm 22, a second arm driver 40, a shaft 23, a shaft driver 50, and a camera 60. The first arm 21 has a base end connected to the base 11 via a first joint shaft J1, and is configured to be rotatable (horizontally rotated) in a horizontal plane relative to the base 11 by rotation of the first joint shaft J1. The second arm 22 has a base end connected to a tip end of the first arm 21 via a second joint shaft J2, and is configured to be rotatable (horizontally rotated) in a horizontal plane relative to the first arm 21 by rotation of the second joint shaft J2. The shaft 23 is connected to a tip end of the second arm 22 via a third joint shaft J3, and is configured to be rotatable around the axis of the third joint shaft J3 relative to the second arm 22 and to be movable up and down along the axial direction of the third joint shaft J3. At the tip of the shaft 23, a tool holding portion 24 for holding various tools for performing operations on the workpiece W is provided.

[0014] 3, the first arm driver 30 includes a motor 32 and an encoder 34. The rotation shaft of the motor 32 is connected to the first joint shaft J1 via a reduction gear (not shown). The first arm driver 30 drives the motor 32 to transmit torque to the first joint shaft J1 via the reduction gear, causing the first arm 21 to horizontally rotate about the first joint shaft J1 as a fulcrum. The encoder 34 is attached to the rotation shaft of the motor 32 and is configured as a rotary encoder that detects the amount of rotational displacement of the motor 32.

[0015] The second arm driver 40 includes a motor 42 and an encoder 44, similar to the first arm driver 30. The rotation shaft of the motor 42 is connected to the second joint shaft J2 via a reduction gear (not shown). The second arm driver 40 drives the motor 42 to transmit torque to the second joint shaft J2 via the reduction gear, causing the second arm 22 to horizontally rotate about the second joint shaft J2 as a fulcrum. The encoder 44 is attached to the rotation shaft of the motor 42, and is configured as a rotary encoder that detects the amount of rotational displacement of the motor 42.

[0016] As shown in Fig. 3, the shaft driving unit 50 includes motors 52a and 52b and encoders 54a and 54b. The rotating shaft of the motor 52a is connected to the shaft 23 via a belt (not shown) and rotates the shaft 23 around its axis. The rotating shaft of the motor 52b is connected to a ball screw nut (not shown) that penetrates the shaft 23 via a belt and moves the shaft 23 up and down by rotating the ball screw nut. The encoder 54a is configured as a rotary encoder that detects the amount of rotational displacement of the shaft 23. The encoder 54b is configured as a linear encoder that detects the elevation position of the shaft 23.

[0017] The camera 60 is attached to the side surface of the tip of the second arm 22 so that the optical axis is parallel to the axis of the shaft 23. The camera 60 captures an image of the workpiece W to be worked on, and outputs the captured image to the control device 70. The control device 70 recognizes the position of the workpiece W by processing the captured image.

[0018] 3, the control device 70 includes a CPU 71, a ROM 72, a RAM 73, a non-volatile memory (storage device 74), and an input / output interface (not shown). Position signals from the encoders 34, 44, 54a, and 54b, image signals from the camera 60, and the like are input to the control device 70 via the input / output interface. Drive signals for the motors 32, 42, 52a, and 52b, and the like are output from the control device 70 via the input / output interface.

[0019] Next, the operation of the working robot 1 thus configured will be described. The CPU 71 of the control device 70 first controls the first arm drive unit 30, the second arm drive unit 40, and the shaft drive unit 50 so that the hand moves to a predetermined target position in order to move the camera 60 above the workpiece W, and captures the workpiece W with the camera 60. Next, the CPU 71 performs image processing to process the captured image and measures the position of the workpiece W in the camera coordinate system. The image processing is performed by measuring the coordinate values ​​of the workpiece W shown in the captured image, and performing position offset correction and rotation offset correction on the measured coordinate values ​​using the correction values. Here, the correction values ​​are used to correct the deviation in the positional relationship between the camera 60 and the hand caused by processing errors, assembly errors, etc. of the camera 60. The correction values ​​are measured in advance by a camera position deviation measurement procedure described later, and are stored in the storage device 74. Next, the CPU 71 converts the position of the workpiece W into the robot coordinate system, and sets the target position of the hand for picking up the workpiece W based on the converted position of the workpiece W. Then, the CPU 71 controls the first arm driver 30, the second arm driver 40, and the shaft driver 50 so that the hand moves to the set target position. The workpiece W is picked up by the hand (workpiece holder 24) as the hand moves to the target position.

[0020] Next, the camera position deviation measuring procedure will be described. Fig. 4 is an explanatory diagram showing an example of the camera position deviation measuring procedure. The camera position deviation measuring procedure is executed by steps S100 to S150.

[0021] In step S100, as shown in FIG. 5, a marked jig 100 is attached to the tool holding part 24 (hand tip) provided at the tip of the shaft 23. The marked jig 100 has a mark M at a position spaced apart in a direction perpendicular to the shaft 23 from the attachment position on the tool holding part 24. In step S110, the shaft driving part 50 is controlled so that the shaft 23 rotates by a predetermined angle (for example, by 10 degrees), and the camera 60 captures an image of the mark M every time the shaft 23 rotates by the predetermined angle. As a result, a plurality of rotation positions n (n=1, 2, 3 , …,k ) is obtained. In step S120, a coordinate system (X vr Y vr In the coordinate system, the mark position (x vn ,y vn )(n=1,2,3 , … ,k ) is measured. Mark position (x vn ,y vn ) is measured by processing the captured image and determining the center coordinates of the mark M shown in the image.

[0022] Step S130 is vr Y vr The measured mark position in the coordinate system (x vn ,y vn )(n=1,2,3 , … ,k ) and X vr Y vr The ideal mark position (x in ,y in )(n=1,2,3 , … ,k ) based on the difference between the positional deviation (x c ,y c ) and rotational deviation θ c The position shift (x c ,y c ) are X vr Axial misalignment and Y vr The amount of positional deviation in the axial direction is shown. Also, the rotational deviation θ c indicates the amount of deviation in the rotation direction of the actual camera field of view, including the positional deviation of the camera 60, with respect to the designed camera field of view that does not include the positional deviation of the camera 60. In this embodiment, step S130 calculates X vr Axial difference f xn and Y vr Axial difference f yn The displacement (x c ,y c ) and rotational deviation θc The combination of the rotational deviation θ c Using the following equations (4) and (5), the position shift (x c ,y c ) in the coordinate system (X vr Y vr coordinate system) to the coordinate system based on the design camera field of view (X vi Y vi This converts the X vi Y vi In the coordinate system, the X axis of camera 60 vi Y vi Axial misalignment (x ci ,y ci ) is derived. In step S150, the position shift (x ci ,y ci ) and the position offset value, which is the same amount but in the opposite direction, and the rotational offset θ c and a rotation offset value of the same amount but in the opposite direction are registered as correction values ​​in the storage device 74. As a result, when picking up the workpiece W, the position of the workpiece W measured by capturing an image of the workpiece W with the camera 60 is offset corrected (position offset and rotation offset), so that the position of the workpiece W can be correctly recognized regardless of the positional deviation of the camera 60. As a result, the accuracy of the operation (pickup) can be further improved.

[0023]

number

[0024] Here, in step S130, the measured mark position (x vn ,y vn ) and the ideal mark position (x in ,y in Theoretically, the following equations (6) and (7) hold between the camera 60 and the positional deviation (x c ,y c ) and rotational deviation θ cHowever, in reality, the relationship between the two includes various errors, so the difference f xn ,f yn The displacement (x c ,y c ) and rotational deviation θ c By obtaining a combination of the above, the correction accuracy can be further improved.

[0025]

number

[0026] Here, the correspondence between the main elements of the embodiment and the main elements of the present disclosure described in the claims will be described. That is, in this embodiment, the articulated arm 20 corresponds to a robot arm, the tool holding unit 24 corresponds to a hand, and the camera 60 corresponds to a camera.

[0027] It goes without saying that the present disclosure is in no way limited to the above-described embodiment, and can be embodied in various forms as long as it falls within the technical scope of the present disclosure.

[0028] For example, in the above embodiment, the camera position deviation measuring method of the present disclosure has been described as being applied to a horizontal articulated robot, but is not limited thereto, and can be applied to any robot configuration, such as a vertical articulated robot, as long as it has a robot arm, a hand attached to the tip of the robot arm via a rotation axis, and a camera attached to the robot arm such that the optical axis is parallel to the rotation axis.

[0029] As described above, the camera position misalignment measuring method disclosed herein is a camera position misalignment measuring method for measuring the position misalignment of a robot having a robot arm, a hand attached to the tip of the robot arm via a rotation axis, and a camera attached to the robot arm so that its optical axis is parallel to the rotation axis, and comprises the steps of: (a) attaching a jig having a mark to the hand; (b) capturing images of the mark with the camera at a plurality of rotational positions while rotating the hand around the rotation axis; and (c) determining the camera position misalignment based on the difference between the position of the mark appearing in each of the captured images taken at the plurality of rotational positions and an ideal mark position.

[0030] The camera positional deviation measurement method disclosed herein measures the positional deviation of a camera in a robot having a robot arm, a hand attached to the tip of the robot arm via a rotation axis, and a camera attached to the robot arm so that its optical axis is parallel to the rotation axis. In this method, a jig with a mark is attached to the hand, and the mark is captured by the camera at multiple rotational positions while the hand is rotated around the rotation axis. Then, the camera positional deviation is calculated based on the difference between the position of the mark in each captured image captured at each of the multiple rotational positions and the ideal position of the mark. This allows the measurement of the positional deviation of the camera attached to the arm to be performed by a simple procedure.

[0031] In the camera position deviation measuring method disclosed herein, the step (c) is vr Y vr In the coordinate system, the position of the mark imaged and measured at each rotational position n (n=1, 2, ...) in step (b) is expressed as (x vn ,y vn ), and the ideal mark position at each rotational position n (n=1, 2...) is (x in ,y in ) and X vr Axial and Y directions vrThe displacement of each camera in the axial direction is (x c ,y c ) and the rotational deviation in the rotational direction of the actual camera field of view relative to the design camera field of view is θ c Then, the measured mark position (x vn ,y vn ) and the ideal mark position (x in ,y in ) is calculated by using the relational expression that expresses the relationship between the positional deviation (x c ,y c ) and the rotational deviation θ c and the rotational deviation θ c Based on the positional deviation (x c ,y c ) coordinate system of the above X vr Y vr From the coordinate system, the X coordinate is based on the camera view in the design. vi Y vi The camera position deviation may be calculated by converting the image into a coordinate system, which makes it possible to calculate the camera position deviation by simple processing from the positions of the marks captured and measured by the camera at each rotation position n.

[0032] In this case, the step (c) is to determine the positional deviation (x c ,y c ) and the rotational deviation θ c The combination of is obtained using a predetermined minimization algorithm, and the position deviation (x c ,y c ) coordinate system of the above X vr Y vr From the coordinate system vi Y vi By converting to the coordinate system, vi Y vi Position deviation in the coordinate system (x ci ,y ci ) may be calculated. This makes it possible to further improve the accuracy of measuring the positional and rotational deviations of the camera.

[0033] In the camera position deviation measuring method disclosed herein, the offset value corresponding to the position deviation and rotation deviation of the camera calculated in step (c) may be registered as a correction value for correcting the position of the object captured and measured by the camera. In this way, the position of the object can be recognized with high accuracy using the camera. [Industrial Applicability]

[0034] The present disclosure is applicable to the robot manufacturing industry and the like. [Explanation of symbols]

[0035] 1 working robot, 2 work table, 10 robot body, 11 base, 20 articulated arm, 21 first arm, 22 second arm, 23 shaft, 30 first arm drive unit, 32 motor, 34 encoder, 40 second arm drive unit, 42 motor, 44 encoder, 50 shaft drive unit, 52a, 52b motors, 54a, 54b encoders, 60 camera, 70 control device, 71 CPU, 72 ROM, 73 RAM, 74 storage device, J1 first joint axis, J2 second joint axis, J3 third joint axis.

Claims

1. 1. A method for measuring a positional deviation of a camera in a robot having a robot arm, a hand attached to a tip of the robot arm via a rotation shaft, and a camera attached to the robot arm such that an optical axis of the camera is parallel to the rotation shaft, comprising: (a) attaching a jig having a mark to the hand; (b) capturing images of the mark on the jig with the camera at a plurality of rotation positions while rotating the hand around the rotation axis; a step (c) of calculating a positional deviation of the camera based on a difference between a position of the mark shown in each captured image taken at each of the plurality of rotational positions and an ideal position of the mark at each of the plurality of rotational positions; Equipped with In the step (c), in an XvrYvr coordinate system based on an actual camera field of view, when the position of the mark imaged and measured at each rotational position n (n=1, 2, ..., k) in the step (b) is (xvn, yvn), the ideal position of the mark at each rotational position n (n=1, 2, ..., k) is (xin, yin), each positional deviation of the camera in the Xvr axis direction and the Yvr axis direction is (xc, yc), and a rotational deviation in the rotational direction of the actual camera field of view with respect to the design camera field of view is θc, the positional deviation (xc, yc) and the rotational deviation θc are calculated using a relational expression expressing the relationship between the measured mark position (xvn, yvn) and the ideal mark position (xin, yin), and the coordinate system of the positional deviation (xc, yc) is calculated based on the rotational deviation θc. A positional deviation of the camera is calculated by converting the coordinate system into an X vi Y vi coordinate system based on the designed camera field of view, A combination of the positional shift (x c , y c ) and the rotational shift θ c that minimizes the sum of squares F defined by the following equations (1) to (3) is obtained using a predetermined minimization algorithm, and the coordinate system of the positional shift (x c , y c ) is transformed from the X vr Y vr coordinate system to the X vi Y vi coordinate system by the following equations (4) and (5) to obtain the positional shift (x ci , y ci ) in the X vi Y vi coordinate system; How to measure camera position deviation. [0010]

2. 2. The camera position deviation measuring method according to claim 1, and a step (d) of registering the offset value corresponding to the positional deviation and rotational deviation of the camera obtained in the step (c) as a correction value for correcting the position of the object imaged and measured by the camera. How to measure camera position deviation.

Citation Information

Patent Citations

  • The robot vision coordinate system calibration method

    JP1989002889A

  • Automatic operation error measuring method of robot body

    JP1993008185A

  • Supply of part and device therefor

    JP1994238584A

  • Robot system and calibration method

    JP2014180720A

  • Robot system and calibration method of robot system

    JP2015182144A