public class DefaultBusinessCardsImageProcessor implements BusinessCardsImageProcessor
Scanbot implementation of interface BusinessCardsImageProcessor
interface BusinessCardsImageProcessor@Inject
public DefaultBusinessCardsImageProcessor(@NotNull
io.scanbot.sdk.ocr.OpticalCharacterRecognizer opticalCharacterRecognizer,
@NotNull
io.scanbot.sdk.persistence.PageFileStorage pageFileStorage,
@NotNull
io.scanbot.sdk.docprocessing.PageProcessor pageProcessor,
@NotNull
io.scanbot.sdk.textorientation.TextOrientationScanner textOrientationScanner)
Scanbot implementation of interface BusinessCardsImageProcessor
interface BusinessCardsImageProcessor@NotNull
public java.util.List<io.scanbot.sdk.businesscard.BusinessCardsImageProcessor.BusinessCardProcessingResult> processPages(@NotNull
java.util.List<io.scanbot.sdk.persistence.Page> pages,
@NotNull
java.util.Set<? extends io.scanbot.sdk.entity.Language> ocrLanguages,
boolean performOCR,
boolean performAutoRotation)
Processes the pages contained in an image storage. Synchronously performs auto-rotation and text recognition OCR) and returns the OCR results as well as the modified image storage in the completion handler.
pages - The list of the business card Pages. Will be modified to auto-rotate contained images.ocrLanguages - The Set of available languages.performOCR - If set to true, performs text recognition on each Page. Default is true. Set to false if you do not wanttext recognition or if your license does not cover OCR.performAutoRotation - If set to true, performs automatic content based rotation of each Page. Default is true.Set to false if you do not want automatic rotation or if your license does not cover automatic rotation.class BusinessCardsImageProcessor.BusinessCardProcessingResults