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
46bfd6b89c
Update to 1.0.2 release
3 years ago
971626b018
Update to 1.0 release
3 years ago
971626b018
Update to 1.0 release
3 years ago
971626b018
Update to 1.0 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

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
  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. Prequisites:
  23. - DeepStreamSDK 5.1
  24. - Python 3.6
  25. - Gst-python
  26. To run the test app:
  27. $ python3 deepstream_test_2.py <h264_elementary_stream> <0/1>
  28. To get the past-frame tracking meta use 1, otherwise 0, this argument is optional.
  29. This document shall describe about the sample deepstream-test2 application.
  30. It is meant for simple demonstration of how to use the various DeepStream SDK
  31. elements in the pipeline and extract meaningful insights from a video stream.
  32. This sample creates multiple instances of "nvinfer" element. Each instance of
  33. the "nvinfer" uses TensorRT API to infer on frames/objects. Every
  34. instance is configured through its respective config file. Using a correct
  35. configuration for a nvinfer element instance is therefore very important as
  36. considerable behaviors of the instance are parameterized through these configs.
  37. For reference, here are the config files used for this sample :
  38. 1. The 4-class detector (referred to as pgie in this sample) uses
  39. dstest2_pgie_config.txt
  40. 2. The vehicle color classifier (referred to as sgie1 in this sample) uses
  41. dstest2_sgie1_config.txt
  42. 3. The vehicle make classifier (referred to as sgie2 in this sample) uses
  43. dstest2_sgie2_config.txt
  44. 4. The vehicle type classifier (referred to as sgie3 in this sample) uses
  45. dstest2_sgie3_config.txt
  46. 5. The tracker (referred to as nvtracker in this sample) uses
  47. dstest2_tracker_config.txt
  48. To get the past-frame-tracking meta, the following changes have to be added to
  49. the dstest2_tracker_config.txt.
  50. 1. ll-lib-file=/opt/nvidia/deepstream/deepstream/lib/libnvds_nvdcf.so
  51. 2. ll-config-file=tracker_config.yml
  52. 3. enable-past-frame=1
  53. In this sample, we first create one instance of "nvinfer", referred as the pgie.
  54. This is our 4 class detector and it detects for "Vehicle , RoadSign, TwoWheeler,
  55. Person". After this we link a "nvtracker" instance which tracks the objects
  56. detected by the pgie. After this we create 3 more instances of "nvinfer"
  57. referred to as sgie1, sgie2, sgie3 respectively.
  58. Each of the nvinfer elements attach some MetaData to the buffer. By attaching
  59. the probe function at the end of the pipeline, one can extract meaningful
  60. information from these inferences. Please refer the "osd_sink_pad_buffer_probe"
  61. function in the sample code. For details on the Metadata format, refer to the
  62. file "gstnvdsmeta.h"
Tip!

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

Comments

Loading...