-
Notifications
You must be signed in to change notification settings - Fork 0
/
face.go
50 lines (47 loc) · 1.81 KB
/
face.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package glair
// OCRInput stores parameters for Face Matching request
type FaceMatchingInput struct {
// RequestID represents request identifier for debugging purposes
RequestID string
// StoredImage represents the stored image that will be used
// as a base for face matching
//
// StoredImage must be provided as a string that represents a path to the
// image or an object that implements *os.File
StoredImage interface{}
// CapturedImage represents the captured image that will be compared
// to the stored image.
//
// CapturedImage must be provided as a string that represents a path to the
// image or an object that implements *os.File
CapturedImage interface{}
}
// PassiveLivenessInput stores parameters for passive liveness requests
type PassiveLivenessInput struct {
// RequestID represents request identifier for debugging purposes
RequestID string
// Image represents the input image that will be processed by GLAIR
// Vision Face Matching API.
//
// Image must be provided as a string that represents a path to the
// image or an object that implements *os.Image
Image interface{}
}
// ActiveLivenessInput stores parameters for active liveness requests
type ActiveLivenessInput struct {
// RequestID represents request identifier for debugging purposes
RequestID string
// Image represents the input image that will be processed by GLAIR
// Vision Face Matching API.
//
// Image must be provided as a string that represents a path to the
// image or an object that implements *os.Image
Image interface{}
// GestureCode represents gesture idenfification code that will
// be used to determine which gesture should be used to detect
// liveness from the image.
//
// Please refer to https://docs.glair.ai/vision/active-liveness
// for the list of all supported gesture codes
GestureCode string
}