Skip to content

A Python library for processing Apple Card transaction screenshots

License

Notifications You must be signed in to change notification settings

afwolfe/cardvisionpy

Repository files navigation

cardvisionpy

A Python reimplementation of BergQuester's CardVision to process Apple Card transaction screenshots using Tesseract.

It can be imported and used as a module in other Python scripts or as a standalone CLI.

Requirements

Usage

Installation

pip install git+https://github.com/afwolfe/cardvisionpy

Importing

You can install and import cardvisionpy as a module in your own projects.

For an example of this, see AppleCardToYnab

Standalone CLI

You can also use cardvisionpy as a CLI to process and export a folder of image screenshots as a CSV file.

$ python -m cardvisionpy --help
usage: __main__.py [-h] [--input-path INPUT_PATH] [--output-file OUTPUT_FILE]

options:
  -h, --help            show this help message and exit
  --input-path INPUT_PATH
                        The directory to read image files from. Defaults to ./images/
  --output-file OUTPUT_FILE
                        The CSV file to write transactions to. Defaults to ./transactions.csv

Acknowledgements

  • The cardvisionpy module would not be possible without the work originally done by BergQuester's CardVision project to handle a lot of the "weirdness" of parsing Apple Card screenshots. While OpenCV/Tesseract handle them slightly differently than Apple's VisionKit, it provided a good starting point.

About

A Python library for processing Apple Card transaction screenshots

Topics

Resources

License

Stars

Watchers

Forks