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, create a KVOcrOptions structure and then call fpSetConfig() and set the KVFLT_OCR option.

    Copy
    KVOcrOptions options;
    KVStructInit(&options);
    options.textFindingMode = KVOcrDocument;
    options.languages = "en ja";
    options.orientation = KVOcrUpright;
    options.detectAlphabet = KVOcrListed;