tesseract-doxygen/ccmain/tessio.h File Reference
#include <stdio.h>
#include "tessclas.h"
#include "notdll.h"
Go to the source code of this file.
Functions |
TEXTROW * | get_tess_row_file (const char *name, TPOINT *topright) |
TBLOB * | get_tess_blob_file (const char *name, TPOINT *topright) |
TEXTROW * | readrows (int gphfd, int count, TPOINT *imagesize) |
TWERD * | readwords (int gphfd, int count, TEXTROW *row, TPOINT *imagesize) |
TBLOB * | readblobs (int gphfd, int count, TPOINT *imagesize) |
char * | readratings (int gphfd, int ratingspace) |
void | readoutlines (int gphfd, TESSLINE **outlines, int outlinecount) |
int | readgph (int fd, void *start, int size, int checkeof) |
void | write_row (FILE *name, TEXTROW *row) |
void | write_error_row (FILE *name, TEXTROW *row, int wordcount) |
void | write_error_blob (FILE *name, TBLOB *blob, char *charlist, int charcount) |
void | write_error_word (FILE *name, TWERD *word, char *charlist, int charcount) |
void | writeblob (FILE *name, TBLOB *blob) |
void | serial_outlines (FILE *name, TBLOB *blob, register TESSLINE *outline, int *outlineno) |
int | countloop (register BYTEVEC *vector) |
int | outlineserial (register TESSLINE *outline, register TESSLINE *target, int serial) |
void | writegph (FILE *name, void *start, int size) |
Function Documentation
int countloop |
( |
register BYTEVEC * |
vector |
) |
|
count loopsize
- Parameters:
-
TBLOB* get_tess_blob_file |
( |
const char * |
name, |
|
|
TPOINT * |
topright | |
|
) |
| | |
open read & close
- Parameters:
-
| name | file name |
| topright | corner |
TEXTROW* get_tess_row_file |
( |
const char * |
name, |
|
|
TPOINT * |
topright | |
|
) |
| | |
open read & close
- Parameters:
-
| name | file name |
| topright | corner |
int outlineserial |
( |
register TESSLINE * |
outline, |
|
|
register TESSLINE * |
target, |
|
|
int |
serial | |
|
) |
| | |
get serial no
- Parameters:
-
| outline | start of search |
| target | outline to find |
| serial | serial no so far |
TBLOB* readblobs |
( |
int |
gphfd, |
|
|
int |
count, |
|
|
TPOINT * |
imagesize | |
|
) |
| | |
read some blobs
- Parameters:
-
| gphfd | file to read |
| count | number expected |
| imagesize | size of image |
int readgph |
( |
int |
fd, |
|
|
void * |
start, |
|
|
int |
size, |
|
|
int |
checkeof | |
|
) |
| | |
read with testing
- Parameters:
-
| fd | file to read |
| start | buffer to write |
| size | amount to write |
| checkeof | give error on eof? |
void readoutlines |
( |
int |
gphfd, |
|
|
TESSLINE ** |
outlines, |
|
|
int |
outlinecount | |
|
) |
| | |
read some outlines
- Parameters:
-
| gphfd | file to read |
| outlines | array of ptrs |
| outlinecount | no to read |
char* readratings |
( |
int |
gphfd, |
|
|
int |
ratingspace | |
|
) |
| | |
get a string
- Parameters:
-
| gphfd | file to read |
| ratingspace | size to read |
read row file
- Parameters:
-
| gphfd | file to read |
| count | number expected |
| imagesize | size of image |
read some words
- Parameters:
-
| gphfd | file to read |
| count | number expected |
| row | row it comes from |
| imagesize | size of image |
void serial_outlines |
( |
FILE * |
name, |
|
|
TBLOB * |
blob, |
|
|
register TESSLINE * |
outline, |
|
|
int * |
outlineno | |
|
) |
| | |
serialize
- Parameters:
-
| name | file to write to |
| blob | current blob |
| outline | current outline |
| outlineno | current serial no |
void write_error_blob |
( |
FILE * |
name, |
|
|
TBLOB * |
blob, |
|
|
char * |
charlist, |
|
|
int |
charcount | |
|
) |
| | |
write special blob
- Parameters:
-
| name | file name |
| blob | blob to write |
| charlist | true chars |
| charcount | number of true chars |
void write_error_row |
( |
FILE * |
name, |
|
|
TEXTROW * |
row, |
|
|
int |
wordcount | |
|
) |
| | |
write special row
- Parameters:
-
| name | file name |
| row | row to write |
| wordcount | number of words to go |
void write_error_word |
( |
FILE * |
name, |
|
|
TWERD * |
word, |
|
|
char * |
charlist, |
|
|
int |
charcount | |
|
) |
| | |
write special word
- Parameters:
-
| name | file name |
| word | word to write |
| charlist | true chars |
| charcount | number of true chars |
void write_row |
( |
FILE * |
name, |
|
|
TEXTROW * |
row | |
|
) |
| | |
write a row
- Parameters:
-
| name | file name |
| row | row to write |
void writeblob |
( |
FILE * |
name, |
|
|
TBLOB * |
blob | |
|
) |
| | |
write a blob
- Parameters:
-
| name | file to write |
| blob | blob to write |
void writegph |
( |
FILE * |
name, |
|
|
void * |
start, |
|
|
int |
size | |
|
) |
| | |
Interface to fwrite
- Parameters:
-
| name | file to write |
| start | buffer to write |
| size | amount to write |