Skip to content

text_ocr_engine_mode

textclassOpenCV 5.0.0
import { text_ocr_engine_mode } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSConstructor or factory
CLASStext_ocr_engine_mode
RETURN TYPEOwned native handle
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Native object: release it with using or delete(). Factories can return null; check before calling methods.

Tesseract.OcrEngineMode Enumeration

Constructors and members

static OEM_TESSERACT_ONLY

oem tesseract only constant (0), defined by OpenCV for cv::text.

OEM_TESSERACT_ONLY: text_ocr_engine_modeValue<0>,

static OEM_CUBE_ONLY

oem cube only constant (1), defined by OpenCV for cv::text.

OEM_CUBE_ONLY: text_ocr_engine_modeValue<1>,

static OEM_TESSERACT_CUBE_COMBINED

oem tesseract cube combined constant (2), defined by OpenCV for cv::text.

OEM_TESSERACT_CUBE_COMBINED: text_ocr_engine_modeValue<2>,

static OEM_DEFAULT

oem default constant (3), defined by OpenCV for cv::text.

OEM_DEFAULT: text_ocr_engine_modeValue<3>

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.