Commit 0f9ce2b18b3b8a8594b0703a03e041b64eb2df04

Authored by Scott Klum
1 parent 25a94bf1

Properly ignoring when key is rect

Showing 1 changed file with 1 additions and 1 deletions
openbr/core/evalutils.cpp
... ... @@ -60,7 +60,7 @@ QList<Detection> EvalUtils::getDetections(const DetectionKey &key, const File &f
60 60 dets.append(Detection(rects[i], filePath, confidences[i]));
61 61 }
62 62 } else if (key.type == DetectionKey::Rect) {
63   - dets.append(Detection(f.get<QRectF>(key), filePath, isTruth ? -1 : f.get<float>("Confidence", -1)));
  63 + dets.append(Detection(f.get<QRectF>(key), filePath, isTruth ? -1 : f.get<float>("Confidence", -1), f.get<bool>("Ignore", false), f.get<QString>("Pose", "Frontal")));
64 64 } else if (key.type == DetectionKey::XYWidthHeight) {
65 65 const QRectF rect(f.get<float>(key+"_X"), f.get<float>(key+"_Y"), f.get<float>(key+"_Width"), f.get<float>(key+"_Height"));
66 66 dets.append(Detection(rect, filePath, isTruth ? -1 : f.get<float>("Confidence", -1), f.get<bool>("Ignore", false), f.get<QString>("Pose", "Frontal")));
... ...