[{"data":1,"prerenderedAt":58},["ShallowReactive",2],{"workflow-celebrity-identifier-sam":3},{"id":4,"title":5,"cleanup":6,"contributors":11,"deploy":13,"description":16,"diagram":17,"extension":18,"framework":19,"gitHub":20,"introBox":29,"level":39,"meta":40,"resources":41,"s3URL":44,"services":45,"simplicity":49,"stem":50,"testing":51,"type":55,"usecase":56,"videoId":28,"__hash__":57},"workflows\u002Fworkflows\u002Fcelebrity-identifier-sam.json","Celebrity identifier",{"headline":7,"text":8},"Cleanup",[9,10],"1. Empty the files from the created S3 bucket.","2. Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[12],"content\u002Fcontributors\u002Fjesse-baker.json",{"text":14},[15],"sam deploy --guided","Identify known celebrities from an image file and write corresponding file and celebrity identification values to DynamoDB without custom code.","\u002Fassets\u002Fimages\u002Fworkflows\u002Fcelebrity-identifier-sam.png","json","AWS SAM",{"template":21,"payloads":26},{"repoURL":22,"templateDir":23,"templateFile":24,"ASL":25},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fstep-functions-workflows-collection\u002Ftree\u002Fmain\u002Fcelebrity-identifier-sam\u002F","celebrity-identifier-sam","template.yaml","statemachine\u002Fstatemachine.asl.json",[27],{"headline":28,"payloadURL":28},"",{"headline":30,"text":31},"How it works",[32,33,34,35,36,37,38],"This express workflow executes when an image file is uploaded to the created S3 bucket, regardless of prefix path. Once the file is copied, the S3 EventBridge event notifications feature will send an event to the default bus.","An EventBridge rule filters for object created events specific to the S3 bucket and then triggers the workflow.","1. The initial payload containing the S3 object location information is sent to the Amazon Rekognition service for analysis.","2. Rekognition will scan the image file and output 2 arrays containing information for celebrity and non-celebrity faces detected.","3. The workflow will then check, via a 'choice state', to see if any celebrities were detected. If not, then the workflow ends in a success and is complete.","4. If there are celebrity faces detected, the array of celebrity faces is sent to a 'Map state' where each array object will be processed.","5. Each object in the array contains information specific to a celebrity face, including the match confidence level. As the 'Map state' iterates through the array, each object will be checked against a confidence score greater than 90% through a choice state. If less, then that object of the array is no longer processed.","200",{},{"headline":42,"bullets":43},"Additional Resources",[],null,[46,47,48],"rekognition","dynamodb","eventbridge","3 - Application","workflows\u002Fcelebrity-identifier-sam",{"headline":52,"text":53},"Testing",[54],"See the GitHub repo for detailed testing instructions.","Standard","Content Moderation","nwo6E3RXoncoCcjBj2b_lVsMgKrauU2m7FvIW8gLqbQ",1782038107554]