{
  "name": "Extract Bounding Box",
  "id": "ide:75726249-9b91-4ee2-921a-a82f8c3ecd4b",
  "module": {
    "kind": "compute",
    "id": "ide:75726249-9b91-4ee2-921a-a82f8c3ecd4b",
    "name": "Extract Bounding Box",
    "inputs": [
      {
        "id": "obj",
        "label": "obj",
        "type": "object"
      }
    ],
    "outputs": [
      {
        "id": "width",
        "label": "width",
        "type": "number"
      },
      {
        "id": "height",
        "label": "height",
        "type": "number"
      },
      {
        "id": "originX",
        "label": "originX",
        "type": "number"
      },
      {
        "id": "originY",
        "label": "originY",
        "type": "number"
      }
    ],
    "compute": "(inputs)=>{\n  const { obj } = inputs\n  let res = {\n    height: 0,\n    width: 0,\n    originX: 0,\n    originY: 0\n  }\n  if (obj && obj.boundingBox){\n    res = {... obj.boundingBox}\n  }\n  \n  console.log(res)\n  return res\n}"
  }
}
