{
  "id": 134557,
  "title": "Perspective transformation in Tensorflow",
  "url": "/competitions/flower-classification-with-tpus/discussion/134557",
  "author_name": "",
  "post_date": "2020-03-09T00:07:40.774116300Z",
  "votes": 3,
  "comment_count": 1,
  "views": 0,
  "content": "<p>Hi,</p>\n\n<p>I published a kernel <a href=\"https://www.kaggle.com/yihdarshieh/perspective-transformation?scriptVersionId=29866403\">Perspective transformation</a> that implements <code>perspective transformation</code>, or called <code>4 point transformation</code>, which is available in OpenCV.</p>\n\n<p>This is also a response to <a href=\"/gskdhiman\">@gskdhiman</a>'s post <a href=\"https://www.kaggle.com/c/flower-classification-with-tpus/discussion/133185\">perspective transform using OpenCV with tf?</a>.</p>\n\n<p>For those who want to know the idea how it is implemented, see the reference <a href=\"https://math.stackexchange.com/questions/296794/finding-the-transform-matrix-from-4-projected-points-with-javascript/339033#339033\">Finding the Transform matrix from 4 projected points (with Javascript)</a></p>\n\n<p>By this, hope our models have more perspectives :)</p>\n\n<p>Here is one example image.</p>\n\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F1533864%2F7d71919df88ad547a96aca9b3a7557d6%2F__results___9_0.png?generation=1583741971572678&amp;alt=media\" alt=\"\"></p>",
  "messages": [
    {
      "id": "766929",
      "postDate": "03/09/2020 00:07:40",
      "content": "<p>Hi,</p>\n\n<p>I published a kernel <a href=\"https://www.kaggle.com/yihdarshieh/perspective-transformation?scriptVersionId=29866403\">Perspective transformation</a> that implements <code>perspective transformation</code>, or called <code>4 point transformation</code>, which is available in OpenCV.</p>\n\n<p>This is also a response to <a href=\"/gskdhiman\">@gskdhiman</a>'s post <a href=\"https://www.kaggle.com/c/flower-classification-with-tpus/discussion/133185\">perspective transform using OpenCV with tf?</a>.</p>\n\n<p>For those who want to know the idea how it is implemented, see the reference <a href=\"https://math.stackexchange.com/questions/296794/finding-the-transform-matrix-from-4-projected-points-with-javascript/339033#339033\">Finding the Transform matrix from 4 projected points (with Javascript)</a></p>\n\n<p>By this, hope our models have more perspectives :)</p>\n\n<p>Here is one example image.</p>\n\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F1533864%2F7d71919df88ad547a96aca9b3a7557d6%2F__results___9_0.png?generation=1583741971572678&amp;alt=media\" alt=\"\"></p>",
      "rawMarkdown": "Hi,\n\nI published a kernel [Perspective transformation](https://www.kaggle.com/yihdarshieh/perspective-transformation?scriptVersionId=29866403) that implements `perspective transformation`, or called `4 point transformation`, which is available in OpenCV.\n\nThis is also a response to @gskdhiman's post [perspective transform using OpenCV with tf?](https://www.kaggle.com/c/flower-classification-with-tpus/discussion/133185).\n\nFor those who want to know the idea how it is implemented, see the reference [Finding the Transform matrix from 4 projected points (with Javascript)](https://math.stackexchange.com/questions/296794/finding-the-transform-matrix-from-4-projected-points-with-javascript/339033#339033)\n\nBy this, hope our models have more perspectives :)\n\nHere is one example image.\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F1533864%2F7d71919df88ad547a96aca9b3a7557d6%2F__results___9_0.png?generation=1583741971572678&amp;alt=media)",
      "votes": null
    },
    {
      "id": "768391",
      "postDate": "03/10/2020 18:27:49",
      "content": "<p>Wow, pure Tensorflow (so it will work on TPU / GPU) and with a batch implementation too ! Thank you for the contribution.</p>",
      "rawMarkdown": "Wow, pure Tensorflow (so it will work on TPU / GPU) and with a batch implementation too ! Thank you for the contribution.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 768391,
      "author_name": "mgorner",
      "author_url": "",
      "post_date": "03/10/2020 18:27:49",
      "content": "<p>Wow, pure Tensorflow (so it will work on TPU / GPU) and with a batch implementation too ! Thank you for the contribution.</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "766929": "Hi,\n\nI published a kernel [Perspective transformation](https://www.kaggle.com/yihdarshieh/perspective-transformation?scriptVersionId=29866403) that implements `perspective transformation`, or called `4 point transformation`, which is available in OpenCV.\n\nThis is also a response to @gskdhiman's post [perspective transform using OpenCV with tf?](https://www.kaggle.com/c/flower-classification-with-tpus/discussion/133185).\n\nFor those who want to know the idea how it is implemented, see the reference [Finding the Transform matrix from 4 projected points (with Javascript)](https://math.stackexchange.com/questions/296794/finding-the-transform-matrix-from-4-projected-points-with-javascript/339033#339033)\n\nBy this, hope our models have more perspectives :)\n\nHere is one example image.\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F1533864%2F7d71919df88ad547a96aca9b3a7557d6%2F__results___9_0.png?generation=1583741971572678&amp;alt=media)",
    "768391": "Wow, pure Tensorflow (so it will work on TPU / GPU) and with a batch implementation too ! Thank you for the contribution."
  },
  "source": "meta"
}