OpenCV  4.4.0
Open Source Computer Vision
Namespaces | Classes | Enumerations | Functions
cv::gapi::ie Namespace Reference

Namespaces

 detail
 

Classes

class  Params
 
struct  PortCfg
 

Enumerations

enum  TraitAs : int {
  TraitAs::TENSOR,
  TraitAs::IMAGE
}
 

Functions

cv::gapi::GBackend backend ()
 

Enumeration Type Documentation

◆ TraitAs

enum cv::gapi::ie::TraitAs : int
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)

Function Documentation

◆ backend()

cv::gapi::GBackend cv::gapi::ie::backend ( )