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
  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. To run the test app:
  27. $ python3 deepstream_test_1_usb.py <v4l2-device-path>
  28. Example:
  29. $ python3 deepstream_test_1_usb.py /dev/video0
  30. This document shall describe the sample deepstream-test1-usb application.
  31. It is meant for simple demonstration of how to use the various DeepStream SDK
  32. elements in the pipeline and extract meaningful insights from a usb camera stream.
  33. This sample creates instance of "nvinfer" element. Instance of
  34. the "nvinfer" uses TensorRT API to execute inferencing on a model. Using a
  35. correct configuration for a nvinfer element instance is therefore very
  36. important as considerable behaviors of the instance are parameterized
  37. through these configs.
  38. For reference, here are the config files used for this sample :
  39. 1. The 4-class detector (referred to as pgie in this sample) uses
  40. dstest1_pgie_config.txt
  41. In this sample, we first create one instance of "nvinfer", referred as the pgie.
  42. This is our 4 class detector and it detects for "Vehicle , RoadSign, TwoWheeler,
  43. Person".
  44. nvinfer element attach some MetaData to the buffer. By attaching
  45. the probe function at the end of the pipeline, one can extract meaningful
  46. information from this inference. Please refer the "osd_sink_pad_buffer_probe"
  47. function in the sample code. For details on the Metadata format, refer to the
  48. file "gstnvdsmeta.h".
Tip!

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

Comments

Loading...