dnn_TextDetectionModel_EAST
import { dnn_TextDetectionModel_EAST } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
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;networkNet object
modelBinary file contains trained weights.
configText file contains network configuration.
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;_00 argument (EmbindString).
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;The this result.
setConfidenceThreshold
Set the detection confidence threshold
setConfidenceThreshold(confThreshold: number): dnn_TextDetectionModel_EAST;confThresholdA threshold used to filter boxes by confidences
The dnn_TextDetectionModel_EAST result.
getConfidenceThreshold
Get the detection confidence threshold
getConfidenceThreshold(): number;The number result.
setNMSThreshold
Set the detection NMS filter threshold
setNMSThreshold(nmsThreshold: number): dnn_TextDetectionModel_EAST;nmsThresholdA threshold used in non maximum suppression
The dnn_TextDetectionModel_EAST result.
getNMSThreshold
Get the detection confidence threshold
getNMSThreshold(): number;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.