# Image stitching error: Camera parameters adjusting failed

**URL:** <https://forum.opencv.org/t/image-stitching-error-camera-parameters-adjusting-failed/16127>\
**Category:** Python\
**Tags:** stitching\
**Created:** [January 11, 2024, 12:28pm UTC](https://forum.opencv.org/t/image-stitching-error-camera-parameters-adjusting-failed/16127 "2024-01-11T12:28:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Riya](https://avatars.discourse-cdn.com/v4/letter/r/a183cd/32.png) [@Riya](https://forum.opencv.org/u/Riya)\
**Post date:** [January 11, 2024, 12:28pm UTC](https://forum.opencv.org/t/image-stitching-error-camera-parameters-adjusting-failed/16127/1 "2024-01-11T12:28:22Z")

</div>

I want to stitch multiple images from a retail store to capture the whole wall, I used the stitching library to use stitch the image, Here is the code used to stitch the images.

```auto
import stitching
from PIL import Image
import numpy as np
import matplotlib.pyplot as plt

def stitch_images(image_paths):
    stitcher = stitching.Stitcher(detector="sift", confidence_threshold=0.1)
    stitched_image = stitcher.stitch(image_paths)
    return stitched_image

stitched_image = stitch_images(paths)
im = Image.fromarray(np.uint8(stitched_image))
plt.imshow(im)

```

Here are the images

 ![Screenshot 2024-01-11 at 5.58.03 PM](https://us1.discourse-cdn.com/flex020/uploads/opencv/original/2X/5/500bb811d489c15c3d3f22054ad1c961a3ef50a0.jpeg)

These 2 images have good enough overlapping parts but still, the library cannot stitch. Also please guide if the vertical stitching is possible using this library or any other reference.
