Captionbot is a simple API wrapper for https://www.captionbot.ai/
go get github.com/nhatbui/captionbot
package main
import (
"fmt"
"github.com/nhatbui/captionbot"
)
func main() {
bot := captionbot.CaptionBot{}
// DON'T FORGET TO INITIALIZE!!!
bot.Initialize()
imgURL := "http://www.nhatqbui.com/assets/me.jpg"
fmt.Println(bot.URLCaption(imgURL))
}
Thanks to @krikunts for their work on captionbot in Python that inspired this package.