-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathmain.cpp
41 lines (30 loc) · 976 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#include <iostream>
#include <opencv2/opencv.hpp>
#include <cxxopts.hpp>
#include <utils.h>
#include <ct_trt_config.h>
int main(int argc, char* argv[]) {
cv::Mat test;
std::cout << "This is a test" << std::endl;
//cxxopts test
cxxopts::Options options("MyProgram", "One line description of MyProgram");
options.add_options()
("f,file", "File name", cxxopts::value<std::string>())
("n,number", "numbers", cxxopts::value<int>())
;
auto result = options.parse(argc, argv);
if (result.count("file")){
std::cout << "OK ! " << std::endl;
}
std::cout << result["file"].as<std::string>() << std::endl;
std::cout << result["number"].as<int>() << std::endl;
//cxxopts test end
cv::RNG rng(244);
std::vector<cv::Scalar> color;
for (int i=0; i < cttrt::classNum; i++)
{
color.push_back(randomColor(rng));
}
std::cout << "hello" << std::endl;
return 0;
}