Version 8 (modified by 12 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/000_config.py
in eden
directory.
Dependecies
python modules
- python-lxml
- python-imaging (PIL)
- python-reportlab
command-line tools
- Imagemagick 'convert'
- Tesseract 3.00-1
apt-get install -y imagemagick apt-get install -y libleptonica-dev wget http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.02.tar.gz cd tesseract-ocr ./configure make make install
Configuration
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/s3cfg.py
, so before generating a PDF Form s3pdf.py reads this configuration.
Example Configuration:
def get_pdf_excluded_fields(self, resourcename): excluded_fields_dict = { "hms_hospital" : [ "hrm_human_resource", ], "pr_group" : [ "pr_group_membership", ], } 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)
-
reviewUI.png
(55.4 KB
) - added by 13 years ago.
This is how review UI works
-
importflow.png
(68.7 KB
) - added by 13 years ago.
This is how image data get stored as text data
-
generated.png
(26.7 KB
) - added by 13 years ago.
This is how PDF Form gets generated
Download all attachments as: .zip