Skip to content

gapi_parseSSD1

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

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

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

Parses output of SSD network.

Extracts detection information (box, confidence) from SSD output and filters it by given confidence and by going out of bounds.

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

gapi_parseSSD1(in_: GMat, inSz: GOpaque_Size, confidenceThreshold: number, alignmentToSquare: boolean, filterOutOfBounds: boolean): GArray_Rect;
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.

alignmentToSquare

If provided true, bounding boxes are extended to squares. The center of the rectangle remains unchanged, the side of the square is the larger side of the rectangle.

filterOutOfBounds

If provided true, out-of-frame boxes are filtered.

Returns

a vector of detected bounding boxes. Release returned native handles with using or delete(), including handles nested in results.

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.