librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

In python, are the depth frames playbacked from the.bag file sequentially?

Open nevynwong opened this issue 7 years ago • 3 comments

| Camera Model | D415 | | Operating System & Version | Linux (Ubuntu 16) |
| Language | python |

I want to get the sequence of frames of the bag file through playback, but does wait_for_frames get the sequence of frames?

nevynwong avatar Oct 18 '19 03:10 nevynwong

I believe wait_for_frames should give you one frame at a time. How about you add frames one by one to a list of some sort - just repeat a loop for as many frames as you require in your sequence. For example:

framesSeq = []
for _ in range(5):
    framesSeq.append(pipe.wait_for_frames())

g2-bernotas avatar Oct 18 '19 09:10 g2-bernotas

Hi @g2-bernotas , I use a loop to extract all the required frames, for example:

for I in range (100) :

 frame = pipe. Wait_for_frames ();

 * * * * * *

And then every frame is processed, but it feels like every frame is the same.

nevynwong avatar Oct 18 '19 11:10 nevynwong

Similar to #5144, #5107, #5096

ev-mp avatar Oct 29 '19 06:10 ev-mp