mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Fixed yolo_console_dll.cpp
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user