Aws Rekognition Javascript Example, ) method, the SourceImage and TargetImage can take Bytes or S3Object.