For a while, I have been taking photos of new mugs I buy. I used to keep an up-to-date list on my mugs page but as with many things that seldom need u

Create an automated image collage with computer vision

submited by
Style Pass
2024-04-29 12:30:07

For a while, I have been taking photos of new mugs I buy. I used to keep an up-to-date list on my mugs page but as with many things that seldom need updated, the list became out of date. This got me thinking about new ways I could present the mugs I own; methods that could be a bit more interactive. I thought about creating a collage of all my coffee mugs in a single image. Herein lay a question: how could I create such a collage?

To implement these requirements, I turned to computer vision. In this guide, I am going to show you how to create a program that automatically generates an image collage. This script will take in a text prompt and a folder of images and create a single grid where the region corresponding to a specific object is present.

Images taken on smart phones are large. This is not ideal for making a collage. I could resize my images, but then objects of interest would appear smaller than I would like; they would not be prominent. But, there is something we can do about this! We can identify objects of interest, crop them, and then resize those regions so that they are equally sized to make a grid.

Leave a Comment