Esempio n. 1
0
        public MainForm(IDataManager dataManager)
        {
            InitializeComponent();
            rbFile.Tag     = btBrowse;
            rbInput.Tag    = tbInput;
            rbFile.Checked = rbInput.Checked = true;

            openFileDialog.Filter = "Text Files (*.txt)|*.txt";
#if OCR
            openFileDialog.Filter += "|Image Files(*.bmp;*.jpg;*.png)|*.bmp;*.jpg;*.png";
#endif
#if DEBUG   // project directory
            openFileDialog.InitialDirectory = Path.GetFullPath(Path.Combine(Directory.GetCurrentDirectory(), @"..\..\..\"));
#else       // my docs
            openFileDialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
#endif

            // this.Width -= this.ClientRectangle.Width - 2 * tbInput.Left - tbInput.Width;
            this.MinimumSize = this.Size;
            this.MaximumSize = new Size(this.Width, 1080);
            DataManager      = dataManager;

            userconfig = new UserConfigurations();
            Ocr        = new TesseractOCR();
        }
Esempio n. 2
0
 public DefaultTextExtractor(int workers)
 {
     Workers         = workers;
     chunks          = new List <string>();
     this.capturador = new CapturadorDefault();
     this.ocr        = new IronOCR();
 }
Esempio n. 3
0
        public void InvoiceInitializer()
        {
            _IOCRRepository = new OCRRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <LMGEDI.Core.Data.SqlServer.LMGEDIDBContext>());

            _IPaymentRepository = new PaymentRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <LMGEDI.Core.Data.SqlServer.LMGEDIDBContext>());

            _IInvoiceRepository = new InvoiceRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <LMGEDI.Core.Data.SqlServer.LMGEDIDBContext>());


            _IOCRImplBL = new OCRImpl(_IOCRRepository, _IPaymentRepository, _IInvoiceRepository);
        }
 // GET: CheckAssignment
 public CheckAssignmentController(IOCR ocr, IStorageServices storageServices, IARCommonServices arCommonService)
 {
     _storageServices = storageServices;
     _arCommonService = arCommonService;
     _ocr             = ocr;
 }
Esempio n. 5
0
 public static void SetOCR(IOCR iocr)
 {
     ocr = iocr;
 }
Esempio n. 6
0
 static OCRHelper()
 {
     ocr = new TesseractOCR();
 }