Package org.jetbrains.kotlinx.dl.onnx.inference.posedetection

Types

MultiPoseDetectionModel
Link copied to clipboard
class MultiPoseDetectionModel(internalModel: OnnxInferenceModel, modelKindDescription: String?) : MultiPoseDetectionModelBase<BufferedImage> , InferenceModel

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.

MultiPoseDetectionModelBase
Link copied to clipboard
common
abstract class MultiPoseDetectionModelBase<I>(modelKindDescription: String?) : OnnxHighLevelModel<I, <ERROR CLASS>>

Base class for pose detection models for detecting multiple poses per image.

SinglePoseDetectionModel
Link copied to clipboard
class SinglePoseDetectionModel(internalModel: OnnxInferenceModel, modelKindDescription: String?) : SinglePoseDetectionModelBase<Bitmap> , InferenceModel, CameraXCompatibleModel
class SinglePoseDetectionModel(internalModel: OnnxInferenceModel, modelKindDescription: String?) : SinglePoseDetectionModelBase<BufferedImage> , InferenceModel

SinglePoseDetectionModel is an ultra-fast and accurate model that detects 17 keypoints and 18 basic edges of a body.

SinglePoseDetectionModelBase
Link copied to clipboard
common
abstract class SinglePoseDetectionModelBase<I>(modelKindDescription: String?) : OnnxHighLevelModel<I, <ERROR CLASS>>

Base class for pose detection models for detecting a single pose per image.

Functions

detectPose
Link copied to clipboard
fun SinglePoseDetectionModelBase<Bitmap>.detectPose(imageProxy: ImageProxy): DetectedPose

Detects a pose for the given imageProxy. Internal preprocessing is updated to rotate image to match target orientation. After prediction, internal preprocessing is restored to the original state.

Properties

edgeKeyPointsPairs
Link copied to clipboard
common
val edgeKeyPointsPairs: List<<ERROR CLASS><Int, Int>>

Pair of points which define body edges.

keyPoints
Link copied to clipboard
common
val keyPoints: Map<Int, String>

Dictionary that maps from joint names to keypoint indices.