Home

Awesome

captionbot Build Status

Get captions for image using Microsoft's CaptionBot 🤖

<img src="http://imgur.com/B7a15F5.jpg" width="300px">
🤖 I think it's a dog in the snow.

Install

$ npm install --save captionbot

Usage

const captionbot = require('captionbot');

captionbot('http://imgur.com/B7a15F5.jpg')
    .then(caption => {
        console.log(caption);
    })

//=> 'I think it's a dog in the snow.'

API

captionbot(imageUrl)

imageUrl

Type: string

Url to the image. Must be on a public server that Microsoft's servers can download to determine the caption.

Returns a promise for the caption.

Notes

License

MIT © Dylan Greene