在Linux和qt下安装EasyPr遇到的问题

在Linux和qt下安装EasyPr遇到的问题:easypr/src/util/kv.cpp:11: void easypr::Kv::load(const string&): Assertion `reader’ failed.

解决方案:

在include/util/config.h中将相对地址全部修改为绝对地址

static const char* kDefaultSvmPath = "/home/mxy/qt_code/easypr5/model/svm_hist.xml";
static const char* kLBPSvmPath = "/home/mxy/qt_code/easypr5/model/svm_lbp.xml";
static const char* kHistSvmPath = "/home/mxy/qt_code/easypr5/model/svm_hist.xml";

static const char* kDefaultAnnPath = "/home/mxy/qt_code/easypr5/model/ann.xml";
static const char* kChineseAnnPath = "/home/mxy/qt_code/easypr5/model/ann_chinese.xml";
static const char* kGrayAnnPath = "/home/mxy/qt_code/easypr5/model/annCh.xml";

//This is important to for key transform to chinese
static const char* kChineseMappingPath = "/home/mxy/qt_code/easypr5/model/province_mapping";

你可能感兴趣的:(OpenCV,easypr,opencv,qt)