Exemplo n.º 1
0
 public static IVideoSource Create(Profile profile)
 {
     if (profile.UseFile) return new FileVideoSource(profile);
     return new LiveVideoSource();
 }
Exemplo n.º 2
0
 public void LoadProfile(Profile profile)
 {
     CloseCurrentProfile();
     CurrentTrackedObjects.Clear();
     ArchivedObjects.Clear();
     Profile = profile;
     var identifier = CreateIdentifier();
     _identificationService = CreateIdService(identifier);
     _objectTracker = new ObjectTracker(profile.TrackerSettings);
     VideoSource = VideoSourceFactory.Create(profile);
     VideoSource.NewFrame += VideoSourceOnNewFrame;
 }
Exemplo n.º 3
0
 public FileVideoSource(Profile profile)
 {
     _profile = profile;
     Initialise();
 }