Skip to content
Projects

About

个人相册语义资产生成器:扫描照片 → 视觉大模型标注 → 结构化数据 | Semantic asset generator for personal photo albums

Design & Media

How these counts are measured

Measured star growth

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README_en.md

Original

English | 简体中文

Album Assetizer

Personal Album Semantic Asset Generator · Turn photos into searchable structured data

License Python 3.11+ PRs Welcome

Preview

Overview

Tens of thousands of photos on your phone, yet finding a specific one means scrolling endlessly. Built-in album search is limited, and your data is locked inside vendor ecosystems.

Album Assetizer scans local photo albums, calls vision LLMs to generate structured descriptions for each image (scene, tags, subjects, activities, OCR, etc.), extracts EXIF timestamps and GPS coordinates, and outputs everything in standard formats (JSONL / CSV / SQLite) ready for any downstream application.

Photos → Scan → EXIF extraction → Vision LLM annotation → Structured data assets

👀 Want to see what the generated data can do?

👉👉👉 Companion project Album Explorer — a semantic album browser built on this project's output, offering full-text search, map view, smart clustering, timeline, similarity recommendations and more.


Key Features

Module Description
Format Support JPG / PNG / HEIC / DNG / CR3 / LIVP (Apple Live Photo)
Image Preprocessing Auto-resize, EXIF orientation fix, RGBA→RGB, RAW decode, size control
Metadata Extraction EXIF capture time, GPS coordinates, timezone parsing
LLM Annotation OpenAI-compatible API, Structured Output (json_schema + auto-fallback)
Concurrency Multi-threaded + RPM rate limiting + auto scale-up + auto scale-down
Fault Tolerance Exponential backoff, error classification, crash recovery, graceful shutdown
Two-pass Refinement First-pass vision + optional text-model refinement for consistency
Data Export SQLite persistence, one-click JSONL / CSV / failure list export
Quality Review Built-in HTML review script with pagination, filtering, keyboard navigation

Quick Start

1. Install

git clone https://github.com/SeanWong17/album-assetizer.git
cd album-assetizer
pip install -e .

2. Configure API

mkdir -p /path/to/album/.album-assetizer
cp examples/sample.env /path/to/album/.album-assetizer/.env

Edit the .env file with your API credentials (any OpenAI-compatible endpoint):

ALBUM_ASSETIZER_API_KEY=your_api_key
ALBUM_ASSETIZER_BASE_URL=https://your-provider.com/v1
ALBUM_ASSETIZER_MODEL=your-vision-model

3. Verify Connectivity

album-assetizer --root /path/to/album smoke-text
album-assetizer --root /path/to/album smoke-image --path some_photo.jpg

4. Run the Full Pipeline

album-assetizer --root /path/to/album scan            # Discover assets
album-assetizer --root /path/to/album sync-metadata   # Extract EXIF time/GPS
album-assetizer --root /path/to/album run             # LLM annotation
album-assetizer --root /path/to/album export          # Export JSONL/CSV
album-assetizer --root /path/to/album stats           # View statistics

Output Fields

Each image produces a structured record:

Field Type Description
caption_short string One-line summary
caption_long string Detailed description for retrieval
scene string Scene classification
tags list Semantic tags (6-18, deduplicated)
main_subjects list Primary subjects in the image
activities list Ongoing activities
style_labels list Style labels (screenshot, B&W, HDR, etc.)
quality_flags list Quality markers (blurry, overexposed, etc.)
safety_flags list Safety markers
contains_text bool Whether the image contains readable text
ocr_text string Extracted text (≤300 chars)
people_count int Number of people (-1 if uncertain)
confidence float Annotation confidence (0-1)
embedding_text string Concatenated text for embedding
taken_at string EXIF capture time (ISO 8601)
gps_lat / gps_lng float EXIF GPS coordinates

Project Scope

This project focuses solely on generating and persisting high-quality semantic assets from photo albums.

A lightweight review script is included (shown in the screenshot above) for browsing images alongside their structured descriptions to verify annotation quality. More complete consumption scenarios (search, clustering, recommendations, timeline, map visualization) are provided by the companion project Album Explorer.


License

MIT License © 2026 SeanWong17


Star History



Made with ❤️ by SeanWong17

Explore related projects

Loading…