23 lines
548 B
C#
23 lines
548 B
C#
|
using OpenCVForUnity.CoreModule;
|
|||
|
using System;
|
|||
|
using System.Collections;
|
|||
|
using System.Collections.Generic;
|
|||
|
using UnityEngine;
|
|||
|
|
|||
|
public class BodyTurnRight : PoseBase
|
|||
|
{
|
|||
|
public override bool CheckPose(List<Point> points)
|
|||
|
{
|
|||
|
if (!CheckPoint(points, "RShoulder") &&
|
|||
|
!CheckPoint(points, "LHip"))
|
|||
|
return false;
|
|||
|
//右转身检测
|
|||
|
if (points[YogaConfig.BODY_PARTS["RShoulder"]].x > points[YogaConfig.BODY_PARTS["LHip"]].x)
|
|||
|
{
|
|||
|
return true;
|
|||
|
}
|
|||
|
|
|||
|
return false;
|
|||
|
}
|
|||
|
}
|