Loading README.md +1 −1 Original line number Original line Diff line number Diff line Loading @@ -8,4 +8,4 @@ From **Eclipse (2019-12)**: * File > Open Projects from File System... * File > Open Projects from File System... * Directory... > navigate to project's root > Finish * Directory... > navigate to project's root > Finish Tried a few times - indexer wouldn't work sometimes. Tried importing a few times - indexer does not work sometimes. inference_base.cpp +3 −1 Original line number Original line Diff line number Diff line Loading @@ -49,6 +49,7 @@ int InferenceBase::Init(string videoStream) return -1; return -1; } } /* if (ReadGraph() != 0) if (ReadGraph() != 0) { { LOG(ERROR) << "Could not load inference graph"; LOG(ERROR) << "Could not load inference graph"; Loading @@ -68,6 +69,7 @@ int InferenceBase::Init(string videoStream) auto formatStruct = d_reader->format(); auto formatStruct = d_reader->format(); width = formatStruct.width; width = formatStruct.width; height = formatStruct.height; height = formatStruct.height; */ isInitialized = true; isInitialized = true; return 0; return 0; Loading main.cpp +9 −6 Original line number Original line Diff line number Diff line Loading @@ -21,12 +21,10 @@ int main(int argc, char *argv[]) return -1; return -1; } } cout << "Hello world!\n"; const String keys = const String keys = "{d display |1 | view video while objects are detected}" "{d display |1 | view video while objects are detected}" //"{t tensorrt|false | use tensorrt}" //"{t tensorrt|false | use tensorrt}" "{i int8|false| use INT8 (requires callibration)}" //"{i int8|false| use INT8 (requires callibration)}" "{v video | | video for detection}" "{v video | | video for detection}" "{graph ||frozen graph location}" "{graph ||frozen graph location}" "{labels ||trained labels filelocation}"; "{labels ||trained labels filelocation}"; Loading @@ -38,7 +36,7 @@ int main(int argc, char *argv[]) int showWindow = parser.get<int>("d"); int showWindow = parser.get<int>("d"); String video_file = parser.get<String>("v"); String video_file = parser.get<String>("v"); //bool is_tensor_rt = parser.get<bool>("t"); //bool is_tensor_rt = parser.get<bool>("t"); bool is_int8 = parser.get<bool>("i"); //bool is_int8 = parser.get<bool>("i"); String LABELS = parser.get<String>("labels"); String LABELS = parser.get<String>("labels"); String GRAPH = parser.get<String>("graph"); String GRAPH = parser.get<String>("graph"); Loading @@ -46,8 +44,13 @@ int main(int argc, char *argv[]) infer->set_debug(showWindow); infer->set_debug(showWindow); cout << "Init()\n"; infer->Init(video_file); infer->Init(video_file); infer->RunInferenceOnStream(); // never reached? cout << "EXIT 0\n"; //infer->RunInferenceOnStream(); return 0; return 0; } } Loading
README.md +1 −1 Original line number Original line Diff line number Diff line Loading @@ -8,4 +8,4 @@ From **Eclipse (2019-12)**: * File > Open Projects from File System... * File > Open Projects from File System... * Directory... > navigate to project's root > Finish * Directory... > navigate to project's root > Finish Tried a few times - indexer wouldn't work sometimes. Tried importing a few times - indexer does not work sometimes.
inference_base.cpp +3 −1 Original line number Original line Diff line number Diff line Loading @@ -49,6 +49,7 @@ int InferenceBase::Init(string videoStream) return -1; return -1; } } /* if (ReadGraph() != 0) if (ReadGraph() != 0) { { LOG(ERROR) << "Could not load inference graph"; LOG(ERROR) << "Could not load inference graph"; Loading @@ -68,6 +69,7 @@ int InferenceBase::Init(string videoStream) auto formatStruct = d_reader->format(); auto formatStruct = d_reader->format(); width = formatStruct.width; width = formatStruct.width; height = formatStruct.height; height = formatStruct.height; */ isInitialized = true; isInitialized = true; return 0; return 0; Loading
main.cpp +9 −6 Original line number Original line Diff line number Diff line Loading @@ -21,12 +21,10 @@ int main(int argc, char *argv[]) return -1; return -1; } } cout << "Hello world!\n"; const String keys = const String keys = "{d display |1 | view video while objects are detected}" "{d display |1 | view video while objects are detected}" //"{t tensorrt|false | use tensorrt}" //"{t tensorrt|false | use tensorrt}" "{i int8|false| use INT8 (requires callibration)}" //"{i int8|false| use INT8 (requires callibration)}" "{v video | | video for detection}" "{v video | | video for detection}" "{graph ||frozen graph location}" "{graph ||frozen graph location}" "{labels ||trained labels filelocation}"; "{labels ||trained labels filelocation}"; Loading @@ -38,7 +36,7 @@ int main(int argc, char *argv[]) int showWindow = parser.get<int>("d"); int showWindow = parser.get<int>("d"); String video_file = parser.get<String>("v"); String video_file = parser.get<String>("v"); //bool is_tensor_rt = parser.get<bool>("t"); //bool is_tensor_rt = parser.get<bool>("t"); bool is_int8 = parser.get<bool>("i"); //bool is_int8 = parser.get<bool>("i"); String LABELS = parser.get<String>("labels"); String LABELS = parser.get<String>("labels"); String GRAPH = parser.get<String>("graph"); String GRAPH = parser.get<String>("graph"); Loading @@ -46,8 +44,13 @@ int main(int argc, char *argv[]) infer->set_debug(showWindow); infer->set_debug(showWindow); cout << "Init()\n"; infer->Init(video_file); infer->Init(video_file); infer->RunInferenceOnStream(); // never reached? cout << "EXIT 0\n"; //infer->RunInferenceOnStream(); return 0; return 0; } }