Intrinsic parameter for o3r camera #392
Unanswered
Astronomia-maker
asked this question in
Q&A
Replies: 1 comment 6 replies
-
The intrinsic parameters of the camera head are the part of TOF INFO chunk which can be extracted by de-serializing the data returned from buffer_id TOF_INFO. Install the latest unstable ifm3dpy test version from testPyPI: $ pip install -i https://test.pypi.org/simple/ ifm3dpy In the new ifm3dpy version the deserialization is implemented as method. The following code snippet may help you. from ifm3dpy.device import O3R
from ifm3dpy.deserialize import TOFInfoV4 as deserialize_tof
from ifm3dpy.framegrabber import FrameGrabber, buffer_id
import time
o3r = O3R()
fg = FrameGrabber(o3r, pcic_port=50012) # Expected 3D head connected to PORT2
#set schema and start Grabber
fg.start([buffer_id.TOF_INFO])
[ok, frame] = fg.wait_for_frame().wait_for(1500) # wait with 1500ms timeout
if ok:
tof_info_buffer = frame.get_buffer(buffer_id.TOF_INFO)
tof_info_buffer = deserialize_tof.deserialize(tof_info_buffer)
intrinsic_calib = tof_info_buffer.intrinsic_calibration
print(intrinsic_calib.parameters)
fg.stop() |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
How can i get the intrinsic parameter of camera head (O3R 225) for python environment?
Beta Was this translation helpful? Give feedback.
All reactions