Added set_country function to Python bindings

This commit is contained in:
Matt Hill
2016-02-14 16:01:13 -05:00
parent df7a3491eb
commit b46b7d4c2b
2 changed files with 21 additions and 0 deletions

View File

@@ -96,6 +96,14 @@ extern "C" {
return membuffer;
}
OPENALPR_EXPORT void setCountry(Alpr* nativeAlpr, char* ccountry)
{
// Convert strings from java to C++ and release resources
std::string country(ccountry);
nativeAlpr->setCountry(country);
}
OPENALPR_EXPORT void setDefaultRegion(Alpr* nativeAlpr, char* cdefault_region)
{
// Convert strings from java to C++ and release resources