如何将.png图像导入Jupyter并用json多边形标签覆盖它?

2024-06-16 13:07:29 发布

您现在位置:Python中文网/ 问答频道 /正文

我刚刚在Label Studio中用多边形标记了图像,并用一个.json文件导出了标签,如下所示。我可以将图像导入Jupyter并在那里覆盖这些标签吗?或者我必须使用其他软件吗?谢谢

  {
    "completions": [
      {
        "created_at": 1614429004,
        "id": 1,
        "lead_time": 4515.934,
        "result": [
          {
            "from_name": "label",
            "id": "EZ-R6se8fk",
            "image_rotation": 0,
            "original_height": 1446,
            "original_width": 1956,
            "to_name": "image",
            "type": "polygonlabels",
            "value": {
              "points": [
                [
                  24.876477637518573,
                  0
                ],
                [
                  24.29695106933002,
                  4.436047984172213
                ],
                [
                  26.532267832342978,
                  5.220605612586309
                ],
    ...```

Tags: 文件name标记图像imageidjsonjupyter