pythonimage-processing

Stitching non overlapping photos together


So for this project, I'm working on, I have 2 non-overlapping photos. These two photos need to be stitched together, one on the top and one on the bottom, and then you will be able to see the whole picture. Any ideas on what module I should use to do this?


Solution

  • The python imaging library (updated link) will eat that task for breakfast.

    See the tutorial in particular the "Cutting, Pasting and Merging Images" section for some relevant help.

    For rough outline, load both images with Image.open, find out how big the output image will be by using the size attribute and some addition, create the output image with Image.new and then use the paste method to past the two original images in.