/// <summary> /// Constructor of LPREngine instance /// </summary> public VideoCapture(FrameCaptured frameCapturedCallback, CaptureError captureErrorCallback, object customObject) { this.frameCapturedCallback = frameCapturedCallback; this.captureErrorCallback = captureErrorCallback; this.navive_frameCapturedCallback = new DTKLPR4.FrameCapturedNative(OnFrameCapturedNative); this.navive_captureErrorCallback = new DTKLPR4.CaptureErrorNative(OnCaptureErrorNative); this.customObject = customObject; this.hVideoCapture = DTKLPR4.VideoCapture_Create( Marshal.GetFunctionPointerForDelegate(navive_frameCapturedCallback), Marshal.GetFunctionPointerForDelegate(navive_captureErrorCallback), IntPtr.Zero); }
private static extern void Theta_Capture(IntPtr instance, CaptureSuccess success, CaptureError error);