# Get transform between camera and robot frame using OpenCV

**URL:** <https://forum.opencv.org/t/get-transform-between-camera-and-robot-frame-using-opencv/8827>\
**Category:** Python\
**Tags:** calib3d\
**Created:** [May 18, 2022, 2:26pm UTC](https://forum.opencv.org/t/get-transform-between-camera-and-robot-frame-using-opencv/8827 "2022-05-18T14:26:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lara](https://avatars.discourse-cdn.com/v4/letter/l/e274bd/32.png) [@Lara](https://forum.opencv.org/u/Lara)\
**Post date:** [May 18, 2022, 2:26pm UTC](https://forum.opencv.org/t/get-transform-between-camera-and-robot-frame-using-opencv/8827/1 "2022-05-18T14:26:42Z")

</div>

Dear team,

In my project I work with a universal robot and I would like to define the base frame of the robot in the coordinates frame of the camera. How can I define the axes of the robot base frame? PS: I would like to use OpenCV for camera calibration.

Thank you in advance!  
-Lara

---

<div class="post-metadata">

**Author:** ![Eduardo](https://avatars.discourse-cdn.com/v4/letter/e/6a8cbe/32.png) [@Eduardo](https://forum.opencv.org/u/Eduardo)\
**Post date:** [May 19, 2022, 7:09pm UTC](https://forum.opencv.org/t/get-transform-between-camera-and-robot-frame-using-opencv/8827/2 "2022-05-19T19:09:37Z")

</div>

> I would like to define the base frame of the robot in the coordinates frame of the camera.

Looks like what you want to achieve can be done with:

- `calibrateHandEye()`
- please refer to the corresponding [doc](https://docs.opencv.org/4.5.5/d9/d0c/group__calib3d.html#gaebfc1c9f7434196a374c382abf43439b)
