Esempio n. 1
0
 public void Search()
 {
     //AforgeVideoSourceLite.GetDevices(ref DeviceCache);	//FIX: use this if you have problems with device .. it uses only base directshow calls. No device capabilityList
     PSEyeSource.GetDevices(ref DeviceCache);
     AforgeVideoSource.GetDevices(ref DeviceCache);
     FileVideoSource_eye.GetDevices(ref DeviceCache);
     FileVideoSource_scene.GetDevices(ref DeviceCache);
 }
Esempio n. 2
0
        public static void GetDevices(ref Dictionary <string, IVideoSource> deviceCache)
        {
            var dev = new FileVideoSource_eye();

            if (!deviceCache.ContainsKey(dev.Name))
            {
                deviceCache.Add(dev.Name, dev);
            }
        }