MCPcopy Create free account
hub / github.com/CVCUDA/CV-CUDA / ExportBoxBlur

Function ExportBoxBlur

python/mod_cvcuda/OsdElement.cpp:95–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93} // namespace
94
95void ExportBoxBlur(py::module &m)
96{
97 using namespace py::literals;
98 using namespace cvcuda::priv;
99
100 py::class_<NVCVBlurBoxI>(m, "BlurBoxI", "BlurBoxI")
101 .def(py::init(
102 [](py::tuple box, int kernelSize)
103 {
104 NVCVBlurBoxI blurbox;
105 blurbox.box = pytobox(box);
106 blurbox.kernelSize = kernelSize;
107 return blurbox;
108 }),
109 "box"_a, "kernelSize"_a)
110 .def_readonly("box", &NVCVBlurBoxI::box, "Tuple describing a box: x-coordinate, y-coordinate, width, height.")
111 .def_readonly("kernelSize", &NVCVBlurBoxI::kernelSize, "Kernel sizes of mean filter.");
112
113 py::class_<NVCVBlurBoxesImpl, std::shared_ptr<NVCVBlurBoxesImpl>>(m, "BlurBoxesI")
114 .def(py::init([](const std::vector<std::vector<NVCVBlurBoxI>> &blurboxes_vec)
115 { return std::make_shared<NVCVBlurBoxesImpl>(blurboxes_vec); }),
116 "boxes"_a);
117}
118
119void ExportOSD(py::module &m)
120{

Callers 1

PYBIND11_MODULEFunction · 0.85

Calls 1

pytoboxFunction · 0.85

Tested by

no test coverage detected