OpenStitching / stitching

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

camera adjuster fails #234

Closed VeeranjaneyuluToka closed 2 months ago

VeeranjaneyuluToka commented 2 months ago

Hi,

Nice and very detailed implementation.

I tried you stitched detailed notebook on our own set of images (no.of images are 3). but it fails with below error


error Traceback (most recent call last) /tmp/ipykernel_2447557/2344847478.py in 8 9 cameras = camera_estimator.estimate(features, matches) ---> 10 cameras = camera_adjuster.adjust(features, matches, cameras) 11 cameras = wave_corrector.correct(cameras)

/mmdetection3d/tools/marine/stitching/camera_adjuster.py in adjust(self, features, pairwise_matches, estimated_cameras) 44 45 def adjust(self, features, pairwise_matches, estimated_cameras): ---> 46 b, cameras = self.adjuster.apply(features, pairwise_matches, estimated_cameras) 47 if not b: 48 raise StitchingError("Camera parameters adjusting failed.")

error: OpenCV(4.9.0) /io/opencv/modules/calib3d/src/compat_ptsetreg.cpp:125: error: (-215:Assertion failed) !err.empty() in function 'update'

I tried with all the camera adjuster, it works with no but non of other options works. I am not getting correct outuput with no adjuster. Could you please let m know what could be the reason and possible ways to analyse further on this issue.

Thanks, Veeru.