MCPcopy Create free account
hub / github.com/chips96/DEYOLO / loadClassesFromFile

Method loadClassesFromFile

examples/YOLOv8-CPP-Inference/inference.cpp:148–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148void Inference::loadClassesFromFile()
149{
150 std::ifstream inputFile(classesPath);
151 if (inputFile.is_open())
152 {
153 std::string classLine;
154 while (std::getline(inputFile, classLine))
155 classes.push_back(classLine);
156 inputFile.close();
157 }
158}
159
160void Inference::loadOnnxNetwork()
161{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected