caption-cli
v1.0.3
Published
CLI tool to generate captions for images using Google Whisk.
Readme
Caption CLI
CLI tool to generate captions for images using Google Whisk AI.
Installation
npm install -g caption-cliOr clone and build:
git clone https://github.com/codebyhasan/caption-cli.git
cd caption-cli
npm install
npm run buildUsage
Set your Google cookie from Whisk website. Get it using Cookie Editor (source) - export as header string:
caption config -s "your-google-cookie"Generate caption for a single image:
caption -f image.jpgGenerate captions for all images in a folder:
caption -d ./folderOr just run in current folder:
captionOptions:
-f, --file- Single image file-d, --dir- Folder containing images-n, --count- Number of captions per image (default: 1)-o, --output- Output file name-c, --cookie- Google account cookie-s, --save-cookie- Save cookie to config file
Config
View saved config:
caption config --viewClear saved cookie:
caption config --clearSet cookie:
caption config -s "your-cookie"