Kornia_moons
================
<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->
## Install
`pip install kornia_moons`
## How to use
Here is an example how to use kornia-moons for local feature conversion
from OpenCV ORB keypoints
``` python
import matplotlib.pyplot as plt
import cv2
import torch
import kornia as K
from typing import List
import matplotlib.pyplot as plt
from kornia_moons.feature import laf_from_opencv_ORB_kpts, opencv_ORB_kpts_from_laf
from kornia_moons.viz import visualize_LAF
img = cv2.cvtColor(cv2.imread('data/strahov.png'), cv2.COLOR_BGR2RGB)
det = cv2.ORB_create(500)
kps, descs = det.detectAndCompute(img, None)
out_img = cv2.drawKeypoints(img, kps, None, flags=cv2.DRAW_MATCHES_FLAGS_DRAW_RICH_KEYPOINTS)
plt.imshow(out_img)
lafs = laf_from_opencv_ORB_kpts(kps)
visualize_LAF(K.image_to_tensor(img, False), lafs, 0)
kps_back = opencv_ORB_kpts_from_laf(lafs)
out_img2 = cv2.drawKeypoints(img, kps_back, None, flags=cv2.DRAW_MATCHES_FLAGS_DRAW_RICH_KEYPOINTS)
plt.imshow(out_img2)
```
libpng warning: iCCP: known incorrect sRGB profile
![](index_files/figure-commonmark/cell-3-output-2.png)
![](index_files/figure-commonmark/cell-3-output-3.png)
<matplotlib.image.AxesImage>
![](index_files/figure-commonmark/cell-3-output-5.png)
Raw data
{
"_id": null,
"home_page": "https://github.com/ducha-aiki/kornia_moons/",
"name": "kornia-moons",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "kornia,python,pytorch,deep learning,computer vision",
"author": "Dmytro Mishkin",
"author_email": "ducha.aiki@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/37/4b/10defe8ac68c3ab2b42c58ed302d36e3ba69a33f092f5798a8248e0e0f68/kornia_moons-0.2.9.tar.gz",
"platform": null,
"description": "Kornia_moons\n================\n\n<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->\n\n## Install\n\n`pip install kornia_moons`\n\n## How to use\n\nHere is an example how to use kornia-moons for local feature conversion\nfrom OpenCV ORB keypoints\n\n``` python\nimport matplotlib.pyplot as plt\nimport cv2\nimport torch\nimport kornia as K\nfrom typing import List\nimport matplotlib.pyplot as plt\n\nfrom kornia_moons.feature import laf_from_opencv_ORB_kpts, opencv_ORB_kpts_from_laf \nfrom kornia_moons.viz import visualize_LAF\n\n\n\nimg = cv2.cvtColor(cv2.imread('data/strahov.png'), cv2.COLOR_BGR2RGB)\n\ndet = cv2.ORB_create(500)\nkps, descs = det.detectAndCompute(img, None)\n\nout_img = cv2.drawKeypoints(img, kps, None, flags=cv2.DRAW_MATCHES_FLAGS_DRAW_RICH_KEYPOINTS)\nplt.imshow(out_img)\n\n\nlafs = laf_from_opencv_ORB_kpts(kps)\nvisualize_LAF(K.image_to_tensor(img, False), lafs, 0)\n\nkps_back = opencv_ORB_kpts_from_laf(lafs)\nout_img2 = cv2.drawKeypoints(img, kps_back, None, flags=cv2.DRAW_MATCHES_FLAGS_DRAW_RICH_KEYPOINTS)\nplt.imshow(out_img2)\n```\n\n libpng warning: iCCP: known incorrect sRGB profile\n\n![](index_files/figure-commonmark/cell-3-output-2.png)\n\n![](index_files/figure-commonmark/cell-3-output-3.png)\n\n <matplotlib.image.AxesImage>\n\n![](index_files/figure-commonmark/cell-3-output-5.png)\n",
"bugtrack_url": null,
"license": "Apache Software License 2.0",
"summary": "Conversions between kornia and other computer vision libraries formats",
"version": "0.2.9",
"project_urls": {
"Homepage": "https://github.com/ducha-aiki/kornia_moons/"
},
"split_keywords": [
"kornia",
"python",
"pytorch",
"deep learning",
"computer vision"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "dd612d7b4383eab721c785c318d06e412f49a4e04568b46291d30aa3d2e7dba5",
"md5": "03da0e337c5f26d78c2181cae95d0d12",
"sha256": "d35e799b29031365c7b57fee3d84b4be547c0513f7c013e8234e05d33d2b1061"
},
"downloads": -1,
"filename": "kornia_moons-0.2.9-py3-none-any.whl",
"has_sig": false,
"md5_digest": "03da0e337c5f26d78c2181cae95d0d12",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 15628,
"upload_time": "2023-09-26T12:05:08",
"upload_time_iso_8601": "2023-09-26T12:05:08.970194Z",
"url": "https://files.pythonhosted.org/packages/dd/61/2d7b4383eab721c785c318d06e412f49a4e04568b46291d30aa3d2e7dba5/kornia_moons-0.2.9-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "374b10defe8ac68c3ab2b42c58ed302d36e3ba69a33f092f5798a8248e0e0f68",
"md5": "e7f901f27c6dbf25fbb078ab91be8187",
"sha256": "e6e6b3523296a38f099712a322d708730720cfb97de437aa90fa586a86556455"
},
"downloads": -1,
"filename": "kornia_moons-0.2.9.tar.gz",
"has_sig": false,
"md5_digest": "e7f901f27c6dbf25fbb078ab91be8187",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 16816,
"upload_time": "2023-09-26T12:05:10",
"upload_time_iso_8601": "2023-09-26T12:05:10.931479Z",
"url": "https://files.pythonhosted.org/packages/37/4b/10defe8ac68c3ab2b42c58ed302d36e3ba69a33f092f5798a8248e0e0f68/kornia_moons-0.2.9.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-09-26 12:05:10",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ducha-aiki",
"github_project": "kornia_moons",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "kornia-moons"
}