{
  "id": 251709,
  "title": "Best method to plot bounding boxes",
  "url": "/competitions/siim-covid19-detection/discussion/251709",
  "author_name": "",
  "post_date": "2021-07-08T12:20:19.132548100Z",
  "votes": 1,
  "comment_count": 4,
  "views": 0,
  "content": "<p>I am using cv2 to plot the bounding boxes. However, <strong><em>they don't appear on the images.</em></strong> How should I go about it? Should I use another method?</p>",
  "messages": [
    {
      "id": "1380898",
      "postDate": "07/08/2021 12:20:19",
      "content": "<p>I am using cv2 to plot the bounding boxes. However, <strong><em>they don't appear on the images.</em></strong> How should I go about it? Should I use another method?</p>",
      "rawMarkdown": "I am using cv2 to plot the bounding boxes. However, ***they don't appear on the images.*** How should I go about it? Should I use another method?",
      "votes": null
    },
    {
      "id": "1380941",
      "postDate": "07/08/2021 12:55:00",
      "content": "<p>maybe there is an issue with image/bboxes sizes or bboxes are not in proper format - check one example to see the range of values <br>\nsee also public notebooks on how to visualize properly, see e.g. <a href=\"https://www.kaggle.com/farhanhaikhan/visualize-resized-data-prediction-data-prepare\" target=\"_blank\">here</a></p>",
      "rawMarkdown": "maybe there is an issue with image/bboxes sizes or bboxes are not in proper format - check one example to see the range of values \nsee also public notebooks on how to visualize properly, see e.g. [here](https://www.kaggle.com/farhanhaikhan/visualize-resized-data-prediction-data-prepare)",
      "votes": null
    },
    {
      "id": "1381147",
      "postDate": "07/08/2021 17:06:26",
      "content": "<p>You can see how I draw them in this notebook. It's about drawing BB's on cropped images, but the same applies to non cropped images. -&gt; <a href=\"https://www.kaggle.com/davidbroberts/bounding-boxes-on-cropped-images\" target=\"_blank\">https://www.kaggle.com/davidbroberts/bounding-boxes-on-cropped-images</a></p>",
      "rawMarkdown": "You can see how I draw them in this notebook. It's about drawing BB's on cropped images, but the same applies to non cropped images. -> https://www.kaggle.com/davidbroberts/bounding-boxes-on-cropped-images",
      "votes": null
    },
    {
      "id": "1381309",
      "postDate": "07/08/2021 20:54:43",
      "content": "<p>Thank you <a href=\"https://www.kaggle.com/davidbroberts\" target=\"_blank\">@davidbroberts</a> and <a href=\"https://www.kaggle.com/imeintanis\" target=\"_blank\">@imeintanis</a> for your generous answers</p>",
      "rawMarkdown": "Thank you @davidbroberts and @imeintanis for your generous answers",
      "votes": null
    },
    {
      "id": "1382986",
      "postDate": "07/10/2021 11:53:54",
      "content": "<p>Hi <a href=\"https://www.kaggle.com/davidbroberts\" target=\"_blank\">@davidbroberts</a> your example demonstrates the images having a couple of bounding boxes. Nonetheless, there're images with 3 bbs also. Moreover, I am facing a problem with the existing code. For some images, the bb does not show up in the image. It is either half shown or not at all in the image.</p>",
      "rawMarkdown": "Hi @davidbroberts your example demonstrates the images having a couple of bounding boxes. Nonetheless, there're images with 3 bbs also. Moreover, I am facing a problem with the existing code. For some images, the bb does not show up in the image. It is either half shown or not at all in the image.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1380941,
      "author_name": "imeintanis",
      "author_url": "",
      "post_date": "07/08/2021 12:55:00",
      "content": "<p>maybe there is an issue with image/bboxes sizes or bboxes are not in proper format - check one example to see the range of values <br>\nsee also public notebooks on how to visualize properly, see e.g. <a href=\"https://www.kaggle.com/farhanhaikhan/visualize-resized-data-prediction-data-prepare\" target=\"_blank\">here</a></p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1381147,
      "author_name": "davidbroberts",
      "author_url": "",
      "post_date": "07/08/2021 17:06:26",
      "content": "<p>You can see how I draw them in this notebook. It's about drawing BB's on cropped images, but the same applies to non cropped images. -&gt; <a href=\"https://www.kaggle.com/davidbroberts/bounding-boxes-on-cropped-images\" target=\"_blank\">https://www.kaggle.com/davidbroberts/bounding-boxes-on-cropped-images</a></p>",
      "votes": null,
      "replies": [
        {
          "id": 1382986,
          "author_name": "ritikpnayak",
          "author_url": "",
          "post_date": "07/10/2021 11:53:54",
          "content": "<p>Hi <a href=\"https://www.kaggle.com/davidbroberts\" target=\"_blank\">@davidbroberts</a> your example demonstrates the images having a couple of bounding boxes. Nonetheless, there're images with 3 bbs also. Moreover, I am facing a problem with the existing code. For some images, the bb does not show up in the image. It is either half shown or not at all in the image.</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1381309,
      "author_name": "ritikpnayak",
      "author_url": "",
      "post_date": "07/08/2021 20:54:43",
      "content": "<p>Thank you <a href=\"https://www.kaggle.com/davidbroberts\" target=\"_blank\">@davidbroberts</a> and <a href=\"https://www.kaggle.com/imeintanis\" target=\"_blank\">@imeintanis</a> for your generous answers</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1380898": "I am using cv2 to plot the bounding boxes. However, ***they don't appear on the images.*** How should I go about it? Should I use another method?",
    "1380941": "maybe there is an issue with image/bboxes sizes or bboxes are not in proper format - check one example to see the range of values \nsee also public notebooks on how to visualize properly, see e.g. [here](https://www.kaggle.com/farhanhaikhan/visualize-resized-data-prediction-data-prepare)",
    "1381147": "You can see how I draw them in this notebook. It's about drawing BB's on cropped images, but the same applies to non cropped images. -> https://www.kaggle.com/davidbroberts/bounding-boxes-on-cropped-images",
    "1381309": "Thank you @davidbroberts and @imeintanis for your generous answers",
    "1382986": "Hi @davidbroberts your example demonstrates the images having a couple of bounding boxes. Nonetheless, there're images with 3 bbs also. Moreover, I am facing a problem with the existing code. For some images, the bb does not show up in the image. It is either half shown or not at all in the image."
  },
  "source": "meta"
}