marek-simonik/record3d

About depth map

HquGhy opened this issue · 3 comments

Whether the python file in the demo needs to be modified in order to obtain the depth map?

I'm not sure if I understood your question. The Python demo does already give access to the depth map:

depth = self.session.get_depth_frame()

I mean, I want a depth map in png format

If you want to save the depth map provided in the Python demo into PNG format, then you will have to do it yourself by modifying the code according to your needs, because the Python demo does not have such capability (the demo is meant just to illustrate how to use the API).