luxonis / depthai-experiments

Experimental projects we've done with DepthAI.
MIT License
821 stars 364 forks source link

Updated both record and replay scripts. #480

Open Erol444 opened 1 year ago

Erol444 commented 1 year ago

Requires 1.13 SDK release Requires: https://github.com/luxonis/depthai/pull/989

Jalen-Xu commented 1 year ago

Hello,

I use the latest version of record.py file to record depth data, but it still prompts an error, as shown below.

企业微信截图_16884639141778

Erol444 commented 1 year ago

Hi @Jalen-Xu, for depth, you'd need to record either in MCAP or ROSBAG, not VIDEO.

Jalen-Xu commented 1 year ago

Hi,

Thank you for your support! By executing the command "python record.py -save depth -type ROSBAG" , I saved a depth image (in rosbag format). Then I ran the RealSense Viewer software and tried to replay this depth image, but I failed. It prompted some errors, as shown below. 企业微信截图_16885401575893

Erol444 commented 1 year ago

@Jalen-Xu Could you try to open rosbag with foxglove studio instead?

Jalen-Xu commented 1 year ago

Thank you. I was able to successfully open the rosbag depth image file through the foxglove studio software. But I can't see the x/y/z values of each pixel point. Compared to RealSense Viewer software, foxglove studio software is inconvenient.

Erol444 commented 1 year ago

Hi @Jalen-Xu , What about recording pointcloud instead of the depth frame?