Asish Posted August 14, 2020 Share Posted August 14, 2020 Dear All, Is there any standard way to calculate the number of blinks per min from eye openness data? Thanks in advance Asish Link to comment Share on other sites More sharing options...
Asish Posted August 16, 2020 Author Share Posted August 16, 2020 Hello @Corvus @VibrantNebula @Hank_Li Would you please let me know how to calculate the number of blinks per min from eye openness data? Any standard way to get it correctly? Thanks Link to comment Share on other sites More sharing options...
Hank_Li Posted August 17, 2020 Share Posted August 17, 2020 Hi Asish, We did not provide such API for calculating the number of blinks per minute. Maybe you can calculate it according to the value of this blendshape (blinks) Thanks Link to comment Share on other sites More sharing options...
Corvus Posted August 26, 2020 Share Posted August 26, 2020 @Asish Here is Unity sample code to check for blinking. You can adjust the blinkLimit if desired (0 fully closed, 1 fully open). private static float blinkLimit = 0.1f; private static float leftOpen, rightOpen; public static bool IsBlinking() { // check both eyes open if (IsWinkingLeft() && IsWinkingRight()) return true; else return false; } public static bool IsWinkingLeft() { SRanipal_Eye.GetEyeOpenness(EyeIndex.LEFT, out leftOpen); if (leftOpen < blinkLimit) return true; else return false; } public static bool IsWinkingRight() { SRanipal_Eye.GetEyeOpenness(EyeIndex.RIGHT, out rightOpen); if (rightOpen < blinkLimit) return true; else return false; } 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now