XPENG RoboticsCompany & role details

Door and Window Keypoints, Visibility, and State

Custom CenterNet and YOLOX models predict door and window boxes, eight keypoints, landmark visibility, object categories, and opening states.

Illustration of door and window boxes, eight landmarks, visibility, and opening-state predictions using CenterNet and YOLOX.
Project summary illustration.

Tools & Skills

  • Keypoint Detection
  • CenterNet
  • YOLOX
  • CSPDarknet
  • Multi-Task Learning
  • COCO Annotation
  • Visibility Prediction

Problem and contribution

A bounding box alone does not describe the visible geometry or opening state of a door or window. I developed custom detection models that predict structural landmarks together with object type, state, and keypoint visibility for indoor robotic perception.

The implementation includes CenterNet-based and YOLOX-based variants, a custom annotation converter, and task-specific training heads.

Annotation and prediction structure

The converters turn custom object annotations into COCO-style records containing a box, eight keypoints, visibility labels, an object category, and an opening-state label.

The category vocabulary covers vertical and horizontal door types, windows, electrical doors, elevators, and unknown objects. Opening-state vocabularies differ between versions: a compact mapping uses open, half-open, closed, and unknown; a more detailed variant separates opening directions.

Prediction What it adds
Object box and confidence Locate the structure in the image
Eight keypoints Describe its annotated geometry
Keypoint visibility Distinguish visible from occluded or unavailable landmarks
Object type Separate the supported door and window categories
Opening state Represent the state independently of object category

CenterNet and YOLOX implementations

The CenterNet variant uses center heatmaps, box-size and offset regression, keypoint coordinates, visibility predictions, and a separate state head. Its later custom configuration uses six object categories and six state outputs.

The YOLOX variant combines a CSPDarknet backbone, feature-pyramid aggregation, and a custom keypoint head. Separate branches predict categories, opening states, boxes, objectness, and keypoints across multiple feature scales. One custom configuration uses 480 × 480 inputs, six object categories, and four opening states.

The state counts describe different annotation/model versions. Their mappings must stay paired with the corresponding checkpoint when interpreting predictions.

Training workflow

The work connects annotation conversion, dataset loading, model configuration, and task-specific losses. Detection supervision locates the object, coordinate regression fits the landmarks, and visibility supervision identifies which points can be observed.

This shared prediction structure makes it possible to inspect object geometry and state together instead of deriving all behavior from a box.

Outcome

The project produced richer door and window observations for indoor scene understanding. These outputs can support downstream geometric reasoning, while traversable space, metric opening width, and robot motion decisions require additional geometry and planning.

Project diagram

100%Drag or scroll to explore

Project image

Click outside the image or press Escape to close.