24 lines
467 B
C++
24 lines
467 B
C++
#include <iostream>
|
|
#include <opencv2/core.hpp>
|
|
|
|
using namespace std;
|
|
using namespace cv;
|
|
|
|
int main(int argc, char** argv)
|
|
{
|
|
string input;
|
|
|
|
if (argc == 2) {
|
|
input = argv[1];
|
|
} else if (argc < 2) {
|
|
cerr << "Please provide one image" << endl;
|
|
return -1;
|
|
} else if (argc > 2) {
|
|
cerr << "Please provide only one image" << endl;
|
|
return -2;
|
|
}
|
|
|
|
cout << "Using image " << input << endl;
|
|
|
|
return 0;
|
|
} |