void setTrackingConfig(TrackingClient client, string trackingConfigPath, bool useVfw) { XmlTrackingConfigurator tconf = new XmlTrackingConfigurator(); tconf.LoadFromFile(trackingConfigPath); tconf.Configure(client); string imgPath = Path.Combine(Path.GetDirectoryName(trackingConfigPath), "images"); if (Directory.Exists(imgPath)) client.SetReferenceImagePath(imgPath); if (useVfw) client.CameraSettings.SetDriver(eCameraDriver.Vfw); }
void setTrackingConfig(TrackingClient client, string trackingConfigPath, bool useVfw) { XmlTrackingConfigurator tconf = new XmlTrackingConfigurator(); tconf.LoadFromFile(trackingConfigPath); tconf.Configure(client); string imgPath = Path.Combine(Path.GetDirectoryName(trackingConfigPath), "images"); if (Directory.Exists(imgPath)) { client.SetReferenceImagePath(imgPath); } if (useVfw) { client.CameraSettings.SetDriver(eCameraDriver.Vfw); } }