26 lines
643 B
C#
26 lines
643 B
C#
using OpenCVForUnity.CoreModule;
|
|
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class IsReady : PoseBase
|
|
{
|
|
private bool _isRunning = false;
|
|
|
|
|
|
public override bool CheckPose(List<Point> points)
|
|
{
|
|
if (!"Nose".IsValid(points) &&
|
|
!"REar".IsValid(points) &&
|
|
!"LEar".IsValid(points) &&
|
|
!"Neck".IsValid(points) &&
|
|
!"RShoulder".IsValid(points) &&
|
|
!"LShoulder".IsValid(points) &&
|
|
!"RElbow".IsValid(points) &&
|
|
!"LElbow".IsValid(points))
|
|
return false;
|
|
|
|
return true;
|
|
}
|
|
} |