-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Obtaining IR left and right #3633
Comments
To display both the left and right IR frames, you should use an index number to differentiate between them, like the script that you posted above does. The link below has an example script for the 400 Series cameras under the 'Librealsense2' heading for streaming the left and right IR channels. |
Dear Marty, Yes we did and do the following: ... later we need to actually get the two IR frames. However, in the new driver frameset does not contain definition for 'getInfrared' anymore and the new definition 'InfraredFrame' does not expose indexes (at least we did not find how) - we aactually asked where this indexes for left and right are now available in the new driver. In the suggested reference you mentioned we did not find a solution to our question. Regards, |
Sorry, I did not see on first reading that you were using C#. The number of available references for C# versions of scripting is limited. For now, until one of the Intel guys on this forum can follow up with you, the best I can suggest is to look at the link below of a C# code snippet and see if you can adapt it to show the two IR streams. I do apologize. |
thanks! |
var left = frames[Stream.Infrared, 1];
var right = frames[Stream.Infrared, 2]; Indeed missing in docs, should be added to the cookbook.md in #3602 Will consider adding a Most of these methods are eventually just this: FirstOrDefault<T>(Predicate<T> predicate) where T : Frame with the predicate filtering for stream type, format, index etc. |
Omer thanks!
As you suggested if you will make "GetInfrared(int index = 0)" it will be optimal (at least it is most intuitive for us). Cheers, |
| Camera Model | D435
| Firmware Version | 5.11.01.100
| Operating System & Version | Win 10
| Platform | PC
| SDK Version | 2.18
| Language | C#
Hi,
We have the following code (from previous which was working):
var colorFrame = frames.getColor().DisposeWith(frames);
var depthFrame = frames.getDepth().DisposeWith(frames);
var IR0Frame = frames.getInfrared(1).DisposeWith(frames);
var IR1Frame = frames.getInfrared(2).DisposeWith(frames);
However now 'getDepth', 'getColor', 'getInfrared(i)' are not working anymore. We guess it was deprecated.
We also noticed that:
getColor replaced with ColorFrame
getDepth replaced with DepthFrame
getInfrared replaced with InfraredFrame
We could not find how to get both Left and Right.
How it is recommended to get these IR frames?
Regards,
Amir
The text was updated successfully, but these errors were encountered: