This commit is contained in:
Ivan
2022-06-09 16:13:32 +03:00
parent 24e2a91778
commit 6fc9ff1ae3
175 changed files with 29765 additions and 8329 deletions

View File

@@ -330,8 +330,8 @@ int main (int argc, char *argv[]) {
context = g_option_context_new("- test tree model performance");
g_option_context_add_main_entries(context, entries, "bla");
g_option_context_parse(context, &argc - 1, &argv_gst, &error);
g_option_context_parse(context, &argc, &argv, &error);
g_option_context_parse(context, &argc_gst, &argv_gst, &error);
// g_option_context_parse(context, &argc, &argv, &error);
if (!ndi_name) {
@@ -434,7 +434,7 @@ int main (int argc, char *argv[]) {
}
#ifdef MY_GST_USE_OPENCV
// auto lambda_1 = [] (char** argv) {
auto lambda_1 = [] (char** argv) {
std::cout << "The path to settings: " << argv[2] << std::endl;
std::cout << "The path to vocabulary: " << argv[1] << std::endl;
ORB_SLAM3::System SLAM(argv[1], argv[2], ORB_SLAM3::System::STEREO, false);
@@ -517,9 +517,9 @@ int main (int argc, char *argv[]) {
// delete [] buffer;
}
}
// };
};
// std::thread t1(lambda_1, argv);
std::thread t1(lambda_1, argv);
bool is_terminated = false;
@@ -527,7 +527,7 @@ int main (int argc, char *argv[]) {
// g_main_iteration(false);
g_main_context_iteration(NULL, false);
}
// t1.join();
t1.join();
#else
bool is_terminated = false;
while (!is_terminated) {