MultiPoseDetectionModel
class MultiPoseDetectionModel(internalModel: OnnxInferenceModel, modelKindDescription: String?) : MultiPoseDetectionModelBase<BufferedImage> , InferenceModel
Content copied to clipboard
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.
Parameters
internalModel
model used to make predictions
Constructors
MultiPoseDetectionModel
Link copied to clipboard
Constructs the pose detection model from a given path.
MultiPoseDetectionModel
Link copied to clipboard
fun MultiPoseDetectionModel(internalModel: OnnxInferenceModel, modelKindDescription: String? = null)
Content copied to clipboard
Functions
convert
Link copied to clipboard
open override fun convert(output: OrtSession.Result): MultiPoseDetectionResult
Content copied to clipboard
Converts raw model output to the result.
detectPoses
Link copied to clipboard
fun detectPoses(imageFile: File, confidence: Float = 0.1f): MultiPoseDetectionResult
Content copied to clipboard
Detects poses for the given imageFile with the given confidence.
fun detectPoses(image: BufferedImage, confidence: Float = 0.1f): MultiPoseDetectionResult
Content copied to clipboard
Detects poses for the given image with the given confidence.
initializeWith
Link copied to clipboard
open override fun initializeWith(vararg executionProviders: ExecutionProvider)
Content copied to clipboard
Initialize the model with the specified executions providers.
predictSoftly
Link copied to clipboard
open override fun predictSoftly(inputData: FloatArray, predictionTensorName: String): FloatArray
Content copied to clipboard
summary
Link copied to clipboard
Properties
inputDimensions
Link copied to clipboard
internalModel
Link copied to clipboard
modelKindDescription
Link copied to clipboard
preprocessing
Link copied to clipboard
open override val preprocessing: Operation<BufferedImage, Pair<FloatArray, TensorShape>>
Content copied to clipboard