﻿# Quest camera API: detection boxes need pose and timing

The Unity sample connects Quest camera input, local inference and world rays. Separate capture latency, detection updates and the geometry required for placement.

Author: Retrivium editorial team
Updated: 2026-11-05
Canonical URL: https://retrivium.ai/journal/quest-passthrough-camera-local-detection-world-rays/
Language: en

Quest’s Passthrough Camera API makes camera input available to an application-specific vision pipeline. The official Unity sample demonstrates object detection and camera-to-world geometry. That establishes a development path for local perception, but not a measured guarantee of accurate, timely world-space annotations for every moving scene.

## Camera access is distinct from the displayed view

The [Meta API overview](https://developers.meta.com/vr/documentation/unity/unity-pca-overview/) describes access to the forward-facing RGB cameras on Quest 3 and Quest 3S. It distinguishes this feed from Media Projection, which represents the user’s rendered view including interface elements. A detector consuming camera pixels therefore should not assume that those pixels already occupy the same coordinates as a displayed overlay.

The page requires supported Horizon OS and camera permission. The [sample README](https://raw.githubusercontent.com/oculus-samples/Unity-PassthroughCameraApiSamples/main/README.md) additionally identifies the MRUK camera-access component with timestamps, intrinsics, extrinsics and pose metadata. Those fields support alignment; they do not automatically validate how an application uses them.

## Follow detection and geometry separately

The [on-device inference tutorial](https://developers.meta.com/vr/documentation/unity/unity-pca-sentis/) uses a YOLO example through Unity Inference Engine. It describes camera readiness, input conversion and waiting for an inference to finish before starting another. CPU and GPU execution are configuration choices, and processing can be distributed across frames.

The repository separately includes a CameraToWorld scene that converts image coordinates into world-space rays. A ray is a direction from an origin, not a measured object distance. Producing a placed annotation still needs a justified intersection or depth estimate and the correct coordinate convention. A plausible detection box alone cannot supply that missing geometry.

## Preserve the sample’s requirements

The README specifies Unity 6000.0.38f1 or newer, MRUK v81 or newer, and Inference Engine 2.2.1 for the detection example. Hardware requirements include Horizon OS v74 or later. Preview requires a physical headset or Horizon Link v2.1 or later; the XR Simulator is not listed as supporting this camera API.

These are the documented sample requirements, rather than proof that all package combinations produce equivalent behavior. Preserve an actual project revision and package lock when validating a build. The [geometry contract guide](/journal/fg2-bop-model-to-camera-depth-scale-millimeter-contract/) explains why transform direction, units and image metadata need to travel together, although its worked example uses another vision dataset.

## Measure the age of the annotation

The API overview now lists image capture latency of 20–40 ms. That is a vendor-published capture characteristic, not the complete detection-to-display latency of the Unity sample. Preprocessing, model execution, readback, geometry and presentation add their own intervals. Camera frame rate also does not equal the frequency of fresh completed detections.

A useful application test associates each inference with its source frame and capture pose, then checks annotation behavior during head and object motion. Record dropped or superseded results as well as successful boxes. The [benchmark methodology](/journal/inference-benchmark-method/) provides the general principle of explicit timing boundaries. The sample demonstrates integration; dependable spatial placement and acceptable update latency remain properties of the complete tested application.
