[{"data":1,"prerenderedAt":53},["ShallowReactive",2],{"workflow-smart-image-cropper":3},{"id":4,"title":5,"cleanup":6,"contributors":10,"deploy":13,"description":17,"diagram":18,"extension":19,"framework":20,"gitHub":21,"introBox":30,"level":34,"meta":35,"resources":36,"s3URL":39,"services":40,"simplicity":44,"stem":45,"testing":46,"type":50,"usecase":51,"videoId":29,"__hash__":52},"workflows\u002Fworkflows\u002Fsmart-image-cropper.json","Smart image cropper",{"headline":7,"text":8},"Cleanup",[9],"1. Delete the stack: \u003Ccode>cdk destroy\u003C\u002Fcode>.",[11,12],"content\u002Fcontributors\u002Fvi-nguyen.json","content\u002Fcontributors\u002Fvisakh-madathil.json",{"text":14},[15,16],"git clone https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fstep-functions-workflows-collection\u002F","cd background-cropper-cdk","Automatically crop and center pictures of individuals","\u002Fassets\u002Fimages\u002Fworkflows\u002Fsmart-image-cropper.png","json","AWS CDK",{"template":22,"payloads":27},{"repoURL":23,"templateDir":24,"templateFile":25,"ASL":26},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fstep-functions-workflows-collection\u002Ftree\u002Fmain\u002Fbackground-cropper\u002F","background-cropper","background_cropper_cdk\u002Fbackground_cropper_cdk_stack.py","statemachine\u002Fimg-cropper-sfn.asl.json",[28],{"headline":29,"payloadURL":29},"",{"headline":31,"text":32},"How it works",[33],"This AWS Step Functions workflow automates the process of intelligently cropping pictures of individuals. Its main purpose is to crop around a picture of a person, removing any unnecessary background and focusing solely on the person in the image. The workflow is triggered whenever an image is uploaded to an S3 bucket. Once triggered, the image is retrieved and sent to Amazon Rekognition, where the detect_labels function is used to identify the objects within the image. If the function returns a person label, the image is cropped accordingly and saved to another S3 bucket.","300",{},{"headline":37,"bullets":38},"Additional resources",[],null,[41,42,43],"sfn","lambda","rekognition","3 - Application","workflows\u002Fsmart-image-cropper",{"headline":47,"text":48},"Testing",[49],"See the GitHub repo for detailed testing instructions.","Standard","Content Moderation","ONGgn0pgsrtJAWGqgXNKa4PEaOxkOBD8fItW5WDTp48",1779273341249]