Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading Intrinsics of IR1/IR2 #11337

Closed
Siegel20 opened this issue Jan 20, 2023 · 6 comments
Closed

Reading Intrinsics of IR1/IR2 #11337

Siegel20 opened this issue Jan 20, 2023 · 6 comments

Comments

@Siegel20
Copy link


Required Info
Camera Model D435i
Firmware Version 2.53.1
Operating System & Version Win 10
Kernel Version (Linux Only)
Platform PC
SDK Version 2.0
Language python }
Segment Robot

Issue Description

I would like to read the intrinsics of the IR1 and IR2 camera. If I understood correctly, the 1280 x 800 images are either distortion corrected (Y8) or the original sensor RAW image (Y16).

Only in the case of Y8 I can get some intrsinsics (the distortion coefficients are all zero). But then the paramerts differ from what I read with Intel.Realsense.CustomRW.exe -r.
=> I assume that the distortion corrected image changes the principal point and the focal length due to the alignment ?

In the other case (Y16) I cannot read any intrinsics at all. I would like to get them to keep them with such images so that I could do the distortion correction offline at some other point if required.
=> Is there a way to read them via the API rather than using Intel.Realsense.CustomRW.exe -r ?

Thanks!

@MartyG-RealSense
Copy link
Collaborator

Hi @Siegel20 You are correct, the Y8 infrared format is rectified (it has a distortion model applied to it) and Y16 is unrectified.

You can list the intrinsics and extrinsics for all resolutions supported by your particular camera model using the program 'rs-enumerate-devices' by launching it in calibration information mode with the command rs-enumerate-devices -c

If you have installed the full RealSense SDK on Windows using the installer file Intel.RealSense.SDK-WIN10 then instructions for launching a pre-built executable version of rs-enumerate-devices in the Windows command prompt interface can be found at #8689 (comment)

If you would like to retrieve intrinsics with Python then #3986 provides an example of code for doing so with the API instruction get_intrinsics

In regard to all-zero coefficients, a RealSense team member explains the reason for this at #1430 (comment)

Since that information was originally provided, there have been instances where coefficients have been non-zero, such as the color stream on the D455 camera model.

@Siegel20
Copy link
Author

Thank you!

@MartyG-RealSense
Copy link
Collaborator

You are very welcome, @Siegel20 - thanks very much for the update!

@Siegel20 Siegel20 reopened this Jun 14, 2023
@Siegel20
Copy link
Author

Hello again,

I read #10323 and I found out, that I am now facing the exact same problem which means, I would also like to sign an NDA and receive infos about the homography that Intel uses to align the sensors based on the calibration. Could you please provide me with whatever is needed for these steps? Thank you very much!

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Jun 14, 2023

Hi @Siegel20 Please email your name and address and I will pass the contact details on to my Intel RealSense colleagues.

@Siegel20
Copy link
Author

Thanks for establishing the contact.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants