OpenCV
4.2.0
Open Source Computer Vision
|
Namespaces | |
detail | |
Classes | |
class | Params |
struct | PortCfg |
Enumerations | |
enum | TraitAs : int { TraitAs::TENSOR, TraitAs::IMAGE } |
Functions | |
cv::gapi::GBackend | backend () |
|
strong |
Specify how G-API and IE should trait input data
In OpenCV, the same cv::Mat is used to represent both image and tensor data. Sometimes those are hardly distinguishable, so this extra parameter is used to give G-API a hint.
This hint controls how G-API reinterprets the data when converting it to IE Blob format (and which layout/etc is assigned to this data).
Enumerator | |
---|---|
TENSOR | G-API traits an associated cv::Mat as a raw tensor and passes dimensions as-is. |
IMAGE | G-API traits an associated cv::Mat as an image so creates an "image" blob (NCHW/NHWC, etc) |
cv::gapi::GBackend cv::gapi::ie::backend | ( | ) |