Пример #1
0
        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 static GoogleOcrEngine Build(IGoogleOcrConfigurations configurations)
 {
     return(new GoogleOcrEngine(configurations, OcrPreProcessing.Build(), new GoogleOcrParser()));
 }