mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-07 05:00:54 +08:00
Added unicode support in prepcharsfortraining
This commit is contained in:
@@ -26,6 +26,7 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include "support/filesystem.h"
|
#include "support/filesystem.h"
|
||||||
#include "../tclap/CmdLine.h"
|
#include "../tclap/CmdLine.h"
|
||||||
|
#include "support/utf8.h"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace cv;
|
using namespace cv;
|
||||||
@@ -141,7 +142,9 @@ int main( int argc, const char** argv )
|
|||||||
|
|
||||||
cout << "Processing file: " << (i + 1) << " of " << files.size() << " (" << files[i] << ")" << endl;
|
cout << "Processing file: " << (i + 1) << " of " << files.size() << " (" << files[i] << ")" << endl;
|
||||||
|
|
||||||
char charcode = files[i][0];
|
string::iterator utf_iterator = files[i].begin();
|
||||||
|
int cp = utf8::next(utf_iterator, files[i].end());
|
||||||
|
string charcode = utf8chr(cp);
|
||||||
|
|
||||||
Mat characterImg = imread(fullpath);
|
Mat characterImg = imread(fullpath);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user