fieldcards: a local Gemma turns your photos into a printed scavenger hunt
说明与用途
fieldcards 使用本地 Gemma 3 模型通过 Ollama 将户外照片转换为可打印的寻宝卡片,无需上传图片,处理速度快。
问题
Generate printable scavenger‑hunt clues from outdoor photos without uploading images or using an API.
结果
fieldcards turns a folder of outdoor photos into a printable scavenger‑hunt sheet in about two minutes for the first photo and 7‑13 seconds per subsequent photo, using only local resources and no internet.
工作流
- 1. Install Gemma 3 locally with Ollama and the fieldcards npm package.
- 2. Run
fieldcards ./photos --title "Saturday in the park"to process a folder of photos. - 3. The tool posts each image to the local Ollama server with a JSON schema prompt.
- 4. Gemma returns a structured response (subject, clue, etc.).
- 5. The response is validated, clues are cleaned, and ASCII cards are generated using altsvg.
- 6. Output files are written: index.html, cards.txt, deck.json.
- 7. Users can print the sheet or re‑run with
--from deck.jsonto edit without re‑running the model.
证据
Each photo goes to Gemma 3, running locally through Ollama. Gemma works out what the photo shows and writes a clue for finding it that doesn't name it.
Every run writes three files: index.html, cards.txt, deck.json.
On my laptop (RTX 3050, 4 GB), the first photo takes about two minutes because it also loads the model. Each photo after that takes 7 to 13 seconds, using about 2.9 GB of GPU memory.
- 记录日期: 2026-10-11T07:56:01.544Z