Changed library to point to a config file rather than runtime dir

runtime dir location is specified in the config file
This commit is contained in:
Matt Hill
2014-05-10 09:50:52 -05:00
parent cbfa90fc84
commit 66febb8ca8
10 changed files with 110 additions and 41 deletions

View File

@@ -45,11 +45,13 @@
#define DEFAULT_TOPN 25
#define DEFAULT_DETECT_REGION false
#define ALPR_NULL_PTR 0
class AlprImpl
{
public:
AlprImpl(const std::string country, const std::string runtimeDir = "");
AlprImpl(const std::string country, const std::string configFile = "");
virtual ~AlprImpl();
std::vector<AlprResult> recognize(cv::Mat img);
@@ -65,6 +67,8 @@ class AlprImpl
Config* config;
bool isLoaded();
private:
RegionDetector* plateDetector;