Skip to content
daniel edited this page May 30, 2018 · 2 revisions

Rekognition

AWS Image recongition service

Example

This example gets the following image and pases it to Rekognition

The following response are returned (at time of writing): {"Labels":[{"Name":"Animal","Confidence":95.94583129882812},{"Name":"Cat","Confidence":95.94583129882812},{"Name":"Kitten","Confidence":95.94583129882812},{"Name":"Mammal","Confidence":95.94583129882812},{"Name":"Pet","Confidence":95.94583129882812},{"Name":"Manx","Confidence":78.9968032836914},{"Name":"Siamese","Confidence":71.29753112792969}],"OrientationCorrection":"ROTATE_0"}

--- flow

[{"id":"502c37a0.e09238","type":"debug","z":"a0ab0878.35e198","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":655,"y":127,"wires":[]},{"id":"d5161a02.6c39b8","type":"inject","z":"a0ab0878.35e198","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":142,"y":99.5,"wires":"be0461c5.68407"},{"id":"be0461c5.68407","type":"http request","z":"a0ab0878.35e198","name":"Get kittens","method":"GET","ret":"bin","url":"https://raw.githubusercontent.com/wiki/Daniel-t/node-red-contrib-aws/images/kitty.jpg","tls":"","x":232,"y":190.5,"wires":"4eff766d.372648"},{"id":"52dc33db.80100c","type":"AWS Rekognition","z":"a0ab0878.35e198","aws":"bec2452f.03a118","operation":"DetectLabels","SourceImage":"","TargetImage":"","CollectionId":"","Input":"","Output":"","Name":"","Settings":"","RoleArn":"","FaceIds":"","Image":"","Id":"","JobId":"","FaceId":"","Video":"","name":"","x":441,"y":236,"wires":"502c37a0.e09238"},{"id":"4eff766d.372648","type":"function","z":"a0ab0878.35e198","name":"","func":"msg.Image={Bytes:msg.payload};\nreturn msg;","outputs":1,"noerr":0,"x":372,"y":134.5,"wires":"52dc33db.80100c"},{"id":"bec2452f.03a118","type":"amazon config","z":"","name":"AWS","region":"us-east-1"}]

Clone this wiki locally