kornia-moons

Conversions between kornia and other computer vision libraries formats

Apache Software License 2.0 21 个版本 Python >=3.7
Dmytro Mishkin <ducha.aiki@gmail.com>
安装
pip install kornia-moons
poetry add kornia-moons
pipenv install kornia-moons
conda install kornia-moons
描述

Kornia_moons

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

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

<matplotlib.image.AxesImage>

版本列表
0.2.9 2023-09-26
0.2.8 2023-09-25
0.2.7 2023-09-19
0.2.6 2023-04-18
0.2.5 2023-04-17
0.2.4 2023-03-20
0.2.3 2022-09-29
0.2.2 2022-09-29
0.2.1 2022-08-24
0.2.0 2022-06-13
0.1.9 2022-03-11
0.1.8 2022-03-11
0.1.7 2021-12-07
0.1.6 2021-08-25
0.1.5 2021-08-25
0.1.4 2021-07-21
0.1.3 2021-06-15
0.1.2 2021-06-04
0.1.1 2021-05-07
0.1.0 2021-05-07
0.0.1 2020-11-23