john
john

Reputation: 629

Using the opencv stitcher module to stitch blurry images

I am using python 3.5 and opencv 3.4.1.

I have a set of 19 images that I need to stitch. They are blurry and the stitching module is unable to stitch them. I have read this post, but am wondering if I can find a way to stitch. I would appreciate some specific suggestions and solutions. I want to stitch these images.

I have tried changing the match_conf as reccomended by this post. How would I edit this as the source code states that it is a flag? I have tried using the line below to change the match_conf to 0.1, but it does not work and I get the error below.

stitcher = cv2.createStitcher(False) 
stitcher.setFeaturesMatcher(detail = BestOf2NearestMatcher(false, 0.1))
result = np.empty(shape=[2048, 2048])
ret, result = stitcher.stitch(imgs, result)

'cv2.Stitcher' object has no attribute 'setFeaturesMatcher'

Upvotes: 1

Views: 933

Answers (1)

ASingh
ASingh

Reputation: 74

Check this post out. Possibly gig into pipeline and change opencv C++ code.

"This is full pipleline of OPencv Stitching code. You can see that there are lot of parameters you can change to make your code give some good stitching result. Also I would suggest using a small image (640 X480) for the feature detection step. Using small images is better than using very large images"

Technically you should be able to change the parameter from python, but hopeful somebody else knows how to do that.s

Upvotes: 1

Related Questions