Created
July 13, 2020 14:48
-
-
Save BetterProgramming/ee8ddf4a20d72644f7ca34e46ad2187f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def check_head_drop(self): | |
if self.key_points['Left Eye'].y != -1 and self.key_points['Left Ear'].y != -1 \ | |
and self.key_points['Left Eye'].y > (self.key_points['Left Ear'].y + (self.scale * 15)): | |
return False | |
if self.key_points['Right Eye'].y != -1 and self.key_points['Right Ear'].y != -1 \ | |
and self.key_points['Right Eye'].y > (self.key_points['Right Ear'].y + (self.scale * 15)) : | |
return False | |
return True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment