Kinesphere display in Overlay/BoundingBox should use helper functions for color/label text
helper functions usage:
-
$helpers.parseKinesphereConfidence(confidence)
:
arguments: confidence
is the object found in the kinesphere analysis reply for a certain framerange like:
{
"narrow": 94.56,
"middle": 5.44,
"wide": 0.0
}
return: value representing the kinesphere label with the highest confidence for the range
-
$helpers.getRGBAForKinesphereValue(value)
:
arguments: value
is an output of $helpers.parseKinesphereConfidence()
return: array representing a rgba color in the form [red(0..255), green(0..255), blue(0..255), alpha(0..255)]
like: [64, 0, 123, 255]
-
$helpers.getLabelForKinesphereValue(value)
:
arguments: value
is an output of $helpers.parseKinesphereConfidence()
return: string representation of the kinesphere value like: "Narrow"
Edited by Mittermeier, Maximilian