AI-based visual content collage generation
Abstract
A data processing system implements receiving, via a user interface of a client device, images for generating a collage image; generating captions for the images; constructing a first prompt by appending the captions to a first instruction string including instructions to a generative language model to extract a theme from the captions; providing the first prompt to the generative language model and receiving the theme therefrom; constructing a second prompt by appending the theme to a second instruction string including instructions to a text-to-image model to use the theme to create a background image with placeholders; providing the second prompt to the text-to-image model and receiving the background image therefrom; identifying the placeholders in the background image; creating the collage image by fitting the images into the identified placeholders; providing the collage image to the client device; and causing the user interface to display the collage image.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 11 · Forward citations: 0.
Claims (8)
- Claim 1Independent Claim
A data processing system comprising: a processor, and a machine-readable storage medium storing executable instructions which, when executed by the processor, cause the processor alone or in combination with other processors to perform the following operations: receiving, via a user interface of a client device, a plurality of images for generating a collage image, wherein the plurality of images are camera-captured images; generating captions for one or more of the plurality of images; constructing, via a prompt construction unit, a first prompt by appending the captions to a first instruction string, the first instruction string including instructions to a generative language model to extract a theme from the captions; providing as an input the first prompt to the generative language model and receiving as an output the theme from the generative language model; constructing, via the prompt construction unit, a second prompt by appending the theme to a second instruction string, the s
- Claim 2Depends on #1
The data processing system of claim 1, wherein to identify the placeholders in the background image, the machine-readable storage medium further includes instructions configured to cause the processor alone or in combination with other processors to perform operations of: identifying the placeholders in the background image based on at least one of erosion, dilation, blurring, canny edging, convex hulling, or hierarchical contouring, wherein each of the captions includes a natural language phrase, sentence, or paragraph.
- Claim 3Depends on #2
The data processing system of claim 2, wherein identifying the placeholders in the background image includes operations of: converting the background image into a LAB color space; binarizing each of a plurality of pixels of the converted background image into either a black pixel or a white pixel; identifying one or more artifacts in the binarized background image; removing a sub-set of the artifacts by applying erosion and at least one of dilation or blurring on white pixels of the binarized background image; and after the removing, extracting edges of one or more remaining artifacts in the binarized background image and connecting one or more broken edges among the extracted edges into the placeholders.
- Claim 4Depends on #1
The data processing system of claim 1, wherein the machine-readable storage medium further includes instructions configured to cause the processor alone or in combination with other processors to perform operations of: receiving a textual query via the user interface beside the plurality of images, wherein the prompt construction unit further appends the textual query to the first instruction string, and wherein the first instruction string further comprises instructions to the generative language model to extract the theme further based on the textual query.
- Claim 5Depends on #1
The data processing system of claim 1, wherein: at least one of the plurality of images depicts one or more text elements, the first instruction string further comprises instructions to the generative language model to identify the one or more text elements depicted in the at least one image, the prompt construction unit further appends the one or more text elements to the first instruction string, and the first instruction string comprises instructions to the generative language model to extract the theme further based on the one or more text elements.
- Claim 6Depends on #1
The data processing system of claim 1, wherein fitting the plurality of images into the placeholders include at least one of resizing, rotating, or cropping one or more of the plurality of images to fit into the placeholders.
- Claim 7Depends on #1
The data processing system of claim 1, wherein the machine-readable storage medium further includes instructions configured to cause the processor alone or in combination with other processors to perform operations of: filtering out the background image, when a number of the placeholders of the background image is more or fewer than a number of the plurality of images.
- Claim 8Depends on #1
The data processing system of claim 1, wherein the machine-readable storage medium further includes instructions configured to cause the processor alone or in combination with other processors to perform operations of: filtering out at least one invalid placeholder among the placeholders, when a size of the at least one invalid placeholder is too small or too big to fit any one of the plurality of images within a predetermined resolution range.
Technical Overview & Description
BACKGROUND Artificial intelligence (AI) has the potential to automate our lives to save time and increase productivity. One area of interest is visual content creation, and image generative models have become popular and powerful tools for creating photo albums and collages. The existing AI-based collage generation platforms or applications analyze user-uploaded photos and generate different collage layout/style suggestions. However, it is up to the user to pick a template, drag and drop the photos into the template, and then adjust the collage to the user's liking. It is time-consuming for the user to select one among many collage templates, and then manually drag and drop the photos into the selected template, as well as tweak the collage image to get the final output. There are technical challenges to provide users with easier-to-use AI-based visual content collage creation. Hence, there is a need for more automated AI-based visual content collage creation systems and methods. SUMMARY An example data processing system according to the disclosure includes a processor and a machine-readable medium storing executable instructions. The instructions when executed cause the processor alone or in combination with other processors to perform operations including receiving, via a user interface of a client device, a plurality of images for generating a collage image; generating captions for one or more of the plurality of images; constructing, via a prompt construction unit, a first prompt by appending the captions to a first instruction string, the first instruction string including instructions to a generative language model to extract a theme from the captions; providing as an input the first prompt to the generative language model and receiving as an output the theme from the generative language model; constructing, via the prompt construction unit, a second prompt by appending the theme to a second instruction string, the second instruction string including instructi
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (11)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 2025/0095221 A1 | SALIENCY-BASED BACKGROUND GENERATION | — | 2 |
Non-Patent Literature (10)
- International Search Report and Written Opinion received for PCT Application No. PCT/US2025/011332, Apr. 25, 2025, 15 pages.
- Jia et al.,
- “
- COLE: A Hierarchical Generation Framework for Multi-Layered and Editable Graphic Design
- ”
- , arXiv:2311.16974v2, Mar. 18, 2024, 20 pages.
- Mirowski et al.,
- “
- CLIP-CLOP: CLIP-Guided Collage and Photomontage
- ”