private void SaveFingerPrintsInMemory( List <HashedFingerprint> newHashedFingerprints, ModelReference <int> trackReference, string name) { FilePath fingerPrintsDBFilePath = FilePath.CreateFilePath(Path.Combine(mDatabaseDirectoryPath, RecognizerType, DatabaseCategory, $"{name}{FINGERPRINT_EXTENSION}")); FilePath trackRefernceFilePath = FilePath.CreateFilePath(Path.Combine(mDatabaseDirectoryPath, RecognizerType, DatabaseCategory, $"{name}{TRACK_REFERENCE_EXTENSION}")); SerializationMachine.ProtoSerialize(newHashedFingerprints, fingerPrintsDBFilePath); SerializationMachine.ProtoSerialize(trackReference, trackRefernceFilePath); }
private static void SaveFingerPrintsInMemory( List <HashedFingerprint> newHashedFingerprints, IModelReference trackReference, string name) { FilePath fingerPrintsDBFilePath = FilePath.CreateFilePath(Path.Combine(DATABASE_DIRECTORY_NAME, $"{name}{FINGEPRINT_EXTENSION}")); FilePath trackRefernceFilePath = FilePath.CreateFilePath(Path.Combine(DATABASE_DIRECTORY_NAME, $"{name}{TRACK_REFERENCE_EXTENSION}")); SerializationMachine.ProtoSerialize(newHashedFingerprints, fingerPrintsDBFilePath); SerializationMachine.ProtoSerialize(trackReference, trackRefernceFilePath); }