To detect objects in an image, use ConfigurationDetector to automatically determine the best configuration, then pass that configuration to a YoloWrapper instance. The Detect method returns a collection of items containing the object type, confidence score, and bounding box coordinates.
Each detected item provides:
Type: The label of the detected object (e.g., "Person", "Car").Confidence: A value from 0.0 (low) to 1.0 (high).X, Y, Width, Height: The bounding box coordinates of the object.
var configurationDetector = new ConfigurationDetector();
var config = configurationDetector.Detect();
using (var yoloWrapper = new YoloWrapper(config))
{
var items = yoloWrapper.Detect(@"image.jpg");
// items[0].Type -> "Person, Car, ..."
// items[0].Confidence -> 0.0 (low) -> 1.0 (high)
// items[0].X -> bounding box
// items[0].Y -> bounding box
// items[0].Width -> bounding box
// items[0].Height -> bounding box
}