Commit 56a27c918ab93b3ec270fc6f7e4be1667c1a9b1b
1 parent
37f46fbf
Remove ground truth from detections so evalDetection doesn't get confused
Showing
1 changed file
with
1 additions
and
0 deletions
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; |