dnn_DictValue
import { dnn_DictValue } 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.
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;ii argument (number).
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;_00 argument (number).
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;_00 argument (EmbindString).
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;The this result.
isInt
Return whether this parameter stores integer values.
isInt(): boolean;The boolean result.
isString
Return whether this parameter stores text values.
isString(): boolean;The boolean result.
isReal
Return whether this parameter stores floating-point values.
isReal(): boolean;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;idxidx argument (number).
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;idxidx argument (number).
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;idxidx argument (number).
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.