Exemplo n.º 1
0
        public override Object Attend()
        {
            TISCameraDriver driver = TISCameraManager.GetReference().getDriver(camera);
            List <String>   codecs = driver.GetAvailableVideoCodecs();

            return(codecs.ToArray());
        }
Exemplo n.º 2
0
        public override Object Attend()
        {
            TISCameraDriver driver = TISCameraManager.GetReference().getDriver(camera);

            driver.PauseCapture();

            return(null);
        }
Exemplo n.º 3
0
        public override Object Attend()
        {
            TISCameraDriver driver = TISCameraManager.GetReference().getDriver(camera);

            driver.FrameRate = (float)this.frameRate;

            return(null);
        }
Exemplo n.º 4
0
 public override Object Attend()
 {
     if (this.camera != null)
     {
         TISCameraDriver driver = TISCameraManager.GetReference().getDriver(camera);
         return(driver.ImageQuality);
     }
     else
     {
         throw new Exception("A problem has occurred while trying to get the driver image quality.");
     }
 }
Exemplo n.º 5
0
        public override Object Attend()
        {
            TISCameraDriver     driver     = TISCameraManager.GetReference().getDriver(camera);
            List <PropertyType> properties = driver.GetAvailableProperties();
            List <String>       strings    = new List <string>();

            foreach (PropertyType property in properties)
            {
                strings.Add(property.ToString());
            }

            return(strings.ToArray());
        }
Exemplo n.º 6
0
        public override Object Attend()
        {
            if (this.path != null)
            {
                TISCameraDriver driver = TISCameraManager.GetReference().getDriver(camera);
                driver.CaptureVideo(this.path, this.video, this.codec, this.time);

                return(null);
            }
            else
            {
                throw new Exception("The path is not defined.");
            }
        }
Exemplo n.º 7
0
        public override Object Attend()
        {
            if (this.camera != null)
            {
                TISCameraDriver driver = TISCameraManager.GetReference().getDriver(camera);
                driver.GetProperty(this.property).Auto = this.mode;

                return(null);
            }
            else
            {
                throw new Exception("The property does not exist.");
            }
        }
        public override Object Attend()
        {
            if (this.camera != null)
            {
                TISCameraDriver driver = TISCameraManager.GetReference().getDriver(camera);
                double          min    = driver.GetProperty(this.property).MinValue;
                double          max    = driver.GetProperty(this.property).MaxValue;

                return(new Double[] { min, max });
            }
            else
            {
                throw new Exception("The property does not exist.");
            }
        }
        public override Object Attend()
        {
            if (this.camera != null)
            {
                Console.WriteLine("Property value requested: " + this.property);
                TISCameraDriver driver = TISCameraManager.GetReference().getDriver(camera);
                double          value  = driver.GetProperty(this.property).Value;

                return(value);
            }
            else
            {
                throw new Exception("The property does not exist.");
            }
        }
Exemplo n.º 10
0
        public override Object Attend()
        {
            if (this.camera != null)
            {
                TISCameraDriver driver = TISCameraManager.GetReference().getDriver(camera);
                driver.GetProperty(this.property).Value = value;

                Console.WriteLine("Property " + this.property + " value modified: " + value);

                return(null);
            }
            else
            {
                throw new Exception("The property does not exist.");
            }
        }
Exemplo n.º 11
0
        public override Object Attend()
        {
            if (this.path != null)
            {
                TISCameraDriver driver = TISCameraManager.GetReference().getDriver(camera);

                if (this.quality < 0)
                {
                    driver.MakeTimeLapse(frames, path, image, latency);
                }
                else
                {
                    driver.MakeTimeLapse(frames, path, image, latency, quality);
                }

                return(null);
            }
            else
            {
                throw new Exception("The path is not defined.");
            }
        }
Exemplo n.º 12
0
        public override Object Attend()
        {
            TISCameraDriver driver = TISCameraManager.GetReference().getDriver(camera);

            return((Double)(double)driver.FrameRate);
        }