diff options
author | Balearica <admin@scribeocr.com> | 2022-09-21 05:08:06 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-21 05:08:06 +0300 |
commit | 263dbb87b11871eb29887b68ef2253ec0dca120c (patch) | |
tree | df170ba14edcf5f093a75806cf292c80d4e6b3b1 | |
parent | c9200839dfcbdc20df82daa6c6a1b0cd4bb9ae21 (diff) |
Updated enums per #434 (#671)
-rw-r--r-- | src/constants/PSM.js | 1 | ||||
-rw-r--r-- | src/index.d.ts | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/constants/PSM.js b/src/constants/PSM.js index 8d25442..50188aa 100644 --- a/src/constants/PSM.js +++ b/src/constants/PSM.js @@ -15,4 +15,5 @@ module.exports = { SINGLE_CHAR: '10', SPARSE_TEXT: '11', SPARSE_TEXT_OSD: '12', + RAW_LINE: '13', }; diff --git a/src/index.d.ts b/src/index.d.ts index ce697f8..78b68cf 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -84,13 +84,13 @@ declare namespace Tesseract { width: number height: number } - const enum OEM { + enum OEM { TESSERACT_ONLY, LSTM_ONLY, TESSERACT_LSTM_COMBINED, DEFAULT, } - const enum PSM { + enum PSM { OSD_ONLY = '0', AUTO_OSD = '1', AUTO_ONLY = '2', |