public ImageRecognitionTrainedFilesController(
            IFileStorageQueryHandler <GetImageRecognitionModel, byte[]> getImageRecognitionModelHandler,
            IFileStorageQueryHandler <GetImageRecognitionLabelMap, string> getImageRecognitionLabelMapHandler)
        {
            if (getImageRecognitionModelHandler == null)
            {
                throw new ArgumentNullException(nameof(getImageRecognitionModelHandler));
            }
            if (getImageRecognitionLabelMapHandler == null)
            {
                throw new ArgumentNullException(nameof(getImageRecognitionLabelMapHandler));
            }

            _getImageRecognitionModelHandler    = getImageRecognitionModelHandler;
            _getImageRecognitionLabelMapHandler = getImageRecognitionLabelMapHandler;
        }
Ejemplo n.º 2
0
        public UserDocumentsController(
            IFileStorageCommandHandler <SaveBitmapsForDocumentToProcess, Nothing> saveDocumentBitmapsHandler,
            IFileStorageCommandHandler <SavePageBitmapForDocumentToProcess, Nothing> saveDocumentPageHandler,
            IFileStorageQueryHandler <GetBitmapsForDocumentToProcess, ICollection <OrderedBitmapResource> > getDocumentsBitmapHandler)
        {
            if (saveDocumentBitmapsHandler == null)
            {
                throw new ArgumentNullException(nameof(saveDocumentBitmapsHandler));
            }
            if (saveDocumentPageHandler == null)
            {
                throw new ArgumentNullException(nameof(saveDocumentPageHandler));
            }
            if (getDocumentsBitmapHandler == null)
            {
                throw new ArgumentNullException(nameof(getDocumentsBitmapHandler));
            }

            _saveDocumentBitmapsHandler = saveDocumentBitmapsHandler;
            _saveDocumentPageHandler    = saveDocumentPageHandler;
            _getDocumentsBitmapHandler  = getDocumentsBitmapHandler;
        }
        public TemplateFilesController(
            IFileStorageCommandHandler <SaveBitmapForTemplatePageCanvasDefinition, Nothing> savePageCanvasBitmapHandler,
            IFileStorageQueryHandler <GetCanvasesBitmapsForTemplate, ICollection <TemplatePageCanvasBitmapResource> > getCanvasesForTemplateHandler,
            IFileStorageQueryHandler <GetCanvasBitmapForTemplatePage, TemplatePageCanvasBitmapResource> getCanvaseForTemplatePageHandler)
        {
            if (savePageCanvasBitmapHandler == null)
            {
                throw new ArgumentNullException(nameof(savePageCanvasBitmapHandler));
            }
            if (getCanvasesForTemplateHandler == null)
            {
                throw new ArgumentNullException(nameof(getCanvasesForTemplateHandler));
            }
            if (getCanvaseForTemplatePageHandler == null)
            {
                throw new ArgumentNullException(nameof(getCanvaseForTemplatePageHandler));
            }

            _savePageCanvasBitmapHandler      = savePageCanvasBitmapHandler;
            _getCanvasesForTemplateHandler    = getCanvasesForTemplateHandler;
            _getCanvaseForTemplatePageHandler = getCanvaseForTemplatePageHandler;
        }