Captionbot

captionbot

Get captions for image using Microsoft's CaptionBot 🤖

A cheeky bot that tries recognize an image and explain it like a human would do, it requires node version >=4 this is powered by CaptionBot, a free service provided by Microsoft.

The author says he would consider this module "for testing only" and does not recommend using in a production system.

Get it: npm install --save captionbot

Usage:

1
2
3
4
5
6
7
8
const captionbot = require('captionbot');

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

//=> 'I think it's a group of people posing for a picture\nand he seems 😐.'

or

1
2
3
4
5
6
7
8
const captionbot = require('captionbot');

try {
    const caption = await captionbot('http://i.imgur.com/o33PTUp.jpg');
    console.log(caption);
} catch(e) {
    console.error(e);
}

GIF FTW!

Suggest a module

Comments