decode
fun decode(rawBoxes: FloatArray, rawScores: FloatArray, imageWidth: Double, imageHeight: Double, scoreThreshold: Float = DEFAULT_SCORE_THRESHOLD, iouThreshold: Float = DEFAULT_IOU_THRESHOLD): List<BlazeFaceDetection>
Decodes raw regressor and classificator output tensors into structured detections.
Parameters
rawBoxes
Flattened float array of size 896 * 16.
rawScores
Flattened float array of size 896.
imageWidth
Original input image width in pixels.
imageHeight
Original input image height in pixels.
scoreThreshold
Confidence threshold in range 0, 1.
iouThreshold
Overlap threshold for Non-Maximum Suppression.