YOLOView constructor
const
YOLOView({
- Key? key,
- required String modelPath,
- required YOLOTask task,
- YOLOViewController? controller,
- String cameraResolution = '720p',
- dynamic onResult()?,
- dynamic onPerformanceMetrics()?,
- dynamic onStreamingData()?,
- bool showNativeUI = false,
- dynamic onZoomChanged(
- double zoomLevel
- YOLOStreamingConfig? streamingConfig,
- double confidenceThreshold = 0.5,
- 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,
});