Example #1
0
    public void yoloTest()
    {
        int width, height;

        byte[] camData = frameCaptureCalss.CaptureSingleFrameRawImage(observationCamera, out width, out height);



        boundBox[] bboxList = yoloClass.detectNTrackResWithOneFrameWrapper(camData, width, height);


        Debug.Log("total number of object detected: " + bboxList.Length);

        for (int i = 0; i < bboxList.Length; i++)
        {
            Debug.Log("For " + i + "th object,");
            Debug.Log("For x element: " + bboxList[i].x);
            Debug.Log("For y element: " + bboxList[i].y);
            Debug.Log("For w element: " + bboxList[i].w);
            Debug.Log("For h element: " + bboxList[i].h);
            Debug.Log("For track_id element: " + bboxList[i].track_id);
            Debug.Log("For obj_id element: " + bboxList[i].obj_id);
        }
    }