static public CoreWrapper GetInstance() { if (instance == null) { instance = new CoreWrapper(); } return(instance); }
static void Main(string[] args) { //Console.WriteLine("Testing Wrapper..."); //CoreWrapper wrap = CoreWrapper.GetInstance(); //wrap.InitCamera(); //wrap.OpenVideoStream(0); //byte[] test = wrap.GetCameraFrame(); //wrap.DisplayCameraStream(); //Console.ReadKey(); CoreWrapper wrap = CoreWrapper.GetInstance(); wrap.InitCore(); wrap.OpenVideoStream(0); //wrap.Start(); while (!wrap.CheckBuid()) { wrap.Build(); } wrap.InitTransform(); do { wrap.Tracking(); wrap.UpdateTranform(); double[] rot = wrap.GetDeltaRot(); for (int i = 0; i < 3; i++) { Console.Write(rot[i] + " "); } } while(wrap.CheckTracking()); Console.ReadKey(); }