// Copyright (C) 2018-2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // /** * @brief a header file with common samples functionality * @file args_helper.hpp */ #pragma once #include #include #include #include #include #include /** * @brief This function checks input args and existence of specified files in a given folder * @param arg path to a file to be checked for existence * @return files updated vector of verified input files */ void readInputFilesArguments(std::vector& files, const std::string& arg); /** * @brief This function finds -i/--i key in input args * It's necessary to process multiple values for single key * @return files updated vector of verified input files */ void parseInputFilesArguments(std::vector& files); std::vector split(const std::string& s, char delim); std::vector parseDevices(const std::string& device_string); std::map parseValuePerDevice(const std::set& devices, const std::string& values_string); cv::Size stringToSize(const std::string& str); std::map parseLayoutString(const std::string& layout_string);