Go to file
Henry Hobbs aff8574356 initial commit 2024-05-20 18:47:54 -04:00
.gitignore initial commit 2024-05-20 18:47:54 -04:00
README.md initial commit 2024-05-20 18:47:54 -04:00
card-search.js initial commit 2024-05-20 18:47:54 -04:00
generate-card-captions.js initial commit 2024-05-20 18:47:54 -04:00

README.md

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.