{
  "id": 304058,
  "title": "Yellowish video bug",
  "url": "/competitions/tensorflow-great-barrier-reef/discussion/304058",
  "author_name": "",
  "post_date": "2022-01-30T18:01:27.720531300Z",
  "votes": 1,
  "comment_count": 2,
  "views": 0,
  "content": "<p>I've adapted <a href=\"https://www.kaggle.com/alexchwong/yolov5-is-all-you-need-make-compact-videos\" target=\"_blank\">yolov5 video notebook</a> for TensorFlow models, and it works. But for some reason produced video is kinda yellowish. Any ideas what can be wrong?</p>",
  "messages": [
    {
      "id": "1669478",
      "postDate": "01/30/2022 18:01:27",
      "content": "<p>I've adapted <a href=\"https://www.kaggle.com/alexchwong/yolov5-is-all-you-need-make-compact-videos\" target=\"_blank\">yolov5 video notebook</a> for TensorFlow models, and it works. But for some reason produced video is kinda yellowish. Any ideas what can be wrong?</p>",
      "rawMarkdown": "I've adapted [yolov5 video notebook](https://www.kaggle.com/alexchwong/yolov5-is-all-you-need-make-compact-videos) for TensorFlow models, and it works. But for some reason produced video is kinda yellowish. Any ideas what can be wrong?",
      "votes": null
    },
    {
      "id": "1669510",
      "postDate": "01/30/2022 18:39:44",
      "content": "<p>I suppose that red and blue channels are confused in your video. When I faced similar problem with pictures, this code helped me to turn them back to normal colors.</p>\n<p><code>out_image = cv2.cvtColor(out_image, cv2.COLOR_BGR2RGB)</code></p>",
      "rawMarkdown": "I suppose that red and blue channels are confused in your video. When I faced similar problem with pictures, this code helped me to turn them back to normal colors.\n\n`out_image = cv2.cvtColor(out_image, cv2.COLOR_BGR2RGB)`",
      "votes": null
    },
    {
      "id": "1669522",
      "postDate": "01/30/2022 18:50:36",
      "content": "<p>Thank you! That solved my problem.</p>",
      "rawMarkdown": "Thank you! That solved my problem.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1669510,
      "author_name": "beatwad",
      "author_url": "",
      "post_date": "01/30/2022 18:39:44",
      "content": "<p>I suppose that red and blue channels are confused in your video. When I faced similar problem with pictures, this code helped me to turn them back to normal colors.</p>\n<p><code>out_image = cv2.cvtColor(out_image, cv2.COLOR_BGR2RGB)</code></p>",
      "votes": null,
      "replies": [
        {
          "id": 1669522,
          "author_name": "atamazian",
          "author_url": "",
          "post_date": "01/30/2022 18:50:36",
          "content": "<p>Thank you! That solved my problem.</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "1669478": "I've adapted [yolov5 video notebook](https://www.kaggle.com/alexchwong/yolov5-is-all-you-need-make-compact-videos) for TensorFlow models, and it works. But for some reason produced video is kinda yellowish. Any ideas what can be wrong?",
    "1669510": "I suppose that red and blue channels are confused in your video. When I faced similar problem with pictures, this code helped me to turn them back to normal colors.\n\n`out_image = cv2.cvtColor(out_image, cv2.COLOR_BGR2RGB)`",
    "1669522": "Thank you! That solved my problem."
  },
  "source": "meta"
}