Point, Segment and Count: A Generalized Framework for Object Counting

Zhizhong Huang, Mingliang Dai, Yi Zhang, Junping Zhang, Hongming Shan
2/14/2026

No official code found. Best implementation: Hzzone/PseCo (125 stars, last commit 2024-11-12).

Abstract

Class-agnostic object counting aims to count all objects in an image with respect to example boxes or class names, a.k.a few-shot and zero-shot counting. In this paper, we propose a generalized framework for both few-shot and zero-shot object counting based on detection. Our framework combines the superior advantages of two foundation models without compromising their zero-shot capability: (i) SAM to segment all possible objects as mask proposals, and (ii) CLIP to classify proposals to obtain accurate object counts. However, this strategy meets the obstacles of efficiency over-head and the small crowded objects that cannot be localized and distinguished. To address these issues, our framework, termed PseCo, follows three steps: point, segment, and count. Specifically, we first propose a class-agnostic object localization to provide accurate but least point prompts for SAM, which consequently not only reduces computation costs but also avoids missing small objects. Furthermore, we propose a generalized object classification that leverages CLIP image/text embeddings as the classifier, following a hierarhical knowledge distillation to obtain discriminative classifications among hierarchical mask proposals. Extensive experimental results on FSC-147, COCO, and LVIS demonstrate that PseCo achieves state-of-the-art performance in both few-shot/zero-shot object counting/detection.

View on arXivView PDF

Code Implementations(1)

Hzzone/PseCoCommunity77%

(CVPR 2024) Point, Segment and Count: A Generalized Framework for Object Counting

1259Python, Jupyter NotebookNov 21, 20231 years ago

Similar Papers

Cite this paper

@article{huang2026point,
  title  = {Point, Segment and Count: A Generalized Framework for Object Counting},
  author = {Zhizhong Huang and Mingliang Dai and Yi Zhang and Junping Zhang and Hongming Shan},
  year   = {2026},
  eprint = {2311.12386},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2311.12386},
  journal = {CVPR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.12386.svg)](https://codeofpaper.com/paper/2311.12386)

Discussion