5
5
use AlibabaCloud \Client \Resolver \ApiResolver ;
6
6
7
7
/**
8
+ * @method CompareFace compareFace(array $options = [])
8
9
* @method DetectFace detectFace(array $options = [])
10
+ * @method RecognizeFace recognizeFace(array $options = [])
9
11
*/
10
12
class FacebodyApiResolver extends ApiResolver
11
13
{
@@ -26,6 +28,82 @@ class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
26
28
public $ serviceCode = 'facebody ' ;
27
29
}
28
30
31
+ /**
32
+ * @method string getImageContentB()
33
+ * @method string getImageType()
34
+ * @method string getImageContentA()
35
+ * @method string getImageURLB()
36
+ * @method string getImageURLA()
37
+ */
38
+ class CompareFace extends Rpc
39
+ {
40
+
41
+ /**
42
+ * @param string $value
43
+ *
44
+ * @return $this
45
+ */
46
+ public function withImageContentB ($ value )
47
+ {
48
+ $ this ->data ['ImageContentB ' ] = $ value ;
49
+ $ this ->options ['form_params ' ]['ImageContentB ' ] = $ value ;
50
+
51
+ return $ this ;
52
+ }
53
+
54
+ /**
55
+ * @param string $value
56
+ *
57
+ * @return $this
58
+ */
59
+ public function withImageType ($ value )
60
+ {
61
+ $ this ->data ['ImageType ' ] = $ value ;
62
+ $ this ->options ['form_params ' ]['ImageType ' ] = $ value ;
63
+
64
+ return $ this ;
65
+ }
66
+
67
+ /**
68
+ * @param string $value
69
+ *
70
+ * @return $this
71
+ */
72
+ public function withImageContentA ($ value )
73
+ {
74
+ $ this ->data ['ImageContentA ' ] = $ value ;
75
+ $ this ->options ['form_params ' ]['ImageContentA ' ] = $ value ;
76
+
77
+ return $ this ;
78
+ }
79
+
80
+ /**
81
+ * @param string $value
82
+ *
83
+ * @return $this
84
+ */
85
+ public function withImageURLB ($ value )
86
+ {
87
+ $ this ->data ['ImageURLB ' ] = $ value ;
88
+ $ this ->options ['form_params ' ]['ImageURLB ' ] = $ value ;
89
+
90
+ return $ this ;
91
+ }
92
+
93
+ /**
94
+ * @param string $value
95
+ *
96
+ * @return $this
97
+ */
98
+ public function withImageURLA ($ value )
99
+ {
100
+ $ this ->data ['ImageURLA ' ] = $ value ;
101
+ $ this ->options ['form_params ' ]['ImageURLA ' ] = $ value ;
102
+
103
+ return $ this ;
104
+ }
105
+ }
106
+
29
107
/**
30
108
* @method string getImageType()
31
109
* @method string getImageURL()
@@ -73,3 +151,51 @@ public function withImageContent($value)
73
151
return $ this ;
74
152
}
75
153
}
154
+
155
+ /**
156
+ * @method string getImageType()
157
+ * @method string getImageURL()
158
+ * @method string getImageContent()
159
+ */
160
+ class RecognizeFace extends Rpc
161
+ {
162
+
163
+ /**
164
+ * @param string $value
165
+ *
166
+ * @return $this
167
+ */
168
+ public function withImageType ($ value )
169
+ {
170
+ $ this ->data ['ImageType ' ] = $ value ;
171
+ $ this ->options ['form_params ' ]['ImageType ' ] = $ value ;
172
+
173
+ return $ this ;
174
+ }
175
+
176
+ /**
177
+ * @param string $value
178
+ *
179
+ * @return $this
180
+ */
181
+ public function withImageURL ($ value )
182
+ {
183
+ $ this ->data ['ImageURL ' ] = $ value ;
184
+ $ this ->options ['form_params ' ]['ImageURL ' ] = $ value ;
185
+
186
+ return $ this ;
187
+ }
188
+
189
+ /**
190
+ * @param string $value
191
+ *
192
+ * @return $this
193
+ */
194
+ public function withImageContent ($ value )
195
+ {
196
+ $ this ->data ['ImageContent ' ] = $ value ;
197
+ $ this ->options ['form_params ' ]['ImageContent ' ] = $ value ;
198
+
199
+ return $ this ;
200
+ }
201
+ }
0 commit comments