Using Embedings (cool AI things) this tool scans cards and matches them to the cards in the database. This was developped for MTG where other card scanners exist, but assuming you have a GPU to enable the embedding calculation to go quickly, the process is much faster than other tools I've used, and seems to get much better results based on my testing. This method is also much easier to adapt to new cards, which is what made it easy to support lorcana, and easy to add new sets as soon as images of the cards are available.
Made possible thanks to https://lorcast.com/. The APIs simple inteface and usability made developing this tool increadibly simple.
pip3 install podman-composepodman machine initpodman machine startpodman compose up -dpip install requests pymilvus transformers opencv-python pillow pillow-avif-pluginpip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118python scan.py CSVFILENAMEUsing Embedings (cool AI things) this tool scans cards and matches them to the cards in the database. This was developped for MTG where other card scanners exist, but assuming you have a GPU to enable the embedding calculation to go quickly, the process is much faster than other tools I've used, and seems to get much better results based on my testing. This method is also much easier to adapt to new cards, which is what made it easy to support lorcana, and easy to add new sets as soon as images of the cards are available.
Made possible thanks to https://lorcast.com/. The APIs simple inteface and usability made developing this tool increadibly simple.
pip3 install podman-composepodman machine initpodman machine startpodman compose up -dpip install requests pymilvus transformers opencv-python pillow pillow-avif-pluginpip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118python scan.py CSVFILENAME