YOLOStreamingConfig.withMasks constructor

const YOLOStreamingConfig.withMasks()

Creates a configuration with segmentation masks.

Suitable for segmentation models where you need pixel-level masks. May impact performance due to additional data transfer.

Typical performance: 15-25 FPS depending on device and mask resolution.

Implementation

const YOLOStreamingConfig.withMasks()
  : includeDetections = true,
    includeClassifications = true,
    includeProcessingTimeMs = true,
    includeFps = true,
    includeMasks = true,
    includePoses = false,
    includeOBB = false,
    includeOriginalImage = false,
    maxFPS = null,
    throttleInterval = null,
    inferenceFrequency = null,
    skipFrames = null;