Last active
January 21, 2019 23:46
-
-
Save johnathanDOS/e38debc5ba8bfa905560d1735b080d02 to your computer and use it in GitHub Desktop.
_FaceRec() callback
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
function _FaceRec(data) { | |
// Check if the FaceRec event was triggered by a stranger | |
if (data.PropertyTestResults[0].PropertyValue == "unknown person"){ | |
// Misty doesn't recognize this person. Sound the alarm! | |
} | |
else { | |
// Misty knows this person. Do something else. | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment