Skip to content

Instantly share code, notes, and snippets.

@BetterProgramming
Created July 13, 2020 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BetterProgramming/ee8ddf4a20d72644f7ca34e46ad2187f to your computer and use it in GitHub Desktop.
Save BetterProgramming/ee8ddf4a20d72644f7ca34e46ad2187f to your computer and use it in GitHub Desktop.
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