Skip to main content
. 2023 Jan 13;9:e1152. doi: 10.7717/peerj-cs.1152
Algorithm 2: Computation of accuracy parameters PCK and PDJ
Input: Set of Predicted body joints — R
Set of Real body joints — K
Set of Body joints Name — A
Set of Body Part Name — B
Output: PCK for individual body part B and average PCK
PDJ (0.1 → 0.4) for individual body Joints A
1. Initialize all body joints (as per Blazepsoe Model) as set C
2. Compute PCK:
{PCKB, Mean}← {R, K,C, B};
Return {PCKB, Mean}
3. Initialize Reference joint pair as set D
Compute PDJ:
{PDJ0.1 → 0.4}← {R, K, D, C, A};
Return {PDJ0.1 → 0.4}