|
|
|
@ -27,11 +27,19 @@ bool AlgJd::init(QString model_path, QString model_name)
|
|
|
|
|
image_path = model_path + "/" + "alg_jd.jpg";
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
#ifdef __DEBUGPATH
|
|
|
|
|
modelWeights = "../model/jd.weights";
|
|
|
|
|
classesFile = "../model/jd.names";
|
|
|
|
|
// Give the configuration and weight files for the model
|
|
|
|
|
modelConfiguration = "../model/jd.cfg";
|
|
|
|
|
image_path = "alg_jd.jpg";
|
|
|
|
|
#else
|
|
|
|
|
modelWeights = "D:/model/jd.weights";
|
|
|
|
|
classesFile = "D:/model/jd.names";
|
|
|
|
|
// Give the configuration and weight files for the model
|
|
|
|
|
modelConfiguration = "D:/model/jd.cfg";
|
|
|
|
|
image_path = "D:/model/alg_jd.jpg";
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
std::ifstream classNamesFile(classesFile.c_str());
|
|
|
|
|