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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
|
<?php return [
'version' => '1.0',
'info' => [
'style' => 'RPC',
'product' => 'documentAutoml',
'version' => '2022-12-29',
],
'directories' => [
'PredictTemplateModel',
'PredictModel',
'PredictClassifierModel',
'CreateModelAsyncPredict',
'GetModelAsyncPredict',
'PredictPreTrainModel',
],
'components' => [
'schemas' => [],
],
'apis' => [
'PredictTemplateModel' => [
'summary' => '文档自学习模版模型预测接口',
'methods' => [
'post',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
],
'parameters' => [
[
'name' => 'TaskId',
'in' => 'query',
'schema' => [
'description' => '',
'type' => 'integer',
'format' => 'int64',
'required' => true,
'example' => '',
],
],
[
'name' => 'Content',
'in' => 'query',
'schema' => [
'description' => '',
'type' => 'string',
'required' => false,
'example' => '',
],
],
[
'name' => 'BinaryToText',
'in' => 'query',
'schema' => [
'description' => '',
'type' => 'boolean',
'required' => false,
'example' => '',
],
],
[
'name' => 'Body',
'in' => 'formData',
'schema' => [
'description' => '',
'type' => 'string',
'required' => false,
'example' => 'data:image/png;base64,xxxxx',
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => [
'title' => 'Id of the request',
'description' => 'Id of the request',
'type' => 'string',
'example' => 'F25FBAB4-665A-5D85-8AEF-39AE29F7D588',
],
'Data' => [
'description' => '',
'type' => 'object',
'example' => '',
],
'Message' => [
'description' => '',
'type' => 'string',
'example' => 'successful',
],
'Code' => [
'description' => '',
'type' => 'string',
'example' => '200',
],
],
],
],
],
'errorCodes' => [
200 => [
[
'errorCode' => '21002',
'errorMessage' => '模板预测超时',
],
[
'errorCode' => '21003',
'errorMessage' => '模板预测失败',
],
[
'errorCode' => '21004',
'errorMessage' => '模板提交失败 ',
],
[
'errorCode' => '10001',
'errorMessage' => '参数出错 ',
],
[
'errorCode' => '10005',
'errorMessage' => '服务不存在 ',
],
[
'errorCode' => '21018',
'errorMessage' => '未找到模板信息 ',
],
[
'errorCode' => '16001',
'errorMessage' => '未找到可预测的模型',
],
[
'errorCode' => '16004',
'errorMessage' => '指定的模型不存在',
],
[
'errorCode' => '23002',
'errorMessage' => '获取资源HTTP异常 ',
],
[
'errorCode' => '22002',
'errorMessage' => 'ocr服务异常 ',
],
[
'errorCode' => '11002',
'errorMessage' => '账号没有开通服务 ',
],
[
'errorCode' => '19999',
'errorMessage' => '未知异常',
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F25FBAB4-665A-5D85-8AEF-39AE29F7D588\\",\\n \\"Data\\": {\\n \\"score\\": 0.9091,\\n \\"data\\": [\\n {\\n \\"prob\\": 1,\\n \\"fieldName\\": \\"姓名\\",\\n \\"fieldWordRaw\\": \\"方大呆\\",\\n \\"wordInfo\\": [\\n {\\n \\"prob\\": 0.9899999999999999,\\n \\"location\\": [\\n {\\n \\"x\\": 119,\\n \\"y\\": 48\\n },\\n {\\n \\"x\\": 199,\\n \\"y\\": 48\\n },\\n {\\n \\"x\\": 199,\\n \\"y\\": 69\\n },\\n {\\n \\"x\\": 119,\\n \\"y\\": 69\\n }\\n ],\\n \\"word\\": \\"方大呆\\",\\n \\"charInfo\\": [\\n {\\n \\"prob\\": 0.99,\\n \\"location\\": [\\n {\\n \\"x\\": 119,\\n \\"y\\": 48\\n },\\n {\\n \\"x\\": 142,\\n \\"y\\": 48\\n },\\n {\\n \\"x\\": 142,\\n \\"y\\": 67\\n },\\n {\\n \\"x\\": 119,\\n \\"y\\": 67\\n }\\n ],\\n \\"word\\": \\"方\\"\\n },\\n {\\n \\"prob\\": 0.99,\\n \\"location\\": [\\n {\\n \\"x\\": 142,\\n \\"y\\": 48\\n },\\n {\\n \\"x\\": 165,\\n \\"y\\": 48\\n },\\n {\\n \\"x\\": 165,\\n \\"y\\": 67\\n },\\n {\\n \\"x\\": 142,\\n \\"y\\": 67\\n }\\n ],\\n \\"word\\": \\"大\\"\\n },\\n {\\n \\"prob\\": 0.99,\\n \\"location\\": [\\n {\\n \\"x\\": 167,\\n \\"y\\": 48\\n },\\n {\\n \\"x\\": 197,\\n \\"y\\": 48\\n },\\n {\\n \\"x\\": 197,\\n \\"y\\": 67\\n },\\n {\\n \\"x\\": 167,\\n \\"y\\": 67\\n }\\n ],\\n \\"word\\": \\"呆\\"\\n }\\n ]\\n }\\n ],\\n \\"location\\": [\\n {\\n \\"x\\": 119,\\n \\"y\\": 48\\n },\\n {\\n \\"x\\": 199,\\n \\"y\\": 48\\n },\\n {\\n \\"x\\": 199,\\n \\"y\\": 69\\n },\\n {\\n \\"x\\": 119,\\n \\"y\\": 69\\n }\\n ],\\n \\"fieldWord\\": \\"方大呆\\"\\n },\\n {\\n \\"prob\\": 1,\\n \\"fieldName\\": \\"性别\\",\\n \\"fieldWordRaw\\": \\"男\\",\\n \\"wordInfo\\": [\\n {\\n \\"prob\\": 0.99,\\n \\"location\\": [\\n {\\n \\"x\\": 117,\\n \\"y\\": 93\\n },\\n {\\n \\"x\\": 142,\\n \\"y\\": 93\\n },\\n {\\n \\"x\\": 142,\\n \\"y\\": 112\\n },\\n {\\n \\"x\\": 117,\\n \\"y\\": 112\\n }\\n ],\\n \\"word\\": \\"男\\",\\n \\"charInfo\\": [\\n {\\n \\"prob\\": 0.99,\\n \\"location\\": [\\n {\\n \\"x\\": 117,\\n \\"y\\": 93\\n },\\n {\\n \\"x\\": 142,\\n \\"y\\": 93\\n },\\n {\\n \\"x\\": 142,\\n \\"y\\": 112\\n },\\n {\\n \\"x\\": 117,\\n \\"y\\": 112\\n }\\n ],\\n \\"word\\": \\"男\\"\\n }\\n ]\\n }\\n ],\\n \\"location\\": [\\n {\\n \\"x\\": 117,\\n \\"y\\": 93\\n },\\n {\\n \\"x\\": 142,\\n \\"y\\": 93\\n },\\n {\\n \\"x\\": 142,\\n \\"y\\": 112\\n },\\n {\\n \\"x\\": 117,\\n \\"y\\": 112\\n }\\n ],\\n \\"fieldWord\\": \\"男\\"\\n },\\n {\\n \\"prob\\": 1,\\n \\"fieldName\\": \\"身份证号\\",\\n \\"fieldWordRaw\\": \\"310101********3222\\",\\n \\"wordInfo\\": [\\n {\\n \\"prob\\": 0.9899999999999998,\\n \\"location\\": [\\n {\\n \\"x\\": 206,\\n \\"y\\": 301\\n },\\n {\\n \\"x\\": 518,\\n \\"y\\": 301\\n },\\n {\\n \\"x\\": 518,\\n \\"y\\": 320\\n },\\n {\\n \\"x\\": 206,\\n \\"y\\": 320\\n }\\n ],\\n \\"word\\": \\"310101198610203222\\",\\n \\"charInfo\\": [\\n {\\n \\"prob\\": 0.99,\\n \\"location\\": [\\n {\\n \\"x\\": 206,\\n \\"y\\": 302\\n },\\n {\\n \\"x\\": 223,\\n \\"y\\": 302\\n },\\n {\\n \\"x\\": 223,\\n \\"y\\": 319\\n },\\n {\\n \\"x\\": 206,\\n \\"y\\": 319\\n }\\n ],\\n \\"word\\": \\"3\\"\\n },\\n {\\n \\"prob\\": 0.99,\\n \\"location\\": [\\n {\\n \\"x\\": 223,\\n \\"y\\": 302\\n },\\n {\\n \\"x\\": 238,\\n \\"y\\": 302\\n },\\n {\\n \\"x\\": 238,\\n \\"y\\": 319\\n },\\n {\\n \\"x\\": 223,\\n \\"y\\": 319\\n }\\n ],\\n \\"word\\": \\"1\\"\\n },\\n {\\n \\"prob\\": 0.99,\\n \\"location\\": [\\n {\\n \\"x\\": 240,\\n \\"y\\": 302\\n },\\n {\\n \\"x\\": 255,\\n \\"y\\": 302\\n },\\n {\\n \\"x\\": 255,\\n \\"y\\": 319\\n },\\n {\\n \\"x\\": 240,\\n \\"y\\": 319\\n }\\n ],\\n \\"word\\": \\"0\\"\\n },\\n {\\n \\"prob\\": 0.99,\\n \\"location\\": [\\n {\\n \\"x\\": 259,\\n \\"y\\": 302\\n },\\n {\\n \\"x\\": 274,\\n \\"y\\": 302\\n },\\n {\\n \\"x\\": 274,\\n \\"y\\": 319\\n },\\n {\\n \\"x\\": 259,\\n \\"y\\": 319\\n }\\n ],\\n \\"word\\": \\"1\\"\\n },\\n {\\n \\"prob\\": 0.99,\\n \\"location\\": [\\n {\\n \\"x\\": 276,\\n \\"y\\": 302\\n },\\n {\\n \\"x\\": 291,\\n \\"y\\": 302\\n },\\n {\\n \\"x\\": 291,\\n \\"y\\": 319\\n },\\n {\\n \\"x\\": 276,\\n \\"y\\": 319\\n }\\n ],\\n \\"word\\": \\"0\\"\\n },\\n {\\n \\"prob\\": 0.99,\\n \\"location\\": [\\n {\\n \\"x\\": 292,\\n \\"y\\": 302\\n },\\n {\\n \\"x\\": 307,\\n \\"y\\": 302\\n },\\n {\\n \\"x\\": 307,\\n \\"y\\": 319\\n },\\n {\\n \\"x\\": 292,\\n \\"y\\": 319\\n }\\n ],\\n \\"word\\": \\"1\\"\\n },\\n {\\n \\"prob\\": 0.99,\\n \\"location\\": [\\n {\\n \\"x\\": 311,\\n \\"y\\": 302\\n },\\n {\\n \\"x\\": 326,\\n \\"y\\": 302\\n },\\n {\\n \\"x\\": 326,\\n \\"y\\": 319\\n },\\n {\\n \\"x\\": 311,\\n \\"y\\": 319\\n }\\n ],\\n \\"word\\": \\"1\\"\\n },\\n {\\n \\"prob\\": 0.99,\\n \\"location\\": [\\n {\\n \\"x\\": 328,\\n \\"y\\": 302\\n },\\n {\\n \\"x\\": 343,\\n \\"y\\": 302\\n },\\n {\\n \\"x\\": 343,\\n \\"y\\": 319\\n },\\n {\\n \\"x\\": 328,\\n \\"y\\": 319\\n }\\n ],\\n \\"word\\": \\"9\\"\\n },\\n {\\n \\"prob\\": 0.99,\\n \\"location\\": [\\n {\\n \\"x\\": 344,\\n \\"y\\": 302\\n },\\n {\\n \\"x\\": 359,\\n \\"y\\": 302\\n },\\n {\\n \\"x\\": 359,\\n \\"y\\": 319\\n },\\n {\\n \\"x\\": 344,\\n \\"y\\": 319\\n }\\n ],\\n \\"word\\": \\"8\\"\\n },\\n {\\n \\"prob\\": 0.99,\\n \\"location\\": [\\n {\\n \\"x\\": 361,\\n \\"y\\": 302\\n },\\n {\\n \\"x\\": 376,\\n \\"y\\": 302\\n },\\n {\\n \\"x\\": 376,\\n \\"y\\": 319\\n },\\n {\\n \\"x\\": 361,\\n \\"y\\": 319\\n }\\n ],\\n \\"word\\": \\"6\\"\\n },\\n {\\n \\"prob\\": 0.99,\\n \\"location\\": [\\n {\\n \\"x\\": 380,\\n \\"y\\": 302\\n },\\n {\\n \\"x\\": 395,\\n \\"y\\": 302\\n },\\n {\\n \\"x\\": 395,\\n \\"y\\": 319\\n },\\n {\\n \\"x\\": 380,\\n \\"y\\": 319\\n }\\n ],\\n \\"word\\": \\"1\\"\\n },\\n {\\n \\"prob\\": 0.99,\\n \\"location\\": [\\n {\\n \\"x\\": 396,\\n \\"y\\": 302\\n },\\n {\\n \\"x\\": 411,\\n \\"y\\": 302\\n },\\n {\\n \\"x\\": 411,\\n \\"y\\": 319\\n },\\n {\\n \\"x\\": 396,\\n \\"y\\": 319\\n }\\n ],\\n \\"word\\": \\"0\\"\\n },\\n {\\n \\"prob\\": 0.99,\\n \\"location\\": [\\n {\\n \\"x\\": 415,\\n \\"y\\": 302\\n },\\n {\\n \\"x\\": 430,\\n \\"y\\": 302\\n },\\n {\\n \\"x\\": 430,\\n \\"y\\": 319\\n },\\n {\\n \\"x\\": 415,\\n \\"y\\": 319\\n }\\n ],\\n \\"word\\": \\"2\\"\\n },\\n {\\n \\"prob\\": 0.99,\\n \\"location\\": [\\n {\\n \\"x\\": 432,\\n \\"y\\": 302\\n },\\n {\\n \\"x\\": 447,\\n \\"y\\": 302\\n },\\n {\\n \\"x\\": 447,\\n \\"y\\": 319\\n },\\n {\\n \\"x\\": 432,\\n \\"y\\": 319\\n }\\n ],\\n \\"word\\": \\"0\\"\\n },\\n {\\n \\"prob\\": 0.99,\\n \\"location\\": [\\n {\\n \\"x\\": 448,\\n \\"y\\": 302\\n },\\n {\\n \\"x\\": 463,\\n \\"y\\": 302\\n },\\n {\\n \\"x\\": 463,\\n \\"y\\": 319\\n },\\n {\\n \\"x\\": 448,\\n \\"y\\": 319\\n }\\n ],\\n \\"word\\": \\"3\\"\\n },\\n {\\n \\"prob\\": 0.99,\\n \\"location\\": [\\n {\\n \\"x\\": 467,\\n \\"y\\": 302\\n },\\n {\\n \\"x\\": 482,\\n \\"y\\": 302\\n },\\n {\\n \\"x\\": 482,\\n \\"y\\": 319\\n },\\n {\\n \\"x\\": 467,\\n \\"y\\": 319\\n }\\n ],\\n \\"word\\": \\"2\\"\\n },\\n {\\n \\"prob\\": 0.99,\\n \\"location\\": [\\n {\\n \\"x\\": 484,\\n \\"y\\": 302\\n },\\n {\\n \\"x\\": 499,\\n \\"y\\": 302\\n },\\n {\\n \\"x\\": 499,\\n \\"y\\": 319\\n },\\n {\\n \\"x\\": 484,\\n \\"y\\": 319\\n }\\n ],\\n \\"word\\": \\"2\\"\\n },\\n {\\n \\"prob\\": 0.99,\\n \\"location\\": [\\n {\\n \\"x\\": 501,\\n \\"y\\": 302\\n },\\n {\\n \\"x\\": 516,\\n \\"y\\": 302\\n },\\n {\\n \\"x\\": 516,\\n \\"y\\": 319\\n },\\n {\\n \\"x\\": 501,\\n \\"y\\": 319\\n }\\n ],\\n \\"word\\": \\"2\\"\\n }\\n ]\\n }\\n ],\\n \\"location\\": [\\n {\\n \\"x\\": 206,\\n \\"y\\": 301\\n },\\n {\\n \\"x\\": 518,\\n \\"y\\": 301\\n },\\n {\\n \\"x\\": 518,\\n \\"y\\": 320\\n },\\n {\\n \\"x\\": 206,\\n \\"y\\": 320\\n }\\n ],\\n \\"fieldWord\\": \\"310101198610203222\\"\\n },\\n {\\n \\"prob\\": 1,\\n \\"fieldName\\": \\"名族\\",\\n \\"fieldWordRaw\\": \\"汉\\",\\n \\"wordInfo\\": [\\n {\\n \\"prob\\": 0.99,\\n \\"location\\": [\\n {\\n \\"x\\": 232,\\n \\"y\\": 94\\n },\\n {\\n \\"x\\": 259,\\n \\"y\\": 94\\n },\\n {\\n \\"x\\": 259,\\n \\"y\\": 112\\n },\\n {\\n \\"x\\": 232,\\n \\"y\\": 112\\n }\\n ],\\n \\"word\\": \\"汉\\",\\n \\"charInfo\\": [\\n {\\n \\"prob\\": 0.99,\\n \\"location\\": [\\n {\\n \\"x\\": 232,\\n \\"y\\": 94\\n },\\n {\\n \\"x\\": 259,\\n \\"y\\": 94\\n },\\n {\\n \\"x\\": 259,\\n \\"y\\": 112\\n },\\n {\\n \\"x\\": 232,\\n \\"y\\": 112\\n }\\n ],\\n \\"word\\": \\"汉\\"\\n }\\n ]\\n }\\n ],\\n \\"location\\": [\\n {\\n \\"x\\": 232,\\n \\"y\\": 94\\n },\\n {\\n \\"x\\": 259,\\n \\"y\\": 94\\n },\\n {\\n \\"x\\": 259,\\n \\"y\\": 112\\n },\\n {\\n \\"x\\": 232,\\n \\"y\\": 112\\n }\\n ],\\n \\"fieldWord\\": \\"汉\\"\\n }\\n ],\\n \\"specificType\\": \\"infoCustomeKvTemp\\",\\n \\"width\\": 586,\\n \\"angle\\": 0,\\n \\"classType\\": \\"template\\",\\n \\"height\\": 374,\\n \\"predictFile\\": \\"https://doc-automl-public.oss-cn-hangzhou.aliyuncs.com/demo/demo.png\\"\\n },\\n \\"Message\\": \\"successful\\",\\n \\"Code\\": \\"200\\"\\n}","type":"json"}]',
],
'PredictModel' => [
'summary' => '文档自学习模型预测接口',
'methods' => [
'post',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
],
'parameters' => [
[
'name' => 'Content',
'in' => 'query',
'schema' => [
'description' => '',
'type' => 'string',
'required' => false,
'example' => '',
],
],
[
'name' => 'ModelVersion',
'in' => 'query',
'schema' => [
'description' => '',
'type' => 'string',
'required' => false,
'example' => '1',
],
],
[
'name' => 'ModelId',
'in' => 'query',
'schema' => [
'description' => '',
'type' => 'integer',
'format' => 'int64',
'required' => true,
'maximum' => '9999999999999',
'minimum' => '1',
'example' => '123',
],
],
[
'name' => 'BinaryToText',
'in' => 'query',
'schema' => [
'description' => '',
'type' => 'boolean',
'required' => false,
'example' => '',
'default' => 'false',
],
],
[
'name' => 'Body',
'in' => 'formData',
'schema' => [
'description' => '',
'type' => 'string',
'required' => false,
'example' => 'data:image/png;base64,xxxxx'."\n",
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => [
'title' => 'Id of the request',
'description' => 'Id of the request',
'type' => 'string',
'example' => '3EAC98E6-8DD6-511F-8764-DEE8B6EB6BB4',
],
'Code' => [
'description' => '',
'type' => 'integer',
'format' => 'int32',
'example' => '200',
],
'Message' => [
'description' => '',
'type' => 'string',
'example' => 'success',
],
'Data' => [
'description' => '',
'type' => 'object',
'example' => '',
],
],
],
],
],
'errorCodes' => [
200 => [
[
'errorCode' => '21002',
'errorMessage' => '模板预测超时 ',
],
[
'errorCode' => '21003',
'errorMessage' => '模板预测失败 ',
],
[
'errorCode' => '10001',
'errorMessage' => '参数出错',
],
[
'errorCode' => '10005',
'errorMessage' => '服务不存在',
],
[
'errorCode' => '16001',
'errorMessage' => '未找到可预测的模型',
],
[
'errorCode' => '13018',
'errorMessage' => '未找到模型信息',
],
[
'errorCode' => '16004',
'errorMessage' => '指定的模型不存在',
],
[
'errorCode' => '23002',
'errorMessage' => '获取资源HTTP异常',
],
[
'errorCode' => '11002',
'errorMessage' => '账号没有开通服务',
],
[
'errorCode' => '19999',
'errorMessage' => '未知异常',
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"3EAC98E6-8DD6-511F-8764-DEE8B6EB6BB4\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"Data\\": {\\n \\"RequestId\\": \\"0C066DD3-F55D-18F7-8577-DE533E04054D\\",\\n \\"Message\\": \\"\\",\\n \\"Data\\": {\\n \\"code\\": 200,\\n \\"data\\": {\\n \\"姓名\\": \\"xxx\\",\\n \\"证号\\": \\"xxx\\",\\n \\"性别\\": \\"女\\"\\n },\\n \\"specificType\\": \\"ocr_infoExtractBill\\",\\n \\"originalFileUrl\\": \\"https://doc-automl-public.oss-cn-hangzhou.aliyuncs.com/demo/extractBill.png\\",\\n \\"message\\": \\"\\",\\n \\"type\\": \\"卡证\\",\\n \\"version\\": \\"1.0.9\\",\\n \\"predictFile\\": \\"\\",\\n \\"tim_img\\": \\"17\\",\\n \\"score\\": 1.05,\\n \\"wid\\": \\"1544\\",\\n \\"hgt\\": \\"1054\\",\\n \\"imageUrl\\": \\"\\",\\n \\"angle\\": \\"0\\",\\n \\"orig_hgt\\": \\"1054\\",\\n \\"orig_wid\\": \\"1544\\",\\n \\"tim_ocr\\": \\"97\\",\\n \\"classType\\": \\"model\\",\\n \\"info\\": [\\n {\\n \\"value_loc\\": \\"595,314,595,399,398,399,398,314\\",\\n \\"key_prob\\": 1,\\n \\"key_loc\\": \\"\\",\\n \\"value_prob\\": 1,\\n \\"value\\": \\"XXX\\",\\n \\"key\\": \\"姓名\\"\\n },\\n {\\n \\"value_loc\\": \\"1256,234,1256,312,678,312,678,233\\",\\n \\"key_prob\\": 1,\\n \\"key_loc\\": \\"\\",\\n \\"value_prob\\": 1,\\n \\"value\\": \\"440305198305101408\\",\\n \\"key\\": \\"证号\\"\\n },\\n {\\n \\"value_loc\\": \\"965,321,965,394,851,394,851,321\\",\\n \\"key_prob\\": 1,\\n \\"key_loc\\": \\"\\",\\n \\"value_prob\\": 1,\\n \\"value\\": \\"女\\",\\n \\"key\\": \\"性别\\"\\n }\\n ]\\n },\\n \\"Code\\": 200\\n }\\n}","type":"json"}]',
],
'PredictClassifierModel' => [
'summary' => '文档自学习分类器预测接口',
'methods' => [
'post',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
],
'parameters' => [
[
'name' => 'ClassifierId',
'in' => 'query',
'schema' => [
'description' => '',
'type' => 'integer',
'format' => 'int64',
'required' => false,
'maximum' => '99999999999999',
'minimum' => '1',
'example' => '',
],
],
[
'name' => 'AutoPrediction',
'in' => 'query',
'schema' => [
'description' => '',
'type' => 'boolean',
'required' => false,
'example' => 'true',
'default' => 'true',
],
],
[
'name' => 'Content',
'in' => 'query',
'schema' => [
'description' => '',
'type' => 'string',
'required' => false,
'example' => '',
],
],
[
'name' => 'Body',
'in' => 'formData',
'schema' => [
'description' => '',
'type' => 'string',
'required' => false,
'example' => 'data:image/png;base64,xxxxx'."\n",
],
],
[
'name' => 'BinaryToText',
'in' => 'query',
'schema' => [
'type' => 'boolean',
'required' => false,
'default' => 'false',
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => [
'title' => 'Id of the request',
'description' => 'Id of the request',
'type' => 'string',
'example' => '232B91A8-9938-5C10-B522-127D1E342A57',
],
'Code' => [
'description' => '',
'type' => 'integer',
'format' => 'int32',
'example' => '200',
],
'Data' => [
'description' => '',
'type' => 'object',
'example' => '',
],
'Message' => [
'description' => '',
'type' => 'string',
'example' => 'success',
],
],
],
],
],
'errorCodes' => [
200 => [
[
'errorCode' => '21002',
'errorMessage' => '模板预测超时',
],
[
'errorCode' => '21003',
'errorMessage' => '模板预测失败',
],
[
'errorCode' => '21004',
'errorMessage' => '模板提交失败',
],
[
'errorCode' => '10001',
'errorMessage' => '参数出错',
],
[
'errorCode' => '10002',
'errorMessage' => '没有权限',
],
[
'errorCode' => '10003',
'errorMessage' => '非法状态',
],
[
'errorCode' => '10005',
'errorMessage' => '服务不存在',
],
[
'errorCode' => '21018',
'errorMessage' => '未找到模板信息',
],
[
'errorCode' => '16001',
'errorMessage' => '未找到可预测的模型',
],
[
'errorCode' => '16004',
'errorMessage' => '指定的模型不存在',
],
[
'errorCode' => '23002',
'errorMessage' => '获取资源HTTP异常',
],
[
'errorCode' => '22002',
'errorMessage' => 'ocr服务异常',
],
[
'errorCode' => '11002',
'errorMessage' => '账号没有开通服务',
],
[
'errorCode' => '19999',
'errorMessage' => '未知异常',
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"232B91A8-9938-5C10-B522-127D1E342A57\\",\\n \\"Code\\": 200,\\n \\"Data\\": {\\n \\"score\\": 1,\\n \\"classID\\": \\"269_2b6819527769749d962bf51d034b1820\\",\\n \\"tables\\": [\\n {\\n \\"columns\\": [\\n {\\n \\"header_value\\": \\"姓名\\",\\n \\"bodies\\": [\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"学生1\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 76,\\n \\"y\\": 99\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 99\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 123\\n },\\n {\\n \\"x\\": 76,\\n \\"y\\": 123\\n }\\n ],\\n \\"value\\": \\"学生1\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"学生2\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 76,\\n \\"y\\": 123\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 123\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 146\\n },\\n {\\n \\"x\\": 76,\\n \\"y\\": 146\\n }\\n ],\\n \\"value\\": \\"学生2\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"学生3\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 76,\\n \\"y\\": 146\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 146\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 169\\n },\\n {\\n \\"x\\": 76,\\n \\"y\\": 169\\n }\\n ],\\n \\"value\\": \\"学生3\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"学生4\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 76,\\n \\"y\\": 169\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 169\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 191\\n },\\n {\\n \\"x\\": 76,\\n \\"y\\": 191\\n }\\n ],\\n \\"value\\": \\"学生4\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"学生5\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 76,\\n \\"y\\": 191\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 191\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 215\\n },\\n {\\n \\"x\\": 76,\\n \\"y\\": 215\\n }\\n ],\\n \\"value\\": \\"学生5\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"学生6\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 76,\\n \\"y\\": 215\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 215\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 238\\n },\\n {\\n \\"x\\": 76,\\n \\"y\\": 238\\n }\\n ],\\n \\"value\\": \\"学生6\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"学生7\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 76,\\n \\"y\\": 238\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 238\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 261\\n },\\n {\\n \\"x\\": 76,\\n \\"y\\": 261\\n }\\n ],\\n \\"value\\": \\"学生7\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"学生8\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 76,\\n \\"y\\": 261\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 261\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 283\\n },\\n {\\n \\"x\\": 76,\\n \\"y\\": 283\\n }\\n ],\\n \\"value\\": \\"学生8\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"学生9\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 76,\\n \\"y\\": 283\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 283\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 307\\n },\\n {\\n \\"x\\": 76,\\n \\"y\\": 307\\n }\\n ],\\n \\"value\\": \\"学生9\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"学生10\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 76,\\n \\"y\\": 307\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 307\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 330\\n },\\n {\\n \\"x\\": 76,\\n \\"y\\": 330\\n }\\n ],\\n \\"value\\": \\"学生10\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 76,\\n \\"y\\": 330\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 330\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 352\\n },\\n {\\n \\"x\\": 76,\\n \\"y\\": 352\\n }\\n ],\\n \\"value\\": \\"\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 76,\\n \\"y\\": 352\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 352\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 375\\n },\\n {\\n \\"x\\": 76,\\n \\"y\\": 375\\n }\\n ],\\n \\"value\\": \\"\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 76,\\n \\"y\\": 375\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 375\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 399\\n },\\n {\\n \\"x\\": 76,\\n \\"y\\": 399\\n }\\n ],\\n \\"value\\": \\"\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 76,\\n \\"y\\": 399\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 399\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 422\\n },\\n {\\n \\"x\\": 76,\\n \\"y\\": 422\\n }\\n ],\\n \\"value\\": \\"\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 76,\\n \\"y\\": 422\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 422\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 444\\n },\\n {\\n \\"x\\": 76,\\n \\"y\\": 444\\n }\\n ],\\n \\"value\\": \\"\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 76,\\n \\"y\\": 444\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 444\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 467\\n },\\n {\\n \\"x\\": 76,\\n \\"y\\": 467\\n }\\n ],\\n \\"value\\": \\"\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 76,\\n \\"y\\": 467\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 467\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 491\\n },\\n {\\n \\"x\\": 76,\\n \\"y\\": 491\\n }\\n ],\\n \\"value\\": \\"\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 76,\\n \\"y\\": 491\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 491\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 514\\n },\\n {\\n \\"x\\": 76,\\n \\"y\\": 514\\n }\\n ],\\n \\"value\\": \\"\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 76,\\n \\"y\\": 514\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 514\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 536\\n },\\n {\\n \\"x\\": 76,\\n \\"y\\": 536\\n }\\n ],\\n \\"value\\": \\"\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 76,\\n \\"y\\": 536\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 536\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 559\\n },\\n {\\n \\"x\\": 76,\\n \\"y\\": 559\\n }\\n ],\\n \\"value\\": \\"\\"\\n }\\n ],\\n \\"header_box\\": [\\n {\\n \\"x\\": 96,\\n \\"y\\": 79\\n },\\n {\\n \\"x\\": 162,\\n \\"y\\": 79\\n },\\n {\\n \\"x\\": 162,\\n \\"y\\": 98\\n },\\n {\\n \\"x\\": 96,\\n \\"y\\": 98\\n }\\n ],\\n \\"col_name\\": \\"name\\"\\n },\\n {\\n \\"header_value\\": \\"性别\\",\\n \\"bodies\\": [\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"男\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 187,\\n \\"y\\": 100\\n },\\n {\\n \\"x\\": 296,\\n \\"y\\": 100\\n },\\n {\\n \\"x\\": 296,\\n \\"y\\": 123\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 123\\n }\\n ],\\n \\"value\\": \\"男\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"男\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 187,\\n \\"y\\": 123\\n },\\n {\\n \\"x\\": 296,\\n \\"y\\": 123\\n },\\n {\\n \\"x\\": 296,\\n \\"y\\": 146\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 146\\n }\\n ],\\n \\"value\\": \\"男\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"男\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 187,\\n \\"y\\": 146\\n },\\n {\\n \\"x\\": 296,\\n \\"y\\": 146\\n },\\n {\\n \\"x\\": 296,\\n \\"y\\": 169\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 169\\n }\\n ],\\n \\"value\\": \\"男\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"男\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 187,\\n \\"y\\": 169\\n },\\n {\\n \\"x\\": 296,\\n \\"y\\": 169\\n },\\n {\\n \\"x\\": 296,\\n \\"y\\": 191\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 191\\n }\\n ],\\n \\"value\\": \\"男\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"男\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 187,\\n \\"y\\": 191\\n },\\n {\\n \\"x\\": 296,\\n \\"y\\": 191\\n },\\n {\\n \\"x\\": 296,\\n \\"y\\": 215\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 215\\n }\\n ],\\n \\"value\\": \\"男\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"男\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 187,\\n \\"y\\": 215\\n },\\n {\\n \\"x\\": 296,\\n \\"y\\": 215\\n },\\n {\\n \\"x\\": 296,\\n \\"y\\": 238\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 238\\n }\\n ],\\n \\"value\\": \\"男\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"女\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 187,\\n \\"y\\": 238\\n },\\n {\\n \\"x\\": 296,\\n \\"y\\": 238\\n },\\n {\\n \\"x\\": 296,\\n \\"y\\": 261\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 261\\n }\\n ],\\n \\"value\\": \\"女\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"女\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 187,\\n \\"y\\": 261\\n },\\n {\\n \\"x\\": 296,\\n \\"y\\": 261\\n },\\n {\\n \\"x\\": 296,\\n \\"y\\": 283\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 283\\n }\\n ],\\n \\"value\\": \\"女\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"女\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 187,\\n \\"y\\": 283\\n },\\n {\\n \\"x\\": 296,\\n \\"y\\": 283\\n },\\n {\\n \\"x\\": 296,\\n \\"y\\": 307\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 307\\n }\\n ],\\n \\"value\\": \\"女\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"女\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 187,\\n \\"y\\": 307\\n },\\n {\\n \\"x\\": 296,\\n \\"y\\": 307\\n },\\n {\\n \\"x\\": 296,\\n \\"y\\": 330\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 330\\n }\\n ],\\n \\"value\\": \\"女\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 187,\\n \\"y\\": 330\\n },\\n {\\n \\"x\\": 296,\\n \\"y\\": 330\\n },\\n {\\n \\"x\\": 296,\\n \\"y\\": 352\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 352\\n }\\n ],\\n \\"value\\": \\"\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 187,\\n \\"y\\": 352\\n },\\n {\\n \\"x\\": 296,\\n \\"y\\": 352\\n },\\n {\\n \\"x\\": 296,\\n \\"y\\": 375\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 375\\n }\\n ],\\n \\"value\\": \\"\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 187,\\n \\"y\\": 375\\n },\\n {\\n \\"x\\": 296,\\n \\"y\\": 375\\n },\\n {\\n \\"x\\": 296,\\n \\"y\\": 399\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 399\\n }\\n ],\\n \\"value\\": \\"\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 187,\\n \\"y\\": 399\\n },\\n {\\n \\"x\\": 296,\\n \\"y\\": 399\\n },\\n {\\n \\"x\\": 296,\\n \\"y\\": 422\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 422\\n }\\n ],\\n \\"value\\": \\"\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 187,\\n \\"y\\": 422\\n },\\n {\\n \\"x\\": 296,\\n \\"y\\": 422\\n },\\n {\\n \\"x\\": 296,\\n \\"y\\": 444\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 444\\n }\\n ],\\n \\"value\\": \\"\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 187,\\n \\"y\\": 444\\n },\\n {\\n \\"x\\": 296,\\n \\"y\\": 444\\n },\\n {\\n \\"x\\": 296,\\n \\"y\\": 467\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 467\\n }\\n ],\\n \\"value\\": \\"\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 187,\\n \\"y\\": 467\\n },\\n {\\n \\"x\\": 296,\\n \\"y\\": 467\\n },\\n {\\n \\"x\\": 296,\\n \\"y\\": 491\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 491\\n }\\n ],\\n \\"value\\": \\"\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 187,\\n \\"y\\": 491\\n },\\n {\\n \\"x\\": 296,\\n \\"y\\": 491\\n },\\n {\\n \\"x\\": 296,\\n \\"y\\": 514\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 514\\n }\\n ],\\n \\"value\\": \\"\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 187,\\n \\"y\\": 514\\n },\\n {\\n \\"x\\": 296,\\n \\"y\\": 514\\n },\\n {\\n \\"x\\": 296,\\n \\"y\\": 536\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 536\\n }\\n ],\\n \\"value\\": \\"\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 187,\\n \\"y\\": 536\\n },\\n {\\n \\"x\\": 296,\\n \\"y\\": 536\\n },\\n {\\n \\"x\\": 296,\\n \\"y\\": 559\\n },\\n {\\n \\"x\\": 187,\\n \\"y\\": 559\\n }\\n ],\\n \\"value\\": \\"\\"\\n }\\n ],\\n \\"header_box\\": [\\n {\\n \\"x\\": 210,\\n \\"y\\": 78\\n },\\n {\\n \\"x\\": 267,\\n \\"y\\": 78\\n },\\n {\\n \\"x\\": 267,\\n \\"y\\": 100\\n },\\n {\\n \\"x\\": 210,\\n \\"y\\": 100\\n }\\n ],\\n \\"col_name\\": \\"sex\\"\\n },\\n {\\n \\"header_value\\": \\"档案号\\",\\n \\"bodies\\": [\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"D001\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 406,\\n \\"y\\": 100\\n },\\n {\\n \\"x\\": 520,\\n \\"y\\": 100\\n },\\n {\\n \\"x\\": 520,\\n \\"y\\": 123\\n },\\n {\\n \\"x\\": 406,\\n \\"y\\": 123\\n }\\n ],\\n \\"value\\": \\"D001\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"D002\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 406,\\n \\"y\\": 123\\n },\\n {\\n \\"x\\": 520,\\n \\"y\\": 123\\n },\\n {\\n \\"x\\": 520,\\n \\"y\\": 146\\n },\\n {\\n \\"x\\": 406,\\n \\"y\\": 146\\n }\\n ],\\n \\"value\\": \\"D002\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"D003\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 406,\\n \\"y\\": 146\\n },\\n {\\n \\"x\\": 520,\\n \\"y\\": 146\\n },\\n {\\n \\"x\\": 520,\\n \\"y\\": 169\\n },\\n {\\n \\"x\\": 406,\\n \\"y\\": 169\\n }\\n ],\\n \\"value\\": \\"D003\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"D004\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 406,\\n \\"y\\": 169\\n },\\n {\\n \\"x\\": 520,\\n \\"y\\": 169\\n },\\n {\\n \\"x\\": 520,\\n \\"y\\": 191\\n },\\n {\\n \\"x\\": 406,\\n \\"y\\": 191\\n }\\n ],\\n \\"value\\": \\"D004\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"D005\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 406,\\n \\"y\\": 191\\n },\\n {\\n \\"x\\": 520,\\n \\"y\\": 191\\n },\\n {\\n \\"x\\": 520,\\n \\"y\\": 215\\n },\\n {\\n \\"x\\": 406,\\n \\"y\\": 215\\n }\\n ],\\n \\"value\\": \\"D005\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"D006\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 406,\\n \\"y\\": 215\\n },\\n {\\n \\"x\\": 520,\\n \\"y\\": 215\\n },\\n {\\n \\"x\\": 520,\\n \\"y\\": 238\\n },\\n {\\n \\"x\\": 406,\\n \\"y\\": 238\\n }\\n ],\\n \\"value\\": \\"D006\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"D007\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 406,\\n \\"y\\": 238\\n },\\n {\\n \\"x\\": 520,\\n \\"y\\": 238\\n },\\n {\\n \\"x\\": 520,\\n \\"y\\": 261\\n },\\n {\\n \\"x\\": 406,\\n \\"y\\": 261\\n }\\n ],\\n \\"value\\": \\"D007\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"D008\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 406,\\n \\"y\\": 261\\n },\\n {\\n \\"x\\": 520,\\n \\"y\\": 261\\n },\\n {\\n \\"x\\": 520,\\n \\"y\\": 283\\n },\\n {\\n \\"x\\": 406,\\n \\"y\\": 283\\n }\\n ],\\n \\"value\\": \\"D008\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"D009\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 406,\\n \\"y\\": 283\\n },\\n {\\n \\"x\\": 520,\\n \\"y\\": 283\\n },\\n {\\n \\"x\\": 520,\\n \\"y\\": 307\\n },\\n {\\n \\"x\\": 406,\\n \\"y\\": 307\\n }\\n ],\\n \\"value\\": \\"D009\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"D010\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 406,\\n \\"y\\": 307\\n },\\n {\\n \\"x\\": 520,\\n \\"y\\": 307\\n },\\n {\\n \\"x\\": 520,\\n \\"y\\": 330\\n },\\n {\\n \\"x\\": 406,\\n \\"y\\": 330\\n }\\n ],\\n \\"value\\": \\"D010\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 406,\\n \\"y\\": 330\\n },\\n {\\n \\"x\\": 520,\\n \\"y\\": 330\\n },\\n {\\n \\"x\\": 520,\\n \\"y\\": 352\\n },\\n {\\n \\"x\\": 406,\\n \\"y\\": 352\\n }\\n ],\\n \\"value\\": \\"\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 406,\\n \\"y\\": 352\\n },\\n {\\n \\"x\\": 520,\\n \\"y\\": 352\\n },\\n {\\n \\"x\\": 520,\\n \\"y\\": 375\\n },\\n {\\n \\"x\\": 406,\\n \\"y\\": 375\\n }\\n ],\\n \\"value\\": \\"\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 406,\\n \\"y\\": 375\\n },\\n {\\n \\"x\\": 520,\\n \\"y\\": 375\\n },\\n {\\n \\"x\\": 520,\\n \\"y\\": 398\\n },\\n {\\n \\"x\\": 406,\\n \\"y\\": 398\\n }\\n ],\\n \\"value\\": \\"\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 406,\\n \\"y\\": 398\\n },\\n {\\n \\"x\\": 520,\\n \\"y\\": 398\\n },\\n {\\n \\"x\\": 520,\\n \\"y\\": 422\\n },\\n {\\n \\"x\\": 406,\\n \\"y\\": 422\\n }\\n ],\\n \\"value\\": \\"\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 406,\\n \\"y\\": 422\\n },\\n {\\n \\"x\\": 520,\\n \\"y\\": 422\\n },\\n {\\n \\"x\\": 520,\\n \\"y\\": 444\\n },\\n {\\n \\"x\\": 406,\\n \\"y\\": 444\\n }\\n ],\\n \\"value\\": \\"\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 406,\\n \\"y\\": 444\\n },\\n {\\n \\"x\\": 520,\\n \\"y\\": 444\\n },\\n {\\n \\"x\\": 520,\\n \\"y\\": 467\\n },\\n {\\n \\"x\\": 406,\\n \\"y\\": 467\\n }\\n ],\\n \\"value\\": \\"\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 406,\\n \\"y\\": 467\\n },\\n {\\n \\"x\\": 520,\\n \\"y\\": 467\\n },\\n {\\n \\"x\\": 520,\\n \\"y\\": 491\\n },\\n {\\n \\"x\\": 406,\\n \\"y\\": 491\\n }\\n ],\\n \\"value\\": \\"\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 406,\\n \\"y\\": 491\\n },\\n {\\n \\"x\\": 520,\\n \\"y\\": 491\\n },\\n {\\n \\"x\\": 520,\\n \\"y\\": 514\\n },\\n {\\n \\"x\\": 406,\\n \\"y\\": 514\\n }\\n ],\\n \\"value\\": \\"\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 406,\\n \\"y\\": 514\\n },\\n {\\n \\"x\\": 520,\\n \\"y\\": 514\\n },\\n {\\n \\"x\\": 520,\\n \\"y\\": 536\\n },\\n {\\n \\"x\\": 406,\\n \\"y\\": 536\\n }\\n ],\\n \\"value\\": \\"\\"\\n },\\n {\\n \\"prob\\": 0,\\n \\"fieldWordRaw\\": \\"\\",\\n \\"wordInfo\\": [],\\n \\"location\\": [\\n {\\n \\"x\\": 406,\\n \\"y\\": 536\\n },\\n {\\n \\"x\\": 520,\\n \\"y\\": 536\\n },\\n {\\n \\"x\\": 520,\\n \\"y\\": 559\\n },\\n {\\n \\"x\\": 406,\\n \\"y\\": 559\\n }\\n ],\\n \\"value\\": \\"\\"\\n }\\n ],\\n \\"header_box\\": [\\n {\\n \\"x\\": 430,\\n \\"y\\": 78\\n },\\n {\\n \\"x\\": 493,\\n \\"y\\": 78\\n },\\n {\\n \\"x\\": 493,\\n \\"y\\": 99\\n },\\n {\\n \\"x\\": 430,\\n \\"y\\": 99\\n }\\n ],\\n \\"col_name\\": \\"ID\\"\\n }\\n ],\\n \\"table_id\\": 1675670984484\\n }\\n ],\\n \\"code\\": 0,\\n \\"data\\": [\\n {\\n \\"prob\\": 0.99,\\n \\"fieldWordRaw\\": \\"班级:初二3班\\",\\n \\"wordInfo\\": [\\n {\\n \\"prob\\": 0.99,\\n \\"pos\\": [\\n {\\n \\"x\\": 2,\\n \\"y\\": 34\\n },\\n {\\n \\"x\\": 124,\\n \\"y\\": 34\\n },\\n {\\n \\"x\\": 124,\\n \\"y\\": 51\\n },\\n {\\n \\"x\\": 2,\\n \\"y\\": 51\\n }\\n ],\\n \\"word\\": \\"班级:初二3班\\",\\n \\"charInfo\\": [\\n {\\n \\"prob\\": 0.99,\\n \\"pos\\": [\\n {\\n \\"x\\": 2,\\n \\"y\\": 34\\n },\\n {\\n \\"x\\": 18,\\n \\"y\\": 34\\n },\\n {\\n \\"x\\": 18,\\n \\"y\\": 48\\n },\\n {\\n \\"x\\": 2,\\n \\"y\\": 48\\n }\\n ],\\n \\"word\\": \\"班\\"\\n },\\n {\\n \\"prob\\": 0.99,\\n \\"pos\\": [\\n {\\n \\"x\\": 18,\\n \\"y\\": 34\\n },\\n {\\n \\"x\\": 32,\\n \\"y\\": 34\\n },\\n {\\n \\"x\\": 32,\\n \\"y\\": 48\\n },\\n {\\n \\"x\\": 18,\\n \\"y\\": 48\\n }\\n ],\\n \\"word\\": \\"级\\"\\n },\\n {\\n \\"prob\\": 0.99,\\n \\"pos\\": [\\n {\\n \\"x\\": 34,\\n \\"y\\": 34\\n },\\n {\\n \\"x\\": 50,\\n \\"y\\": 34\\n },\\n {\\n \\"x\\": 50,\\n \\"y\\": 48\\n },\\n {\\n \\"x\\": 34,\\n \\"y\\": 48\\n }\\n ],\\n \\"word\\": \\":\\"\\n },\\n {\\n \\"prob\\": 0.99,\\n \\"pos\\": [\\n {\\n \\"x\\": 52,\\n \\"y\\": 34\\n },\\n {\\n \\"x\\": 71,\\n \\"y\\": 34\\n },\\n {\\n \\"x\\": 71,\\n \\"y\\": 48\\n },\\n {\\n \\"x\\": 52,\\n \\"y\\": 48\\n }\\n ],\\n \\"word\\": \\"初\\"\\n },\\n {\\n \\"prob\\": 0.99,\\n \\"pos\\": [\\n {\\n \\"x\\": 72,\\n \\"y\\": 34\\n },\\n {\\n \\"x\\": 88,\\n \\"y\\": 34\\n },\\n {\\n \\"x\\": 88,\\n \\"y\\": 48\\n },\\n {\\n \\"x\\": 72,\\n \\"y\\": 48\\n }\\n ],\\n \\"word\\": \\"二\\"\\n },\\n {\\n \\"prob\\": 0.99,\\n \\"pos\\": [\\n {\\n \\"x\\": 90,\\n \\"y\\": 34\\n },\\n {\\n \\"x\\": 100,\\n \\"y\\": 34\\n },\\n {\\n \\"x\\": 100,\\n \\"y\\": 48\\n },\\n {\\n \\"x\\": 90,\\n \\"y\\": 48\\n }\\n ],\\n \\"word\\": \\"3\\"\\n },\\n {\\n \\"prob\\": 0.99,\\n \\"pos\\": [\\n {\\n \\"x\\": 103,\\n \\"y\\": 34\\n },\\n {\\n \\"x\\": 124,\\n \\"y\\": 34\\n },\\n {\\n \\"x\\": 124,\\n \\"y\\": 48\\n },\\n {\\n \\"x\\": 103,\\n \\"y\\": 48\\n }\\n ],\\n \\"word\\": \\"班\\"\\n }\\n ]\\n }\\n ],\\n \\"name\\": \\"班级\\",\\n \\"location\\": [\\n {\\n \\"x\\": 1,\\n \\"y\\": 30\\n },\\n {\\n \\"x\\": 1102,\\n \\"y\\": 30\\n },\\n {\\n \\"x\\": 1102,\\n \\"y\\": 54\\n },\\n {\\n \\"x\\": 1,\\n \\"y\\": 54\\n }\\n ],\\n \\"fieldWord\\": \\"班级:初二3班\\"\\n }\\n ],\\n \\"specificType\\": \\"infoCustomeTableTemp\\",\\n \\"className\\": \\"自定义表格模板测试cz02064-学生名\\",\\n \\"originalFileUrl\\": \\"https://doc-automl-public.oss-cn-hangzhou.aliyuncs.com/3/xxx/stage/upload/20230208/oss-uwGPIS8AsKcGRHfMRjvIrQVqN0uAxTgk.png?Expires=1675843535&OSSAccessKeyId=xxx&Signature=uPhg6JpDn47TgLt%2FI%2F7j4f%2FsFeA%3D\\",\\n \\"templateID\\": \\"269_2b6819527769749d962bf51d034b1820\\",\\n \\"message\\": \\"\\",\\n \\"classType\\": \\"template\\",\\n \\"predictFile\\": \\"https://doc-automl-public.oss-cn-hangzhou.aliyuncs.com/3/xxx/stage/upload/20230208/oss-uwGPIS8AsKcGRHfMRjvIrQVqN0uAxTgk.png?Expires=1675843535&OSSAccessKeyId=xxx&Signature=uPhg6JpDn47TgLt%2FI%2F7j4f%2FsFeA%3D\\"\\n },\\n \\"Message\\": \\"success\\"\\n}","type":"json"}]',
],
'CreateModelAsyncPredict' => [
'summary' => '文档自学习创建异步预测任务接口',
'methods' => [
'post',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
],
'parameters' => [
[
'name' => 'ModelVersion',
'in' => 'query',
'schema' => [
'description' => '',
'type' => 'string',
'required' => false,
'example' => 'V1',
],
],
[
'name' => 'BinaryToText',
'in' => 'query',
'schema' => [
'description' => '',
'type' => 'boolean',
'required' => false,
'example' => '',
'default' => 'false',
],
],
[
'name' => 'Content',
'in' => 'query',
'schema' => [
'description' => '',
'type' => 'string',
'required' => false,
'example' => 'https://doc-automl-public.oss-cn-hangzhou.aliyuncs.com/3/1559855998794593/stage/upload/20230206/oss-hlfCRJ1SorSWs10MkqxK6YcL4OVAFSv4.png?Expires=1675665563&OSSAccessKeyId=XXXX&Signature=WLKghBc3zKzWJ3Td69%2B4C21jrbE%3D',
],
],
[
'name' => 'ModelId',
'in' => 'query',
'schema' => [
'description' => '',
'type' => 'integer',
'format' => 'int64',
'required' => false,
'maximum' => '9999999999999',
'minimum' => '1',
'example' => '123',
],
],
[
'name' => 'ServiceName',
'in' => 'query',
'schema' => [
'description' => '',
'type' => 'string',
'required' => false,
'example' => 'pre_train_service',
],
],
[
'name' => 'ServiceVersion',
'in' => 'query',
'schema' => [
'description' => '',
'type' => 'string',
'required' => false,
'example' => 'V1',
],
],
[
'name' => 'Body',
'in' => 'formData',
'schema' => [
'description' => '',
'type' => 'string',
'required' => false,
'example' => 'data:image/png;base64,xxxxx',
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => [
'title' => 'Id of the request',
'description' => 'Id of the request',
'type' => 'string',
'example' => '3EAC98E6-8DD6-511F-8764-DEE8B6EB6BB4',
],
'Code' => [
'description' => '',
'type' => 'integer',
'format' => 'int32',
'example' => '200',
],
'Message' => [
'description' => '',
'type' => 'string',
'example' => 'success',
],
'Data' => [
'description' => '',
'type' => 'string',
'example' => '{'."\n"
.' "RequestId": "292D1584-134C-1221-B9BB-1B847C623D41",'."\n"
.' "Message": "",'."\n"
.' "Data": 1,'."\n"
.' "Code": 200'."\n"
.'}',
],
],
],
],
],
'errorCodes' => [
200 => [
[
'errorCode' => '21002',
'errorMessage' => '模板预测超时 ',
],
[
'errorCode' => '21003',
'errorMessage' => '模板预测失败',
],
[
'errorCode' => '10001',
'errorMessage' => '参数出错',
],
[
'errorCode' => '10005',
'errorMessage' => '服务不存在',
],
[
'errorCode' => '16001',
'errorMessage' => '未找到可预测的模型',
],
[
'errorCode' => '13018',
'errorMessage' => '未找到模型信息',
],
[
'errorCode' => '16004',
'errorMessage' => '指定的模型不存在',
],
[
'errorCode' => '23002',
'errorMessage' => '获取资源HTTP异常',
],
[
'errorCode' => '11002',
'errorMessage' => '账号没有开通服务',
],
[
'errorCode' => '19999',
'errorMessage' => '未知异常',
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"3EAC98E6-8DD6-511F-8764-DEE8B6EB6BB4\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"Data\\": \\"{\\\\n \\\\\\"RequestId\\\\\\": \\\\\\"292D1584-134C-1221-B9BB-1B847C623D41\\\\\\",\\\\n \\\\\\"Message\\\\\\": \\\\\\"\\\\\\",\\\\n \\\\\\"Data\\\\\\": 1,\\\\n \\\\\\"Code\\\\\\": 200\\\\n}\\"\\n}","type":"json"}]',
],
'GetModelAsyncPredict' => [
'summary' => '获取文档自学习异步模型预测结果',
'methods' => [
'post',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
],
'parameters' => [
[
'name' => 'AsyncPredictId',
'in' => 'query',
'schema' => [
'description' => '',
'type' => 'integer',
'format' => 'int64',
'required' => true,
'maximum' => '99999999999999',
'minimum' => '1',
'example' => '1',
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => [
'title' => 'Id of the request',
'description' => 'Id of the request',
'type' => 'string',
'example' => '3EAC98E6-8DD6-511F-8764-DEE8B6EB6BB4',
],
'Code' => [
'description' => '',
'type' => 'integer',
'format' => 'int32',
'example' => '200',
],
'Message' => [
'description' => '',
'type' => 'string',
'example' => 'success',
],
'Data' => [
'description' => '',
'type' => 'string',
'example' => '{'."\n"
.' "RequestId": "A9796F06-F1C4-1E89-8AFD-596583FF4B16",'."\n"
.' "Message": "",'."\n"
.' "Data": {'."\n"
.' "result": "https://doc-automl-public.oss-cn-hangzhou.aliyuncs.com/3/stage/data/XXXX/asyncPredict/713908/oss-933bbdf4-fa10-4c56-b6ab-9c85f32bbd0e.json?Expires=1991115127&OSSAccessKeyId=XXXX&Signature=5zYLY9yR%2B9Ok1WuRgHYdqtXHK10%3D",'."\n"
.' "asyncPredictId": 713908,'."\n"
.' "errorCode": 200,'."\n"
.' "errorMsg": "",'."\n"
.' "status": 2'."\n"
.' },'."\n"
.' "Code": 200'."\n"
.'}',
],
],
],
],
],
'errorCodes' => [
200 => [
[
'errorCode' => '21002',
'errorMessage' => '模板预测超时',
],
[
'errorCode' => '21003',
'errorMessage' => '模板预测失败',
],
[
'errorCode' => '10001',
'errorMessage' => '参数出错',
],
[
'errorCode' => '10005',
'errorMessage' => '服务不存在',
],
[
'errorCode' => '16001',
'errorMessage' => '未找到可预测的模型',
],
[
'errorCode' => '13018',
'errorMessage' => '未找到模型信息',
],
[
'errorCode' => '16004',
'errorMessage' => '指定的模型不存在',
],
[
'errorCode' => '23002',
'errorMessage' => '获取资源HTTP异常',
],
[
'errorCode' => '11002',
'errorMessage' => '账号没有开通服务',
],
[
'errorCode' => '19999',
'errorMessage' => '未知异常',
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"3EAC98E6-8DD6-511F-8764-DEE8B6EB6BB4\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"Data\\": \\"{\\\\n \\\\\\"RequestId\\\\\\": \\\\\\"A9796F06-F1C4-1E89-8AFD-596583FF4B16\\\\\\",\\\\n \\\\\\"Message\\\\\\": \\\\\\"\\\\\\",\\\\n \\\\\\"Data\\\\\\": {\\\\n \\\\\\"result\\\\\\": \\\\\\"https://doc-automl-public.oss-cn-hangzhou.aliyuncs.com/3/stage/data/XXXX/asyncPredict/713908/oss-933bbdf4-fa10-4c56-b6ab-9c85f32bbd0e.json?Expires=1991115127&OSSAccessKeyId=XXXX&Signature=5zYLY9yR%2B9Ok1WuRgHYdqtXHK10%3D\\\\\\",\\\\n \\\\\\"asyncPredictId\\\\\\": 713908,\\\\n \\\\\\"errorCode\\\\\\": 200,\\\\n \\\\\\"errorMsg\\\\\\": \\\\\\"\\\\\\",\\\\n \\\\\\"status\\\\\\": 2\\\\n },\\\\n \\\\\\"Code\\\\\\": 200\\\\n}\\"\\n}","type":"json"}]',
],
'PredictPreTrainModel' => [
'summary' => '文档自学习预训练模型预测接口',
'methods' => [
'post',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
],
'parameters' => [
[
'name' => 'Content',
'in' => 'query',
'schema' => [
'description' => '',
'type' => 'string',
'required' => false,
'example' => '',
],
],
[
'name' => 'ServiceVersion',
'in' => 'query',
'schema' => [
'description' => '',
'type' => 'string',
'required' => false,
'example' => 'V1',
],
],
[
'name' => 'ServiceName',
'in' => 'query',
'schema' => [
'description' => '',
'type' => 'string',
'required' => false,
'example' => 'FormUIE',
],
],
[
'name' => 'BinaryToText',
'in' => 'query',
'schema' => [
'description' => '',
'type' => 'boolean',
'required' => false,
'example' => 'false',
'default' => 'false',
],
],
[
'name' => 'Body',
'in' => 'formData',
'schema' => [
'description' => '',
'type' => 'string',
'required' => false,
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => [
'title' => 'Id of the request',
'description' => 'Id of the request',
'type' => 'string',
'example' => '29413C69-11EF-15CB-BE20-70D318E2F4E9',
],
'Code' => [
'description' => '',
'type' => 'integer',
'format' => 'int32',
'example' => '200',
],
'Message' => [
'description' => '',
'type' => 'string',
'example' => 'success',
],
'Data' => [
'description' => '',
'type' => 'object',
'example' => '',
],
],
],
],
],
'errorCodes' => [
200 => [
[
'errorCode' => '21002',
'errorMessage' => '模板预测超时',
],
[
'errorCode' => '21003',
'errorMessage' => '模版预测失败',
],
[
'errorCode' => '10001',
'errorMessage' => '参数出错',
],
[
'errorCode' => '16001',
'errorMessage' => '未找到可预测的模型',
],
[
'errorCode' => '13018',
'errorMessage' => '未找到模型信息',
],
[
'errorCode' => '16004',
'errorMessage' => '指定模型不存在',
],
[
'errorCode' => '23002',
'errorMessage' => '获取资源HTTP异常',
],
[
'errorCode' => '11002',
'errorMessage' => '账号没有开通服务',
],
[
'errorCode' => '19999',
'errorMessage' => '未知异常',
],
[
'errorCode' => '50008',
'errorMessage' => '文件过大',
],
[
'errorCode' => '50007',
'errorMessage' => '文件格式不支持',
],
[
'errorCode' => '10005',
'errorMessage' => '服务不存在',
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"29413C69-11EF-15CB-BE20-70D318E2F4E9\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"Data\\": {\\n \\"RequestId\\": \\"29413C69-11EF-15CB-BE20-70D318E2F4E9\\",\\n \\"Message\\": \\"success\\",\\n \\"Data\\": {\\n \\"score\\": 1,\\n \\"data\\": [\\n {\\n \\"prob\\": 0.9138551354408264,\\n \\"fieldWordRaw\\": \\"xx\\",\\n \\"wordInfo\\": [\\n {\\n \\"prob\\": 0.9138551354408264,\\n \\"pos\\": [\\n {\\n \\"x\\": 468,\\n \\"y\\": 139\\n },\\n {\\n \\"x\\": 476,\\n \\"y\\": 139\\n },\\n {\\n \\"x\\": 476,\\n \\"y\\": 153\\n },\\n {\\n \\"x\\": 468,\\n \\"y\\": 153\\n }\\n ],\\n \\"word\\": \\"xx\\",\\n \\"charInfo\\": [\\n {\\n \\"prob\\": 0.99,\\n \\"pos\\": [\\n {\\n \\"x\\": 468,\\n \\"y\\": 139\\n },\\n {\\n \\"x\\": 471,\\n \\"y\\": 139\\n },\\n {\\n \\"x\\": 471,\\n \\"y\\": 153\\n },\\n {\\n \\"x\\": 468,\\n \\"y\\": 153\\n }\\n ],\\n \\"word\\": \\"x\\"\\n },\\n {\\n \\"prob\\": 0.99,\\n \\"pos\\": [\\n {\\n \\"x\\": 473,\\n \\"y\\": 139\\n },\\n {\\n \\"x\\": 476,\\n \\"y\\": 139\\n },\\n {\\n \\"x\\": 476,\\n \\"y\\": 153\\n },\\n {\\n \\"x\\": 473,\\n \\"y\\": 153\\n }\\n ],\\n \\"word\\": \\"x\\"\\n }\\n ]\\n }\\n ],\\n \\"name\\": \\"姓名\\",\\n \\"location\\": [\\n {\\n \\"x\\": 468,\\n \\"y\\": 139\\n },\\n {\\n \\"x\\": 476,\\n \\"y\\": 139\\n },\\n {\\n \\"x\\": 476,\\n \\"y\\": 153\\n },\\n {\\n \\"x\\": 468,\\n \\"y\\": 153\\n }\\n ],\\n \\"fieldWord\\": \\"xx\\"\\n },\\n {\\n \\"prob\\": 0.9594210982322693,\\n \\"fieldWordRaw\\": \\"xxxxxxxxxxx\\",\\n \\"wordInfo\\": [\\n {\\n \\"prob\\": 0.9594210982322693,\\n \\"pos\\": [\\n {\\n \\"x\\": 168,\\n \\"y\\": 164\\n },\\n {\\n \\"x\\": 467,\\n \\"y\\": 164\\n },\\n {\\n \\"x\\": 467,\\n \\"y\\": 239\\n },\\n {\\n \\"x\\": 168,\\n \\"y\\": 239\\n }\\n ],\\n \\"word\\": \\"xxxxxxxxxxx\\",\\n \\"charInfo\\": [\\n {\\n \\"prob\\": 0.99,\\n \\"pos\\": [\\n {\\n \\"x\\": 366,\\n \\"y\\": 164\\n },\\n {\\n \\"x\\": 383,\\n \\"y\\": 164\\n },\\n {\\n \\"x\\": 383,\\n \\"y\\": 179\\n },\\n {\\n \\"x\\": 366,\\n \\"y\\": 179\\n }\\n ],\\n \\"word\\": \\"x\\"\\n },\\n {\\n \\"prob\\": 0.99,\\n \\"pos\\": [\\n {\\n \\"x\\": 384,\\n \\"y\\": 164\\n },\\n {\\n \\"x\\": 401,\\n \\"y\\": 164\\n },\\n {\\n \\"x\\": 401,\\n \\"y\\": 179\\n },\\n {\\n \\"x\\": 384,\\n \\"y\\": 179\\n }\\n ],\\n \\"word\\": \\"x\\"\\n },\\n {\\n \\"prob\\": 0.99,\\n \\"pos\\": [\\n {\\n \\"x\\": 402,\\n \\"y\\": 164\\n },\\n {\\n \\"x\\": 414,\\n \\"y\\": 164\\n },\\n {\\n \\"x\\": 414,\\n \\"y\\": 179\\n },\\n {\\n \\"x\\": 402,\\n \\"y\\": 179\\n }\\n ],\\n \\"word\\": \\"x\\"\\n },\\n {\\n \\"prob\\": 0.99,\\n \\"pos\\": [\\n {\\n \\"x\\": 418,\\n \\"y\\": 164\\n },\\n {\\n \\"x\\": 427,\\n \\"y\\": 164\\n },\\n {\\n \\"x\\": 427,\\n \\"y\\": 179\\n },\\n {\\n \\"x\\": 418,\\n \\"y\\": 179\\n }\\n ],\\n \\"word\\": \\"x\\"\\n },\\n {\\n \\"prob\\": 0.99,\\n \\"pos\\": [\\n {\\n \\"x\\": 429,\\n \\"y\\": 164\\n },\\n {\\n \\"x\\": 438,\\n \\"y\\": 164\\n },\\n {\\n \\"x\\": 438,\\n \\"y\\": 179\\n },\\n {\\n \\"x\\": 429,\\n \\"y\\": 179\\n }\\n ],\\n \\"word\\": \\"x\\"\\n },\\n {\\n \\"prob\\": 0.99,\\n \\"pos\\": [\\n {\\n \\"x\\": 439,\\n \\"y\\": 164\\n },\\n {\\n \\"x\\": 448,\\n \\"y\\": 164\\n },\\n {\\n \\"x\\": 448,\\n \\"y\\": 179\\n },\\n {\\n \\"x\\": 439,\\n \\"y\\": 179\\n }\\n ],\\n \\"word\\": \\"x\\"\\n },\\n {\\n \\"prob\\": 0.99,\\n \\"pos\\": [\\n {\\n \\"x\\": 450,\\n \\"y\\": 164\\n },\\n {\\n \\"x\\": 467,\\n \\"y\\": 164\\n },\\n {\\n \\"x\\": 467,\\n \\"y\\": 179\\n },\\n {\\n \\"x\\": 450,\\n \\"y\\": 179\\n }\\n ],\\n \\"word\\": \\"x\\"\\n },\\n {\\n \\"prob\\": 0.99,\\n \\"pos\\": [\\n {\\n \\"x\\": 168,\\n \\"y\\": 224\\n },\\n {\\n \\"x\\": 180,\\n \\"y\\": 224\\n },\\n {\\n \\"x\\": 180,\\n \\"y\\": 239\\n },\\n {\\n \\"x\\": 168,\\n \\"y\\": 239\\n }\\n ],\\n \\"word\\": \\"x\\"\\n },\\n {\\n \\"prob\\": 0.99,\\n \\"pos\\": [\\n {\\n \\"x\\": 180,\\n \\"y\\": 224\\n },\\n {\\n \\"x\\": 192,\\n \\"y\\": 224\\n },\\n {\\n \\"x\\": 192,\\n \\"y\\": 239\\n },\\n {\\n \\"x\\": 180,\\n \\"y\\": 239\\n }\\n ],\\n \\"word\\": \\"x\\"\\n },\\n {\\n \\"prob\\": 0.99,\\n \\"pos\\": [\\n {\\n \\"x\\": 195,\\n \\"y\\": 224\\n },\\n {\\n \\"x\\": 209,\\n \\"y\\": 224\\n },\\n {\\n \\"x\\": 209,\\n \\"y\\": 239\\n },\\n {\\n \\"x\\": 195,\\n \\"y\\": 239\\n }\\n ],\\n \\"word\\": \\"1\\"\\n },\\n {\\n \\"prob\\": 0.99,\\n \\"pos\\": [\\n {\\n \\"x\\": 211,\\n \\"y\\": 224\\n },\\n {\\n \\"x\\": 223,\\n \\"y\\": 224\\n },\\n {\\n \\"x\\": 223,\\n \\"y\\": 239\\n },\\n {\\n \\"x\\": 211,\\n \\"y\\": 239\\n }\\n ],\\n \\"word\\": \\"7\\"\\n },\\n {\\n \\"prob\\": 0.99,\\n \\"pos\\": [\\n {\\n \\"x\\": 224,\\n \\"y\\": 224\\n },\\n {\\n \\"x\\": 236,\\n \\"y\\": 224\\n },\\n {\\n \\"x\\": 236,\\n \\"y\\": 239\\n },\\n {\\n \\"x\\": 224,\\n \\"y\\": 239\\n }\\n ],\\n \\"word\\": \\"2\\"\\n },\\n {\\n \\"prob\\": 0.99,\\n \\"pos\\": [\\n {\\n \\"x\\": 237,\\n \\"y\\": 224\\n },\\n {\\n \\"x\\": 249,\\n \\"y\\": 224\\n },\\n {\\n \\"x\\": 249,\\n \\"y\\": 239\\n },\\n {\\n \\"x\\": 237,\\n \\"y\\": 239\\n }\\n ],\\n \\"word\\": \\"7\\"\\n },\\n {\\n \\"prob\\": 0.99,\\n \\"pos\\": [\\n {\\n \\"x\\": 253,\\n \\"y\\": 224\\n },\\n {\\n \\"x\\": 270,\\n \\"y\\": 224\\n },\\n {\\n \\"x\\": 270,\\n \\"y\\": 239\\n },\\n {\\n \\"x\\": 253,\\n \\"y\\": 239\\n }\\n ],\\n \\"word\\": \\"x\\"\\n }\\n ]\\n }\\n ],\\n \\"name\\": \\"住址\\",\\n \\"location\\": [\\n {\\n \\"x\\": 168,\\n \\"y\\": 164\\n },\\n {\\n \\"x\\": 467,\\n \\"y\\": 164\\n },\\n {\\n \\"x\\": 467,\\n \\"y\\": 239\\n },\\n {\\n \\"x\\": 168,\\n \\"y\\": 239\\n }\\n ],\\n \\"fieldWord\\": \\"xxxxxxxx\\"\\n }\\n ],\\n \\"specificType\\": \\"formuie-anti\\",\\n \\"classType\\": \\"preDefinedServer\\",\\n \\"predictFile\\": \\"https://xxxx\\"\\n },\\n \\"Code\\": 200\\n }\\n}","type":"json"}]',
],
],
'endpoints' => [
[
'regionId' => 'cn-beijing',
'endpoint' => 'documentautoml.cn-beijing.aliyuncs.com',
],
],
];
|