YOLOView constructor

const YOLOView({
  1. Key? key,
  2. required String modelPath,
  3. 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>
    )?,
  9. dynamic onZoomChanged(
    1. double zoomLevel
    )?,
  10. void onModelError(
    1. Object error,
    2. String modelPath,
    3. YOLOTask? task
    )?,
  11. void onModelLoad(
    1. String modelPath,
    2. YOLOTask? task
    )?,
  12. YOLOStreamingConfig? streamingConfig,
  13. double confidenceThreshold = 0.25,
  14. double iouThreshold = 0.7,
  15. bool useGpu = true,
  16. LensFacing lensFacing = LensFacing.back,
})

Implementation

const YOLOView({
  super.key,
  required this.modelPath,
  this.task,
  this.controller,
  this.cameraResolution = '720p',
  this.onResult,
  this.onPerformanceMetrics,
  this.onStreamingData,
  this.onZoomChanged,
  this.onModelError,
  this.onModelLoad,
  this.streamingConfig,
  this.confidenceThreshold = 0.25,
  this.iouThreshold = 0.7,
  this.useGpu = true,
  this.lensFacing = LensFacing.back,
});