Beispiel #1
0
        /// <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);
        }
Beispiel #2
0
 private static extern void Theta_Capture(IntPtr instance, CaptureSuccess success, CaptureError error);