Skip to content

dnn_TextDetectionModel_EAST

Deep neural networksclassOpenCV 5.0.0
import { dnn_TextDetectionModel_EAST } from '@banou/opencv-wasm'

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

ARGUMENTSConstructor or factory
CLASSdnn_TextDetectionModel_EAST
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. Inherits dnn_TextDetectionModel.

This class represents high-level API for text detection DL networks compatible with EAST model.

Configurable parameters:

  • (float) confThreshold - used to filter boxes by confidences, default: 0.5f
  • (float) nmsThreshold - used in non maximum suppression, default: 0.0f

Constructors and members

static new

Create text detection model from network represented in one of the supported formats. An order of model and config arguments does not matter.

new(model: EmbindString, config: EmbindString): dnn_TextDetectionModel_EAST;
2 available overloads
new(network: dnn_Net): dnn_TextDetectionModel_EAST;
new(model: EmbindString, config: EmbindString): dnn_TextDetectionModel_EAST;
network

Net object

model

Binary file contains trained weights.

config

Text file contains network configuration.

Returns

The dnn_TextDetectionModel_EAST result.

static from1

Create an owned dnn_TextDetectionModel_EAST instance with the supplied configuration.

This class represents high-level API for text detection DL networks compatible with EAST model.

from1(_0: EmbindString): dnn_TextDetectionModel_EAST | null;
_0

0 argument (EmbindString).

Returns

The dnn_TextDetectionModel_EAST | null result.

clone

Create another handle to the same native object. This retains the object without copying its pixels or algorithm state; dispose both handles separately.

clone(): this;
Returns

The this result.

setConfidenceThreshold

Set the detection confidence threshold

setConfidenceThreshold(confThreshold: number): dnn_TextDetectionModel_EAST;
confThreshold

A threshold used to filter boxes by confidences

Returns

The dnn_TextDetectionModel_EAST result.

getConfidenceThreshold

Get the detection confidence threshold

getConfidenceThreshold(): number;
Returns

The number result.

setNMSThreshold

Set the detection NMS filter threshold

setNMSThreshold(nmsThreshold: number): dnn_TextDetectionModel_EAST;
nmsThreshold

A threshold used in non maximum suppression

Returns

The dnn_TextDetectionModel_EAST result.

getNMSThreshold

Get the detection confidence threshold

getNMSThreshold(): number;
Returns

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