new tracking system
This commit is contained in:
@@ -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()));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user