Step By Step
- 1.创建OSS Bucket,上传本地图片到OSS中;
- 2.新建increment.meta文件;
- 3.新建批量任务。
1.创建OSS Bucket,上传本地图片到OSS中;
1.1 OSS控制台地址
1.2新建目录
1.3上传文件到OSS中
2.新建increment.meta文件
在OSS服务中存放图片的路径下,新建increment.meta文件,该文件用来存储批量任务相关内容。
注意:increment.meta文件中涉及的图片必须和increment.meta文件在同一路径下,否则批量操作会失败。
{"OperationType": "ADD","ProductId": "1000","PicName": "girl_cloth1.jpg","CategoryId": 0,"IntAttr": 0,"StrAttr": "value1","CustomContent": "k1:v1,k2:v2,k3:v3","Region": "20,40,60,80"}
{"OperationType": "ADD","ProductId": "1000","PicName": "girl_cloth2.jpg","CategoryId": 0,"IntAttr": 0,"StrAttr": "value2","CustomContent": "k1:v1,k2:v2,k3:v3","Region": "20,40,60,80"}
{"OperationType": "ADD","ProductId": "1001","PicName": "girl_cloth3.jpg","CategoryId": 1,"CustomContent": "k1:v1,k2:v2,k3:v3"}
{"OperationType": "ADD","ProductId": "1002","PicName": "girl_cloth4.jpg","CategoryId": 0,"CustomContent": "k1:v1,k2:v2,k3:v3","Crop": false}
3.新建批量任务
3.1登录图像搜索控制台。
3.2选择目标服务类型和目标实例;
3.3单击批量操作页签;
3.4单击新建批量任务;
3.5设置批量任务参数。
4.查看测试结果
在实例详情页,查看所有批量任务的信息。批量任务状态为成功后,用户可以查看相应的提示信息: