| 93 | } // namespace |
| 94 | |
| 95 | void 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 | |
| 119 | void ExportOSD(py::module &m) |
| 120 | { |
no test coverage detected