YOLO constructor

YOLO({
  1. required String modelPath,
  2. required YOLOTask task,
})

Creates a new YOLO instance with the specified model path and task.

The modelPath can refer to a model in assets, internal storage, or absolute path. The task specifies what type of inference will be performed.

Implementation

YOLO({
  required this.modelPath,
  required this.task,
});