HOGWARTS: Mitigating Perspective Distortion for 6DoF Head Pose Estimation via Virtual Camera Space
Abstract
Estimating 6-degrees-of-freedom (6DoF) head pose from a single RGB image remains challenging under strong perspective distortion. We observe that the widely used design choice of rectangular face cropping introduces a geometric inconsistency. This leads not only to image-label mismatch under 2D rotation augmentation but also exacerbates perspective ambiguity, making it difficult to distinguish projection distortion from the actual appearance and pose of faces located near the image periphery. To address this issue, we propose HOGWARTS, a geometry-driven framework that combines established virtual-camera normalization via homography warping with a dynamic virtual bounding-box correction for metric 6DoF head pose estimation. By explicitly defining a virtual camera that shares the optical center with the original camera and warping the input image into this space, our method compensates for off-axis distortion in a geometrically consistent manner. However, with the virtual focal length held fixed, retaining the original bounding-box size after image normalization leaves a position-dependent scale factor in the regression targets of the pinhole-based translation formulation. We analytically characterize this dependence and derive a dynamic virtual bounding-box correction that separates this geometric factor from the translation parameters learned by the network. Consequently, HOGWARTS enables more geometrically consistent and robust 6DoF pose estimation across varying image locations. Experimental results on the ARKitFace and BIWI datasets demonstrate that HOGWARTS consistently outperforms prior methods under severe perspective distortion as well as in cross-domain settings. Code is available at https://github.com/asw91666/HOGWARTS_RELEASE.