mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-05 22:36:53 +08:00
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:
@@ -22,9 +22,9 @@
|
||||
|
||||
// ALPR code
|
||||
|
||||
Alpr::Alpr(const std::string country, const std::string runtimeDir)
|
||||
Alpr::Alpr(const std::string country, const std::string configFile)
|
||||
{
|
||||
impl = new AlprImpl(country, runtimeDir);
|
||||
impl = new AlprImpl(country, configFile);
|
||||
}
|
||||
|
||||
Alpr::~Alpr()
|
||||
@@ -68,7 +68,7 @@ void Alpr::setDefaultRegion(std::string region)
|
||||
|
||||
bool Alpr::isLoaded()
|
||||
{
|
||||
return true;
|
||||
return impl->isLoaded();
|
||||
}
|
||||
|
||||
std::string Alpr::getVersion()
|
||||
|
Reference in New Issue
Block a user