# Eye to Hand Calibration OpenCV

**URL:** <https://forum.opencv.org/t/eye-to-hand-calibration-opencv/9445>\
**Category:** Python\
**Created:** [July 8, 2022, 11:15am UTC](https://forum.opencv.org/t/eye-to-hand-calibration-opencv/9445 "2022-07-08T11:15:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bala\_Vignesh](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/bala_vignesh/32/5624_2.png) [@Bala\_Vignesh](https://forum.opencv.org/u/Bala_Vignesh)\
**Post date:** [July 8, 2022, 11:15am UTC](https://forum.opencv.org/t/eye-to-hand-calibration-opencv/9445/1 "2022-07-08T11:15:22Z")

</div>

I am new to this Eye to Hand calibration. I have read the opencv documentation. It says that we need to use cv2.calibrateHandEye(R\_gripper2base, t\_gripper2base, R\_target2cam, t\_target2cam).

Can somebody help me by clearly explaining what input values we need to provide, from where these input values need to be taken, and how it has to be in matrix format? Particularly for (R\_target2cam, t\_target2cam).I am using the UFactory Arm robot and Intel Realsense camera. So I need to calibrate both. Kindly guide me.

This is my Robot position coordinates below:

 ![robot_pose](https://us1.discourse-cdn.com/flex020/uploads/opencv/original/2X/a/a72f0809d979ea9b61b250539582a536d9340652.jpeg)

So, I think I have Rx,Ry,Rz for R\_gripper2base. X,Y,Z for t\_gripper2base. What and where can I get the values for R\_target2cam, t\_target2cam?
