23 lines
539 B
C#
23 lines
539 B
C#
|
using OpenCVForUnity.CoreModule;
|
|||
|
using System;
|
|||
|
using System.Collections;
|
|||
|
using System.Collections.Generic;
|
|||
|
using UnityEngine;
|
|||
|
|
|||
|
public class BodyBendLeft : PoseBase
|
|||
|
{
|
|||
|
public override bool CheckPose(List<Point> points)
|
|||
|
{
|
|||
|
if (!CheckPoint(points, "LHip") &&
|
|||
|
!CheckPoint(points, "LKnee"))
|
|||
|
return false;
|
|||
|
//左弯腰检测
|
|||
|
if (points[YogaConfig.BODY_PARTS["LHip"]].y > points[YogaConfig.BODY_PARTS["LKnee"]].y)
|
|||
|
{
|
|||
|
return true;
|
|||
|
}
|
|||
|
|
|||
|
return false;
|
|||
|
}
|
|||
|
}
|