YOLOStreamingConfig constructor

const YOLOStreamingConfig({
  1. bool includeDetections = true,
  2. bool includeClassifications = true,
  3. bool includeProcessingTimeMs = true,
  4. bool includeFps = true,
  5. bool includeMasks = false,
  6. bool includePoses = false,
  7. bool includeOBB = false,
  8. bool includeOriginalImage = false,
  9. int? maxFPS,
  10. Duration? throttleInterval,
  11. int? inferenceFrequency,
  12. int? skipFrames,
})

Creates a YOLOStreamingConfig with custom settings.

This constructor allows full customization of streaming behavior. Defaults are optimized for high-speed operation with minimal data.

Implementation

const YOLOStreamingConfig({
  this.includeDetections = true,
  this.includeClassifications = true,
  this.includeProcessingTimeMs = true,
  this.includeFps = true,
  this.includeMasks = false, // Changed to false for performance
  this.includePoses = false, // Changed to false for performance
  this.includeOBB = false, // Changed to false for performance
  this.includeOriginalImage = false,
  this.maxFPS,
  this.throttleInterval,
  this.inferenceFrequency,
  this.skipFrames,
});