File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ declare namespace Tesseract {
25
25
recognize ( image : ImageLike , options ?: Partial < RecognizeOptions > , jobId ?: string ) : Promise < RecognizeResult >
26
26
detect ( image : ImageLike , jobId ?: string ) : Promise < DetectResult >
27
27
terminate ( jobId ?: string ) : Promise < ConfigResult >
28
+ getPDF ( title ?: string , textonly ?: boolean , jobId ?: string ) :Promise < GetPDFResult >
28
29
}
29
30
30
31
interface WorkerOptions {
@@ -62,6 +63,10 @@ declare namespace Tesseract {
62
63
jobId : string
63
64
data : Page
64
65
}
66
+ interface GetPDFResult {
67
+ jobId : string
68
+ data : number [ ]
69
+ }
65
70
interface DetectResult {
66
71
jobId : string
67
72
data : DetectData
@@ -99,6 +104,7 @@ declare namespace Tesseract {
99
104
SINGLE_CHAR = '10' ,
100
105
SPARSE_TEXT = '11' ,
101
106
SPARSE_TEXT_OSD = '12' ,
107
+ RAW_LINE = '13'
102
108
}
103
109
type ImageLike = string | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement
104
110
| CanvasRenderingContext2D | File | Blob | ImageData | Buffer ;
You can’t perform that action at this time.
0 commit comments