This is a python wrapper for Imago OCR. Its purpose is to facilitate the utilization of the Imago OCR APIs in Python-based cheminformatic projects. A typical use case would be combining this wrapper with RDKit as demonstrated in this tutorial.
- Python 3.x
- C++ 11
- PyBind11 >=2.2.4
- Boost v1.49
- Indigo v1.1.12-2
- OpenCV v3.2.0
- pThread
To build the shared binding:
python setup.py clean
python setup.py build_ext
python setup.py install
Once the binding is installed, you import it like any other python module.
import imagopy as ocr # for accessing the Imago OCR APIs
sess_id = ocr.imagoAllocSessionId() # creates a session.
# perform some operations
ocr.imagoReleaseSessionId(sess_id) # closes the session
Please refer to Imago OCR site for information about the APIs.