Fixed yolo_console_dll.cpp

This commit is contained in:
AlexeyAB
2017-09-13 13:47:19 +03:00
parent 8fa9f44211
commit fe6e694e17
3 changed files with 302 additions and 1 deletions

View File

@ -70,7 +70,7 @@ std::vector<std::string> objects_names_from_file(std::string const filename) {
std::ifstream file(filename);
std::vector<std::string> file_lines;
if (!file.is_open()) return file_lines;
for(std::string line; file >> line;) file_lines.push_back(line);
for(std::string line; getline(file, line);) file_lines.push_back(line);
std::cout << "object names loaded \n";
return file_lines;
}