Sleds/sleds-core-api/sledsconstants.h

27 lines
1.4 KiB
C

// Copyright (c) 2016 Sequence Logic, Inc. All rights reserved
//
// Shared constants
#ifndef sledsconstants_h
#define sledsconstants_h
// OCR return values...
//namespace OCRConsts {
#define OCR_SUCCESS 0 /** Successful OCR */
#define OCR_FAILED 255 /** Generic OCR failure */
#define OCR_RES_UNSUPPORTED 1 /** Resolution unsupported by OCR engine. */
#define OCR_RES_UNSUPPORTED_SKIPPED 2 /** Resolution unsupported by OCR engine, pages were skipped. Not necessarily an error! */
#define OCR_MISSING_FONT 3 /** No font for renderng a glyph error. */
#define OCR_MISSING_FONT_SKIPPED 4 /** No font for rendering a glyph, pages were skipped. Not necessarily an error! */
#define OCR_NO_TEXT_SKIPPED 5 /** No text found on page, or required recognition module wasn't initialized properly. */
#define OCR_NO_TEXT 6 /** No text found on page, or required recognition module wasn't initialized properly. Error! */
#define OCR_NONSUPPORTED_IMG_SIZE 7 /** Unsupported image size. Error! */
#define OCR_NONSUPPORTED_IMG_SIZE_SKIPPED 8 /** Unsupported image size. */
#define OCR_PASSWORD_PROTECTED_FILE 9 /** Image is password protected. Error!*/
#define OCR_SIZE_UNSUPPORTED 10 /** Image size unsupported by OCR engine. */
#define OCR_SIZE_UNSUPPORTED_SKIPPED 11 /** Image size unsupported by OCR engine, pages were skipped. Not necessarily an error! */
//}
// end generation of policy constants
#endif