cv::dnn::BackendWrapper Class ReferenceabstractDeep Neural Network module
Примеры с cv2.imshow требуют сборки OpenCV с GUI. В ноутбуке с headless-версией используйте вывод изображений через Matplotlib.
cv::dnn::BackendWrapper Class Referenceabstract
| BackendWrapper (const Ptr< BackendWrapper > &base, const MatShape &shape) |
| Make wrapper for reused cv::Mat. |
| BackendWrapper (int backendId, int targetId) |
| BackendWrapper (int targetId, const cv::Mat &m) |
| Wrap cv::Mat for specific backend and target. |
| virtual | ~BackendWrapper () |
| Virtual destructor to make polymorphism. |
| virtual void | copyToHost ()=0 |
| Transfer data to CPU host memory. |
| virtual void | setHostDirty ()=0 |
| Indicate that an actual data is on CPU. |
Derivatives of this class wraps cv::Mat for different backends and targets.
| cv::dnn::BackendWrapper::BackendWrapper | ( | int | backendId, |
| int | targetId ) |
| cv::dnn::BackendWrapper::BackendWrapper | ( | const Ptr< BackendWrapper > & | base, |
| const MatShape & | shape ) |
Make wrapper for reused cv::Mat.
| [in] | base | Wrapper of cv::Mat that will be reused. |
| [in] | shape | Specific shape. |
Initialize wrapper from another one. It'll wrap the same host CPU memory and mustn't allocate memory on device(i.e. GPU). It might has different shape. Use in case of CPU memory reusing for reuse associated memory on device too.
| virtual |
Virtual destructor to make polymorphism.
| pure virtual |
Transfer data to CPU host memory.
| pure virtual |
Indicate that an actual data is on CPU.
| int cv::dnn::BackendWrapper::backendId |
Backend identifier.
| int cv::dnn::BackendWrapper::targetId |
Target identifier.