mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-05 23:26:58 +08:00
Fixed tagplates to use country for aspect_ratio value
This commit is contained in:
@@ -45,6 +45,7 @@ TARGET_LINK_LIBRARIES(openalpr-utils-binarizefontsheet
|
||||
|
||||
ADD_EXECUTABLE( openalpr-utils-tagplates tagplates.cpp )
|
||||
TARGET_LINK_LIBRARIES(openalpr-utils-tagplates
|
||||
openalpr
|
||||
support
|
||||
${OpenCV_LIBS}
|
||||
)
|
||||
|
@@ -28,6 +28,7 @@
|
||||
#include <ctype.h>
|
||||
|
||||
#include "support/filesystem.h"
|
||||
#include "config.h"
|
||||
|
||||
|
||||
|
||||
@@ -65,7 +66,7 @@ static int xPos1 = 0;
|
||||
static int yPos1 = 0;
|
||||
static int xPos2 = 0;
|
||||
static int yPos2 = 0;
|
||||
const float ASPECT_RATIO = 1.404;
|
||||
float ASPECT_RATIO = 1.404;
|
||||
|
||||
static bool rdragging = false;
|
||||
static int rDragStartX = 0;
|
||||
@@ -157,6 +158,9 @@ int main( int argc, const char** argv )
|
||||
return 0;
|
||||
}
|
||||
|
||||
Config config(country);
|
||||
ASPECT_RATIO = config.plateWidthMM / config.plateHeightMM;
|
||||
|
||||
vector<string> files = getFilesInDir(inDir.c_str());
|
||||
|
||||
vector<string> imgFiles;
|
||||
|
Reference in New Issue
Block a user