OpenStitching / stitching

A Python package for fast and robust Image Stitching
Apache License 2.0
2.04k stars 160 forks source link

`python -m unittest` is successful , but run `panorama = stitcher.stitch([image1, image2]) ` is failed, error: numba.errors.TypingError: Failed in nopython mode pipeline (step: nopython frontend) #63

Closed Cheng-qi closed 1 year ago

Cheng-qi commented 1 year ago

import stitching

image1 = '/home/cq/stitching/tests/testdata/boat1.jpg' image2 = '/home/cq/stitching/tests/testdata/boat2.jpg' stitcher = stitching.Stitcher() # OK panorama = stitcher.stitch([image1, image2]) #error 未命名4 print(panorama)

lukasalexanderweber commented 1 year ago

can you run it with stitcher = stitching.Stitcher(crop=false) and show the result?

Cheng-qi commented 1 year ago

can you run it with stitcher = stitching.Stitcher(crop=false) and show the result?

Thanks, error has solved. I have other problem: I try to stitch images longitudinally, but I get a misshapen result image. Can this code get a result images with auto height?

lukasalexanderweber commented 1 year ago

the default camera correction is horizontal. You can set it to vertical using wave_correct_kind=vert (see camera_wave_corrector

Cheng-qi commented 1 year ago

Thanks very much, It's just what I need!