-
-
Notifications
You must be signed in to change notification settings - Fork 304
Expand file tree
/
Copy pathtessbridge.h
More file actions
51 lines (43 loc) · 1.17 KB
/
tessbridge.h
File metadata and controls
51 lines (43 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifdef __cplusplus
extern "C" {
#endif
typedef void* TessBaseAPI;
typedef void* PixImage;
struct bounding_box {
int x1, y1, x2, y2;
char* word;
float confidence;
int block_num, par_num, line_num, word_num;
};
struct bounding_boxes {
int length;
struct bounding_box* boxes;
};
struct orientation {
int page;
int writing;
int line;
float deskew_angle;
};
TessBaseAPI Create(void);
void Free(TessBaseAPI);
void Clear(TessBaseAPI);
void ClearPersistentCache(TessBaseAPI);
int Init(TessBaseAPI, char*, char*, char*, char*);
struct bounding_boxes* GetBoundingBoxes(TessBaseAPI, int);
struct bounding_boxes* GetBoundingBoxesVerbose(TessBaseAPI);
struct orientation GetOrientation(TessBaseAPI);
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);
const char* GetDataPath();
PixImage CreatePixImageByFilePath(char*);
PixImage CreatePixImageFromBytes(unsigned char*, int);
void DestroyPixImage(PixImage pix);
#ifdef __cplusplus
}
#endif /* extern "C" */