Introduction
Many edge-based computer vision applications, such as industrial counting or simple presence detection, require only the central location of an object rather than precise bounding boxes or masks. However, existing solutions are often ill-suited for edge hardware. Standard object detectors like YOLO are optimized for bounding box regression, which is computationally heavy and often unnecessary for center-only tasks. Conversely, keypoint detectors typically use fixed Gaussian heatmaps that fail to capture the varying aspect ratios of real-world objects. Furthermore, modern architectural components like LayerNorm or GELU often suffer from high latency on Neural Processing Units (NPUs) found in edge devices.
OCDet addresses these challenges by providing a lightweight framework specifically designed for NPU efficiency, utilizing adaptive heatmaps and a specialized loss function to achieve superior center localization.
Methodology
The OCDet framework introduces three primary innovations to optimize center detection for edge devices:
- Generalized Centerness (GC): Unlike standard circular Gaussian distributions, GC generates adaptive ground truth heatmaps based on bounding box annotations. By adjusting shape hyperparameters, the heatmap "stretches" to match the object's aspect ratio, providing richer spatial information for training.
- NPU-Friendly Architecture: The model employs a MobileNetV4 backbone and a Semantic FPN (Feature Pyramid Network). It deliberately avoids NPU-unfriendly operations, relying on standard convolutions, ReLU, and BatchNorm to maximize hardware throughput.
- Balanced Continuous Focal Loss (BCFL): To handle the "zero-dominant" nature of heatmap data, BCFL enhances standard Quality Focal Loss with a dynamic weighting factor ($\alpha_c$). This focuses learning on central object regions and "hard negative" background examples.
The complete pipeline, illustrating the transition from input images to predicted center coordinates, is shown in Figure 1.
Experimental Results
The researchers evaluated OCDet on the COCO 2017 dataset, measuring latency on an NXP i.MX 8M Plus NPU. To accurately assess performance, they proposed the Center Alignment Score (CAS), which combines distance error (Matched Discrepancy) and detection count error (Cardinality Penalty) via Hungarian matching into a single [0, 1] metric.
OCDet demonstrates clear Pareto dominance over state-of-the-art detectors. As shown in Figure 2, OCDet variants consistently achieve a better accuracy-to-latency trade-off than YOLOv8, YOLO11, and standard keypoint (KP) baselines.
Key findings include:
- Efficiency: OCDet-N (Nano) achieves a 23% higher CAS than YOLO11n while using 42% fewer parameters and reducing NPU latency by 64% (10.94ms vs. 30.77ms).
- Localization Accuracy: Compared to standard keypoint methods, OCDet improves CAS by up to 186% under identical model configurations.
- Hardware Optimization: The study confirms that standard convolutional blocks often outperform "modern" transformer-style blocks on NPUs, despite having higher theoretical FLOP counts, because the hardware is specifically optimized for them.
Discussion and Limitations
Ablation studies highlight that matching heatmap shapes to object categories significantly boosts localization. However, OCDet faces challenges with very small objects ($CAS_S$), where pixel-level quantization in the heatmap leads to larger relative errors. Additionally, like most heatmap-based approaches, performance can degrade in extremely crowded scenes where object centers overlap. Future work will focus on mitigating quantization errors and improving robustness in cluttered environments.
Summary updated