Skip to content

dnn_DictValue

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

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

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

This struct stores the scalar value (or array) of one of the following type: double, cv::String or int64. todo: Maybe int64 is useless because double type exactly stores at least 2^52 integers.

Constructors and members

static new

Constructs integer scalar

new(i: number): dnn_DictValue;
i

i argument (number).

Returns

The dnn_DictValue result.

static from1

Create an owned dnn_DictValue instance with the supplied configuration.

This struct stores the scalar value (or array) of one of the following type: double, cv::String or int64. todo: Maybe int64 is useless because double type exactly stores at least 2^52 integers.

from1(_0: number): dnn_DictValue | null;
_0

0 argument (number).

Returns

The dnn_DictValue | null result.

static from2

Create an owned dnn_DictValue instance with the supplied configuration.

This struct stores the scalar value (or array) of one of the following type: double, cv::String or int64. todo: Maybe int64 is useless because double type exactly stores at least 2^52 integers.

from2(_0: EmbindString): dnn_DictValue | null;
_0

0 argument (EmbindString).

Returns

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

isInt

Return whether this parameter stores integer values.

isInt(): boolean;
Returns

The boolean result.

isString

Return whether this parameter stores text values.

isString(): boolean;
Returns

The boolean result.

isReal

Return whether this parameter stores floating-point values.

isReal(): boolean;
Returns

The boolean result.

getIntValue

Return the int value configured on this dnn_DictValue object.

getIntValue(idx: number): number;
2 available overloads
getIntValue(): number;
getIntValue(idx: number): number;
idx

idx argument (number).

Returns

The number result.

getRealValue

Return the real value configured on this dnn_DictValue object.

getRealValue(idx: number): number;
2 available overloads
getRealValue(): number;
getRealValue(idx: number): number;
idx

idx argument (number).

Returns

The number result.

getStringValue

Return the string value configured on this dnn_DictValue object.

getStringValue(idx: number): string;
2 available overloads
getStringValue(): string;
getStringValue(idx: number): string;
idx

idx argument (number).

Returns

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