Skip to main content

Keypoint Positional Relationship

The Keypoint Positional Relationship node detects the positional relationship between two body keypoints and triggers different nodes when it matches or doesn't match the specified relationship.

Input

NameData TypeDescription
EnterExecTriggers the execution of this node
Keypoint 1ArrayThe first keypoint to use
Keypoint 2ArrayThe second keypoint to use
RelationshipNumberThe positional relationship between Keypoint 1 and Keypoint 2:
  • Point 1 is above Point 2
  • Point 1 is below Point 2
  • Point 1 is on the left of Point 2
  • Point 1 is on the right of Point 2
  • Point 1 coincides with Point 2
Detection ThresholdNumberThe range condition for position detection

Output

NameData TypeDescription
Match SuccessExecExecutes the next node when the detected relationship matches the specified relationship
Match FailExecExecutes the next node when the detected relationship doesn't match the specified relationship
Is MatchedBooleanReturns true if the detected relationship matches the specified relationship, false if not