Skip to content

gapi_parseSSD

gapifunctionOpenCV 5.0.0
import { gapi_parseSSD } from '@banou/opencv-wasm'

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

ARGUMENTSin_, inSz, confidenceThreshold, filterLabel
FUNCTIONgapi_parseSSD
RETURN TYPEtuple_GArray_Rect_and_GArray_int
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

namespace nn Parses output of SSD network.

Extracts detection information (box, confidence, label) from SSD output and filters it by given confidence and label.

Note: Function textual ID is "org.opencv.nn.parsers.parseSSD_BL"

gapi_parseSSD(in_: GMat, inSz: GOpaque_Size, confidenceThreshold: number, filterLabel: number): tuple_GArray_Rect_and_GArray_int;
3 available overloads
gapi_parseSSD(in_: GMat, inSz: GOpaque_Size): tuple_GArray_Rect_and_GArray_int;
gapi_parseSSD(in_: GMat, inSz: GOpaque_Size, confidenceThreshold: number): tuple_GArray_Rect_and_GArray_int;
gapi_parseSSD(in_: GMat, inSz: GOpaque_Size, confidenceThreshold: number, filterLabel: number): tuple_GArray_Rect_and_GArray_int;
in_

Input CV_32F tensor with {1,1,N,7} dimensions.

inSz

Size to project detected boxes to (size of the input image).

confidenceThreshold

If confidence of the detection is smaller than confidence threshold, detection is rejected.

filterLabel

If provided (!= -1), only detections with given label will get to the output.

Returns

a tuple with a vector of detected boxes and a vector of appropriate labels.

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.