Detecting Legend Items on Historical Maps Using GPT-4o with In-Context Learning
Not on the map. Why?
Abstract (arXiv)
Historical map legends are critical for interpreting cartographic symbols. However, their inconsistent layouts and unstructured formats make automatic extraction challenging. Prior work focuses primarily on segmentation or general optical character recognition (OCR), with few methods effectively matching legend symbols to their corresponding descriptions in a structured manner. We present a method that combines LayoutLMv3 for layout detection with GPT-4o using in-context learning to detect and link legend items and their descriptions via bounding box predictions. Our experiments show that GPT-4 with structured JSON prompts outperforms the baseline, achieving 88% F-1 and 85% IoU, and reveal how prompt design, example counts, and layout alignment affect performance. This approach supports scalable, layout-aware legend parsing and improves the indexing and searchability of historical maps across various visual styles.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 8 of its 20 references that are in the map. First posted on arXiv 9 Oct 2025.
Builds on
8 of 20 references.
References · 8
- 2022LayoutLMv3: Pre-training for Document AI with Unified Text and Image Maskingcited by 485
- 2021LayoutParser: A Unified Toolkit for Deep Learning Based Document Image Analysiscited by 58
- 2023GeoLM: Empowering Language Models for Geospatially Grounded Language Understandingcited by 37
- 2023The mapKurator System: A Complete Pipeline for Extracting and Linking Text from Historical Mapscited by 8
- 2023Cross-attention Spatio-temporal Context Transformer for Semantic Segmentation of Historical Mapscited by 8
- 2025Hyper-Local Deformable Transformers for Text Spotting on Historical Mapscited by 7
- 2021An Automatic Approach for Generating Rich, Linked Geo-Metadata from Historical Map Imagescited by 6
- 2025DIGMAPPER: A Modular System for Automated Geologic Map Digitizationcited by 2
Built on by
Citing papers per year: 2025: 1.
1 paper.