Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel
zhliu 46bfd6b89c
Update to 1.0.2 release
3 years ago
..
971626b018
Update to 1.0 release
3 years ago
46bfd6b89c
Update to 1.0.2 release
3 years ago
46bfd6b89c
Update to 1.0.2 release
3 years ago
46bfd6b89c
Update to 1.0.2 release
3 years ago
46bfd6b89c
Update to 1.0.2 release
3 years ago
46bfd6b89c
Update to 1.0.2 release
3 years ago
46bfd6b89c
Update to 1.0.2 release
3 years ago
46bfd6b89c
Update to 1.0.2 release
3 years ago
46bfd6b89c
Update to 1.0.2 release
3 years ago
46bfd6b89c
Update to 1.0.2 release
3 years ago
46bfd6b89c
Update to 1.0.2 release
3 years ago
46bfd6b89c
Update to 1.0.2 release
3 years ago
46bfd6b89c
Update to 1.0.2 release
3 years ago

README

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
  1. ################################################################################
  2. # Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved.
  3. #
  4. # Permission is hereby granted, free of charge, to any person obtaining a
  5. # copy of this software and associated documentation files (the "Software"),
  6. # to deal in the Software without restriction, including without limitation
  7. # the rights to use, copy, modify, merge, publish, distribute, sublicense,
  8. # and/or sell copies of the Software, and to permit persons to whom the
  9. # Software is furnished to do so, subject to the following conditions:
  10. #
  11. # The above copyright notice and this permission notice shall be included in
  12. # all copies or substantial portions of the Software.
  13. #
  14. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  17. # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  19. # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  20. # DEALINGS IN THE SOFTWARE.
  21. ################################################################################
  22. ================================================================================
  23. DeepStream SDK Python Bindings
  24. ================================================================================
  25. Setup pre-requisites:
  26. - Ubuntu 18.04
  27. - NVIDIA DeepStream SDK 5.1
  28. - Python 3.6
  29. - Gst-python
  30. --------------------------------------------------------------------------------
  31. Package Contents
  32. --------------------------------------------------------------------------------
  33. The DeepStream Python package includes:
  34. 1. Python bindings for DeepStream Metadata libraries
  35. These bindings are installed as part of the SDK at:
  36. /opt/nvidia/deepstream/deepstream/lib/pyds.so
  37. Sample applications that import is_aarch_64 automatically
  38. have this path added.
  39. A setup.py is also provided to install this extension into standard path.
  40. Currently this needs to be run manually:
  41. $ cd /opt/nvidia/deepstream/deepstream/lib
  42. $ python3 setup.py install
  43. 2. DeepStream test apps in Python
  44. The following test apps are available:
  45. deepstream-test1
  46. deepstream-test2
  47. deepstream-test3
  48. deepstream-test4
  49. deepstream-imagedata-multistream
  50. deepstream-ssd-parser
  51. deepstream-test1-rtsp-out
  52. deepstream-test1-usbcam
  53. deepstream-opticalflow
  54. deepstream-segmentation
  55. deepstream-nvdsanalytics
  56. --------------------------------------------------------------------------------
  57. Installing Pre-requisites:
  58. --------------------------------------------------------------------------------
  59. DeepStream SDK 5.1 Developer Preview
  60. --------------------
  61. Download and install from https://developer.nvidia.com/deepstream-download
  62. Python 3.6
  63. ----------
  64. Should be already installed with Ubuntu 18.04
  65. Gst-python
  66. ----------
  67. Should be already installed on Jetson
  68. If missing, install with the following steps:
  69. $ sudo apt update
  70. $ sudo apt install python3-gi python3-dev python3-gst-1.0 -y
  71. --------------------------------------------------------------------------------
  72. Running the samples
  73. --------------------------------------------------------------------------------
  74. The apps are configured to work from inside the DeepStream SDK 5.1 installation.
  75. Clone the deepstream_python_apps repo under <DeepStream 5.1 ROOT>/sources:
  76. $ git clone https://github.com/NVIDIA-AI-IOT/deepstream_python_apps
  77. This will create the following directory:
  78. <DeepStream 5.1 ROOT>/sources/deepstream_python_apps
  79. Follow README in each app's directory to run the app.
  80. Example: running test1 app:
  81. $ cd deepstream-test1
  82. $ python3 deepstream_test_1.py <input .h264 file>
  83. --------------------------------------------------------------------------------
  84. Running the samples inside DeepStream SDK docker
  85. --------------------------------------------------------------------------------
  86. The general steps are:
  87. 1. Pull the DeepStream SDK docker of choice following the latest DeepStream
  88. Release Notes at https://developer.nvidia.com/deepstream-sdk for more info.
  89. Note that the deepstream-ssd-parser app requires the Triton docker on x86_64.
  90. 2. Run the docker with Python Bindings mapped using the following option:
  91. -v <path to this python bindings directory>:/opt/nvidia/deepstream/deepstream/sources/python
  92. 3. Inside the container, install packages required by all samples:
  93. $ sudo apt update
  94. $ sudo apt install python3-gi python3-dev python3-gst-1.0 -y
  95. 4. Optionally install additional dependencies required by specific samples.
  96. See README in app's directory for such requirements.
  97. $ sudo apt install python3-opencv
  98. $ sudo apt install python3-numpy
  99. $ sudo apt install libgstrtspserver-1.0-0 gstreamer1.0-rtsp
  100. $ sudo apt install libgirepository1.0-dev
  101. $ sudo apt install gobject-introspection gir1.2-gst-rtsp-server-1.0
  102. 5. Run sample apps following directions in each app's README.
  103. --------------------------------------------------------------------------------
  104. Notes:
  105. --------------------------------------------------------------------------------
  106. As with DeepStream SDK, if the application runs into errors, cannot create gst elements,
  107. try again after removing gstreamer cache
  108. rm ${HOME}/.cache/gstreamer-1.0/*
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...