Skip to content

text_TextDetectorCNN_create

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

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

ARGUMENTSmodelArchFilename, modelWeightsFilename
FUNCTIONtext_TextDetectorCNN_create
RETURN TYPEtext_TextDetectorCNN | null
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Creates an instance of the TextDetectorCNN class using the provided parameters.

text_TextDetectorCNN_create(modelArchFilename: EmbindString, modelWeightsFilename: EmbindString): text_TextDetectorCNN | null;
modelArchFilename

the relative or absolute path to the prototxt file describing the classifiers architecture.

modelWeightsFilename

the relative or absolute path to the file containing the pretrained weights of the model in caffe-binary form.

Returns

The text_TextDetectorCNN | 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.