Commit 56a27c918ab93b3ec270fc6f7e4be1667c1a9b1b

Authored by Austin Blanton
1 parent 37f46fbf

Remove ground truth from detections so evalDetection doesn't get confused

openbr/plugins/slidingwindow.cpp
@@ -110,6 +110,7 @@ protected: @@ -110,6 +110,7 @@ protected:
110 if (conf > threshold) { 110 if (conf > threshold) {
111 detect.file.set("Detection", QRectF(x*scale, y*scale, windowWidth*scale, windowHeight*scale)); 111 detect.file.set("Detection", QRectF(x*scale, y*scale, windowWidth*scale, windowHeight*scale));
112 detect.file.set("Confidence", conf); 112 detect.file.set("Confidence", conf);
  113 + detect.file.clearRects();
113 dst.append(detect); 114 dst.append(detect);
114 if (takeFirst) 115 if (takeFirst)
115 return; 116 return;