YOLOView constructor
const
YOLOView({
- Key? key,
- required String modelPath,
- YOLOTask? task,
- YOLOViewController? controller,
- String cameraResolution = '720p',
- dynamic onResult()?,
- dynamic onPerformanceMetrics()?,
- dynamic onStreamingData()?,
- dynamic onZoomChanged(
- double zoomLevel
- void onModelError()?,
- void onModelLoad()?,
- YOLOStreamingConfig? streamingConfig,
- double confidenceThreshold = 0.25,
- double iouThreshold = 0.7,
- bool useGpu = true,
- 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,
});