| 55 | } // namespace |
| 56 | |
| 57 | void ExportOpOSD(py::module &m) |
| 58 | { |
| 59 | using namespace pybind11::literals; |
| 60 | |
| 61 | m.def("osd", &OSD, "src"_a, "elements"_a, py::kw_only(), "stream"_a = nullptr, R"pbdoc( |
| 62 | |
| 63 | Executes the OSD operation on the given cuda stream. |
| 64 | |
| 65 | See also: |
| 66 | Refer to the CV-CUDA C API reference for the OSD operator |
| 67 | for more details and usage examples. |
| 68 | |
| 69 | Args: |
| 70 | src (cvcuda.Tensor): Input tensor containing one or more images. |
| 71 | elements (cvcuda.Elements): OSD elements in reference to the input tensor. |
| 72 | stream (cvcuda.Stream, optional): CUDA Stream on which to perform the operation. |
| 73 | |
| 74 | Returns: |
| 75 | cvcuda.Tensor: The output tensor. |
| 76 | |
| 77 | Caution: |
| 78 | Restrictions to several arguments may apply. Check the C |
| 79 | API references of the CV-CUDA operator. |
| 80 | )pbdoc"); |
| 81 | |
| 82 | m.def("osd_into", &OSDInto, "dst"_a, "src"_a, "elements"_a, py::kw_only(), "stream"_a = nullptr, R"pbdoc( |
| 83 | |
| 84 | Executes the OSD operation on the given cuda stream. |
| 85 | |
| 86 | See also: |
| 87 | Refer to the CV-CUDA C API reference for the OSD operator |
| 88 | for more details and usage examples. |
| 89 | |
| 90 | Args: |
| 91 | dst (cvcuda.Tensor): Output tensor to store the result of the operation. |
| 92 | src (cvcuda.Tensor): Input tensor containing one or more images. |
| 93 | elements (cvcuda.Elements): OSD elements in reference to the input tensor. |
| 94 | stream (cvcuda.Stream, optional): CUDA Stream on which to perform the operation. |
| 95 | |
| 96 | Returns: |
| 97 | None |
| 98 | |
| 99 | Caution: |
| 100 | Restrictions to several arguments may apply. Check the C |
| 101 | API references of the CV-CUDA operator. |
| 102 | )pbdoc"); |
| 103 | } |
| 104 | |
| 105 | } // namespace cvcudapy |