File Content Extraction 25.3
Filter SDK C++ Programming Guide

# Configure OCR

In the following examples, OCR is configured to process scanned pages that contain only English or only Japanese text. Providing information about the input can result in a performance improvement, but OCR may fail to recognize text that does not match your configuration. For more information about optimizing OCR, see Optimize OCR Performance.

To configure OCR

- To configure OCR through the C++ API, use the OCR method on your session configuration. For example:

  Copy

      #include "Keyview_FilterSDK.hpp"
      auto session = keyview::Session{ license, bin_dir };
      session.config().ocr(true, keyview::OCROrientation::Upright, keyview::OCRTextFindingMode::Document, keyview::OCRDetectAlphabet::Listed, {"en", "ja"});

Copyright 1997-2025 Open Text
Version 25.3 | Last updated July 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: File Content Extraction 25.3

Topic Title: Configure OCR