Skip to content

text_loadOCRBeamSearchClassifierCNN

textfunctionOpenCV 5.0.0
import { text_loadOCRBeamSearchClassifierCNN } from '@banou/opencv-wasm'

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

ARGUMENTSfilename
FUNCTIONtext_loadOCRBeamSearchClassifierCNN
RETURN TYPEtext_OCRBeamSearchDecoder_ClassifierCallback | null
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Allow to implicitly load the default character classifier when creating an OCRBeamSearchDecoder object.

text_loadOCRBeamSearchClassifierCNN(filename: EmbindString): text_OCRBeamSearchDecoder_ClassifierCallback | null;
filename

The XML or YAML file with the classifier model (e.g. OCRBeamSearch_CNN_model_data.xml.gz)

The CNN default classifier is based in the scene text recognition method proposed by Adam Coates & Andrew NG in [Coates11a]. The character classifier consists in a Single Layer Convolutional Neural Network and a linear classifier. It is applied to the input image in a sliding window fashion, providing a set of recognitions at each window location.

Returns

The text_OCRBeamSearchDecoder_ClassifierCallback | null result.

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.