Ocv Common#
a header file with common samples functionality using OpenCV
Typedefs
-
using LayoutCondition = std::tuple<size_t, IntervalCondition, std::string>#
Functions
-
static inline ov::Tensor wrapMat2Tensor(const cv::Mat &mat)#
-
template<template<class> class Cond, class ...Args>
IntervalCondition makeCond(Args&&... args)#
-
static inline std::tuple<bool, ov::Layout> makeGuesLayoutFrom4DShape(const ov::PartialShape &shape)#
-
static inline ov::Layout getLayoutFromShape(const ov::PartialShape &shape)#
-
static cv::Scalar string2Scalar(const std::string &string)#
-
static inline cv::Mat wrap_saliency_map_tensor_to_mat(ov::Tensor &t, size_t shape_shift, size_t class_idx)#
-
struct IntervalCondition#
-
Public Functions
Private Members
-
ConditionChecker impl#
-
ConditionChecker impl#
-
class InputTransform#
Public Functions
-
inline InputTransform()#
-
inline InputTransform(bool reverseInputChannels, const std::string &meanValues, const std::string &scaleValues)#
-
inline void setPrecision(ov::preprocess::PrePostProcessor &ppp, const std::string &tensorName)#
-
inline cv::Mat operator()(const cv::Mat &inputs)#
-
inline InputTransform()#