#include <dirent.h>
#include <android/log.h>
#include <cctype>
-#include <string>
#include <vector>
#include <algorithm>
#include <opencv2/core/version.hpp>
---------------
Returns the algorithm name
-.. ocv:function:: string Algorithm::name() const
+.. ocv:function:: String Algorithm::name() const
Algorithm::get
--------------
Returns the algorithm parameter
-.. ocv:function:: template<typename _Tp> typename ParamType<_Tp>::member_type Algorithm::get(const string& name) const
+.. ocv:function:: template<typename _Tp> typename ParamType<_Tp>::member_type Algorithm::get(const String& name) const
:param name: The parameter name.
* myalgo.get<int>("param_name")
* myalgo.get<double>("param_name")
* myalgo.get<bool>("param_name")
- * myalgo.get<string>("param_name")
+ * myalgo.get<String>("param_name")
* myalgo.get<Mat>("param_name")
* myalgo.get<vector<Mat> >("param_name")
* myalgo.get<Algorithm>("param_name") (it returns Ptr<Algorithm>).
------------------
Returns the list of registered algorithms
-.. ocv:function:: void Algorithm::getList(vector<string>& algorithms)
+.. ocv:function:: void Algorithm::getList(vector<String>& algorithms)
:param algorithms: The output vector of algorithm names.
This static method returns the list of registered algorithms in alphabetical order. Here is how to use it ::
- vector<string> algorithms;
+ vector<String> algorithms;
Algorithm::getList(algorithms);
cout << "Algorithms: " << algorithms.size() << endl;
for (size_t i=0; i < algorithms.size(); i++)
use_time_stamp = parser.has("timestamp");
- cv::String img1 = parser.get<string>(0);
- cv::String img2 = parser.get<string>(1);
+ cv::String img1 = parser.get<cv::String>(0);
+ cv::String img2 = parser.get<cv::String>(1);
int repeat = parser.get<int>(2);
#include <complex>
#include <map>
#include <new>
-#include <string>
#include <vector>
#include <sstream>
#endif // SKIP_INCLUDES
-#include <string>
#include <sstream>
#include "cvconfig.h"
#include "opencv2/core.hpp"
#define OPENCV_FLANN_BASE_HPP_
#include <vector>
-#include <string>
#include <cassert>
#include <cstdio>
#define OPENCV_FLANN_HIERARCHICAL_CLUSTERING_INDEX_H_
#include <algorithm>
-#include <string>
#include <map>
#include <cassert>
#include <limits>
#define OPENCV_FLANN_KMEANS_INDEX_H_
#include <algorithm>
-#include <string>
#include <map>
#include <cassert>
#include <limits>
#ifndef OPENCV_FLANN_NNINDEX_H
#define OPENCV_FLANN_NNINDEX_H
-#include <string>
-
#include "general.h"
#include "matrix.h"
#include "result_set.h"
#ifndef _ncvhaarobjectdetection_hpp_
#define _ncvhaarobjectdetection_hpp_
-#include <string>
#include "NCV.hpp"
#include <iostream>
-#include <string>
#include <vector>
#include "NCV.hpp"
#include <deque>
#include <stdexcept>
#include <memory>
-#include <string>
#include "opencv2/gpu.hpp"
#include "opencv2/imgproc.hpp"
# include <unistd.h>
#endif
-#include <string>
//#include <arpa/inet.h>
#define MAX_CAMERAS 10
#ifdef __cplusplus
#include <map>
-#include <string>
#include <iostream>
// Apple defines a check() macro somewhere in the debug headers
.. ocv:function:: LatentSvmDetector::LatentSvmDetector()
-.. ocv:function:: LatentSvmDetector::LatentSvmDetector(const vector<string>& filenames, const vector<string>& classNames=vector<string>())
+.. ocv:function:: LatentSvmDetector::LatentSvmDetector(const vector<String>& filenames, const vector<String>& classNames=vector<String>())
-----------------------
Load the trained models from given ``.xml`` files and return ``true`` if at least one model was loaded.
-.. ocv:function:: bool LatentSvmDetector::load( const vector<string>& filenames, const vector<string>& classNames=vector<string>() )
+.. ocv:function:: bool LatentSvmDetector::load( const vector<String>& filenames, const vector<String>& classNames=vector<String>() )
:param filenames: A set of filenames storing the trained detectors (models). Each file contains one model. See examples of such files here /opencv_extra/testdata/cv/latentsvmdetector/models_VOC2007/.
--------------------------------
Return the class (model) names that were passed in constructor or method ``load`` or extracted from models filenames in those methods.
-.. ocv:function:: const vector<string>& LatentSvmDetector::getClassNames() const
+.. ocv:function:: const vector<String>& LatentSvmDetector::getClassNames() const
LatentSvmDetector::getClassCount
--------------------------------
#include "cascadedetect.hpp"
-#include <string>
-
#if defined (LOG_CASCADE_STATISTIC)
struct Logger
{
#include "precomp.hpp"
#include <stdio.h>
-#include <string>
using namespace cv;
using namespace cv::ocl;
#include "precomp.hpp"
#include <queue>
-#include <string>
using cv::InputArray;
using cv::OutputArray;
#ifndef HAVE_OPENCV_HIGHGUI
-Ptr<FrameSource> cv::superres::createFrameSource_Video(const string& fileName)
+Ptr<FrameSource> cv::superres::createFrameSource_Video(const String& fileName)
{
(void) fileName;
CV_Error(CV_StsNotImplemented, "The called functionality is disabled for current build or platform");
#ifndef HAVE_OPENCV_GPU
-Ptr<FrameSource> cv::superres::createFrameSource_Video_GPU(const string& fileName)
+Ptr<FrameSource> cv::superres::createFrameSource_Video_GPU(const String& fileName)
{
(void) fileName;
CV_Error(CV_StsNotImplemented, "The called functionality is disabled for current build or platform");
#define __OPENCV_VIDEOSTAB_FRAME_SOURCE_HPP__
#include <vector>
-#include <string>
#include "opencv2/core.hpp"
namespace cv
#define __OPENCV_VIDEOSTAB_GLOBAL_MOTION_HPP__
#include <vector>
-#include <string>
#include <fstream>
#include "opencv2/core.hpp"
#include "opencv2/features2d.hpp"