Labelbox

Coordinate System

Coordinate Origin is Top Left for New Projects

Starting August 25, 2018, for all new projects using the Image Labeling
interface, the coordinate position will be measured from the top left of the image.

Projects created before August 25, 2018 remains unchanged.

Image Interface V4 and above

Coordinate Origin is Top Left for New Projects

For all new projects using the Image Image Labeling interface, the coordinate position will be measured from the top left of the image. Up until now, the coordinate position has been measured from the bottom left of the image.

V3 (left), V4 (right)

V3 (left), V4 (right)

Primer on Migrating from Bottom Left to Top Left

To convert coordinates from an origin of bottom left to an origin of top left, apply the following equation:

new_Y_coordinate = image_height - old_Y_coordinate

How to programmatically detect new coordinate system?
In exported file, look for "V4" in View Label field.

"View Label": "https://image-segmentation-v4.labelbox.com...."

[{
  "ID": "cjlbgyja20sch0785r69o7hmw",
  "Labeled Data": "https://storage.googleapis.com/labelbox-example-datasets/tesla/2017-Tesla-Model-3-top-view.jpg",
  "Label": {
    "Tree": [{
      "geometry": [{
        "x": 269,
        "y": 679
      }, {
        "x": 377,
        "y": 613
      }, {
        "x": 244,
        "y": 642
      }]
    }],
    "Person": [{
      "geometry": [{
        "x": 134,
        "y": 884
      }, {
        "x": 134,
        "y": 722
      }, {
        "x": 440,
        "y": 722
      }, {
        "x": 440,
        "y": 884
      }]
    }]
  },
  "Created By": "manu@labelbox.com",
  "Project Name": "test",
  "Created At": "2018-08-26T23:12:40.000Z",
  "Seconds to Label": 6.638,
  "External ID": "ljk6s544a7f8",
  "Agreement": null,
  "Dataset Name": "example.json",
  "Reviews": [],
  "View Label": "https://image-segmentation-v4.labelbox.com?project=cjlbgxz1c0nu00712nfwgs508&label=cjlbgyja20sch0785r69o7hmw"
}]

Image Interface V3 and below

For all projects created before August 25, 2018, the Image Labeling interface uses bottom-left as an origin.

Coordinate System


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.