plugin  0.1.0
Functions
args_helper.hpp File Reference

a header file with common samples functionality More...

#include <map>
#include <set>
#include <string>
#include <vector>
#include <opencv2/core/types.hpp>
#include <openvino/openvino.hpp>
Include dependency graph for args_helper.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void readInputFilesArguments (std::vector< std::string > &files, const std::string &arg)
 This function checks input args and existence of specified files in a given folder. More...
 
void parseInputFilesArguments (std::vector< std::string > &files)
 This function finds -i/–i key in input args It's necessary to process multiple values for single key. More...
 
std::vector< std::string > split (const std::string &s, char delim)
 
void split (const std::string &s, char delim, std::vector< float > &out)
 
std::string merge (std::initializer_list< std::string > list, const char *delim)
 
std::string merge (const std::vector< std::string > &list, const char *delim)
 
std::vector< std::string > parseDevices (const std::string &device_string)
 
std::map< std::string, int32_t > parseValuePerDevice (const std::set< std::string > &devices, const std::string &values_string)
 
cv::Size stringToSize (const std::string &str)
 
std::map< std::string, ov::Layout > parseLayoutString (const std::string &layout_string)
 

Detailed Description

a header file with common samples functionality

Function Documentation

◆ parseInputFilesArguments()

void parseInputFilesArguments ( std::vector< std::string > &  files)

This function finds -i/–i key in input args It's necessary to process multiple values for single key.

Returns
files updated vector of verified input files

◆ readInputFilesArguments()

void readInputFilesArguments ( std::vector< std::string > &  files,
const std::string &  arg 
)

This function checks input args and existence of specified files in a given folder.

Parameters
argpath to a file to be checked for existence
Returns
files updated vector of verified input files