public ImageRecognitionMain(IFileRepository fileRepository, BitmapProcessingParams bitmapProcessingParams, Machine machine, ImageRecognizer imageRecognizer, ILogger logger)
 {
     _fileRepository         = fileRepository;
     _bitmapProcessingParams = bitmapProcessingParams;
     _ml = machine;
     _imageRecognizer = imageRecognizer;
     _logger          = logger;
 }
Esempio n. 2
0
        public BitmapProcessor(Crop crop, Grayscale grayscale, ContrastStretch contrastStretch, ResizeBilinear resizeBilinear, BitmapProcessingParams bitmapProcessingParams)
        {
            _crop                   = crop;
            _grayscale              = grayscale;
            _contrastStretch        = contrastStretch;
            _resizeBilinear         = resizeBilinear;
            _bitmapProcessingParams = bitmapProcessingParams;

            _resizeBilinear.NewWidth  = _bitmapProcessingParams.ResizeWidth;
            _resizeBilinear.NewHeight = _bitmapProcessingParams.ResizeHeight;
        }
Esempio n. 3
0
 public ImageLoader(IFileRepository fileRepository, BitmapProcessingParams bitmapProcessingParams, BitmapProcessor bitmapProcessor)
 {
     _fileRepository         = fileRepository;
     _bitmapProcessingParams = bitmapProcessingParams;
     _bitmapProcessor        = bitmapProcessor;
 }