예제 #1
0
        private void CreateMotionTrackerCameraDevice()
        {
            var device = new MotionTrackerCameraDevice();

            deviceStart = () =>
            {
                device.start();
            };
            deviceStop = () =>
            {
                device.stop();
            };
            deviceClose = () =>
            {
                device.close();
                device.Dispose();
            };
            deviceSetBufferCapacity = (int capacity) =>
            {
                device.setBufferCapacity(capacity);
            };
            deviceGetBufferCapacity = () =>
            {
                return(device.bufferCapacity());
            };
            deviceConnect = (InputFrameSink sink) =>
            {
                device.inputFrameSource().connect(sink);
            };
            Device = device;
        }
예제 #2
0
        private void CreateMotionTrackerCameraDevice()
        {
            var device = new MotionTrackerCameraDevice();

            deviceStart = () =>
            {
                if (DesiredMotionTrackerParameters != null)
                {
                    device.setFrameRateType(DesiredMotionTrackerParameters.FPS);
                    device.setFocusMode(DesiredMotionTrackerParameters.FocusMode);
                    device.setFrameResolutionType(DesiredMotionTrackerParameters.Resolution);
                }
                device.start();
            };
            deviceStop = () =>
            {
                device.stop();
            };
            deviceClose = () =>
            {
                device.close();
                device.Dispose();
            };
            deviceSetBufferCapacity = (int capacity) =>
            {
                device.setBufferCapacity(capacity);
            };
            deviceGetBufferCapacity = () =>
            {
                return(device.bufferCapacity());
            };
            deviceConnect = (InputFrameSink sink) =>
            {
                device.inputFrameSource().connect(sink);
            };
            Device = device;
        }