|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace AlibabaCloud\Ocr\V20191230; |
|
4
|
|
|
|
|
5
|
|
|
use AlibabaCloud\Client\Resolver\ApiResolver; |
|
6
|
|
|
|
|
7
|
|
|
/** |
|
8
|
|
|
* @method GetAsyncJobResult getAsyncJobResult(array $options = []) |
|
9
|
|
|
* @method RecognizeBankCard recognizeBankCard(array $options = []) |
|
10
|
|
|
* @method RecognizeBusinessCard recognizeBusinessCard(array $options = []) |
|
11
|
|
|
* @method RecognizeBusinessLicense recognizeBusinessLicense(array $options = []) |
|
12
|
|
|
* @method RecognizeCharacter recognizeCharacter(array $options = []) |
|
13
|
|
|
* @method RecognizeDriverLicense recognizeDriverLicense(array $options = []) |
|
14
|
|
|
* @method RecognizeDrivingLicense recognizeDrivingLicense(array $options = []) |
|
15
|
|
|
* @method RecognizeIdentityCard recognizeIdentityCard(array $options = []) |
|
16
|
|
|
* @method RecognizeLicensePlate recognizeLicensePlate(array $options = []) |
|
17
|
|
|
* @method RecognizePdf recognizePdf(array $options = []) |
|
18
|
|
|
* @method RecognizeQrCode recognizeQrCode(array $options = []) |
|
19
|
|
|
* @method RecognizeQuotaInvoice recognizeQuotaInvoice(array $options = []) |
|
20
|
|
|
* @method RecognizeStamp recognizeStamp(array $options = []) |
|
21
|
|
|
* @method RecognizeTable recognizeTable(array $options = []) |
|
22
|
|
|
* @method RecognizeTaxiInvoice recognizeTaxiInvoice(array $options = []) |
|
23
|
|
|
* @method RecognizeTicketInvoice recognizeTicketInvoice(array $options = []) |
|
24
|
|
|
* @method RecognizeTrainTicket recognizeTrainTicket(array $options = []) |
|
25
|
|
|
* @method RecognizeVATInvoice recognizeVATInvoice(array $options = []) |
|
26
|
|
|
* @method RecognizeVideoCharacter recognizeVideoCharacter(array $options = []) |
|
27
|
|
|
* @method RecognizeVINCode recognizeVINCode(array $options = []) |
|
28
|
|
|
*/ |
|
29
|
|
|
class OcrApiResolver extends ApiResolver |
|
30
|
|
|
{ |
|
31
|
|
|
} |
|
32
|
|
|
|
|
33
|
|
|
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc |
|
34
|
|
|
{ |
|
35
|
|
|
/** @var string */ |
|
36
|
|
|
public $product = 'ocr'; |
|
37
|
|
|
|
|
38
|
|
|
/** @var string */ |
|
39
|
|
|
public $version = '2019-12-30'; |
|
40
|
|
|
|
|
41
|
|
|
/** @var string */ |
|
42
|
|
|
public $method = 'POST'; |
|
43
|
|
|
|
|
44
|
|
|
/** @var string */ |
|
45
|
|
|
public $serviceCode = 'ocr'; |
|
46
|
|
|
} |
|
47
|
|
|
|
|
48
|
|
|
/** |
|
49
|
|
|
* @method string getJobId() |
|
50
|
|
|
* @method string getAsync() |
|
51
|
|
|
*/ |
|
52
|
|
|
class GetAsyncJobResult extends Rpc |
|
53
|
|
|
{ |
|
54
|
|
|
|
|
55
|
|
|
/** |
|
56
|
|
|
* @param string $value |
|
57
|
|
|
* |
|
58
|
|
|
* @return $this |
|
59
|
|
|
*/ |
|
60
|
|
|
public function withJobId($value) |
|
61
|
|
|
{ |
|
62
|
|
|
$this->data['JobId'] = $value; |
|
63
|
|
|
$this->options['form_params']['JobId'] = $value; |
|
64
|
|
|
|
|
65
|
|
|
return $this; |
|
66
|
|
|
} |
|
67
|
|
|
|
|
68
|
|
|
/** |
|
69
|
|
|
* @param string $value |
|
70
|
|
|
* |
|
71
|
|
|
* @return $this |
|
72
|
|
|
*/ |
|
73
|
|
|
public function withAsync($value) |
|
74
|
|
|
{ |
|
75
|
|
|
$this->data['Async'] = $value; |
|
76
|
|
|
$this->options['form_params']['Async'] = $value; |
|
77
|
|
|
|
|
78
|
|
|
return $this; |
|
79
|
|
|
} |
|
80
|
|
|
} |
|
81
|
|
|
|
|
82
|
|
|
/** |
|
83
|
|
|
* @method string getImageType() |
|
84
|
|
|
* @method string getImageURL() |
|
85
|
|
|
*/ |
|
86
|
|
|
class RecognizeBankCard extends Rpc |
|
87
|
|
|
{ |
|
88
|
|
|
|
|
89
|
|
|
/** |
|
90
|
|
|
* @param string $value |
|
91
|
|
|
* |
|
92
|
|
|
* @return $this |
|
93
|
|
|
*/ |
|
94
|
|
|
public function withImageType($value) |
|
95
|
|
|
{ |
|
96
|
|
|
$this->data['ImageType'] = $value; |
|
97
|
|
|
$this->options['form_params']['ImageType'] = $value; |
|
98
|
|
|
|
|
99
|
|
|
return $this; |
|
100
|
|
|
} |
|
101
|
|
|
|
|
102
|
|
|
/** |
|
103
|
|
|
* @param string $value |
|
104
|
|
|
* |
|
105
|
|
|
* @return $this |
|
106
|
|
|
*/ |
|
107
|
|
|
public function withImageURL($value) |
|
108
|
|
|
{ |
|
109
|
|
|
$this->data['ImageURL'] = $value; |
|
110
|
|
|
$this->options['form_params']['ImageURL'] = $value; |
|
111
|
|
|
|
|
112
|
|
|
return $this; |
|
113
|
|
|
} |
|
114
|
|
|
} |
|
115
|
|
|
|
|
116
|
|
|
/** |
|
117
|
|
|
* @method string getImageType() |
|
118
|
|
|
* @method string getImageURL() |
|
119
|
|
|
*/ |
|
120
|
|
|
class RecognizeBusinessCard extends Rpc |
|
121
|
|
|
{ |
|
122
|
|
|
|
|
123
|
|
|
/** |
|
124
|
|
|
* @param string $value |
|
125
|
|
|
* |
|
126
|
|
|
* @return $this |
|
127
|
|
|
*/ |
|
128
|
|
|
public function withImageType($value) |
|
129
|
|
|
{ |
|
130
|
|
|
$this->data['ImageType'] = $value; |
|
131
|
|
|
$this->options['form_params']['ImageType'] = $value; |
|
132
|
|
|
|
|
133
|
|
|
return $this; |
|
134
|
|
|
} |
|
135
|
|
|
|
|
136
|
|
|
/** |
|
137
|
|
|
* @param string $value |
|
138
|
|
|
* |
|
139
|
|
|
* @return $this |
|
140
|
|
|
*/ |
|
141
|
|
|
public function withImageURL($value) |
|
142
|
|
|
{ |
|
143
|
|
|
$this->data['ImageURL'] = $value; |
|
144
|
|
|
$this->options['form_params']['ImageURL'] = $value; |
|
145
|
|
|
|
|
146
|
|
|
return $this; |
|
147
|
|
|
} |
|
148
|
|
|
} |
|
149
|
|
|
|
|
150
|
|
|
/** |
|
151
|
|
|
* @method string getImageType() |
|
152
|
|
|
* @method string getImageURL() |
|
153
|
|
|
*/ |
|
154
|
|
|
class RecognizeBusinessLicense extends Rpc |
|
155
|
|
|
{ |
|
156
|
|
|
|
|
157
|
|
|
/** |
|
158
|
|
|
* @param string $value |
|
159
|
|
|
* |
|
160
|
|
|
* @return $this |
|
161
|
|
|
*/ |
|
162
|
|
|
public function withImageType($value) |
|
163
|
|
|
{ |
|
164
|
|
|
$this->data['ImageType'] = $value; |
|
165
|
|
|
$this->options['form_params']['ImageType'] = $value; |
|
166
|
|
|
|
|
167
|
|
|
return $this; |
|
168
|
|
|
} |
|
169
|
|
|
|
|
170
|
|
|
/** |
|
171
|
|
|
* @param string $value |
|
172
|
|
|
* |
|
173
|
|
|
* @return $this |
|
174
|
|
|
*/ |
|
175
|
|
|
public function withImageURL($value) |
|
176
|
|
|
{ |
|
177
|
|
|
$this->data['ImageURL'] = $value; |
|
178
|
|
|
$this->options['form_params']['ImageURL'] = $value; |
|
179
|
|
|
|
|
180
|
|
|
return $this; |
|
181
|
|
|
} |
|
182
|
|
|
} |
|
183
|
|
|
|
|
184
|
|
|
/** |
|
185
|
|
|
* @method string getMinHeight() |
|
186
|
|
|
* @method string getImageType() |
|
187
|
|
|
* @method string getOutputProbability() |
|
188
|
|
|
* @method string getImageURL() |
|
189
|
|
|
*/ |
|
190
|
|
|
class RecognizeCharacter extends Rpc |
|
191
|
|
|
{ |
|
192
|
|
|
|
|
193
|
|
|
/** |
|
194
|
|
|
* @param string $value |
|
195
|
|
|
* |
|
196
|
|
|
* @return $this |
|
197
|
|
|
*/ |
|
198
|
|
|
public function withMinHeight($value) |
|
199
|
|
|
{ |
|
200
|
|
|
$this->data['MinHeight'] = $value; |
|
201
|
|
|
$this->options['form_params']['MinHeight'] = $value; |
|
202
|
|
|
|
|
203
|
|
|
return $this; |
|
204
|
|
|
} |
|
205
|
|
|
|
|
206
|
|
|
/** |
|
207
|
|
|
* @param string $value |
|
208
|
|
|
* |
|
209
|
|
|
* @return $this |
|
210
|
|
|
*/ |
|
211
|
|
|
public function withImageType($value) |
|
212
|
|
|
{ |
|
213
|
|
|
$this->data['ImageType'] = $value; |
|
214
|
|
|
$this->options['form_params']['ImageType'] = $value; |
|
215
|
|
|
|
|
216
|
|
|
return $this; |
|
217
|
|
|
} |
|
218
|
|
|
|
|
219
|
|
|
/** |
|
220
|
|
|
* @param string $value |
|
221
|
|
|
* |
|
222
|
|
|
* @return $this |
|
223
|
|
|
*/ |
|
224
|
|
|
public function withOutputProbability($value) |
|
225
|
|
|
{ |
|
226
|
|
|
$this->data['OutputProbability'] = $value; |
|
227
|
|
|
$this->options['form_params']['OutputProbability'] = $value; |
|
228
|
|
|
|
|
229
|
|
|
return $this; |
|
230
|
|
|
} |
|
231
|
|
|
|
|
232
|
|
|
/** |
|
233
|
|
|
* @param string $value |
|
234
|
|
|
* |
|
235
|
|
|
* @return $this |
|
236
|
|
|
*/ |
|
237
|
|
|
public function withImageURL($value) |
|
238
|
|
|
{ |
|
239
|
|
|
$this->data['ImageURL'] = $value; |
|
240
|
|
|
$this->options['form_params']['ImageURL'] = $value; |
|
241
|
|
|
|
|
242
|
|
|
return $this; |
|
243
|
|
|
} |
|
244
|
|
|
} |
|
245
|
|
|
|
|
246
|
|
|
/** |
|
247
|
|
|
* @method string getImageType() |
|
248
|
|
|
* @method string getSide() |
|
249
|
|
|
* @method string getImageURL() |
|
250
|
|
|
*/ |
|
251
|
|
|
class RecognizeDriverLicense extends Rpc |
|
252
|
|
|
{ |
|
253
|
|
|
|
|
254
|
|
|
/** |
|
255
|
|
|
* @param string $value |
|
256
|
|
|
* |
|
257
|
|
|
* @return $this |
|
258
|
|
|
*/ |
|
259
|
|
|
public function withImageType($value) |
|
260
|
|
|
{ |
|
261
|
|
|
$this->data['ImageType'] = $value; |
|
262
|
|
|
$this->options['form_params']['ImageType'] = $value; |
|
263
|
|
|
|
|
264
|
|
|
return $this; |
|
265
|
|
|
} |
|
266
|
|
|
|
|
267
|
|
|
/** |
|
268
|
|
|
* @param string $value |
|
269
|
|
|
* |
|
270
|
|
|
* @return $this |
|
271
|
|
|
*/ |
|
272
|
|
|
public function withSide($value) |
|
273
|
|
|
{ |
|
274
|
|
|
$this->data['Side'] = $value; |
|
275
|
|
|
$this->options['form_params']['Side'] = $value; |
|
276
|
|
|
|
|
277
|
|
|
return $this; |
|
278
|
|
|
} |
|
279
|
|
|
|
|
280
|
|
|
/** |
|
281
|
|
|
* @param string $value |
|
282
|
|
|
* |
|
283
|
|
|
* @return $this |
|
284
|
|
|
*/ |
|
285
|
|
|
public function withImageURL($value) |
|
286
|
|
|
{ |
|
287
|
|
|
$this->data['ImageURL'] = $value; |
|
288
|
|
|
$this->options['form_params']['ImageURL'] = $value; |
|
289
|
|
|
|
|
290
|
|
|
return $this; |
|
291
|
|
|
} |
|
292
|
|
|
} |
|
293
|
|
|
|
|
294
|
|
|
/** |
|
295
|
|
|
* @method string getImageType() |
|
296
|
|
|
* @method string getSide() |
|
297
|
|
|
* @method string getImageURL() |
|
298
|
|
|
*/ |
|
299
|
|
|
class RecognizeDrivingLicense extends Rpc |
|
300
|
|
|
{ |
|
301
|
|
|
|
|
302
|
|
|
/** |
|
303
|
|
|
* @param string $value |
|
304
|
|
|
* |
|
305
|
|
|
* @return $this |
|
306
|
|
|
*/ |
|
307
|
|
|
public function withImageType($value) |
|
308
|
|
|
{ |
|
309
|
|
|
$this->data['ImageType'] = $value; |
|
310
|
|
|
$this->options['form_params']['ImageType'] = $value; |
|
311
|
|
|
|
|
312
|
|
|
return $this; |
|
313
|
|
|
} |
|
314
|
|
|
|
|
315
|
|
|
/** |
|
316
|
|
|
* @param string $value |
|
317
|
|
|
* |
|
318
|
|
|
* @return $this |
|
319
|
|
|
*/ |
|
320
|
|
|
public function withSide($value) |
|
321
|
|
|
{ |
|
322
|
|
|
$this->data['Side'] = $value; |
|
323
|
|
|
$this->options['form_params']['Side'] = $value; |
|
324
|
|
|
|
|
325
|
|
|
return $this; |
|
326
|
|
|
} |
|
327
|
|
|
|
|
328
|
|
|
/** |
|
329
|
|
|
* @param string $value |
|
330
|
|
|
* |
|
331
|
|
|
* @return $this |
|
332
|
|
|
*/ |
|
333
|
|
|
public function withImageURL($value) |
|
334
|
|
|
{ |
|
335
|
|
|
$this->data['ImageURL'] = $value; |
|
336
|
|
|
$this->options['form_params']['ImageURL'] = $value; |
|
337
|
|
|
|
|
338
|
|
|
return $this; |
|
339
|
|
|
} |
|
340
|
|
|
} |
|
341
|
|
|
|
|
342
|
|
|
/** |
|
343
|
|
|
* @method string getImageType() |
|
344
|
|
|
* @method string getSide() |
|
345
|
|
|
* @method string getImageURL() |
|
346
|
|
|
*/ |
|
347
|
|
|
class RecognizeIdentityCard extends Rpc |
|
348
|
|
|
{ |
|
349
|
|
|
|
|
350
|
|
|
/** |
|
351
|
|
|
* @param string $value |
|
352
|
|
|
* |
|
353
|
|
|
* @return $this |
|
354
|
|
|
*/ |
|
355
|
|
|
public function withImageType($value) |
|
356
|
|
|
{ |
|
357
|
|
|
$this->data['ImageType'] = $value; |
|
358
|
|
|
$this->options['form_params']['ImageType'] = $value; |
|
359
|
|
|
|
|
360
|
|
|
return $this; |
|
361
|
|
|
} |
|
362
|
|
|
|
|
363
|
|
|
/** |
|
364
|
|
|
* @param string $value |
|
365
|
|
|
* |
|
366
|
|
|
* @return $this |
|
367
|
|
|
*/ |
|
368
|
|
|
public function withSide($value) |
|
369
|
|
|
{ |
|
370
|
|
|
$this->data['Side'] = $value; |
|
371
|
|
|
$this->options['form_params']['Side'] = $value; |
|
372
|
|
|
|
|
373
|
|
|
return $this; |
|
374
|
|
|
} |
|
375
|
|
|
|
|
376
|
|
|
/** |
|
377
|
|
|
* @param string $value |
|
378
|
|
|
* |
|
379
|
|
|
* @return $this |
|
380
|
|
|
*/ |
|
381
|
|
|
public function withImageURL($value) |
|
382
|
|
|
{ |
|
383
|
|
|
$this->data['ImageURL'] = $value; |
|
384
|
|
|
$this->options['form_params']['ImageURL'] = $value; |
|
385
|
|
|
|
|
386
|
|
|
return $this; |
|
387
|
|
|
} |
|
388
|
|
|
} |
|
389
|
|
|
|
|
390
|
|
|
/** |
|
391
|
|
|
* @method string getImageType() |
|
392
|
|
|
* @method string getImageURL() |
|
393
|
|
|
*/ |
|
394
|
|
|
class RecognizeLicensePlate extends Rpc |
|
395
|
|
|
{ |
|
396
|
|
|
|
|
397
|
|
|
/** |
|
398
|
|
|
* @param string $value |
|
399
|
|
|
* |
|
400
|
|
|
* @return $this |
|
401
|
|
|
*/ |
|
402
|
|
|
public function withImageType($value) |
|
403
|
|
|
{ |
|
404
|
|
|
$this->data['ImageType'] = $value; |
|
405
|
|
|
$this->options['form_params']['ImageType'] = $value; |
|
406
|
|
|
|
|
407
|
|
|
return $this; |
|
408
|
|
|
} |
|
409
|
|
|
|
|
410
|
|
|
/** |
|
411
|
|
|
* @param string $value |
|
412
|
|
|
* |
|
413
|
|
|
* @return $this |
|
414
|
|
|
*/ |
|
415
|
|
|
public function withImageURL($value) |
|
416
|
|
|
{ |
|
417
|
|
|
$this->data['ImageURL'] = $value; |
|
418
|
|
|
$this->options['form_params']['ImageURL'] = $value; |
|
419
|
|
|
|
|
420
|
|
|
return $this; |
|
421
|
|
|
} |
|
422
|
|
|
} |
|
423
|
|
|
|
|
424
|
|
|
/** |
|
425
|
|
|
* @method string getFileURL() |
|
426
|
|
|
*/ |
|
427
|
|
|
class RecognizePdf extends Rpc |
|
428
|
|
|
{ |
|
429
|
|
|
|
|
430
|
|
|
/** |
|
431
|
|
|
* @param string $value |
|
432
|
|
|
* |
|
433
|
|
|
* @return $this |
|
434
|
|
|
*/ |
|
435
|
|
|
public function withFileURL($value) |
|
436
|
|
|
{ |
|
437
|
|
|
$this->data['FileURL'] = $value; |
|
438
|
|
|
$this->options['form_params']['FileURL'] = $value; |
|
439
|
|
|
|
|
440
|
|
|
return $this; |
|
441
|
|
|
} |
|
442
|
|
|
} |
|
443
|
|
|
|
|
444
|
|
|
/** |
|
445
|
|
|
* @method array getTasks() |
|
446
|
|
|
*/ |
|
447
|
|
|
class RecognizeQrCode extends Rpc |
|
448
|
|
|
{ |
|
449
|
|
|
|
|
450
|
|
|
/** |
|
451
|
|
|
* @param array $tasks |
|
452
|
|
|
* |
|
453
|
|
|
* @return $this |
|
454
|
|
|
*/ |
|
455
|
|
|
public function withTasks(array $tasks) |
|
456
|
|
|
{ |
|
457
|
|
|
$this->data['Tasks'] = $tasks; |
|
458
|
|
|
foreach ($tasks as $depth1 => $depth1Value) { |
|
459
|
|
|
if(isset($depth1Value['ImageURL'])){ |
|
460
|
|
|
$this->options['form_params']['Tasks.' . ($depth1 + 1) . '.ImageURL'] = $depth1Value['ImageURL']; |
|
461
|
|
|
} |
|
462
|
|
|
} |
|
463
|
|
|
|
|
464
|
|
|
return $this; |
|
465
|
|
|
} |
|
466
|
|
|
} |
|
467
|
|
|
|
|
468
|
|
|
/** |
|
469
|
|
|
* @method string getImageURL() |
|
470
|
|
|
*/ |
|
471
|
|
|
class RecognizeQuotaInvoice extends Rpc |
|
472
|
|
|
{ |
|
473
|
|
|
|
|
474
|
|
|
/** |
|
475
|
|
|
* @param string $value |
|
476
|
|
|
* |
|
477
|
|
|
* @return $this |
|
478
|
|
|
*/ |
|
479
|
|
|
public function withImageURL($value) |
|
480
|
|
|
{ |
|
481
|
|
|
$this->data['ImageURL'] = $value; |
|
482
|
|
|
$this->options['form_params']['ImageURL'] = $value; |
|
483
|
|
|
|
|
484
|
|
|
return $this; |
|
485
|
|
|
} |
|
486
|
|
|
} |
|
487
|
|
|
|
|
488
|
|
|
/** |
|
489
|
|
|
* @method string getImageType() |
|
490
|
|
|
* @method string getImageURL() |
|
491
|
|
|
*/ |
|
492
|
|
|
class RecognizeStamp extends Rpc |
|
493
|
|
|
{ |
|
494
|
|
|
|
|
495
|
|
|
/** |
|
496
|
|
|
* @param string $value |
|
497
|
|
|
* |
|
498
|
|
|
* @return $this |
|
499
|
|
|
*/ |
|
500
|
|
|
public function withImageType($value) |
|
501
|
|
|
{ |
|
502
|
|
|
$this->data['ImageType'] = $value; |
|
503
|
|
|
$this->options['form_params']['ImageType'] = $value; |
|
504
|
|
|
|
|
505
|
|
|
return $this; |
|
506
|
|
|
} |
|
507
|
|
|
|
|
508
|
|
|
/** |
|
509
|
|
|
* @param string $value |
|
510
|
|
|
* |
|
511
|
|
|
* @return $this |
|
512
|
|
|
*/ |
|
513
|
|
|
public function withImageURL($value) |
|
514
|
|
|
{ |
|
515
|
|
|
$this->data['ImageURL'] = $value; |
|
516
|
|
|
$this->options['form_params']['ImageURL'] = $value; |
|
517
|
|
|
|
|
518
|
|
|
return $this; |
|
519
|
|
|
} |
|
520
|
|
|
} |
|
521
|
|
|
|
|
522
|
|
|
/** |
|
523
|
|
|
* @method string getUseFinanceModel() |
|
524
|
|
|
* @method string getSkipDetection() |
|
525
|
|
|
* @method string getOutputFormat() |
|
526
|
|
|
* @method string getAssureDirection() |
|
527
|
|
|
* @method string getHasLine() |
|
528
|
|
|
* @method string getImageType() |
|
529
|
|
|
* @method string getImageURL() |
|
530
|
|
|
*/ |
|
531
|
|
|
class RecognizeTable extends Rpc |
|
532
|
|
|
{ |
|
533
|
|
|
|
|
534
|
|
|
/** |
|
535
|
|
|
* @param string $value |
|
536
|
|
|
* |
|
537
|
|
|
* @return $this |
|
538
|
|
|
*/ |
|
539
|
|
|
public function withUseFinanceModel($value) |
|
540
|
|
|
{ |
|
541
|
|
|
$this->data['UseFinanceModel'] = $value; |
|
542
|
|
|
$this->options['form_params']['UseFinanceModel'] = $value; |
|
543
|
|
|
|
|
544
|
|
|
return $this; |
|
545
|
|
|
} |
|
546
|
|
|
|
|
547
|
|
|
/** |
|
548
|
|
|
* @param string $value |
|
549
|
|
|
* |
|
550
|
|
|
* @return $this |
|
551
|
|
|
*/ |
|
552
|
|
|
public function withSkipDetection($value) |
|
553
|
|
|
{ |
|
554
|
|
|
$this->data['SkipDetection'] = $value; |
|
555
|
|
|
$this->options['form_params']['SkipDetection'] = $value; |
|
556
|
|
|
|
|
557
|
|
|
return $this; |
|
558
|
|
|
} |
|
559
|
|
|
|
|
560
|
|
|
/** |
|
561
|
|
|
* @param string $value |
|
562
|
|
|
* |
|
563
|
|
|
* @return $this |
|
564
|
|
|
*/ |
|
565
|
|
|
public function withOutputFormat($value) |
|
566
|
|
|
{ |
|
567
|
|
|
$this->data['OutputFormat'] = $value; |
|
568
|
|
|
$this->options['form_params']['OutputFormat'] = $value; |
|
569
|
|
|
|
|
570
|
|
|
return $this; |
|
571
|
|
|
} |
|
572
|
|
|
|
|
573
|
|
|
/** |
|
574
|
|
|
* @param string $value |
|
575
|
|
|
* |
|
576
|
|
|
* @return $this |
|
577
|
|
|
*/ |
|
578
|
|
|
public function withAssureDirection($value) |
|
579
|
|
|
{ |
|
580
|
|
|
$this->data['AssureDirection'] = $value; |
|
581
|
|
|
$this->options['form_params']['AssureDirection'] = $value; |
|
582
|
|
|
|
|
583
|
|
|
return $this; |
|
584
|
|
|
} |
|
585
|
|
|
|
|
586
|
|
|
/** |
|
587
|
|
|
* @param string $value |
|
588
|
|
|
* |
|
589
|
|
|
* @return $this |
|
590
|
|
|
*/ |
|
591
|
|
|
public function withHasLine($value) |
|
592
|
|
|
{ |
|
593
|
|
|
$this->data['HasLine'] = $value; |
|
594
|
|
|
$this->options['form_params']['HasLine'] = $value; |
|
595
|
|
|
|
|
596
|
|
|
return $this; |
|
597
|
|
|
} |
|
598
|
|
|
|
|
599
|
|
|
/** |
|
600
|
|
|
* @param string $value |
|
601
|
|
|
* |
|
602
|
|
|
* @return $this |
|
603
|
|
|
*/ |
|
604
|
|
|
public function withImageType($value) |
|
605
|
|
|
{ |
|
606
|
|
|
$this->data['ImageType'] = $value; |
|
607
|
|
|
$this->options['form_params']['ImageType'] = $value; |
|
608
|
|
|
|
|
609
|
|
|
return $this; |
|
610
|
|
|
} |
|
611
|
|
|
|
|
612
|
|
|
/** |
|
613
|
|
|
* @param string $value |
|
614
|
|
|
* |
|
615
|
|
|
* @return $this |
|
616
|
|
|
*/ |
|
617
|
|
|
public function withImageURL($value) |
|
618
|
|
|
{ |
|
619
|
|
|
$this->data['ImageURL'] = $value; |
|
620
|
|
|
$this->options['form_params']['ImageURL'] = $value; |
|
621
|
|
|
|
|
622
|
|
|
return $this; |
|
623
|
|
|
} |
|
624
|
|
|
} |
|
625
|
|
|
|
|
626
|
|
|
/** |
|
627
|
|
|
* @method string getImageType() |
|
628
|
|
|
* @method string getImageURL() |
|
629
|
|
|
*/ |
|
630
|
|
|
class RecognizeTaxiInvoice extends Rpc |
|
631
|
|
|
{ |
|
632
|
|
|
|
|
633
|
|
|
/** |
|
634
|
|
|
* @param string $value |
|
635
|
|
|
* |
|
636
|
|
|
* @return $this |
|
637
|
|
|
*/ |
|
638
|
|
|
public function withImageType($value) |
|
639
|
|
|
{ |
|
640
|
|
|
$this->data['ImageType'] = $value; |
|
641
|
|
|
$this->options['form_params']['ImageType'] = $value; |
|
642
|
|
|
|
|
643
|
|
|
return $this; |
|
644
|
|
|
} |
|
645
|
|
|
|
|
646
|
|
|
/** |
|
647
|
|
|
* @param string $value |
|
648
|
|
|
* |
|
649
|
|
|
* @return $this |
|
650
|
|
|
*/ |
|
651
|
|
|
public function withImageURL($value) |
|
652
|
|
|
{ |
|
653
|
|
|
$this->data['ImageURL'] = $value; |
|
654
|
|
|
$this->options['form_params']['ImageURL'] = $value; |
|
655
|
|
|
|
|
656
|
|
|
return $this; |
|
657
|
|
|
} |
|
658
|
|
|
} |
|
659
|
|
|
|
|
660
|
|
|
/** |
|
661
|
|
|
* @method string getImageURL() |
|
662
|
|
|
*/ |
|
663
|
|
|
class RecognizeTicketInvoice extends Rpc |
|
664
|
|
|
{ |
|
665
|
|
|
|
|
666
|
|
|
/** |
|
667
|
|
|
* @param string $value |
|
668
|
|
|
* |
|
669
|
|
|
* @return $this |
|
670
|
|
|
*/ |
|
671
|
|
|
public function withImageURL($value) |
|
672
|
|
|
{ |
|
673
|
|
|
$this->data['ImageURL'] = $value; |
|
674
|
|
|
$this->options['form_params']['ImageURL'] = $value; |
|
675
|
|
|
|
|
676
|
|
|
return $this; |
|
677
|
|
|
} |
|
678
|
|
|
} |
|
679
|
|
|
|
|
680
|
|
|
/** |
|
681
|
|
|
* @method string getImageType() |
|
682
|
|
|
* @method string getImageURL() |
|
683
|
|
|
*/ |
|
684
|
|
|
class RecognizeTrainTicket extends Rpc |
|
685
|
|
|
{ |
|
686
|
|
|
|
|
687
|
|
|
/** |
|
688
|
|
|
* @param string $value |
|
689
|
|
|
* |
|
690
|
|
|
* @return $this |
|
691
|
|
|
*/ |
|
692
|
|
|
public function withImageType($value) |
|
693
|
|
|
{ |
|
694
|
|
|
$this->data['ImageType'] = $value; |
|
695
|
|
|
$this->options['form_params']['ImageType'] = $value; |
|
696
|
|
|
|
|
697
|
|
|
return $this; |
|
698
|
|
|
} |
|
699
|
|
|
|
|
700
|
|
|
/** |
|
701
|
|
|
* @param string $value |
|
702
|
|
|
* |
|
703
|
|
|
* @return $this |
|
704
|
|
|
*/ |
|
705
|
|
|
public function withImageURL($value) |
|
706
|
|
|
{ |
|
707
|
|
|
$this->data['ImageURL'] = $value; |
|
708
|
|
|
$this->options['form_params']['ImageURL'] = $value; |
|
709
|
|
|
|
|
710
|
|
|
return $this; |
|
711
|
|
|
} |
|
712
|
|
|
} |
|
713
|
|
|
|
|
714
|
|
|
/** |
|
715
|
|
|
* @method string getFileType() |
|
716
|
|
|
* @method string getFileURL() |
|
717
|
|
|
*/ |
|
718
|
|
|
class RecognizeVATInvoice extends Rpc |
|
719
|
|
|
{ |
|
720
|
|
|
|
|
721
|
|
|
/** |
|
722
|
|
|
* @param string $value |
|
723
|
|
|
* |
|
724
|
|
|
* @return $this |
|
725
|
|
|
*/ |
|
726
|
|
|
public function withFileType($value) |
|
727
|
|
|
{ |
|
728
|
|
|
$this->data['FileType'] = $value; |
|
729
|
|
|
$this->options['form_params']['FileType'] = $value; |
|
730
|
|
|
|
|
731
|
|
|
return $this; |
|
732
|
|
|
} |
|
733
|
|
|
|
|
734
|
|
|
/** |
|
735
|
|
|
* @param string $value |
|
736
|
|
|
* |
|
737
|
|
|
* @return $this |
|
738
|
|
|
*/ |
|
739
|
|
|
public function withFileURL($value) |
|
740
|
|
|
{ |
|
741
|
|
|
$this->data['FileURL'] = $value; |
|
742
|
|
|
$this->options['form_params']['FileURL'] = $value; |
|
743
|
|
|
|
|
744
|
|
|
return $this; |
|
745
|
|
|
} |
|
746
|
|
|
} |
|
747
|
|
|
|
|
748
|
|
|
/** |
|
749
|
|
|
* @method string getAsync() |
|
750
|
|
|
* @method string getVideoURL() |
|
751
|
|
|
*/ |
|
752
|
|
|
class RecognizeVideoCharacter extends Rpc |
|
753
|
|
|
{ |
|
754
|
|
|
|
|
755
|
|
|
/** |
|
756
|
|
|
* @param string $value |
|
757
|
|
|
* |
|
758
|
|
|
* @return $this |
|
759
|
|
|
*/ |
|
760
|
|
|
public function withAsync($value) |
|
761
|
|
|
{ |
|
762
|
|
|
$this->data['Async'] = $value; |
|
763
|
|
|
$this->options['form_params']['Async'] = $value; |
|
764
|
|
|
|
|
765
|
|
|
return $this; |
|
766
|
|
|
} |
|
767
|
|
|
|
|
768
|
|
|
/** |
|
769
|
|
|
* @param string $value |
|
770
|
|
|
* |
|
771
|
|
|
* @return $this |
|
772
|
|
|
*/ |
|
773
|
|
|
public function withVideoURL($value) |
|
774
|
|
|
{ |
|
775
|
|
|
$this->data['VideoURL'] = $value; |
|
776
|
|
|
$this->options['form_params']['VideoURL'] = $value; |
|
777
|
|
|
|
|
778
|
|
|
return $this; |
|
779
|
|
|
} |
|
780
|
|
|
} |
|
781
|
|
|
|
|
782
|
|
|
/** |
|
783
|
|
|
* @method string getImageType() |
|
784
|
|
|
* @method $this withImageType($value) |
|
785
|
|
|
* @method string getImageURL() |
|
786
|
|
|
* @method $this withImageURL($value) |
|
787
|
|
|
*/ |
|
788
|
|
|
class RecognizeVINCode extends Rpc |
|
789
|
|
|
{ |
|
790
|
|
|
} |
|
791
|
|
|
|