YOLOView constructor

const YOLOView({
  1. Key? key,
  2. required String modelPath,
  3. required YOLOTask task,
  4. YOLOViewController? controller,
  5. String cameraResolution = '720p',
  6. dynamic onResult(
    1. List<YOLOResult>
    )?,
  7. dynamic onPerformanceMetrics(
    1. YOLOPerformanceMetrics
    )?,
  8. dynamic onStreamingData(
    1. Map<String, dynamic> streamData
    )?,
  9. bool showNativeUI = false,
  10. dynamic onZoomChanged(
    1. double zoomLevel
    )?,
  11. YOLOStreamingConfig? streamingConfig,
  12. double confidenceThreshold = 0.5,
  13. double iouThreshold = 0.45,
})

Implementation

const YOLOView({
  super.key,
  required this.modelPath,
  required this.task,
  this.controller,
  this.cameraResolution = '720p',
  this.onResult,
  this.onPerformanceMetrics,
  this.onStreamingData,
  this.showNativeUI = false,
  this.onZoomChanged,
  this.streamingConfig,
  this.confidenceThreshold = 0.5,
  this.iouThreshold = 0.45,
});