是否有可能将图像从 C# 发送到yolo并接收所有检测到的对象位置和类型。
例如在演示图像上
type | x | y | width | height
-------------------------------------------
bicycle | 214 | 150 | 450 | 378
dog | 150 | 260 | 210 | 350
truck | 540 | 100 | 250 | 150
示例代码
public class Yolo
{
public ObjectPosition[] GetObjects(Image image)
{
//return yolo result
}
}
public class ObjectPosition
{
public string Type { get; set; }
public int X { get; set; }
public int Y { get; set; }
public int Width { get; set; }
public int Height { get; set; }
}