NVIDIA DeepStream SDK API Reference

9.2 Release
9.2/service-maker/sources/python/src/bindings/osd.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2024-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 #include "osddoc.h"
19 #include <cstring>
20 #include <tiler_event_handler.hpp>
21 
22 typedef enum {
25 } FontFamily;
26 
28 struct Text : public NvOSD_TextParams {
29  std::string text;
30 };
31 
33 class EventHandler: public NvDsTilerEventHandler {
34  public:
35  EventHandler(Node& tiler, Node& osd, Node& renderer)
36  : NvDsTilerEventHandler(&tiler, &osd, &renderer)
37  {}
38 };
39 
40 static const char* font_table[] = { "Serif" };
41 
42 void module_osd_bind(py::module &m);
43 
44 void module_osd_bind(py::module &m) {
45  py::module osd_module = m.def_submodule("osd");
46  py::enum_<FontFamily>(osd_module, "FontFamily", py::module_local(), pydeepstreamdoc::osd::FontFamilyDoc::descr)
48  py::enum_<NvOSD_Arrow_Head_Direction>(osd_module, "ArrowHead", py::module_local(), pydeepstreamdoc::osd::ArrowHeadDoc::descr)
52  py::class_<NvOSD_FontParams>(osd_module, "Font", py::module_local(), pydeepstreamdoc::osd::FontDoc::descr)
53  .def_property("name",
54  // Getter
55  [](const NvOSD_FontParams& self) {
56  return py::str(self.font_name);
57  },
58  // Setter
59  [](NvOSD_FontParams& self, const FontFamily font) {
60  unsigned int index = static_cast<unsigned int>(font);
61  if (index < Font_Max) {
62  self.font_name = (char *)font_table[index];
63  }
64  }
65  )
66  .def_readwrite("size", &NvOSD_FontParams::font_size)
67  .def_readwrite("color", &NvOSD_FontParams::font_color)
68  .def("__repr__", [](const NvOSD_FontParams& self) {
69  std::string font_name_str = self.font_name ? std::string(self.font_name) : "null";
70  return "Font(name=" + font_name_str +
71  ", size=" + std::to_string(self.font_size) +
72  ", color=" + py::repr(py::cast(self.font_color)).cast<std::string>() + ")";
73  });
74  py::class_<NvOSD_ColorParams>(osd_module, "Color", py::module_local(), pydeepstreamdoc::osd::ColorDoc::descr)
75  .def(py::init<double, double, double, double>())
76  .def_readwrite("r", &NvOSD_ColorParams::red)
77  .def_readwrite("g", &NvOSD_ColorParams::green)
78  .def_readwrite("b", &NvOSD_ColorParams::blue)
79  .def_readwrite("a", &NvOSD_ColorParams::alpha)
80  .def("__repr__", [](const NvOSD_ColorParams& self) {
81  return "Color(r=" + std::to_string(self.red) +
82  ", g=" + std::to_string(self.green) +
83  ", b=" + std::to_string(self.blue) +
84  ", a=" + std::to_string(self.alpha) + ")";
85  });
86  py::class_<Text>(osd_module, "Text", py::module_local(), pydeepstreamdoc::osd::TextDoc::descr)
87  .def(py::init<>())
88  .def_property("display_text",
89  // Getter
90  [](const Text& self) {
91  return py::str(self.display_text);
92  },
93  // Setter
94  [](Text& self, const string &name) {
95  self.text = name;
96  self.display_text = (char *) self.text.c_str();
97  }
98  )
99  .def_readwrite("x_offset", &NvOSD_TextParams::x_offset)
100  .def_readwrite("y_offset", &NvOSD_TextParams::y_offset)
101  .def_readwrite("font", &NvOSD_TextParams::font_params)
102  .def_readwrite("set_bg_color", &NvOSD_TextParams::set_bg_clr)
103  .def_readwrite("bg_color", &NvOSD_TextParams::text_bg_clr)
104  .def("__repr__", [](const Text& self) {
105  std::string display_text_str = self.display_text ? std::string(self.display_text) : "null";
106  std::string font_name_str = self.font_params.font_name ? std::string(self.font_params.font_name) : "null";
107  return "Text(display_text='" + display_text_str +
108  "', x_offset=" + std::to_string(self.x_offset) +
109  ", y_offset=" + std::to_string(self.y_offset) +
110  ", font_name='" + font_name_str +
111  "', font_size=" + std::to_string(self.font_params.font_size) +
112  ", bg_color=" + py::repr(py::cast(self.text_bg_clr)).cast<std::string>() + ")";
113  });
114  py::class_<NvOSD_TextParams>(osd_module, "TextParams", py::module_local(), pydeepstreamdoc::osd::TextParamsDoc::descr)
115  .def(py::init<>())
116  .def_property("display_text",
117  [](const NvOSD_TextParams& self) {
118  return py::str(self.display_text ? self.display_text : "");
119  },
120  [](NvOSD_TextParams& self, const string &text) {
121  // Free existing memory if allocated
122  if (self.display_text) {
123  delete[] self.display_text;
124  }
125  // Allocate new memory and copy string
126  self.display_text = new char[text.length() + 1];
127  std::strcpy(self.display_text, text.c_str());
128  }
129  )
130  .def_readwrite("x_offset", &NvOSD_TextParams::x_offset)
131  .def_readwrite("y_offset", &NvOSD_TextParams::y_offset)
132  .def_readwrite("font_params", &NvOSD_TextParams::font_params)
133  .def_readwrite("set_bg_clr", &NvOSD_TextParams::set_bg_clr)
134  .def_readwrite("text_bg_clr", &NvOSD_TextParams::text_bg_clr)
135  .def("__repr__", [](const NvOSD_TextParams& self) {
136  return "TextParams(display_text='" + std::string(self.display_text ? self.display_text : "") +
137  "', x_offset=" + std::to_string(self.x_offset) +
138  ", y_offset=" + std::to_string(self.y_offset) +
139  ", font_params=" + py::repr(py::cast(self.font_params)).cast<std::string>() +
140  ", set_bg_clr=" + std::to_string(self.set_bg_clr) +
141  ", text_bg_clr=" + py::repr(py::cast(self.text_bg_clr)).cast<std::string>() + ")";
142  });
143  py::class_<NvOSD_RectParams>(osd_module, "Rect", py::module_local(), pydeepstreamdoc::osd::RectDoc::descr)
144  .def(py::init<>())
145  .def_readwrite("left", &NvOSD_RectParams::left)
146  .def_readwrite("top", &NvOSD_RectParams::top)
147  .def_readwrite("width", &NvOSD_RectParams::width)
148  .def_readwrite("height", &NvOSD_RectParams::height)
149  .def_readwrite("rotation_angle", &NvOSD_RectParams::rotation_angle)
150  .def_readwrite("border_width", &NvOSD_RectParams::border_width)
151  .def_readwrite("border_color", &NvOSD_RectParams::border_color)
152  .def_readwrite("has_bg_color", &NvOSD_RectParams::has_bg_color)
153  .def_readwrite("bg_color", &NvOSD_RectParams::bg_color)
154  .def("__repr__", [](const NvOSD_RectParams& self) {
155  return "Rect(left=" + std::to_string(self.left) +
156  ", top=" + std::to_string(self.top) +
157  ", width=" + std::to_string(self.width) +
158  ", height=" + std::to_string(self.height) +
159  ", rotation_angle=" + std::to_string(self.rotation_angle) +
160  ", border_width=" + std::to_string(self.border_width) +
161  ", border_color=" + py::repr(py::cast(self.border_color)).cast<std::string>() +
162  ", has_bg_color=" + std::to_string(self.has_bg_color) +
163  ", bg_color=" + py::repr(py::cast(self.bg_color)).cast<std::string>() + ")";
164  });;
165  py::class_<NvOSD_MaskParams>(osd_module, "Mask", py::module_local(), pydeepstreamdoc::osd::MaskDoc::descr)
166  .def(py::init<>())
167  .def_readwrite("threshold", &NvOSD_MaskParams::threshold)
168  .def_property("mask_array",
169  // Getter
170  [](NvOSD_MaskParams &self) -> py::array {
171  const float* data = self.data;
172  if (!data) {
173  return py::array_t<float>();
174  }
175  return py::array_t<float>(
176  {self.height, self.width},
177  {self.width * sizeof(float), sizeof(float)},
178  data
179  );
180  },
181  // Setter
182  [](NvOSD_MaskParams &self, const py::array &array) {
183  self.data = (float *)array.request().ptr;
184  self.size = array.size() * sizeof(float);
185  self.height = array.shape(0);
186  self.width = array.shape(1);
187  }
188  )
189  .def("__repr__", [](const NvOSD_MaskParams& self) {
190  const float* data = self.data;
191  py::array mask_array = py::array_t<float>();
192  if (data) {
193  mask_array = py::array_t<float>(
194  {self.height, self.width},
195  {self.width * sizeof(float), sizeof(float)},
196  data
197  );
198  }
199  return "Mask(height=" + std::to_string(self.height) +
200  ", width=" + std::to_string(self.width) +
201  ", threshold=" + std::to_string(self.threshold) +
202  ", mask_array=" + py::repr(mask_array).cast<std::string>() + ")";
203  });
204  py::class_<NvOSD_LineParams>(osd_module, "Line", py::module_local(), pydeepstreamdoc::osd::LineDoc::descr)
205  .def(py::init<>())
206  .def_readwrite("x1", &NvOSD_LineParams::x1)
207  .def_readwrite("y1", &NvOSD_LineParams::y1)
208  .def_readwrite("x2", &NvOSD_LineParams::x2)
209  .def_readwrite("y2", &NvOSD_LineParams::y2)
210  .def_readwrite("width", &NvOSD_LineParams::line_width)
211  .def_readwrite("color", &NvOSD_LineParams::line_color)
212  .def("__repr__", [](const NvOSD_LineParams& self) {
213  return "Line(x1=" + std::to_string(self.x1) +
214  ", y1=" + std::to_string(self.y1) +
215  ", x2=" + std::to_string(self.x2) +
216  ", y2=" + std::to_string(self.y2) +
217  ", width=" + std::to_string(self.line_width) +
218  ", color=" + py::repr(py::cast(self.line_color)).cast<std::string>() + ")";
219  });
220  py::class_<NvOSD_ArrowParams>(osd_module, "Arrow", py::module_local(), pydeepstreamdoc::osd::ArrowDoc::descr)
221  .def(py::init<>())
222  .def_readwrite("x1", &NvOSD_ArrowParams::x1)
223  .def_readwrite("y1", &NvOSD_ArrowParams::y1)
224  .def_readwrite("x2", &NvOSD_ArrowParams::x2)
225  .def_readwrite("y2", &NvOSD_ArrowParams::y2)
226  .def_readwrite("width", &NvOSD_ArrowParams::arrow_width)
227  .def_readwrite("color", &NvOSD_ArrowParams::arrow_color)
228  .def_readwrite("head", &NvOSD_ArrowParams::arrow_head)
229  .def("__repr__", [](const NvOSD_ArrowParams& self) {
230  return "Arrow(x1=" + std::to_string(self.x1) +
231  ", y1=" + std::to_string(self.y1) +
232  ", x2=" + std::to_string(self.x2) +
233  ", y2=" + std::to_string(self.y2) +
234  ", width=" + std::to_string(self.arrow_width) +
235  ", color=" + py::repr(py::cast(self.arrow_color)).cast<std::string>() +
236  ", head=" + std::to_string(self.arrow_head) + ")";
237  });
238  py::class_<NvOSD_CircleParams>(osd_module, "Circle", py::module_local(), pydeepstreamdoc::osd::CircleDoc::descr)
239  .def(py::init<>())
240  .def_readwrite("xc", &NvOSD_CircleParams::xc)
241  .def_readwrite("yc", &NvOSD_CircleParams::yc)
242  .def_readwrite("radius", &NvOSD_CircleParams::radius)
243  .def_readwrite("color", &NvOSD_CircleParams::circle_color)
244  .def_readwrite("has_bg_color", &NvOSD_CircleParams::has_bg_color)
245  .def_readwrite("bg_color", &NvOSD_CircleParams::bg_color)
246  .def_readwrite("width", &NvOSD_CircleParams::circle_width)
247  .def("__repr__", [](const NvOSD_CircleParams& self) {
248  return "Circle(xc=" + std::to_string(self.xc) +
249  ", yc=" + std::to_string(self.yc) +
250  ", radius=" + std::to_string(self.radius) +
251  ", color=" + py::repr(py::cast(self.circle_color)).cast<std::string>() +
252  ", has_bg_color=" + std::to_string(self.has_bg_color) +
253  ", bg_color=" + py::repr(py::cast(self.bg_color)).cast<std::string>() +
254  ", width=" + std::to_string(self.circle_width) + ")";
255  });
256  py::class_<EventHandler>(osd_module, "EventHandler", py::module_local(), py::dynamic_attr(), pydeepstreamdoc::osd::EventHandlerDoc::descr)
257  .def(py::init<Node &, Node &, Node &>(), py::arg("tiler"), py::arg("osd"), py::arg("renderer"), pydeepstreamdoc::osd::EventHandlerDoc::init)
258  .def_readonly("started", &NvDsTilerEventHandler::started)
261  .def("__repr__", [](const EventHandler& self) {
262  return "EventHandler(started=" + std::to_string(self.started) + ")";
263  });
264 }
_NvOSD_ArrowParams::y1
unsigned int y1
Holds the start vertical coordinate in pixels.
Definition: includes/nvll_osd_struct.h:210
_NvOSD_LineParams
Holds the box parameters of a line to be overlayed.
Definition: includes/nvll_osd_struct.h:188
_NvOSD_MaskParams::threshold
float threshold
Size of mask buffer in bytes.
Definition: includes/nvll_osd_struct.h:180
_NvOSD_RectParams
Holds the box parameters of the box to be overlayed.
Definition: includes/nvll_osd_struct.h:145
_NvOSD_MaskParams
Holds the mask parameters of the segment to be overlayed.
Definition: includes/nvll_osd_struct.h:177
_NvOSD_ArrowParams::x2
unsigned int x2
Holds the end horizontal coordinate in pixels.
Definition: includes/nvll_osd_struct.h:212
width
JDIMENSION JDIMENSION * width
Definition: sources/libs/nvll_batch_jpeg_encode/oss/jpeglib.h:1001
Font_Serif
@ Font_Serif
Definition: 9.2/service-maker/sources/python/src/bindings/osd.h:23
_NvOSD_RectParams::width
float width
Holds the box's width in pixels.
Definition: includes/nvll_osd_struct.h:152
pydeepstreamdoc::osd::EventHandlerDoc::start
constexpr const char * start
Definition: service-maker/sources/python/src/bindings/docstrings/osddoc.h:158
_NvOSD_ArrowParams::arrow_width
unsigned int arrow_width
Holds the arrow shaft width in pixels.
Definition: includes/nvll_osd_struct.h:216
_NvOSD_RectParams::bg_color
NvOSD_ColorParams bg_color
Holds the box's background color.
Definition: includes/nvll_osd_struct.h:166
_NvOSD_CircleParams::yc
unsigned int yc
Holds the start vertical coordinate in pixels.
Definition: includes/nvll_osd_struct.h:234
_NvOSD_LineParams::y1
unsigned int y1
Holds the box's top coordinate in pixels.
Definition: includes/nvll_osd_struct.h:192
pydeepstreamdoc::osd::ArrowHeadDoc::both
constexpr const char * both
Definition: service-maker/sources/python/src/bindings/docstrings/osddoc.h:35
_NvOSD_LineParams::x1
unsigned int x1
Holds the box's left coordinate in pixels.
Definition: includes/nvll_osd_struct.h:189
_NvOSD_CircleParams
Holds circle parameters to be overlayed.
Definition: includes/nvll_osd_struct.h:231
pydeepstreamdoc::osd::EventHandlerDoc::init
constexpr const char * init
Definition: service-maker/sources/python/src/bindings/docstrings/osddoc.h:157
_NvOSD_FontParams::font_size
unsigned int font_size
Holds the size of the font.
Definition: includes/nvll_osd_struct.h:111
FontFamily
FontFamily
Definition: 9.2/service-maker/sources/python/src/bindings/osd.h:22
pydeepstreamdoc::osd::ArrowHeadDoc::descr
constexpr const char * descr
Definition: service-maker/sources/python/src/bindings/docstrings/osddoc.h:32
_NvOSD_ColorParams::red
double red
Holds the red component of color.
Definition: includes/nvll_osd_struct.h:87
_NvOSD_TextParams::set_bg_clr
int set_bg_clr
Holds a Boolean; true if the text has a background color.
Definition: includes/nvll_osd_struct.h:129
pydeepstreamdoc::osd::ArrowDoc::descr
constexpr const char * descr
Definition: service-maker/sources/python/src/bindings/docstrings/osddoc.h:124
_NvOSD_LineParams::line_width
unsigned int line_width
Holds the box's border width in pixels.
Definition: includes/nvll_osd_struct.h:199
pydeepstreamdoc::osd::TextDoc::descr
constexpr const char * descr
Definition: service-maker/sources/python/src/bindings/docstrings/osddoc.h:61
_NvOSD_TextParams::y_offset
unsigned int y_offset
Holds the text's vertical offset from the top left pixel of the frame.
Definition: includes/nvll_osd_struct.h:125
pydeepstreamdoc::osd::EventHandlerDoc::descr
constexpr const char * descr
Definition: service-maker/sources/python/src/bindings/docstrings/osddoc.h:152
START_HEAD
@ START_HEAD
Specifies an arrow head only at start = 0.
Definition: includes/nvll_osd_struct.h:61
FontFamily
FontFamily
Definition: service-maker/sources/python/src/bindings/osd.h:22
Font_Max
@ Font_Max
Definition: 9.2/service-maker/sources/python/src/bindings/osd.h:24
_NvOSD_CircleParams::circle_width
unsigned int circle_width
Holds the circle's border width in pixels.
Definition: includes/nvll_osd_struct.h:246
_NvOSD_FontParams::font_color
NvOSD_ColorParams font_color
Holds the font color.
Definition: includes/nvll_osd_struct.h:113
pydeepstreamdoc::osd::FontFamilyDoc::descr
constexpr const char * descr
Definition: service-maker/sources/python/src/bindings/docstrings/osddoc.h:26
_NvOSD_ArrowParams::arrow_head
NvOSD_Arrow_Head_Direction arrow_head
Holds the arrowhead position.
Definition: includes/nvll_osd_struct.h:218
pydeepstreamdoc::osd::FontFamilyDoc::serif
constexpr const char * serif
Definition: service-maker/sources/python/src/bindings/docstrings/osddoc.h:27
_NvOSD_ArrowParams
Holds arrow parameters to be overlaid.
Definition: includes/nvll_osd_struct.h:207
font_table
static const char * font_table[]
Definition: 9.2/service-maker/sources/python/src/bindings/osd.h:40
_NvOSD_ArrowParams::y2
unsigned int y2
Holds the end vertical coordinate in pixels.
Definition: includes/nvll_osd_struct.h:214
pydeepstreamdoc::osd::ArrowHeadDoc::start
constexpr const char * start
Definition: service-maker/sources/python/src/bindings/docstrings/osddoc.h:33
module_osd_bind
void module_osd_bind(py::module &m)
Definition: 9.2/service-maker/sources/python/src/bindings/osd.h:44
_NvOSD_CircleParams::radius
unsigned int radius
Holds the radius of circle in pixels.
Definition: includes/nvll_osd_struct.h:236
_NvOSD_CircleParams::has_bg_color
unsigned int has_bg_color
Definition: includes/nvll_osd_struct.h:241
_NvOSD_FontParams
Holds the font parameters of the text to be overlayed.
Definition: includes/nvll_osd_struct.h:103
pydeepstreamdoc::osd::MaskDoc::descr
constexpr const char * descr
Definition: service-maker/sources/python/src/bindings/docstrings/osddoc.h:102
_NvOSD_LineParams::x2
unsigned int x2
Holds the box's width in pixels.
Definition: includes/nvll_osd_struct.h:195
_NvOSD_ColorParams::blue
double blue
Holds the blue component of color.
Definition: includes/nvll_osd_struct.h:93
_NvOSD_RectParams::rotation_angle
float rotation_angle
Holds the box's rotation angle in degrees in case of OBB.
Definition: includes/nvll_osd_struct.h:171
_NvOSD_TextParams::text_bg_clr
NvOSD_ColorParams text_bg_clr
Holds the text's background color, if specified.
Definition: includes/nvll_osd_struct.h:132
BOTH_HEAD
@ BOTH_HEAD
Specifies arrow heads at both start and end = 2.
Definition: includes/nvll_osd_struct.h:65
Text
Carrier class to handle string transfer.
Definition: service-maker/sources/python/src/bindings/osd.h:28
_NvOSD_RectParams::left
float left
Holds the box's left coordinate in pixels.
Definition: includes/nvll_osd_struct.h:146
_NvOSD_RectParams::border_color
NvOSD_ColorParams border_color
Holds the box's border color.
Definition: includes/nvll_osd_struct.h:158
_NvOSD_RectParams::has_bg_color
unsigned int has_bg_color
Holds a Boolean; true if the box has a background color.
Definition: includes/nvll_osd_struct.h:161
pydeepstreamdoc::osd::FontDoc::descr
constexpr const char * descr
Definition: service-maker/sources/python/src/bindings/docstrings/osddoc.h:40
_NvOSD_TextParams::x_offset
unsigned int x_offset
Holds the text's horizontal offset from the top left pixel of the frame.
Definition: includes/nvll_osd_struct.h:123
_NvOSD_ArrowParams::x1
unsigned int x1
Holds the start horizontal coordinate in pixels.
Definition: includes/nvll_osd_struct.h:208
_NvOSD_TextParams::font_params
NvOSD_FontParams font_params
Holds the font parameters of the text to be overlaid.
Definition: includes/nvll_osd_struct.h:127
pydeepstreamdoc::osd::LineDoc::descr
constexpr const char * descr
Definition: service-maker/sources/python/src/bindings/docstrings/osddoc.h:111
Node
Definition: service-maker/sources/python/src/bindings/node.h:20
END_HEAD
@ END_HEAD
Specifies an arrow head only at end = 1.
Definition: includes/nvll_osd_struct.h:63
_NvOSD_TextParams
Holds parameters of text to be overlayed.
Definition: includes/nvll_osd_struct.h:120
pydeepstreamdoc::osd::ColorDoc::descr
constexpr const char * descr
Definition: service-maker/sources/python/src/bindings/docstrings/osddoc.h:50
_NvOSD_ArrowParams::arrow_color
NvOSD_ColorParams arrow_color
Holds color parameters of the arrow box.
Definition: includes/nvll_osd_struct.h:221
_NvOSD_ColorParams
Holds the color parameters of the box or text to be overlayed.
Definition: includes/nvll_osd_struct.h:86
_NvOSD_RectParams::height
float height
Holds the box's height in pixels.
Definition: includes/nvll_osd_struct.h:154
EventHandler
Tiler event handler wrapper.
Definition: service-maker/sources/python/src/bindings/osd.h:33
_NvOSD_ColorParams::green
double green
Holds the green component of color.
Definition: includes/nvll_osd_struct.h:90
_NvOSD_CircleParams::xc
unsigned int xc
Holds the start horizontal coordinate in pixels.
Definition: includes/nvll_osd_struct.h:232
_NvOSD_CircleParams::circle_color
NvOSD_ColorParams circle_color
Holds the color parameters of the arrow box.
Definition: includes/nvll_osd_struct.h:238
pydeepstreamdoc::utils::EngineFileMonitorDoc::started
constexpr const char * started
Definition: service-maker/sources/python/src/bindings/docstrings/utilsdoc.h:57
_NvOSD_CircleParams::bg_color
NvOSD_ColorParams bg_color
Definition: includes/nvll_osd_struct.h:244
_NvOSD_LineParams::line_color
NvOSD_ColorParams line_color
Holds the box's border color.
Definition: includes/nvll_osd_struct.h:201
pydeepstreamdoc::osd::CircleDoc::descr
constexpr const char * descr
Definition: service-maker/sources/python/src/bindings/docstrings/osddoc.h:138
_NvOSD_RectParams::border_width
unsigned int border_width
Holds the box's border width in pixels.
Definition: includes/nvll_osd_struct.h:156
data
JSAMPIMAGE data
Definition: sources/libs/nvll_batch_jpeg_encode/oss/jpeglib.h:967
Text::text
std::string text
Definition: service-maker/sources/python/src/bindings/osd.h:29
_NvOSD_RectParams::top
float top
Holds the box's top coordinate in pixels.
Definition: includes/nvll_osd_struct.h:149
pydeepstreamdoc::osd::RectDoc::descr
constexpr const char * descr
Definition: service-maker/sources/python/src/bindings/docstrings/osddoc.h:87
EventHandler::EventHandler
EventHandler(Node &tiler, Node &osd, Node &renderer)
Definition: 9.2/service-maker/sources/python/src/bindings/osd.h:35
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
_NvOSD_ColorParams::alpha
double alpha
Holds the alpha component of color.
Definition: includes/nvll_osd_struct.h:96
_NvOSD_LineParams::y2
unsigned int y2
Holds the box's height in pixels.
Definition: includes/nvll_osd_struct.h:197