mtg-chair-ai/README.md

569 B

MTG Visual Search Scripts

This repository contains scripts to search for Magic: The Gathering cards by image contents.

generate-card-captions.js

This script takes a JSON file from scryfall.com containing card data. It generates a JSON file containing card names, IDs, and captions for each card. The captions are generated using Azure Cognitive Services Computer Vision API.

search-cards.js

This script takes the output of generate-card-captions.js and searches the card captions for keywords provided and outputs another JSON file containing the results.