kornia / kornia/tutorials

Tutorial request for image stitching, and error for kornia.feature

Open
#98 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
52
Forks
36
PR merge metrics
No merged PRs in 30d

Description

Hello! I found this link on your webpage
https://kornia.readthedocs.io/en/latest/applications/image_stitching.html
and i was very excited to try the image stitching, however i am unable to find an example tutorial for the image stitching

Here is a short code i wrote wanting to try your demo
```
import kornia as K
import kornia.feature as KF
from kornia.contrib import ImageStitcher
import torch
import cv2

device = K.utils.get_cuda_or_mps_device_if_available()

imgs = r"photos"

matcher = KF.LoFTR(pretrained='outdoor')
IS = ImageStitcher(matcher, estimator='ransac').cuda()
# NOTE: it would require a large CPU memory if many images.
with torch.no_grad():
out = IS(*imgs)

cv2.imshow('output window', out)
```

it also gave me an error
```
import kornia.feature as KF
ModuleNotFoundError: No module named 'kornia.feature'; 'kornia' is not a package
```

Questions
1) may i know which tutorial is the one for image stitching? (the warp image one is not what i need)
2) How to fix the import kornia.feature error?

谢谢您的协助

Contributor guide

Open the contributing guide

Research direction

Start with the image-stitching page at applications/image_stitching.html and reproduce the import and example shown in the issue. Determine which tutorial content is missing and what the reported kornia.feature error indicates, then document a working image-stitching example and troubleshooting guidance for both questions.

Written by the indexing model from the issue text.

Assessment

Tech stack
opencv, python, pytorch
Domain
computer-vision, documentation
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.