private unsafe List <YoloResult> GetResults(BoundingBox10 *elems, int elemsSize) { var results = new List <YoloResult>(elemsSize); for (var i = 0; i < elemsSize; i++) { results.Add(new YoloResult(elems[i].x, elems[i].y, elems[i].w, elems[i].h, elems[i].prob, elems[i].obj_id)); } return(results); }
internal static extern unsafe void Detect(IntPtr matPtr, int matRows, int matCols, float thresh, bool useMean, out BoundingBox10 *elems, out int elemsSize);