Beispiel #1
0
 private ImageService(
     ILogger logger,
     DocumentPreparationService documentPreparationService,
     DocumentCornersDetectionService documentCornersDetectionService,
     DocumentStraightenerService documentStraightenerService)
 {
     _logger = logger;
     _documentPreparationService      = documentPreparationService;
     _documentCornersDetectionService = documentCornersDetectionService;
     _documentStraightenerService     = documentStraightenerService;
     _logger.Log(FormSimilarityHelper.Instance.ToString());
 }
Beispiel #2
0
        public void Setup()
        {
            _documentPreparationService      = new DocumentPreparationService();
            _documentCornersDetectionService = new DocumentCornersDetectionService();
            _documentStraightenerService     = new DocumentStraightenerService();

            _stopwatch = new Stopwatch();
            _testCases = new List <Bitmap>
            {
                Resources.Resources.TestCase1,
                Resources.Resources.TestCase2,
                Resources.Resources.TestCase3,
                Resources.Resources.TestCase4,
                Resources.Resources.TestCase5,
            };
        }