mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-03 07:33:55 +00:00
29 lines
687 B
C
29 lines
687 B
C
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef void* TessBaseAPI;
|
|
typedef void* PixImage;
|
|
|
|
TessBaseAPI Create(void);
|
|
|
|
void Free(TessBaseAPI);
|
|
void Clear(TessBaseAPI);
|
|
void ClearPersistentCache(TessBaseAPI);
|
|
int Init(TessBaseAPI, char*, char*, char*);
|
|
bool SetVariable(TessBaseAPI, char*, char*);
|
|
void SetPixImage(TessBaseAPI a, PixImage pix);
|
|
void SetPageSegMode(TessBaseAPI, int);
|
|
int GetPageSegMode(TessBaseAPI);
|
|
char* UTF8Text(TessBaseAPI);
|
|
char* HOCRText(TessBaseAPI);
|
|
const char* Version(TessBaseAPI);
|
|
|
|
PixImage CreatePixImageByFilePath(char*);
|
|
PixImage CreatePixImageFromBytes(unsigned char*, int);
|
|
void DestroyPixImage(PixImage pix);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif/* extern "C" */
|