Browse Source

Updated enums per #434 (#671)

master
Balearica 2 years ago committed by GitHub
parent
commit
263dbb87b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/constants/PSM.js
  2. 4
      src/index.d.ts

1
src/constants/PSM.js

@ -15,4 +15,5 @@ module.exports = { @@ -15,4 +15,5 @@ module.exports = {
SINGLE_CHAR: '10',
SPARSE_TEXT: '11',
SPARSE_TEXT_OSD: '12',
RAW_LINE: '13',
};

4
src/index.d.ts vendored

@ -84,13 +84,13 @@ declare namespace Tesseract { @@ -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',

Loading…
Cancel
Save