拼音批改
拼音批改
请求协议
Http
Header
参数名 | 类型 | 描述 |
---|---|---|
Authorization | string | 鉴权 |
请求路径:
https://genaiapi.cloudsway.net/v1/ai/{endpoint}/education/pinyin/correct
请求FormData:
参数名 | 类型 | 是否必填 | 描述 |
---|---|---|---|
file | file | 否 | 图片文件, 长度或者宽度小于10个像素 或者 图像短边小于30像素且长宽比大于20倍 视为异常图片驳回; 长边最大值:长边<=4096像素 图片类型:jpg,jpeg,png,bmp |
imageUrl | string | 否 | 图片的url地址, 长度或者宽度小于10个像素 或者 图像短边小于30像素且长宽比大于20倍 视为异常图片驳回; 长边最大值:长边<=4096像素 图片类型:jpg,jpeg,png,bmp |
file、imageUrl三选一
请求示例
curl --location 'https://genaiapi.cloudsway.net/v1/ai/{endpoint}/education/pinyin/correct' \
--header 'Authorization: Bearer xxxx' \
--form 'file=@"/a/b.jpg"'
响应结果
参数名称 | 参数类型 | 含义 | 备注 |
---|---|---|---|
data | object[] | 返回数据 | |
right_num | int | 正确的个数 | |
error_num | int | 错误的个数 | |
total_num | int | 总个数 |
data字段说明
参数名称 | 参数类型 | 含义 |
---|---|---|
pose | object | 坐标信息 |
mark | string | 批改结果("true" "false") |
answer | array | 正确结果 |
prob | float | 置信度 |
pose字段说明
参数名称 | 参数类型 | 含义 |
---|---|---|
poses | object array | 拼音汉字拼写题在图片中的坐标(四个点,左上角开始 顺时针) |
poses字段说明
参数名称 | 参数类型 | 含义 |
---|---|---|
x | int | 该点的横坐标 |
y | int | 该点的纵坐标 |
示例
{
"data": [
{
"pose": {
"poses": [
{
"x": 62,
"y": 417
},
{
"x": 290,
"y": 422
},
{
"x": 288,
"y": 578
},
{
"x": 62,
"y": 573
}
]
},
"mark": "true",
"answer": [],
"prob": 0.6748487
},
{
"pose": {
"poses": [
{
"x": 830,
"y": 420
},
{
"x": 1046,
"y": 420
},
{
"x": 1046,
"y": 573
},
{
"x": 830,
"y": 573
}
]
},
"mark": "true",
"answer": [],
"prob": 0.59829015
},
{
"pose": {
"poses": [
{
"x": 328,
"y": 422
},
{
"x": 540,
"y": 424
},
{
"x": 540,
"y": 578
},
{
"x": 328,
"y": 576
}
]
},
"mark": "false",
"answer": [],
"prob": 0.6559369
},
{
"pose": {
"poses": [
{
"x": 578,
"y": 427
},
{
"x": 794,
"y": 424
},
{
"x": 794,
"y": 576
},
{
"x": 580,
"y": 578
}
]
},
"mark": "true",
"answer": [],
"prob": 0.6432652
},
{
"pose": {
"poses": [
{
"x": 1087,
"y": 420
},
{
"x": 1298,
"y": 415
},
{
"x": 1300,
"y": 566
},
{
"x": 1089,
"y": 571
}
]
},
"mark": "true",
"answer": [],
"prob": 0.9978985
},
{
"pose": {
"poses": [
{
"x": 64,
"y": 230
},
{
"x": 285,
"y": 237
},
{
"x": 280,
"y": 398
},
{
"x": 60,
"y": 391
}
]
},
"mark": "true",
"answer": [],
"prob": 0.9794025
},
{
"pose": {
"poses": [
{
"x": 1084,
"y": 240
},
{
"x": 1303,
"y": 240
},
{
"x": 1303,
"y": 388
},
{
"x": 1084,
"y": 391
}
]
},
"mark": "true",
"answer": [],
"prob": 0.9953276
},
{
"pose": {
"poses": [
{
"x": 328,
"y": 244
},
{
"x": 537,
"y": 244
},
{
"x": 540,
"y": 398
},
{
"x": 328,
"y": 398
}
]
},
"mark": "true",
"answer": [],
"prob": 0.9662356
},
{
"pose": {
"poses": [
{
"x": 580,
"y": 244
},
{
"x": 792,
"y": 244
},
{
"x": 792,
"y": 398
},
{
"x": 583,
"y": 398
}
]
},
"mark": "true",
"answer": [],
"prob": 0.6938207
},
{
"pose": {
"poses": [
{
"x": 835,
"y": 237
},
{
"x": 1046,
"y": 240
},
{
"x": 1044,
"y": 388
},
{
"x": 832,
"y": 388
}
]
},
"mark": "true",
"answer": [],
"prob": 0.96833104
},
{
"pose": {
"poses": [
{
"x": 328,
"y": 607
},
{
"x": 542,
"y": 604
},
{
"x": 542,
"y": 758
},
{
"x": 328,
"y": 758
}
]
},
"mark": "false",
"answer": [],
"prob": 0.6455514
},
{
"pose": {
"poses": [
{
"x": 1084,
"y": 600
},
{
"x": 1303,
"y": 597
},
{
"x": 1303,
"y": 748
},
{
"x": 1087,
"y": 748
}
]
},
"mark": "true",
"answer": [],
"prob": 0.96569526
},
{
"pose": {
"poses": [
{
"x": 583,
"y": 602
},
{
"x": 794,
"y": 602
},
{
"x": 794,
"y": 756
},
{
"x": 583,
"y": 756
}
]
},
"mark": "true",
"answer": [],
"prob": 0.68983185
},
{
"pose": {
"poses": [
{
"x": 72,
"y": 607
},
{
"x": 283,
"y": 607
},
{
"x": 283,
"y": 760
},
{
"x": 72,
"y": 760
}
]
},
"mark": "true",
"answer": [],
"prob": 0.99619013
},
{
"pose": {
"poses": [
{
"x": 832,
"y": 597
},
{
"x": 1041,
"y": 597
},
{
"x": 1041,
"y": 751
},
{
"x": 832,
"y": 751
}
]
},
"mark": "false",
"answer": [],
"prob": 0.59121656
},
{
"pose": {
"poses": [
{
"x": 828,
"y": 777
},
{
"x": 1044,
"y": 777
},
{
"x": 1044,
"y": 931
},
{
"x": 828,
"y": 931
}
]
},
"mark": "true",
"answer": [],
"prob": 0.9939903
},
{
"pose": {
"poses": [
{
"x": 1089,
"y": 775
},
{
"x": 1303,
"y": 772
},
{
"x": 1303,
"y": 928
},
{
"x": 1089,
"y": 928
}
]
},
"mark": "true",
"answer": [],
"prob": 0.94766945
},
{
"pose": {
"poses": [
{
"x": 72,
"y": 792
},
{
"x": 290,
"y": 792
},
{
"x": 290,
"y": 940
},
{
"x": 74,
"y": 943
}
]
},
"mark": "false",
"answer": [],
"prob": 0.99549943
},
{
"pose": {
"poses": [
{
"x": 328,
"y": 787
},
{
"x": 540,
"y": 784
},
{
"x": 540,
"y": 936
},
{
"x": 328,
"y": 938
}
]
},
"mark": "true",
"answer": [],
"prob": 0.9981309
},
{
"pose": {
"poses": [
{
"x": 588,
"y": 787
},
{
"x": 792,
"y": 784
},
{
"x": 792,
"y": 933
},
{
"x": 590,
"y": 936
}
]
},
"mark": "false",
"answer": [],
"prob": 0.9896731
},
{
"pose": {
"poses": [
{
"x": 1087,
"y": 955
},
{
"x": 1305,
"y": 955
},
{
"x": 1305,
"y": 1108
},
{
"x": 1087,
"y": 1108
}
]
},
"mark": "true",
"answer": [],
"prob": 0.9856743
},
{
"pose": {
"poses": [
{
"x": 832,
"y": 955
},
{
"x": 1046,
"y": 957
},
{
"x": 1046,
"y": 1108
},
{
"x": 832,
"y": 1108
}
]
},
"mark": "true",
"answer": [],
"prob": 0.99454314
},
{
"pose": {
"poses": [
{
"x": 328,
"y": 967
},
{
"x": 544,
"y": 964
},
{
"x": 544,
"y": 1116
},
{
"x": 331,
"y": 1118
}
]
},
"mark": "true",
"answer": [],
"prob": 0.9983665
},
{
"pose": {
"poses": [
{
"x": 76,
"y": 969
},
{
"x": 290,
"y": 967
},
{
"x": 290,
"y": 1118
},
{
"x": 76,
"y": 1118
}
]
},
"mark": "true",
"answer": [],
"prob": 0.9928763
},
{
"pose": {
"poses": [
{
"x": 585,
"y": 960
},
{
"x": 794,
"y": 960
},
{
"x": 794,
"y": 1113
},
{
"x": 585,
"y": 1113
}
]
},
"mark": "true",
"answer": [],
"prob": 0.9227005
},
{
"pose": {
"poses": [
{
"x": 830,
"y": 1137
},
{
"x": 1044,
"y": 1135
},
{
"x": 1046,
"y": 1293
},
{
"x": 832,
"y": 1296
}
]
},
"mark": "true",
"answer": [],
"prob": 0.9975546
},
{
"pose": {
"poses": [
{
"x": 1092,
"y": 1135
},
{
"x": 1303,
"y": 1135
},
{
"x": 1300,
"y": 1293
},
{
"x": 1089,
"y": 1293
}
]
},
"mark": "true",
"answer": [],
"prob": 0.9953559
},
{
"pose": {
"poses": [
{
"x": 585,
"y": 1137
},
{
"x": 794,
"y": 1137
},
{
"x": 794,
"y": 1293
},
{
"x": 585,
"y": 1293
}
]
},
"mark": "true",
"answer": [],
"prob": 0.9498409
},
{
"pose": {
"poses": [
{
"x": 331,
"y": 1147
},
{
"x": 540,
"y": 1144
},
{
"x": 542,
"y": 1298
},
{
"x": 333,
"y": 1300
}
]
},
"mark": "true",
"answer": [],
"prob": 0.9948289
},
{
"pose": {
"poses": [
{
"x": 76,
"y": 1154
},
{
"x": 285,
"y": 1152
},
{
"x": 288,
"y": 1303
},
{
"x": 79,
"y": 1308
}
]
},
"mark": "true",
"answer": [],
"prob": 0.65332764
},
{
"pose": {
"poses": [
{
"x": 1099,
"y": 1509
},
{
"x": 1310,
"y": 1509
},
{
"x": 1312,
"y": 1670
},
{
"x": 1099,
"y": 1672
}
]
},
"mark": "true",
"answer": [],
"prob": 0.6755031
},
{
"pose": {
"poses": [
{
"x": 588,
"y": 1509
},
{
"x": 799,
"y": 1509
},
{
"x": 796,
"y": 1672
},
{
"x": 588,
"y": 1672
}
]
},
"mark": "true",
"answer": [],
"prob": 0.99673045
},
{
"pose": {
"poses": [
{
"x": 79,
"y": 1516
},
{
"x": 292,
"y": 1516
},
{
"x": 292,
"y": 1675
},
{
"x": 79,
"y": 1675
}
]
},
"mark": "true",
"answer": [],
"prob": 0.98838955
},
{
"pose": {
"poses": [
{
"x": 844,
"y": 1512
},
{
"x": 1056,
"y": 1512
},
{
"x": 1056,
"y": 1670
},
{
"x": 842,
"y": 1670
}
]
},
"mark": "true",
"answer": [],
"prob": 0.9907848
},
{
"pose": {
"poses": [
{
"x": 331,
"y": 1512
},
{
"x": 540,
"y": 1514
},
{
"x": 540,
"y": 1672
},
{
"x": 331,
"y": 1672
}
]
},
"mark": "true",
"answer": [],
"prob": 0.983334
},
{
"pose": {
"poses": [
{
"x": 840,
"y": 1320
},
{
"x": 1051,
"y": 1322
},
{
"x": 1051,
"y": 1480
},
{
"x": 840,
"y": 1480
}
]
},
"mark": "true",
"answer": [],
"prob": 0.9748345
},
{
"pose": {
"poses": [
{
"x": 1094,
"y": 1322
},
{
"x": 1305,
"y": 1322
},
{
"x": 1305,
"y": 1480
},
{
"x": 1094,
"y": 1480
}
]
},
"mark": "true",
"answer": [],
"prob": 0.9910239
},
{
"pose": {
"poses": [
{
"x": 585,
"y": 1322
},
{
"x": 794,
"y": 1322
},
{
"x": 794,
"y": 1480
},
{
"x": 585,
"y": 1480
}
]
},
"mark": "true",
"answer": [],
"prob": 0.9943236
},
{
"pose": {
"poses": [
{
"x": 79,
"y": 1336
},
{
"x": 288,
"y": 1334
},
{
"x": 288,
"y": 1490
},
{
"x": 81,
"y": 1490
}
]
},
"mark": "true",
"answer": [],
"prob": 0.96436447
},
{
"pose": {
"poses": [
{
"x": 333,
"y": 1329
},
{
"x": 540,
"y": 1329
},
{
"x": 540,
"y": 1483
},
{
"x": 333,
"y": 1483
}
]
},
"mark": "true",
"answer": [],
"prob": 0.98941225
},
{
"pose": {
"poses": [
{
"x": 1101,
"y": 1701
},
{
"x": 1320,
"y": 1699
},
{
"x": 1322,
"y": 1862
},
{
"x": 1104,
"y": 1864
}
]
},
"mark": "true",
"answer": [],
"prob": 0.99779516
},
{
"pose": {
"poses": [
{
"x": 844,
"y": 1701
},
{
"x": 1058,
"y": 1701
},
{
"x": 1058,
"y": 1867
},
{
"x": 844,
"y": 1867
}
]
},
"mark": "true",
"answer": [],
"prob": 0.99749637
},
{
"pose": {
"poses": [
{
"x": 328,
"y": 1704
},
{
"x": 544,
"y": 1704
},
{
"x": 544,
"y": 1864
},
{
"x": 328,
"y": 1864
}
]
},
"mark": "true",
"answer": [],
"prob": 0.99694675
},
{
"pose": {
"poses": [
{
"x": 588,
"y": 1704
},
{
"x": 801,
"y": 1704
},
{
"x": 799,
"y": 1867
},
{
"x": 588,
"y": 1867
}
]
},
"mark": "true",
"answer": [],
"prob": 0.9805502
},
{
"pose": {
"poses": [
{
"x": 81,
"y": 1704
},
{
"x": 288,
"y": 1706
},
{
"x": 288,
"y": 1857
},
{
"x": 81,
"y": 1857
}
]
},
"mark": "true",
"answer": [],
"prob": 0.98224807
}
],
"right_num": 40,
"error_num": 5,
"total_num": 45
}