apex-documentation

ชุดข้อมูลคำอธิบายคลังข้อมูลภาพเพื่อการตรวจจับวัตถุ (Image Corpus for Object Detection)

มาตรฐานนี้ดัดแปลงมาจากรูปแบบไฟล์ของชุดข้อมูล COCO

รูปแบบไฟล์

{
  "records": [
    {
      // one object per bounding box
      "path": <image filename>,
      "label": <string>,
      "bbox": [<x: number>, <y: number>, <width: number>, <height: number>], // for whole-image, omit this
      // other optional key-values
    },
    // ... 
    // หมายเหตุ: 1 javascript object ต่อ 1 ค่าที่อ่านได้ หากอ่านได้หลายตัวแปรในเวลาเดียวกัน ให้แยกแต่ละค่าที่อ่านได้ไว้ให้คนละ object กัน
  ]
}

Keys

Key Required Type Description
path file_reference or url Path or URL to the image file
label string Annotation label of the area
bbox [number, number, number, number] Bounding box for the area of interest. The four number represents x, y, width, height of the bounding box in pixels

ตัวอย่าง

{
  "records": [
    {
      "path": "image1.jpg",
      "label": "dog",
      "bbox": [10, 13, 84, 117]
    },
    {
      "path": "image2.jpg",
      "label": "cat",
      "bbox": [54, 11, 124, 96]
    }
  ]
}