2023-11-07 13:55:35 +00:00
|
|
|
|
using OpenCVForUnity.CoreModule;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
public class BodyBendRight : PoseBase
|
|
|
|
|
{
|
|
|
|
|
public override bool CheckPose(List<Point> points)
|
|
|
|
|
{
|
2023-11-12 15:09:33 +00:00
|
|
|
|
if (!"RHip".IsValid(points) &&
|
|
|
|
|
!"RKnee".IsValid(points))
|
2023-11-07 13:55:35 +00:00
|
|
|
|
return false;
|
|
|
|
|
//右弯腰检测
|
|
|
|
|
if (points[YogaConfig.BODY_PARTS["RHip"]].y > points[YogaConfig.BODY_PARTS["RKnee"]].y)
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|