mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-05 18:46:52 +08:00
Updated export for Windows Go library
This commit is contained in:
@@ -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) {
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user