MultiPoseDetectionModel
MultiPoseDetectionModel is an ultra-fast and accurate model that detects 6 persons with 17 keypoints and 18 basic edges of a body for each of them.
It internally uses ONNXModels.PoseDetection.MoveNetMultiPoseLighting under the hood to make predictions.
Constructors
MultiPoseDetectionModel
Link copied to clipboard
fun MultiPoseDetectionModel()
Content copied to clipboard
Functions
detectPoses
Link copied to clipboard
fun detectPoses(imageFile: File, confidence: Float = 0.1f): MultiPoseDetectionResult
Content copied to clipboard
fun detectPoses(inputData: FloatArray, confidence: Float = 0.005f): MultiPoseDetectionResult
Content copied to clipboard
predict
Link copied to clipboard
predictRaw
Link copied to clipboard
Returns list of multidimensional arrays with data from model outputs.
predictRawWithShapes
Link copied to clipboard
fun predictRawWithShapes(inputData: FloatArray): List<Pair<FloatBuffer, LongArray>>
Content copied to clipboard
Returns list of pairs from model outputs.
predictSoftly
Link copied to clipboard
Predicts vector of probabilities instead of specific class in predict method.
open override fun predictSoftly(inputData: FloatArray, predictionTensorName: String): FloatArray
Content copied to clipboard
Properties
inputDataType
Link copied to clipboard
inputDimensions
Link copied to clipboard
inputShape
Link copied to clipboard
outputDataType
Link copied to clipboard
outputShape
Link copied to clipboard