Q&A Python and OpenCV OMR (optical mark recognition)
Project description
OMR
This package can create a form which can be read in with OMR and can read those forms.
Usage
Creating an OMR form
To create an OMR enabled form you must make a form (with Word, LaTeX or similar software) and mark the first bullet points with a red background and the last with a green background. At last the corners should be marked: the bottom right corner must be marked with a black square and the three other corners with a QR code like corner. At this moment the user must do this themselfes (this may change in the future). The imput to OMR must be an image file.
Running the following will generate a printable output sheet with barcodes at the bottom which OMR uses to detect the settings
qandaomr -c input_file output_file columns rows points_per_question questions_per_block
Reading an OMR form
To get the answers back from the form a scanned image can be the input to OMR. OMR will print the answers to the terminal in a CSV format.
qandaomr -r input_file
Generating intermediate files
For debug purposes the -d
flag can be used. This will generate multiple images which are used in the steps within OMR. This can be useful if OMR does not react the way it should
Installation
To install this package clone this repository and install via pip:
pip install qandaomr
Uninstalling can be done via pip:
pip uninstall qandaomr
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file qandaomr-1.2.3.post1.tar.gz
.
File metadata
- Download URL: qandaomr-1.2.3.post1.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83502a73bd654cc67886bd8e0a89ceb93b3ff1ec7e8e62a95a51888f75bc96ba |
|
MD5 | 7ca3b93acff69c10a187c5d2a2276fee |
|
BLAKE2b-256 | 02416099c2e4554e02096f63ef19f791c480c7dcde3fcd404014d52074a9b344 |