private ImageService( ILogger logger, DocumentPreparationService documentPreparationService, DocumentCornersDetectionService documentCornersDetectionService, DocumentStraightenerService documentStraightenerService) { _logger = logger; _documentPreparationService = documentPreparationService; _documentCornersDetectionService = documentCornersDetectionService; _documentStraightenerService = documentStraightenerService; _logger.Log(FormSimilarityHelper.Instance.ToString()); }
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, }; }