NVIDIA DeepStream SDK API Reference

9.2 Release
service-maker/sources/python/src/bindings/docstrings/osddoc.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: Apache-2.0
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 #pragma once
19 
20 namespace pydeepstreamdoc
21 {
22  namespace osd
23  {
24  namespace FontFamilyDoc
25  {
26  constexpr const char* descr = R"pydeepstream(Font family.)pydeepstream";
27  constexpr const char* serif = R"pydeepstream(Serif.)pydeepstream";
28  }
29 
30  namespace ArrowHeadDoc
31  {
32  constexpr const char* descr = R"pydeepstream(Arrow head positions.)pydeepstream";
33  constexpr const char* start = R"pydeepstream(Arrow head only at start.)pydeepstream";
34  constexpr const char* end = R"pydeepstream(Arrow head only at end.)pydeepstream";
35  constexpr const char* both = R"pydeepstream(Arrow head at both sides.)pydeepstream";
36  }
37 
38  namespace FontDoc
39  {
40  constexpr const char* descr = R"pydeepstream(
41  Holds the font parameters of the text to be overlaid.
42 
43  :ivar name: *str*, Name of the font.
44  :ivar size: *int*, Size of the font.
45  :ivar color: :class:`Color`, Color parameters of the font.)pydeepstream";
46  }
47 
48  namespace ColorDoc
49  {
50  constexpr const char* descr = R"pydeepstream(
51  Holds the color parameters of the text to be overlaid.
52 
53  :ivar r: *float*, Red component of the color. Value must be in range [0, 1].
54  :ivar g: *float*, Green component of the color. Value must be in range [0, 1].
55  :ivar b: *float*, Blue component of the color. Value must be in range [0, 1].
56  :ivar a: *float*, Alpha component of the color. Value must be in range [0, 1].)pydeepstream";
57  }
58 
59  namespace TextDoc
60  {
61  constexpr const char* descr = R"pydeepstream(
62  Holds the text parameters to be overlaid.
63 
64  :ivar display_text: *str*, Text to be overlaid.
65  :ivar x_offset: *int*, Horizentol offset w.r.t top left pixel of the frame.
66  :ivar y_offset: *int*, Vertical offset w.r.t top left pixel of the frame.
67  :ivar font: :class:`Font`, Font parameters of the text.
68  :ivar set_bg_color: *bool*, Whether the text has background color.
69  :ivar bg_color: :class:`Color`, Color parameters of the text background, if specified.)pydeepstream";
70  }
71 
72  namespace TextParamsDoc
73  {
74  constexpr const char* descr = R"pydeepstream(
75  Holds the text parameters to be overlaid.
76 
77  :ivar display_text: *str*, Text to be overlaid.
78  :ivar x_offset: *int*, Horizentol offset w.r.t top left pixel of the frame.
79  :ivar y_offset: *int*, Vertical offset w.r.t top left pixel of the frame.
80  :ivar font_params: :class:`Font`, Font parameters of the text.
81  :ivar set_bg_clr: *bool*, Whether the text has background color.
82  :ivar text_bg_clr: :class:`Color`, Color parameters of the text background, if specified.)pydeepstream";
83  }
84 
85  namespace RectDoc
86  {
87  constexpr const char* descr = R"pydeepstream(
88  Holds the rectangle parameters of the box to be overlaid.
89 
90  :ivar left: *int*, Left coordinate of the rectangle in pixels.
91  :ivar top: *int*, Top coordinate of the rectangle in pixels.
92  :ivar width: *int*, Width of the rectangle in pixels.
93  :ivar height: *int*, Height of the rectangle in pixels.
94  :ivar border_width: *int*, Width of the border of the rectangle in pixels.
95  :ivar border_color: :class:`Color`, Color parameters of the border of the rectangle.
96  :ivar has_bg_color: *bool*, Whether the rectangle has background color.
97  :ivar bg_color: :class:`Color`, Color parameters of the rectangle background, if specified.)pydeepstream";
98  }
99 
100  namespace MaskDoc
101  {
102  constexpr const char* descr = R"pydeepstream(
103  Holds the parameters of the instance segment to be overlaid.
104 
105  :ivar threshold: *float*, Threshold for binarization.
106  :ivar mask_array: *list of float*, Mask buffer of instance.)pydeepstream";
107  }
108 
109  namespace LineDoc
110  {
111  constexpr const char* descr = R"pydeepstream(
112  Holds the parameters of the line to be overlaid.
113 
114  :ivar x1: *int*, X coordinate of the start point of the line in pixels.
115  :ivar y1: *int*, Y coordinate of the start point of the line in pixels.
116  :ivar x2: *int*, X coordinate of the end point of the line in pixels.
117  :ivar y2: *int*, Y coordinate of the end point of the line in pixels.
118  :ivar width: *int*, Width of the line in pixels.
119  :ivar color: :class:`Color`, Color parameters of the line.)pydeepstream";
120  }
121 
122  namespace ArrowDoc
123  {
124  constexpr const char* descr = R"pydeepstream(
125  Holds the parameters of the arrow to be overlaid.
126 
127  :ivar x1: *int*, X coordinate of the start point of the arrow in pixels.
128  :ivar y1: *int*, Y coordinate of the start point of the arrow in pixels.
129  :ivar x2: *int*, X coordinate of the end point of the arrow in pixels.
130  :ivar y2: *int*, Y coordinate of the end point of the arrow in pixels.
131  :ivar width: *int*, Width of the arrow shaft in pixels.
132  :ivar color: :class:`Color`, Color parameters of the arrow.
133  :ivar head: :class:`ArrowHead`, Position of the arrow head.)pydeepstream";
134  }
135 
136  namespace CircleDoc
137  {
138  constexpr const char* descr = R"pydeepstream(
139  Holds the parameters of the circle to be overlaid.
140 
141  :ivar xc: *int*, X coordinate of the center of the circle in pixels.
142  :ivar yc: *int*, Y coordinate of the center of the circle in pixels.
143  :ivar radius: *int*, Radius of the circle in pixels.
144  :ivar color: :class:`Color`, Color parameters of the circle.
145  :ivar has_bg_color: *bool*, Whether the circle has background color.
146  :ivar bg_color: :class:`Color`, Color parameters of the circle background, if specified.
147  :ivar width: *int*, Width of the circle in pixels.)pydeepstream";
148  }
149 
150  namespace EventHandlerDoc
151  {
152  constexpr const char* descr = R"pydeepstream(
153  Handler for capturing mouse events from the display. Once the event capturing is started,
154  users can toggle the OSD text using the mouse.
155 
156  :ivar started: *bool*, Whether the event handler has been started.)pydeepstream";
157  constexpr const char* init = R"pydeepstream(Initialize the event handler from tiler, osd, and renderer :class:`Node`s.)pydeepstream";
158  constexpr const char* start = R"pydeepstream(Start the event handler.)pydeepstream";
159  constexpr const char* stop = R"pydeepstream(Stop the event handler.)pydeepstream";
160  }
161  }
162 }
pydeepstreamdoc
Definition: service-maker/sources/python/src/bindings/docstrings/bufferdoc.h:20
pydeepstreamdoc::osd::EventHandlerDoc::start
constexpr const char * start
Definition: service-maker/sources/python/src/bindings/docstrings/osddoc.h:158
pydeepstreamdoc::osd::ArrowHeadDoc::both
constexpr const char * both
Definition: service-maker/sources/python/src/bindings/docstrings/osddoc.h:35
pydeepstreamdoc::osd::EventHandlerDoc::init
constexpr const char * init
Definition: service-maker/sources/python/src/bindings/docstrings/osddoc.h:157
pydeepstreamdoc::osd::ArrowHeadDoc::descr
constexpr const char * descr
Definition: service-maker/sources/python/src/bindings/docstrings/osddoc.h:32
pydeepstreamdoc::osd::ArrowDoc::descr
constexpr const char * descr
Definition: service-maker/sources/python/src/bindings/docstrings/osddoc.h:124
pydeepstreamdoc::osd::TextDoc::descr
constexpr const char * descr
Definition: service-maker/sources/python/src/bindings/docstrings/osddoc.h:61
pydeepstreamdoc::osd::EventHandlerDoc::descr
constexpr const char * descr
Definition: service-maker/sources/python/src/bindings/docstrings/osddoc.h:152
pydeepstreamdoc::osd::FontFamilyDoc::descr
constexpr const char * descr
Definition: service-maker/sources/python/src/bindings/docstrings/osddoc.h:26
pydeepstreamdoc::osd::FontFamilyDoc::serif
constexpr const char * serif
Definition: service-maker/sources/python/src/bindings/docstrings/osddoc.h:27
pydeepstreamdoc::osd::ArrowHeadDoc::start
constexpr const char * start
Definition: service-maker/sources/python/src/bindings/docstrings/osddoc.h:33
pydeepstreamdoc::osd::MaskDoc::descr
constexpr const char * descr
Definition: service-maker/sources/python/src/bindings/docstrings/osddoc.h:102
pydeepstreamdoc::osd::FontDoc::descr
constexpr const char * descr
Definition: service-maker/sources/python/src/bindings/docstrings/osddoc.h:40
pydeepstreamdoc::osd::LineDoc::descr
constexpr const char * descr
Definition: service-maker/sources/python/src/bindings/docstrings/osddoc.h:111
pydeepstreamdoc::osd::ColorDoc::descr
constexpr const char * descr
Definition: service-maker/sources/python/src/bindings/docstrings/osddoc.h:50
pydeepstreamdoc::osd::CircleDoc::descr
constexpr const char * descr
Definition: service-maker/sources/python/src/bindings/docstrings/osddoc.h:138
pydeepstreamdoc::osd::RectDoc::descr
constexpr const char * descr
Definition: service-maker/sources/python/src/bindings/docstrings/osddoc.h:87
pydeepstreamdoc::osd::EventHandlerDoc::stop
constexpr const char * stop
Definition: service-maker/sources/python/src/bindings/docstrings/osddoc.h:159
pydeepstreamdoc::osd::ArrowHeadDoc::end
constexpr const char * end
Definition: service-maker/sources/python/src/bindings/docstrings/osddoc.h:34
pydeepstreamdoc::osd::TextParamsDoc::descr
constexpr const char * descr
Definition: service-maker/sources/python/src/bindings/docstrings/osddoc.h:74