new tracking system

This commit is contained in:
2018-05-08 03:44:28 -05:00
parent b595e557be
commit 4f98c2187a
9 changed files with 187 additions and 32 deletions

View File

@@ -16,7 +16,7 @@ void ContourAnalyzer::analyze() {
} else if (*lastKey == 118) {
drawContours = !drawContours;
}
minSize = ((ui->originalFrame()->cols)*(ui->originalFrame()->rows))*(minSizeScale/(float)10000);
minSize = ui->getWidth()*ui->getHeight()*(minSizeScale/(float)10000);
if (cannyRec) {
cannyUpper = std::min(3*cannyLower, 255);
@@ -64,7 +64,7 @@ void ContourAnalyzer::analyze() {
}
if (drawContours) {
drawContoursOntoMat(*(ui->originalFrame()));
drawContoursOntoMat(*(ui->drawnFrame()));
}
}