Extract structured data from images
Use AI vision to extract JSON data from receipts, forms, documents, and other images.
Run the same AI prompt against multiple images automatically, without writing loops or managing API calls.
Images · Notebook · Updated
Colab runs it in your browser. If it calls a model provider, it asks for that provider's API key in a cell.
You add a computed column that applies openai.chat_completions() with multimodal messages to every image in your table. Pixeltable handles the API calls, retries, and result storage automatically.
When you insert new images, the analysis runs automatically—no extra code needed.
pip install pixeltable openai
OPENAI_API_KEYopenai.chat_completions()pxt.create_table()insert()add_computed_column()# Define the promptmessages = [{'role': 'user','content': [{'type': 'text','text': 'Describe this image in one sentence.',},{'type': 'image_url', 'image_url': t.image},],}]# Add computed column for AI analysis using openai.chat_completions()t.add_computed_column(description=openai.chat_completions(messages, model='gpt-4o-mini'))
One cell of the notebook, copied as it is. Open it in Colab for the rest.
Use AI vision to extract JSON data from receipts, forms, documents, and other images.
You need to add watermarks to hundreds of different images to protect copyright, add branding, or mark drafts.
You need to make hundreds of images semi-transparent for backgrounds, overlays, or watermarks.
You need to apply filters to hundreds of images—blur, sharpen, edge detection, and other enhancements.