Repository navigation
how to get the amplitude image of O3X via Python codes #451
Replies: 3 comments
|
@heruoyu1206 We are currently on updating the O3X ifm3d API examples based on API versions >= 1.3. |
0 replies
|
got it, thanks! thank you! |
0 replies
|
Hi @heruoyu1206, We have found an issue with the amplitude buffers for the O3X, where neither AMPLITUDE_IMAGE nor NORM_AMPLITUDE_IMAGE would return data. This is going to be fixed in the next release but in the meantime, a workaround is to request both buffers at the same time, and get the data from NORM_AMPLITUDE_IMAGE: from ifm3dpy.device import O3X
from ifm3dpy.framegrabber import FrameGrabber, buffer_id
o3x = O3X()
fg = FrameGrabber(o3x)
fg.start([buffer_id.AMPLITUDE_IMAGE, buffer_id.NORM_AMPLITUDE_IMAGE])
[ok, frame] = fg.wait_for_frame().wait_for(1000)
amp = frame.get_buffer(buffer_id.NORM_AMPLITUDE_IMAGE) |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
with the guidance and Python code example here:
https://api.ifm3d.com/stable/examples/o3r/getting_data/getting_data.html
i can get the amplitude image from O3D camera, but not from O3X. And the error message is:
Lib: A buffer with the requested buffer_id is not available.: buffer_id: 103
So, how can i get the amplitude image from an O3X120 camera via Python codes?
thanks !
All reactions