AutoFocusSystem

type AutoFocusSystem = "none" | "contrast-detection" | "phase-detection"

Represents the auto-focus algorithm used by the CameraDevice, either while continuously keeping a scene in focus (via auto-3A / AE/AF/AWB), or for a metering action via CameraController.focusTo(...).

  • 'none': The CameraDevice does not support auto-focus at all.
  • 'contrast-detection': Finds focus by adjusting the lens until image contrast is highest. Commonly supported, but generally slower than phase-detection.
  • 'phase-detection': Finds focus by using phase information to predict the correct lens position. Generally the fastest and most reliable auto-focus system when available.

On this page

No Headings