Animated Territorial Data Extractor (ATDE): A Computer-Vision Method for Extracting Territorial Data from Animated Historical Maps
Hamza Alshamy, Isaiah Woram, Advay Mishra, Zihan Xia, Pascal Wallisch
TL;DR
This work tackles the challenge of extracting quantitative territorial data from animated historical maps, where data are embedded in raster video frames rather than structured GIS formats. It introduces Animated Territorial Data Extractor (ATDE), a computer-vision pipeline that counts territory-colored pixels per frame using HSV-based color segmentation, RGB channel restrictions, and Direct Neighbor Filtering, with temporal alignment to produce year-aligned time series. The authors demonstrate ATDE on ten Chinese dynasties (200 BCE–1912 CE) with a shared basemap, applying scale normalization via invariant water features and relative normalization by the global maximum to enable cross-dynasty comparisons. Although not a substitute for authoritative datasets, ATDE provides a practical tool for education, rapid data exploration, and comparative analysis of territorial dynamics, and it is designed to be easy to apply to any suitable animated map video.
Abstract
We present Animated Territorial Data Extractor (ATDE), a computer vision tool that extracts quantitative territorial data from animated historical map videos. ATDE employs HSV-based color segmentation, RGB channel filtering, and Direct-Neighbor Filtering to identify and count pixels representing territorial control. Combined with preprocessing for temporal alignment and cross-video scaling, the pipeline converts animated videos into structured time-series data. We demonstrate the tool on ten Chinese dynasties (200 BCE - 1912 CE), producing year-by-year pixel counts that align with expected historical patterns. While not a substitute for authoritative historical datasets, ATDE is well-suited for educational demonstrations, preliminary data exploration, and comparative analysis of territorial dynamics. The tool requires no pre-existing shapefiles and can be applied to any animated map video given seed colors and basic configuration. Code and examples are available on GitHub.
