# Locality-constrained Spatial Transformer Network for Video Crowd Counting

arXiv: https://arxiv.org/abs/1907.07911 · HTML: https://mlsanity.com/paper/1907.07911/

## Key facts

- Cited by 30 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 18 Jul 2019.

## Built on by (most cited first, 30 of 30)

- [Pose Recognition with Cascade Transformers](https://mlsanity.com/paper/2104.06976/) (2021)
- [Few-shot Object Counting and Detection](https://mlsanity.com/paper/2207.10988/) (2022)
- [STEERER: Resolving Scale Variations for Counting and Localization via Selective Inheritance Learning](https://mlsanity.com/paper/2308.10468/) (2023)
- [Detection, Tracking, and Counting Meets Drones in Crowds: A Benchmark](https://mlsanity.com/paper/2105.02440/) (2021)
- [Leveraging Self-Supervision for Cross-Domain Crowd Counting](https://mlsanity.com/paper/2103.16291/) (2021)
- [The Caltech Fish Counting Dataset: A Benchmark for Multiple-Object Tracking and Counting](https://mlsanity.com/paper/2207.09295/) (2022)
- [DR.VIC: Decomposition and Reasoning for Video Individual Counting](https://mlsanity.com/paper/2203.12335/) (2022)
- [Video Crowd Localization with Multi-focus Gaussian Neighborhood Attention and a Large-Scale Benchmark](https://mlsanity.com/paper/2107.08645/) (2021)
- [Congested Crowd Instance Localization with Dilated Convolutional Swin Transformer](https://mlsanity.com/paper/2108.00584/) (2021)
- [Open-World Object Counting in Videos](https://mlsanity.com/paper/2506.15368/) (2025)
- [Spatiotemporal Dilated Convolution with Uncertain Matching for Video-based Crowd Estimation](https://mlsanity.com/paper/2101.12439/) (2021)
- [VisDrone-CC2020: The Vision Meets Drone Crowd Counting Challenge Results](https://mlsanity.com/paper/2107.08766/) (2021)
- [Weakly Supervised Video Individual CountingWeakly Supervised Video Individual Counting](https://mlsanity.com/paper/2312.05923/) (2023)
- [A Spatio-Temporal Attentive Network for Video-Based Crowd Counting](https://mlsanity.com/paper/2208.11339/) (2022)
- [Video Individual Counting for Moving Drones](https://mlsanity.com/paper/2503.10701/) (2025)
- [LDC-Net: A Unified Framework for Localization, Detection and Counting in Dense Crowds](https://mlsanity.com/paper/2110.04727/) (2021)
- [International Workshop on Continual Semi-Supervised Learning: Introduction, Benchmarks and Baselines](https://mlsanity.com/paper/2110.14613/) (2021)
- [Why is the video analytics accuracy fluctuating, and what can we do about it?](https://mlsanity.com/paper/2208.12644/) (2022)
- [Motion-guided Non-local Spatial-Temporal Network for Video Crowd Counting](https://mlsanity.com/paper/2104.13946/) (2021)
- [An Improved Normed-Deformable Convolution for Crowd Counting](https://mlsanity.com/paper/2206.08084/) (2022)
- [Dynamic Proxy Domain Generalizes the Crowd Localization by Better Binary Segmentation](https://mlsanity.com/paper/2404.13992/) (2024)
- [Video Individual Counting With Implicit One-to-Many Matching](https://mlsanity.com/paper/2506.13067/) (2025)
- [Crowded Video Individual Counting Informed by Social Grouping and Spatial-Temporal Displacement Priors](https://mlsanity.com/paper/2601.01192/) (2026)
- [Curriculum for Crowd Counting -- Is it Worthy?](https://mlsanity.com/paper/2401.07586/) (2024)
- [A Density-Guided Temporal Attention Transformer for Indiscernible Object Counting in Underwater Video](https://mlsanity.com/paper/2403.03461/) (2024)
- [CrowdMAC: Masked Crowd Density Completion for Robust Crowd Density Forecasting](https://mlsanity.com/paper/2407.14725/) (2024)
- [Efficient Masked AutoEncoder for Video Object Counting and A Large-Scale Benchmark](https://mlsanity.com/paper/2411.13056/) (2024)
- [Depth-Assisted Network for Indiscernible Marine Object Counting with Adaptive Motion-Differentiated Feature Encoding](https://mlsanity.com/paper/2503.08152/) (2025)
- [Counting in the 2020s: Binned Representations and Inclusive Performance Measures for Deep Crowd Counting Approaches](https://mlsanity.com/paper/2204.04653/) (2022)
- [Elixir: A system to enhance data quality for multiple analytics on a video stream](https://mlsanity.com/paper/2212.04061/) (2022)

## Abstract (arXiv)

Compared with single image based crowd counting, video provides the spatial-temporal information of the crowd that would help improve the robustness of crowd counting. But translation, rotation and scaling of people lead to the change of density map of heads between neighbouring frames. Meanwhile, people walking in/out or being occluded in dynamic scenes leads to the change of head counts. To alleviate these issues in video crowd counting, a Locality-constrained Spatial Transformer Network (LSTN) is proposed. Specifically, we first leverage a Convolutional Neural Networks to estimate the density map for each frame. Then to relate the density maps between neighbouring frames, a Locality-constrained Spatial Transformer (LST) module is introduced to estimate the density map of next frame with that of current frame. To facilitate the performance evaluation, a large-scale video crowd counting dataset is collected, which contains 15K frames with about 394K annotated heads captured from 13 different scenes. As far as we know, it is the largest video crowd counting dataset. Extensive experiments on our dataset and other crowd counting datasets validate the effectiveness of our LSTN for crowd counting.
