Updated export for Windows Go library

This commit is contained in:
Matt Hill
2016-06-17 10:12:58 -04:00
parent cc24fe0406
commit b49e694edb
2 changed files with 18 additions and 16 deletions

View File

@@ -7,13 +7,6 @@
extern "C" {
#if defined(_MSC_VER)
// Microsoft
#define OPENALPR_EXPORT __declspec(dllexport)
#else
// do nothing
#define OPENALPR_EXPORT
#endif
//using namespace alpr;
OPENALPR_EXPORT Alpr AlprInit(char* country, char* configFile, char* runtimeDir) {

View File

@@ -1,17 +1,26 @@
#if defined(_MSC_VER)
// Microsoft
#define OPENALPR_EXPORT __declspec(dllexport)
#else
// do nothing
#define OPENALPR_EXPORT
#endif
#ifdef __cplusplus
extern "C" {
#endif
typedef void* Alpr;
Alpr AlprInit(char* country, char* configFile, char* runtimeDir);
void SetDetectRegion(Alpr alpr, int detectRegion);
void SetTopN(Alpr alpr, int topN);
void SetDefaultRegion(Alpr alpr, char* region);
int IsLoaded(Alpr alpr);
void Unload(Alpr alpr);
char* RecognizeByFilePath(Alpr alpr, char* filePath);
char* RecognizeByBlob(Alpr alpr, char* imageBytes, int len);
char* GetVersion();
OPENALPR_EXPORT Alpr AlprInit(char* country, char* configFile, char* runtimeDir);
OPENALPR_EXPORT void SetDetectRegion(Alpr alpr, int detectRegion);
OPENALPR_EXPORT void SetTopN(Alpr alpr, int topN);
OPENALPR_EXPORT void SetDefaultRegion(Alpr alpr, char* region);
OPENALPR_EXPORT int IsLoaded(Alpr alpr);
OPENALPR_EXPORT void Unload(Alpr alpr);
OPENALPR_EXPORT char* RecognizeByFilePath(Alpr alpr, char* filePath);
OPENALPR_EXPORT char* RecognizeByBlob(Alpr alpr, char* imageBytes, int len);
OPENALPR_EXPORT char* GetVersion();
#ifdef __cplusplus
}
#endif