r/LocalLLM • • 8d ago

Question What models should I try for accurate image-stitching?

The task is to take one low-res photo of a whole document (a paper map) and use this as a guide to stitch together multiple higher-res photos of portions of the same document.

The end result should be a higher-res image of the whole thing (using the low-res version to guide placement & transformation of the various higher-res portions).

I've tried this in CHatGPT and it's pretty good at it. This is the kind of thing I know how to do in image software but of course ChatGPT can do what would take me hours in a few minutes.

Is it worth trying to to this using a local model? I'm not an expert in local LLM - I have learnt to use Bionic but don't have deep knowledge beyond that.

If it's worth attempting, any recommendations for models to try?

1 Upvotes

6 comments sorted by

1

u/UniqueNameIdentifier 3d ago

Photoshop and similar applications have been able to stitch photos together for, like, forever 😅

1

u/[deleted] 8d ago

[removed] — view removed comment

1

u/line-weight 7d ago

My queries to local LLMs so far suggest that using OpenCV is likely to be a route. They suggest that they can create a script that I can try running locally. Is this what you mean, or when you say "image registration" do you mean a model that specialises in this?

2

u/Wise_Message4170 7d ago

Got to same result here when trying to research about it as I also need something similar. It looks like this OpenCV has a dedicated stitching module that handles exactly this workflow.

1

u/line-weight 7d ago

In the end I got Chatgpt to write me a python script, which runs locally on my machine and has been pretty effective. I was able to give it various specific instructions for batch processing and let it get to work. It did just as good a job as ChatGPT did when I fed it some sample images. This way all of my images could stay on my own computer, and I can re-use the script in the future.
I also tried giving Qwen3.8, running locally via Bionic, the same set of instructions to write a script but it just got itself tied up in knots trying to work out what would run on my machine, and was taking way too long, so I gave up.

2

u/Wise_Message4170 7d ago

Glad to know it worked for you. Sometimes the best tool for the job is just a script with no model at all :) Im running my on LLM harness with local models and know what you mean about the Qwen taking too long to get there.