mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 06:46:53 +08:00
Using debugDetector config option in detectors
This commit is contained in:
@@ -80,7 +80,7 @@ namespace alpr
|
||||
// The frame is too wide
|
||||
this->scale_factor = ((float) config->maxDetectionInputWidth) / ((float) frame.cols);
|
||||
|
||||
if (config->debugGeneral)
|
||||
if (config->debugDetector)
|
||||
std::cout << "Input detection image is too wide. Resizing with scale: " << this->scale_factor << endl;
|
||||
}
|
||||
else if (frame.rows > config->maxDetectionInputHeight)
|
||||
@@ -88,7 +88,7 @@ namespace alpr
|
||||
// The frame is too tall
|
||||
this->scale_factor = ((float) config->maxDetectionInputHeight) / ((float) frame.rows);
|
||||
|
||||
if (config->debugGeneral)
|
||||
if (config->debugDetector)
|
||||
std::cout << "Input detection image is too tall. Resizing with scale: " << this->scale_factor << endl;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user