stereolabs / zed-sdk

⚡️The spatial perception framework for rapidly building smart robots and spaces
https://stereolabs.com
MIT License
814 stars 467 forks source link

Record SVO without CUDA #126

Closed shehzaman closed 5 years ago

shehzaman commented 5 years ago

Hi,

Is it possible to record in .svo format without CUDA? I have plenty of field work and it would help if I could record and send .svo files over to my server with CUDA to process depth. The heavy lifting will be done server side.

Any way to achieve this? Thanks!

obraun-sl commented 5 years ago

Hi, You can use ZED Explorer tool to record SVO without NVIDIA card (this tool does not require NVIDIA graphic card). However, you won't have access to AVCHD/HEVC compression mode.

Best, OB

shehzaman commented 5 years ago

That should be fine, I would like to keep as much raw data as possible.

Is it possible to write some C++ executable for this? I would like to fix the resolution and record so that there is minimum effort from anyone using it on field.

obraun-sl commented 5 years ago

Currently the C++ code will be linked to CUDA (ZED SVO Recording) and I assume this is not what you want.

You can use ZED Explorer in cmd line to start a record and choose resolution/FPS. For example :

./ZED\ Explorer -r HD1080 -f 15 --cpm 0 -o output.svo will record a SVO at HD1080@15fps in Lossless You can also specify the number of frame in the svo with --l option. You can then put that call in a script.

See ./ZED\ Explorer -h for more options

Best, OB

shehzaman commented 5 years ago

Thank you for that solution! I will definitely look at the options more closely.

Would ZED SDK install on a laptop without an Nvidia GPU? The only way I can get ZED Explorer is with the SDK and all documentation shows that CUDA is required.

Any way to install ZED Explorer as a standalone application? I was looking to compile for Linux, Windows and MacOS systems.

Once again, thank you so much for all the help!

obraun-sl commented 5 years ago

Yes you can install it without NVIDIA. It will just tell you that CUDA is missing but you can ignore that. This way is better than just copy the application.

shehzaman commented 5 years ago

Great thank you!

Do let me know if there is a way to write a C++ executable in the future :)

shehzaman commented 5 years ago

Reopening the issue as ZED Explorer failed to open on a new Windows 10 laptop.

I received the following errors:

Checked for these errors online, and they all point to Visual Studio - do I need to install the the entire Visual Studio package? Is there a minimal install to support ZED Explorer?

Edit: Looks like it needs to be packaged in ZED SDK? https://docs.microsoft.com/en-us/cpp/ide/redistributing-the-mfc-library?view=vs-2017

It would be great if I could write a standalone C++ application for SVO recording.

screen shot 2019-02-18 at 2 56 56 pm

obraun-sl commented 5 years ago

You can install the VC redist from here : https://www.microsoft.com/en-us/download/details.aspx?id=48145

Did you install the ZED SDK as mentionned? because this redist should be installed by the SDK itself.

shehzaman commented 5 years ago

Ah you are correct! I cancelled the Visual Studio install and CUDA 10 install during ZED SDK installation.

Thought that entire Visual Studio 2015 was being installed, could not afford that space on disk.

Ran the SDK again, let Visual Studio 2015 redist install (around 13mb) and it works!

My apologies for this mistake. Thank you so much for your help!