Commit cfd0326c06f3eae6b9a2af97bfa92d6c1bef20dc
1 parent
8b3c745f
Working with non-thresholded VJ
Showing
2 changed files
with
3 additions
and
1 deletions
openbr/plugins/cascade.cpp
| ... | ... | @@ -99,6 +99,8 @@ class CascadeTransform : public UntrainableMetaTransform |
| 99 | 99 | Template u(t.file, m); |
| 100 | 100 | if (rejectLevels.size() > j) |
| 101 | 101 | u.file.set("Confidence", rejectLevels[j]*levelWeights[j]); |
| 102 | + else | |
| 103 | + u.file.set("Confidence", 1); | |
| 102 | 104 | const QRectF rect = OpenCVUtils::fromRect(rects[j]); |
| 103 | 105 | u.file.appendRect(rect); |
| 104 | 106 | u.file.set(model, rect); | ... | ... |