Comments (6)
from zed-python-api.
You can save the color image and the depth one in a file, using OpenCV for example, but we won't recommend this solution.
The ZED SDK offers the SVO file format to record a sequence from the ZED. After recording one you can play it back in the SDK to fully simulate a ZED.
You can record a sequence from the ZED Explorer tool, or from the SDK.
To play it back, just specify its path in the initParameters: https://github.com/stereolabs/zed-python/blob/master/examples/read_svo.py#L42
from zed-python-api.
@nesnes thanks for the response, but I think you didn't understand my use case:
My app provides a view & record functionality (just like the Zed Viewer), as my users would like to watch their subject "live". We'd also like to use the frames coming on the go for some ML processing, further complicating matters.
from zed-python-api.
From what you said, you will generate many sequences with the ZED, extract the images and the depth, save them on your hard drive, and give them as an input to your machine learning algorithm.
In these conditions, using an SVO file that requires being opened by the ZED SDK won't be the best solution.
I'll suggest you to take a look at the SVO Export sample that turns SVOs into image and depth sequences in 16-bit png format. It uses OpenCV.
https://github.com/stereolabs/zed-examples/tree/master/svo%20recording/export
This should be a great tool to generate an ML dataset from your SVO files.
from zed-python-api.
@nesnes if you could answer 2 "follow-up questions":
- In the ZED Viewer: How do you retrieve the image for preview (on-screen) while also recording it to SVO?
- I understand that saving the video stream from both cameras allow the SDK to create the depth reading from the saved data (as if it was "fresh" data coming in), but is there any transformation that would allow me to keep the result of this calculation? Will using depth.get_data() get me a matrix of depth values aligned to one of the cameras?
Thanks!
from zed-python-api.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment otherwise it will be automatically closed in 5 days
from zed-python-api.
Related Issues (20)
- The camera frequency is set, but the time stamp when capturing the picture is incorrect HOT 5
- pyzed.slSensorsData has no attirbute MagnetometerData HOT 4
- Python API for 3.7.4 on Jetpack 5.0 HOT 8
- the object detection and body tracking is not working with zed camera on jetson xavier HOT 1
- get_python_api.py is unable to find pyzed installation folder HOT 2
- import error when run as superuser for python 3.8 on ubuntu HOT 2
- ModuleNotFoundError: No module named 'pyzed.sl' as non-root HOT 2
- Can't build plugin, Error: you must install Cuda HOT 2
- Unable to install Zed Python API HOT 2
- Outdated API
- Image Upside down
- ZED svo playback fps error
- ImportError: DLL load failed while importing sl: The specified procedure could not be found. HOT 2
- Bug when importing pyzed.sl HOT 1
- Requests dependency during API installation HOT 1
- When installing on an ubuntu system, the command used when compiling isοΌ python 3 setup. py build, display error: pyzed/sl. pyx: 10455:161 "c_position_type" is not a type identifier, how to solve this problem? HOT 1
- sl.Matrix4f from numpy.ndarray
- TypeError: Expected a mapping, got pyzed.sl.PositionalTrackingFusionParameters
- ValueError: -1835986560 is not a valid POSITIONAL_TRACKING_STATE
- Typos in README.md
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zed-python-api.