It is recommended to use a virtual environment to install this package, as it contains many pinned runtime dependencies.
To install the production version of the package, run the following command in the console:
$ pip install markus-exam-matcher --extra-index-url https://download.pytorch.org/whl/cpu
To install the latest development version of the package, run the following command in the console:
$ pip install git+https://github.com/MarkUsProject/markus-exam-matcher.git --extra-index-url https://download.pytorch.org/whl/cpu
To install the version specified by a particular branch (when permissions are granted), run the following command in the console:
$ pip install git+https://github.com/MarkUsProject/markus-exam-matcher.git@branch_name --extra-index-url https://download.pytorch.org/whl/cpu
To install the version specified by a specific commit, the commit hash can be used by running the following command in the console:
$ pip install git+https://github.com/MarkUsProject/markus-exam-matcher.git@commit_hash --extra-index-url https://download.pytorch.org/whl/cpu
This package works under the assumption that the characters to be detected are surrounded by boxes that are placed side-by-side. An example image with this format is displayed below:
Below is a sample usage that generates a prediction from the file shown above.
$ python3 -m markus_exam_matcher --char_type digit char examples/student_info_num.jpg
0001250981
- First, clone this repository.
- Open a terminal in this repo, and create a new virtual environment.
- Run
pip install -e ".[dev]"
to install the dependencies. - Then run
pre-commit install
to install the pre-commit hooks (for automatically formatting and checking your code on each commit).