public AsyncTextReader(IAsyncDataSource dataSource, Encoding encoding, int bufferSize = DefaultBufferSize) : base() { _DataSource = dataSource; _Encoding = encoding; _Decoder = _Encoding.GetDecoder(); _BufferSize = Math.Max(MinimumBufferSize, bufferSize); AllocateBuffer(); }
//public FaceRecognitionController(IEmguCvFaceRecognition recognition) //recognition should be already trained and up to date //{ // _recognition = recognition; //} public FaceRecognitionController(IAsyncDataSource dataSource) { _dataSource = dataSource; _recognition = new EigenFaceRecognition(new DirectoryInfo(HttpContext.Current.Server.MapPath("~/UserInformation/" + ConfigurationManager.AppSettings["faceDetectionTrainingFile"])) .ToString(), int.Parse(ConfigurationManager.AppSettings["faceImageSize"])); _recognition.Train(_dataSource.GetFaceImageList().ToArray()); }
public AsyncTextReader( IAsyncDataSource dataSource, Encoding encoding, int bufferSize = DefaultBufferSize, bool ownsDataSource = true ) { _DataSource = dataSource; _OwnsDataSource = ownsDataSource; _Encoding = encoding; _Decoder = _Encoding.GetDecoder(); _BufferSize = Math.Max(MinimumBufferSize, bufferSize); AllocateBuffer(); }
public void Dispose() { if (_DataSource != null) { if (_OwnsDataSource) { _DataSource.Dispose(); } _DataSource = null; } _Encoding = null; _Decoder = null; _InputBuffer = null; _DecodedBuffer = null; }
public AsyncTextReader(IAsyncDataSource dataSource, bool ownsDataSource = true) : this(dataSource, DefaultEncoding, ownsDataSource : ownsDataSource) { }
public AsyncDataAdapterShim(IAsyncDataSource source, IAsyncDataWriter writer) { Source = source; Writer = writer; }
public AsyncTextReader(IAsyncDataSource dataSource, bool ownsDataSource = true) : this(dataSource, DefaultEncoding, ownsDataSource: ownsDataSource) { }
public void Dispose() { if (_DataSource != null) { if (_OwnsDataSource) _DataSource.Dispose(); _DataSource = null; } _Encoding = null; _Decoder = null; _InputBuffer = null; _DecodedBuffer = null; }
public ReviewRepository(IAsyncDataSource dataSource) { _dataSource = dataSource; }
public AsyncTextReader(IAsyncDataSource dataSource, Encoding encoding) : this(dataSource, encoding, DefaultBufferSize) { }
public GenreRepository(IAsyncDataSource ds) { _ds = ds; }
public AsyncTextReader(IAsyncDataSource dataSource) : this(dataSource, DefaultEncoding) { }
public UserRepository(IAsyncDataSource dataSource) { _dataSource = dataSource; }
public AsyncPrinter(IAsyncDataSource dataSource) { _dataSource = dataSource; }
protected AsyncDataSourceView(IAsyncDataSource owner, string viewName) : base(owner, viewName) { _owner = owner; }
public HastagRepository(IAsyncDataSource ds) { _ds = ds; }
public BookRepository(IAsyncDataSource dataSource) { _dataSource = dataSource; }
public ImageSavingController(IAsyncDataSource dataSource) { _dataSource = dataSource; }