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
..
46bfd6b89c
Update to 1.0.2 release
3 years ago
2931f6b295
Update to v0.9 release
4 years ago
971626b018
Update to 1.0 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
  1. ################################################################################
  2. # Copyright (c) 2020-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. Prequisites:
  23. - DeepStreamSDK 5.1
  24. - Python 3.6
  25. - Gst-python
  26. - GstRtspServer
  27. Installing GstRtspServer and instrospection typelib
  28. ===================================================
  29. $ sudo apt update
  30. $ sudo apt-get install libgstrtspserver-1.0-0 gstreamer1.0-rtsp
  31. For gst-rtsp-server (and other GStreamer stuff) to be accessible in
  32. Python through gi.require_version(), it needs to be built with
  33. gobject-introspection enabled (libgstrtspserver-1.0-0 is already).
  34. Yet, we need to install the introspection typelib package:
  35. $ sudo apt-get install libgirepository1.0-dev
  36. $ sudo apt-get install gobject-introspection gir1.2-gst-rtsp-server-1.0
  37. To get test app usage information:
  38. $ python3 deepstream_test1_rtsp_out.py -h
  39. To run the test app with default settings:
  40. $ python3 deepstream_test1_rtsp_out.py -i <h264_elementary_stream>
  41. Default RTSP streaming location:
  42. rtsp://<server IP>:8554/ds-test
  43. This document shall describe the sample deepstream-test1-rtsp-out application.
  44. It is meant for simple demonstration of how to use the various DeepStream SDK
  45. elements in the pipeline and extract meaningful insights from a video stream.
  46. The output video data with inference output overlayed is encoded and streamed
  47. using GstRtspServer.
  48. This sample creates instance of "nvinfer" element. Instance of
  49. the "nvinfer" uses TensorRT API to execute inferencing on a model. Using a
  50. correct configuration for a nvinfer element instance is therefore very
  51. important as considerable behaviors of the instance are parameterized
  52. through these configs.
  53. For reference, here are the config files used for this sample :
  54. 1. The 4-class detector (referred to as pgie in this sample) uses
  55. dstest1_pgie_config.txt
  56. In this sample, we first create one instance of "nvinfer", referred as the pgie.
  57. This is our 4 class detector and it detects for "Vehicle , RoadSign, TwoWheeler,
  58. Person".
  59. nvinfer element attach some MetaData to the buffer. By attaching
  60. the probe function at the end of the pipeline, one can extract meaningful
  61. information from this inference. Please refer the "osd_sink_pad_buffer_probe"
  62. function in the sample code. For details on the Metadata format, refer to the
  63. file "gstnvdsmeta.h".
Tip!

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

Comments

Loading...