GStreamer - ZED Metadata
GStreamer - ZED Metadata
The stream of data injected in a GStreamer pipeline by the zedsrc element contains color and depth information plus metadata with sensors and object detection data.
The ZED metadata are defined in the GStreamer library gstzedmeta.
Metadata information
GstZedSrcMeta: metadata global containerZedInfo: general information about the ZED camera that acquired the data.ZedPose: Positional Tracking information.ZedSensors: data from the camera sensors (if available).ZedImu: 6 DOF inertial data (if available).ZedMag: 3 DOF magnetic field data (if available).ZedEnv: environmental data, atmospheric pressure and internal temperature (if available).ZedCamTemp: camera CMOS temperatures (if available).ZedObjectData: object detection data (if available).
Data Structures
GstZedSrcMeta
C++
meta: metadata identifier field.info: camera information.pose: camera pose.sens: sensors data.od_enabled: indicates if object detection data are available.obj_count: the number of detected objects [max 256].frame_id: track the meta/buffer throughout the GStreamer pipeline (when working with source code)objects: array of detected objects.
ZedInfo
C++
cam_model: camera model (0: ZED,1: ZED Mini,2: ZED2).stream_type: type of stream (0: Left Image,1: Right image,2: Stereo couple,3: 16 bit depth map,4: Left + Depth).grab_single_frame_width: original width of image data.grab_single_frame_height: original height of image data.
ZedPose
C++
pose_avail: indicates if camera pose is available.pos_tracking_state: status of the Positional Tracking algorithm (0: SEARCHING,1: OK,2: OFF,3: FPS_TOO_LOW)pos: camera positionorient: camera orientation (Eurel Angles).
ZedSensors
C++
sens_avail: indicates if sensors data are available (only with ZED2 and ZED Mini).imu: IMU data.mag: Magnetometer data.env: environment data.temp: camera temperatures data
An example about how to retrieve Sensors data is provided with the gstzeddatacsvsink element source code
ZedImu
C++
imu_avail: indicates if IMU data are available (only with ZED2 and ZED Mini).acc: 3 DOF accelerometer data in [m/s²].gyro: 3 DOF gyroscope data in [rad/sec].temp: IMU temperature in [°C].
ZedMag
C++
mag_avail: indicates if magnetometer data are available (only with ZED2).mag: 3 DOF magnetic field data in [µT].
ZedEnv
C++
env_avail: indicates if environment data are available (only with ZED2).press: atmospheric pressure in [hPa].temp: internal camera temperature in [°C].
ZedCamTemp
C++
env_avail: indicates if CMOS temperatures data are available (only with ZED2).temp_cam_left: temperature of the left CMOS sensor in [°C].temp_cam_right: temperature of the right CMOS sensor in [°C].
ZedObjectData
C++
C++
An example about how to use Object Detection data is provided with the gstzedodoverlay element source code

