public static AzureOcrEngine Build(IAzureVisionConfigurations configurations) { var createCoords = new AzureCreateRelativeCoordinate(new CreateRelativeCoordinate()); return(new AzureOcrEngine(new AzureOcrApi(configurations), OcrPreProcessing.Build(), new AzureOcrParser( new TransformLinesIntoSentences(new AddSentencesAndReturnNewIndex( new TransformAzureLineIntoSentence(createCoords, new CreateWordFromAzureWord(createCoords)))), new SortIntoLogicalLines(), new GetLinesOrderedByTopPosition()))); }
public void Setup() { _createRelativeMock = new Mock <ICreateRelativeCoordinate>(); _target = new AzureCreateRelativeCoordinate(_createRelativeMock.Object); }