Skip to content

bbrighttaer/imagopy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ImagoPy

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.

Requirements

  • Python 3.x
  • C++ 11
  • PyBind11 >=2.2.4
  • Boost v1.49
  • Indigo v1.1.12-2
  • OpenCV v3.2.0
  • pThread

Building & Installation

To build the shared binding:

  1. python setup.py clean
  2. python setup.py build_ext
  3. python setup.py install

Usage

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.

Releases

No releases published

Packages

No packages published

Languages