Icon

Image - Extract Pictures from single Image File

<p>Extract images of stamps from a single JPG page and split them into single files</p><p>with and without an LLM</p>
Extract images of stamps from a single JPG page and split them into single files

https://forum.knime.com/t/extract-stamps-images-from-image/90559/7?u=mlauber71

with and without an LLM

The workflow first detects the color-saturated regions on a stamp album page to isolate each stamp + caption block and saves those as “outer” crops.
Then, for each crop, it analyzes the caption text below to estimate the correct horizontal boundaries and runs edge-based rectangle detection within that region to extract the precise inner stamp (image + perforation).
This two-stage, caption-guided method keeps each stamp tightly framed while avoiding overlaps with neighboring stamps.

locate and create /data/ folder with absolute paths
Collect Local Metadata
Propagate Python environmentfor KNIME on MacOSX (Apple Scilicon)OR Windowswith Miniforge / Miniconda
conda_python_pdf
*.jpg
List Files/Folders
URL to File Path (Variable)
String to URI
Image_name
Constant Value Column Appender
Path to String
Table Row to Variable Loop Start
Python Script
Loop End
Java Snippet (simple)

Nodes

Extensions

Links