Azure-Kinect-Sensor-SDK icon indicating copy to clipboard operation
Azure-Kinect-Sensor-SDK copied to clipboard

How to get the parameters of depth camera?

Open Miss-Dora opened this issue 7 years ago • 6 comments

Describe the bug

To Reproduce

Expected behavior

Logs

Screenshots

Desktop (please complete the following information):

  • OS with Version:
  • SDK Version:
  • Firmware version:

Additional context

Miss-Dora avatar Aug 26 '19 03:08 Miss-Dora

@Miss-Dora, can you please provide more information about what exactly you are looking for?

tesych avatar Aug 26 '19 17:08 tesych

You may find the documentation on k4a_calibration_intrinsic_parameters_t helpful (related: k4a_calibration_t, k4a_calibration_intrinsics_t ), if that's what you're looking for. If it's not, please provide more info and we'll be happy to help!

spschul avatar Aug 26 '19 19:08 spschul

@Miss-Dora, can you please provide more information about what exactly you are looking for? I want to use Azure Kinect to get undistorted depth image, and the camera parameters corresponding to the undistorted depth image. I need convert depth image to pointcloud to do some processing.

Miss-Dora avatar Aug 27 '19 01:08 Miss-Dora

You may find the documentation on k4a_calibration_intrinsic_parameters_t helpful (related: k4a_calibration_t, k4a_calibration_intrinsics_t ), if that's what you're looking for. If it's not, please provide more info and we'll be happy to help! I want to use Azure Kinect to get undistorted depth image, and the camera parameters corresponding to the undistorted depth image.Now I have connected Azure Kinect to computer, and used "k4aviewer.exe" get a deep data named "xx.mkv",I need the camera parameters corresponding to the depth image,they are fx,fy,cx,cy. How can I get them?

Miss-Dora avatar Aug 27 '19 01:08 Miss-Dora

@Miss-Dora , https://github.com/microsoft/Azure-Kinect-Sensor-SDK/tree/develop/examples/undistort, please take a look the undistort example code and see whether resolve your issue.

If your question is about how to access the camera instrinsics and extrinsics, above example can give you some idea. other than that, there are some other pointers:

  • https://docs.microsoft.com/en-us/azure/Kinect-dk/use-calibration-functions
  • https://github.com/microsoft/Azure-Kinect-Sensor-SDK/tree/develop/examples/opencv_compatibility

rabbitdaxi avatar Aug 27 '19 16:08 rabbitdaxi

@Miss-Dora have we answered your questions? If yes, please close this issue :) Thank you for the feedback.

rabbitdaxi avatar Aug 29 '19 17:08 rabbitdaxi