我正在创建要在 AWS Sagemaker 对象检测算法中使用的注释 .json 文件。格式如下:
{
"file": "your_image_directory/sample_image1.jpg",
"image_size": [
{
"width": 500,
"height": 400,
"depth": 3
}
],
"annotations": [
{
"class_id": 0,
"left": 111,
"top": 134,
"width": 61,
"height": 128
},
{
"class_id": 0,
"left": 161,
"top": 250,
"width": 79,
"height": 143
},
{
"class_id": 1,
"left": 101,
"top": 185,
"width": 42,
"height": 130
}
],
"categories": [
{
"class_id": 0,
"name": "dog"
},
{
"class_id": 1,
"name": "cat"
}
]
}
我想使用 Sagemaker 基本事实来获取对象坐标(使用边界框)以及 class_id。有人可以提供一些关于如何在图像中实现“多个对象”的输入吗?我没有看到在地面实况的边界框任务中提供多个标签(针对多个对象)的选项。 谢谢。