Exposed setPrewarp function in Python binding

This commit is contained in:
Matt Hill
2016-02-16 15:08:04 -05:00
parent ceefcea0ea
commit 766e6383ea
2 changed files with 23 additions and 0 deletions

View File

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