]>
Commit | Line | Data |
---|---|---|
470f6420 MG |
1 | #define PERL_NO_GET_CONTEXT |
2 | #include "EXTERN.h" | |
3 | #include "perl.h" | |
4 | #include "XSUB.h" | |
5 | ||
6 | #include "ppport.h" | |
7 | ||
8 | struct Alpr; | |
9 | typedef struct Alpr Alpr; | |
10 | typedef char fchar; | |
11 | ||
12 | extern Alpr* initialize(char*, char*, char*); | |
13 | extern void dispose(Alpr*); | |
14 | extern bool isLoaded(Alpr*); | |
15 | extern char* recognizeFile(Alpr*, char*); | |
16 | extern char* recognizeArray(Alpr*, char*, int); | |
17 | extern void setCountry(Alpr*, char*); | |
18 | extern void setPrewarp(Alpr*, char*); | |
19 | extern void setDefaultRegion(Alpr*, char*); | |
20 | extern void setTopN(Alpr*, int); | |
21 | extern char* getVersion(Alpr*); | |
22 | extern void freeJsonMem(char*); | |
23 | ||
24 | MODULE = Image::OpenALPR PACKAGE = Image::OpenALPR | |
25 | PROTOTYPES: ENABLE | |
26 | ||
27 | Alpr* initialize(char* country, char* config_file = "", char* runtime_dir = "") | |
28 | ||
29 | void dispose(Alpr* alpr) | |
30 | ||
31 | bool isLoaded(Alpr* alpr) | |
32 | ||
33 | fchar* recognizeFile(Alpr* alpr, char* image_file) | |
34 | ||
35 | fchar* recognizeArray(Alpr* alpr, char* buf, int length(buf)) | |
36 | ||
37 | void setString(Alpr* alpr, char* value) | |
38 | INTERFACE: setCountry setPrewarp setDefaultRegion | |
39 | ||
40 | void setTopN(Alpr* alpr, int top_n) | |
41 | ||
42 | fchar* getVersion(Alpr* alpr) |