Skip to content

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

Description

@ykn96

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?

谢谢您的协助

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions