Version 9 (modified by Fran Boon, 11 years ago) ( diff )


Sahana Eden OCR Integration

The Optical Character Recognition Software of Sahana Eden has some additional dependencies as well as can be configured according to the needs.

If OCR module is not enabled, it can be enabled by un-commenting the ocr block in models/ in eden directory.


python modules

  1. python-lxml
  2. python-imaging (PIL)
  3. python-reportlab

command-line tools

  1. Imagemagick 'convert'
  2. Tesseract 3.00-1
    apt-get install -y imagemagick
    # Old versions:
    #apt-get install -y libleptonica-dev tesseract-ocr
    tar zxvf leptonica-1.69.tar.gz
    cd leptonica-1.69
    make install
    cd ..
    tar zxvf tesseract-ocr-3.02.02.tar.gz
    cd tesseract-ocr
    make install
    cd ..


Exclude Component Tables

Each Resource table in Sahana Eden can have several component tables. Many a times when generating paper based PDF Form for including some components makes a little sense.

For example, for hospital registry Form, if the staff component table is included then it makes very little sense because no one would like to add single staff to a hospital and therefore he/she would like to exclude that component and have the Form associated to component table separately.

This exclusion of component table for Resource can be done inside method get_pdf_excluded_fields which is present in modules/s3/, so before generating a PDF Form reads this configuration.

Example Configuration:

    def get_pdf_excluded_fields(self, resourcename):
        excluded_fields_dict = {
            "hms_hospital" : [

            "pr_group" : [
        excluded_fields =\
                excluded_fields_dict.get(resourcename, [])

        return excluded_fields

In the above configuration, we have excluded hrm_human_resource component of hms_hospital and pr_group_membership component of pr_group

Workflow Diagrams

Generating PDF Forms

Data import from image to Text

Review User Interface

Attachments (3)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.