-
Notifications
You must be signed in to change notification settings - Fork 0
/
ocr.go
31 lines (29 loc) · 973 Bytes
/
ocr.go
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
package glair
// OCRInput stores parameters for OCR requests
type OCRInput struct {
// RequestID represents request identifier for debugging purposes
RequestID string
// Image represents the input image that will be processed by GLAIR
// Vision OCR API.
//
// Image must be provided as a string that represents a path to the
// image or an object that implements *os.Image
Image interface{}
}
// BPKBInput stores parameters for BPKB requests
type BPKBInput struct {
// RequestID represents request identifier for debugging purposes
RequestID string
// Image represents the input image that will be processed by GLAIR
// Vision OCR API.
//
// Image must be provided as a string that represents a path to the
// image or an object that implements *os.Image
Image interface{}
// Page represents specific page number to be read from the BPKB
// image file. If this argument is omitted, the API will read
// all pages.
//
// Page is optional
Page *int
}