plugin  0.1.0
Classes | Typedefs | Functions
ocv_common.hpp File Reference

a header file with common samples functionality using OpenCV More...

#include <opencv2/opencv.hpp>
#include <openvino/openvino.hpp>
#include "utils/common.hpp"
#include "utils/shared_tensor_allocator.hpp"
Include dependency graph for ocv_common.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  IntervalCondition
 
class  OutputTransform
 
class  InputTransform
 
class  LazyVideoWriter
 

Typedefs

using LayoutCondition = std::tuple< size_t, IntervalCondition, std::string >
 

Functions

template<typename T >
const T getMatValue (const cv::Mat &mat, size_t h, size_t w, size_t c)
 Get cv::Mat value in the correct format.
 
template<template< class > class Cond, class ... Args>
IntervalCondition makeCond (Args &&...args)
 
void putHighlightedText (const cv::Mat &frame, const std::string &message, cv::Point position, int fontFace, double fontScale, cv::Scalar color, int thickness)
 Puts text message on the frame, highlights the text with a white border to make it distinguishable from the background. More...
 

Detailed Description

a header file with common samples functionality using OpenCV

Function Documentation

◆ putHighlightedText()

void putHighlightedText ( const cv::Mat &  frame,
const std::string &  message,
cv::Point  position,
int  fontFace,
double  fontScale,
cv::Scalar  color,
int  thickness 
)
inline

Puts text message on the frame, highlights the text with a white border to make it distinguishable from the background.

Parameters
frame- frame to put the text on.
message- text of the message.
position- bottom-left corner of the text string in the image.
fontFace- font type.
fontScale- font scale factor that is multiplied by the font-specific base size.
color- text color.
thickness- thickness of the lines used to draw a text.