Example #1
0
        public void Setup()
        {
            _transformLinesIntoSenteces   = new Mock <ITransformLinesIntoSentences>();
            _sortIntoLogicalLines         = new Mock <ISortIntoLogicalLines>();
            _getLinesOrderedByTopPosition = new Mock <IGetLinesOrderedByTopPosition>();

            _target = new AzureOcrParser(_transformLinesIntoSenteces.Object, _sortIntoLogicalLines.Object,
                                         _getLinesOrderedByTopPosition.Object);
        }
Example #2
0
 private AzureOcrEngine(AzureOcrApi azureVisionApi, IOcrPreProcessing ocrPreProcessing, AzureOcrParser azureOcrParser)
 {
     _azureVisionApi   = azureVisionApi;
     _ocrPreProcessing = ocrPreProcessing;
     _azureOcrParser   = azureOcrParser;
 }