-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.go
More file actions
122 lines (99 loc) · 2.09 KB
/
types.go
File metadata and controls
122 lines (99 loc) · 2.09 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
package main
type HealthResponse struct {
Status string `json:"status"`
Timestamp int64 `json:"timestamp"`
}
type ImageResponse struct {
Url string `json:"url"`
Hide bool `json:"hide"`
SubstituteImage string `json:"substituteImage"`
Tags []CVTags `json:"tags"`
}
type Response struct {
Images []ImageResponse `json:"images"`
}
type Request struct {
UseCache bool `json:"useCache"`
Tags []string `json:"tags"`
Urls []string `json:"urls"`
}
type CVCategory struct {
Name string `json:"name"`
Score float64 `json:"score"`
Detail CVDetail `json:"detail"`
}
type CVDetail struct {
Celebrities []Celebrity `json:"celebrities"`
}
type Celebrity struct {
Name string `json:"name"`
Confidence float64 `json:"confidence"`
}
type CVCaption struct {
Text string `json:"text"`
Confidence float64 `json:"confidence"`
}
type CVDescription struct {
Tags []string `json:"tags"`
Captions []CVCaption `json:"captions"`
}
type CVResponse struct {
Categories []CVCategory `json:"categories"`
Description CVDescription `json:"description"`
Metadata CVMetadata `json:"metadata"`
Tags []CVTags `json:"tags"`
}
type CVTags struct {
Name string `json:"name"`
Confidence float64 `json:"confidence"`
}
type CVRequest struct {
Url string `json:"url"`
}
type CVMetadata struct {
Width int `json:"width"`
Height int `json:"height"`
Format string `json:"format"`
}
type FVRequest struct {
FaceIds []string
PersonGroupId string
}
type Candidates struct {
PersonId string
Confidence float64
}
type FacesId struct {
FaceId string
Candidates []Candidates
}
type FVResponse struct {
Results []FacesId
}
type NewPGRequest struct {
Name string
userData string
}
type PGRequest struct {
Username string
UserData string
}
type Person struct {
PersonId string
}
type NewFaceRequest struct {
Url string
}
type NewFaceResponse struct {
PersistedFaceId string
}
type FaceRect struct {
Width int
Height int
Left int
Top int
}
type Faces struct {
FaceId string
FaceRect FaceRect
}