depth_estimation.sh
demonstrates depth estimation on one video file source.
This is done by running a single-stream object depth estimation pipeline
on top of GStreamer using the Hailo-8 device.
./depth_estimation.sh [--video-src FILL-ME]
-i --input
is an optional flag, a path to the video displayed.--print-gst-launch
is a flag that prints the ready gst-launch command without running it--show-fps
is an optional flag that enables printing FPS on screen
cd /local/workspace/tappas/apps/h8/gstreamer/general/depth_estimation
./depth_estimation.sh
The output should look like:
fast_depth
in resolution of 224X224X3: https://github.com/hailo-ai/hailo_model_zoo/blob/master/hailo_model_zoo/cfg/networks/fast_depth.yaml
This app is based on our single network pipeline template
With two modifications to the template:
- We use
tee
to show two screens, one with the depth estimation mask applied and one without - The network expect no borders, so an
aspectratiocrop
mechanism is neededaspectratiocrop aspect-ratio=1/1