Skip to content

text_classifier_type

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

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

ARGUMENTSConstructor or factory
CLASStext_classifier_type
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.

OCR classifier type

Constructors and members

static OCR_KNN_CLASSIFIER

ocr knn classifier constant (0), defined by OpenCV for cv::text.

OCR_KNN_CLASSIFIER: text_classifier_typeValue<0>,

static OCR_CNN_CLASSIFIER

ocr cnn classifier constant (1), defined by OpenCV for cv::text.

OCR_CNN_CLASSIFIER: text_classifier_typeValue<1>

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.