gapi_parseSSD1
import { gapi_parseSSD1 } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
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.
inSzSize to project detected boxes to (size of the input image).
confidenceThresholdIf confidence of the detection is smaller than confidence threshold, detection is rejected.
alignmentToSquareIf 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.
filterOutOfBoundsIf provided true, out-of-frame boxes are filtered.
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.