// Use this for initialization public void init() { int imgWidth; int imgHeight; float[] camParams; camProvider.init(out imgWidth, out imgHeight, out camParams); //Test if we got a valid image if (imgWidth > 0 && imgHeight > 0) { ArucoTracking.init(imgWidth, imgHeight, markerSize, camParams, sizeReduce); } average = new PoseRunningAverage(averageMemoryLength); }
protected void trackNewFrame() { Color32[] img_data = camProvider.getImage(); ArucoTracking.detect_markers(img_data); }
private void OnDestroy() { ArucoTracking.destroy(); }