Skip to content

gfax/hubot-clarifai

Repository files navigation

hubot-clarifai

Build Status dependencies Status

A hubot script to recognize images; powered by Clarifai. This is a re-write of hubot-recognizer to work with the new Clarifai API.

Installation

  1. Register on Clarifai for an API key if you don't have one. They're free.

  2. Export your API key as an environment variable:

export CLIENT_ID=HugeCR4zyV4luesTh3yW1!!g1veU
  1. In your hubot project folder, install the node module:
# Using yarn
yarn add hubot-clarifai
# Or with npm
npm install --save https://github.com/gfax/hubot-clarifai.git
  1. Then add hubot-clarifai to your external-scripts.json:
[
  "hubot-clarifai"
]

Usage

hubot what is [image url]

hubot what is this [image url]

Development and testing

You can load up the hubot CLI adapter by running npm start. This will load the script automatically where you can trigger a response from it.

Also you can run npm run test to run eslint.

About

Hubot script for image recognition

Resources

License

Stars

Watchers

Forks

Packages

No packages published