Skip to content

Commit 46bfd6b

Browse files
committed
Update to 1.0.2 release
1 parent 5cb4cb8 commit 46bfd6b

34 files changed

Lines changed: 2993 additions & 208 deletions

HOWTO.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This guide provides resources for DeepStream application development in Python.
1616
## Prerequisites
1717

1818
* Ubuntu 18.04
19-
* [DeepStream SDK 5.0](https://developer.nvidia.com/deepstream-download) or later
19+
* [DeepStream SDK 5.1](https://developer.nvidia.com/deepstream-download) or later
2020
* Python 3.6
2121
* [Gst Python](https://gstreamer.freedesktop.org/modules/gst-python.html) v1.14.5
2222

@@ -38,11 +38,11 @@ If missing, install with the following steps:
3838
<a name="run_samples"></a>
3939
## Running Sample Applications
4040

41-
Clone the deepstream_python_apps repo under <DeepStream 5.0 ROOT>/sources:
41+
Clone the deepstream_python_apps repo under <DeepStream 5.1 ROOT>/sources:
4242
git clone https://github.com/NVIDIA-AI-IOT/deepstream_python_apps
4343

4444
This will create the following directory:
45-
```<DeepStream 5.0 ROOT>/sources/deepstream_python_apps```
45+
```<DeepStream 5.1 ROOT>/sources/deepstream_python_apps```
4646

4747
The Python apps are under the "apps" directory.
4848
Go into each app directory and follow instructions in the README.
@@ -204,5 +204,5 @@ This function populates the input buffer with a timestamp generated according to
204204
<a name="imagedata_access"></a>
205205
## Image Data Access
206206

207-
Decoded images are accessible as NumPy arrays via the `get_nvds_buf_surface` function. This function is documented in the [API Guide](https://docs.nvidia.com/metropolis/deepstream/5.0/python-api/index.html).
207+
Decoded images are accessible as NumPy arrays via the `get_nvds_buf_surface` function. This function is documented in the [API Guide](https://docs.nvidia.com/metropolis/deepstream/5.1/python-api/index.html).
208208
Please see the [deepstream-imagedata-multistream](apps/deepstream-imagedata-multistream) sample application for an example of image data usage.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019 NVIDIA CORPORATION. All rights reserved.
3+
Copyright (c) 2019 - 2021 NVIDIA CORPORATION. All rights reserved.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This repository contains Python bindings and sample applications for the [DeepStream SDK](https://developer.nvidia.com/deepstream-sdk).
44

5-
SDK version supported: 5.0
5+
SDK version supported: 5.1
66

77
Download the latest release package complete with bindings and sample applications from the [release section](../../releases).
88

@@ -45,6 +45,17 @@ We currently provide the following sample applications:
4545
* [deepstream-ssd-parser](apps/deepstream-ssd-parser) -- SSD model inference via Triton server with output parsing in Python
4646
* [deepstream-test1-usbcam](apps/deepstream-test1-usbcam) -- deepstream-test1 pipeline with USB camera input
4747
* [deepstream-test1-rtsp-out](apps/deepstream-test1-rtsp-out) -- deepstream-test1 pipeline with RTSP output
48+
* [deepstream-opticalflow](apps/deepstream-opticalflow) -- optical flow and visualization pipeline with flow vectors returned in NumPy array
49+
* [deepstream-segmentation](apps/deepstream-segmentation) -- segmentation and visualization pipeline with segmentation mask returned in NumPy array
50+
* [deepstream-nvdsanalytics](apps/deepstream-nvdsanalytics) -- multistream pipeline with analytics plugin
51+
52+
Of these applications, the following have been updated or added in this release:
53+
* deepstream-test2: added option to enable output of past frame tracking data
54+
* deepstream-test4: callback functions are registered only once to avoid race condition
55+
* deepstream-imagedata-multistream: the probe function now modifies images in-place in addition to saving copies of them
56+
* deepstream-opticalflow: new sample application to demonstrate optical flow functionality
57+
* deepstream-segmentation: new sample application to demonstrate segmentation functionality
58+
* deepstream-nvdsnalaytics: new sample application to demonstrate analytics functionality
4859

4960
Detailed application information is provided in each application's subdirectory under [apps](apps).
5061

THIRD_PARTY_LICENSE

Lines changed: 773 additions & 0 deletions
Large diffs are not rendered by default.

apps/README

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
################################################################################
2-
# Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved.
2+
# Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved.
33
#
44
# Permission is hereby granted, free of charge, to any person obtaining a
55
# copy of this software and associated documentation files (the "Software"),
@@ -25,7 +25,7 @@ DeepStream SDK Python Bindings
2525
================================================================================
2626
Setup pre-requisites:
2727
- Ubuntu 18.04
28-
- NVIDIA DeepStream SDK 5.0 Developer Preview
28+
- NVIDIA DeepStream SDK 5.1
2929
- Python 3.6
3030
- Gst-python
3131

@@ -55,12 +55,15 @@ The DeepStream Python package includes:
5555
deepstream-ssd-parser
5656
deepstream-test1-rtsp-out
5757
deepstream-test1-usbcam
58+
deepstream-opticalflow
59+
deepstream-segmentation
60+
deepstream-nvdsanalytics
5861

5962
--------------------------------------------------------------------------------
6063
Installing Pre-requisites:
6164
--------------------------------------------------------------------------------
6265

63-
DeepStream SDK 5.0 Developer Preview
66+
DeepStream SDK 5.1 Developer Preview
6467
--------------------
6568
Download and install from https://developer.nvidia.com/deepstream-download
6669

@@ -78,12 +81,12 @@ $ sudo apt install python3-gi python3-dev python3-gst-1.0 -y
7881
--------------------------------------------------------------------------------
7982
Running the samples
8083
--------------------------------------------------------------------------------
81-
The apps are configured to work from inside the DeepStream SDK 5.0 installation.
84+
The apps are configured to work from inside the DeepStream SDK 5.1 installation.
8285

83-
Clone the deepstream_python_apps repo under <DeepStream 5.0 ROOT>/sources:
86+
Clone the deepstream_python_apps repo under <DeepStream 5.1 ROOT>/sources:
8487
$ git clone https://github.com/NVIDIA-AI-IOT/deepstream_python_apps
8588
This will create the following directory:
86-
<DeepStream 5.0 ROOT>/sources/deepstream_python_apps
89+
<DeepStream 5.1 ROOT>/sources/deepstream_python_apps
8790

8891
Follow README in each app's directory to run the app.
8992

@@ -99,7 +102,7 @@ The general steps are:
99102
Release Notes at https://developer.nvidia.com/deepstream-sdk for more info.
100103
Note that the deepstream-ssd-parser app requires the Triton docker on x86_64.
101104
2. Run the docker with Python Bindings mapped using the following option:
102-
-v <path to this python bindings directory>:/opt/nvidia/deepstream/deepstream-5.0/sources/python
105+
-v <path to this python bindings directory>:/opt/nvidia/deepstream/deepstream/sources/python
103106
3. Inside the container, install packages required by all samples:
104107
$ sudo apt update
105108
$ sudo apt install python3-gi python3-dev python3-gst-1.0 -y

apps/deepstream-imagedata-multistream/README

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
################################################################################
2-
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
2+
# Copyright (c) 2020-2021, NVIDIA CORPORATION. All rights reserved.
33
#
44
# Permission is hereby granted, free of charge, to any person obtaining a
55
# copy of this software and associated documentation files (the "Software"),
@@ -21,7 +21,7 @@
2121
################################################################################
2222

2323
Prerequisites:
24-
- DeepStreamSDK 5.0
24+
- DeepStreamSDK 5.1
2525
- Python 3.6
2626
- Gst-python
2727
- NumPy package
@@ -42,6 +42,10 @@ This document describes the sample deepstream-imagedata-multistream application.
4242
This sample builds on top of the deepstream-test3 sample to demonstrate how to:
4343

4444
* Access imagedata in a multistream source
45+
* Modify the images in-place. Changes made to the buffer will reflect in the downstream but
46+
color format, resolution and numpy transpose operations are not permitted.
47+
* Make a copy of the image, modify it and save to a file. These changes are made on the copy
48+
of the image and will not be seen downstream.
4549
* Extract the stream metadata, imagedata, which contains useful information about the
4650
frames in the batched buffer.
4751
* Annotating detected objects within certain confidence interval

0 commit comments

Comments
 (0)