mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 02:16:49 +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 )
|
ADD_EXECUTABLE( openalpr-utils-tagplates tagplates.cpp )
|
||||||
TARGET_LINK_LIBRARIES(openalpr-utils-tagplates
|
TARGET_LINK_LIBRARIES(openalpr-utils-tagplates
|
||||||
|
openalpr
|
||||||
support
|
support
|
||||||
${OpenCV_LIBS}
|
${OpenCV_LIBS}
|
||||||
)
|
)
|
||||||
|
@@ -28,6 +28,7 @@
|
|||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
#include "support/filesystem.h"
|
#include "support/filesystem.h"
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -65,7 +66,7 @@ static int xPos1 = 0;
|
|||||||
static int yPos1 = 0;
|
static int yPos1 = 0;
|
||||||
static int xPos2 = 0;
|
static int xPos2 = 0;
|
||||||
static int yPos2 = 0;
|
static int yPos2 = 0;
|
||||||
const float ASPECT_RATIO = 1.404;
|
float ASPECT_RATIO = 1.404;
|
||||||
|
|
||||||
static bool rdragging = false;
|
static bool rdragging = false;
|
||||||
static int rDragStartX = 0;
|
static int rDragStartX = 0;
|
||||||
@@ -157,6 +158,9 @@ int main( int argc, const char** argv )
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Config config(country);
|
||||||
|
ASPECT_RATIO = config.plateWidthMM / config.plateHeightMM;
|
||||||
|
|
||||||
vector<string> files = getFilesInDir(inDir.c_str());
|
vector<string> files = getFilesInDir(inDir.c_str());
|
||||||
|
|
||||||
vector<string> imgFiles;
|
vector<string> imgFiles;
|
||||||
|
Reference in New Issue
Block a user