Focal lenght
Hello, i would like to extract the focal lenght of the camera for 3d reconstruction purposes with neural methods. I have the instricts of the camera:
-
Hi Dimouzoi The focal length of the image changes depending upon the resolution that is currently set. You can find your camera's image focal length for a particular resolution using the RealSense SDK's 'rs-enumerate-devices' tool to list its intrinsics by launching it in calibration information mode with the following command.
rs-enumerate-devices -c
The focal length is described by fx and fy, which are the focal length of the image as a multiple of pixel width and height The fx and fy values are allowed to be different but are commonly close to each other.

Using rs-enumerate-devices will be the easiest way to be sure whether the '641' value that you listed represents fx / fy or ppx / ppy.
-
If you are using Windows then instructions for launching in the Command Prompt interface can be found at the link below.
https://github.com/IntelRealSense/librealsense/issues/3569#issuecomment-615365409
If you are using Linux then if you have installed the RealSense SDK and included the tools and examples in the installation, input rs-enumerate-devices -c into the terminal window to launch it.
-
If you want to calibrate the focal length then there is a calibration tool for doing so.
In regard to alternative methods of obtaining the fx and fy focal length values, the link below discusses Python program scripting for doing so.
https://github.com/IntelRealSense/librealsense/issues/2930#issuecomment-448603584
-
If you repeat the rs-enumerate-devices check for the fx and fy intrinsics at 1280x720 resolution now that you have calibrated, that will give you the values to use. Those values should remain the same until the next time that you calibrate the camera. The FPS will not affect the focal length.
A json file does not contain the focal length information.
Please sign in to leave a comment.

Comments
8 comments