marek-simonik / record3d

Accompanying library for the Record3D iOS app (https://record3d.app/). Allows you to receive RGBD stream from iOS devices with TrueDepth camera(s).
https://record3d.app/
GNU Lesser General Public License v2.1
379 stars 55 forks source link

About depth map #54

Closed HquGhy closed 1 year ago

HquGhy commented 1 year ago

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

marek-simonik commented 1 year ago

I'm not sure if I understood your question. The Python demo does already give access to the depth map: https://github.com/marek-simonik/record3d/blob/d8637f57702faa6224c27550ab2b689791f9ac50/demo-main.py#L50

HquGhy commented 1 year ago

I mean, I want a depth map in png format

marek-simonik commented 1 year ago

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).