-
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
Aligning and filling array pyrealsense2 #6114
Comments
Hi @30Ronaldo How does the script behave if you remove these lines, please: if frames.size() < 2: |
Same result, I added these lines after recognizing this error to check if this may help. |
Apologies for the delay in responding further. I was carefully considering how to proceed. The code that you used to obtain the color and depth is consistent with examples of alignment for 2D frames. I wonder if it requires further steps for aligning a 3D point cloud though. Edit: here is someone else's approach to 3D point cloud alignment in Python: |
Thanks for your response. I don't know how this could solve my problem. I am not losing information about the pointcloud by aligning the belonging depth frame. Nevertheless I would like to know why this error is raising while aligning and storing depth frames. |
The link below has an example of aligning depth and color and making use of a numpty array. If this does not help then I will consult with a support manager about your case. |
As mentioned, I would like to save the depth frames in an array for better performance. |
1 similar comment
As mentioned, I would like to save the depth frames in an array for better performance. |
I located a case where another user could get no more than 15 frames. Please check the advice given in that case to see if it is relevant to your own situation. |
I changed the line in source.cpp and rebuild the project but it still stops after 16 frames. |
This case will be closed after 7 days from the time of writing this message if there are no further comments. Thanks! |
Issue Description
I wrote a python script to record color and depth images from Realsense D435i. To avoid latency I am saving the color images as video. The raw depth frames should be stored in arrays, to extract the 3D coordinates of each pixel after recording. Anyway before saving them I am additionally aligning the depth frames to the color ones.
Running this script causes after exactly 15 frames following error:
Running it without the aligning function works. Running it without the line, where I store the frames in the array, works. Running it with alignment of COLOR to DEPTH works.
It seems, that the alignment function (Depth -> Color) and the array storing of the resulting depth frames collide with each other curiously at the 16th frame.
I also tried to save the 3D coordinates of each pixel in preallocated numpy array within the recording loop. This method causes slightly latencies and the defined sample rate of 30Hz is no longer given.
Here the important pieces of the script:
The text was updated successfully, but these errors were encountered: