Description
The Clarifai API offers image and video recognition as a service. Whether you have one image or billions, you are only steps away from using artificial intelligence to recognize your visual content. The API is built around a simple idea. You send inputs (an image or video) to the service and it returns predictions. The type of prediction is based on what model you run the input through. For example, if you run your input through the ‘food’ model, the predictions it returns will contain concepts that the ‘food’ model knows about. If you run your input through the ‘color’ model, it will return predictions about the dominant colors in your image.
The current version of this component predicts the contents of an image by passing in a url.
Code For Above Flow
[{"id":"dc81d5d2.7e6578","type":"Clarifai","z":"8a23f758.7ebf58","name":"Clarifai","apikey":"","x":230,"y":440,"wires":[["9f555001.362b9"]]},{"id":"80f04eb7.fba","type":"inject","z":"8a23f758.7ebf58","name":"","topic":"","payload":"","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":440,"wires":[["dc81d5d2.7e6578"]]},{"id":"9f555001.362b9","type":"console","z":"8a23f758.7ebf58","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":370,"y":440,"wires":[]}]
Input
payload (string)A string url that links to an image (Example: https://www.petmd.com/sites/default/files/what-does-it-mean-when-cat-wags-tail.jpg).
Parameters
API_KEY(string)The users API Key for the scope they wish to analyze the image.
Output
payload (object)A JSON string containing the results of the analysis done by the scope called by the API Key