Created
January 21, 2019 23:38
-
-
Save johnathanDOS/5b81ce1c7a30b458514805919482f92d to your computer and use it in GitHub Desktop.
faceRecCallback.js
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