1. Home
  2. Transact
  3. Features and Functions
  4. Administrator Role and Features
  5. Module/Plugin Configuration
  6. Page Process Module
  7. RecoStar HOCR Plugin

RecoStar HOCR Plugin


The RecoStar HOCR plugin is a part of the Page Process module, by default. The following snapshot illustrates the plugins that are typical for the Page Process module:

RECOSTAR_HOCR plugin in the Page Process module

This plugin uses the RecoStar OCR (optical character recognition) engine for generating HOCR XML files. This plugin reads the image files listed in the batch.xml file of a batch instance and generates an HOCR XML file for each batch instance.

Ephesoft Transact can decode barcode values with this plugin using the barcode-enabled .rsp project file.

Configuring the Recostar_HOCR Plugin

Perform these steps to configure the RECOSTAR_HOCR plugin in the Page Process module:

Note: The Administrator user account is required for this procedure.

1. Launch the Ephesoft Transact application and select Administrator > Batch Class Management.

The system prompts you to log in. Provide login parameters as prompted.

The Batch Class Management screen appears, displaying all the batch classes currently contained in Transact.

Sample Batch Class Management Screen

2. Open the batch class to be configured. Select (check) the batch and click Open.

3. In the navigation pane on the left side, expand the Modules section for this batch class. Click Page Process to display the plugins currently configured for the Page Process module.

Page Process module and typical plugins


4. Click (highlight) the RECOSTAR_HOCR plugin. The Plugin Configuration screen appears on the right.

Plugin configuration options for the RECOSTAR_HOCR plugin
5. Define the following settings for the Recostar_HOCR plugin. The following table lists the configurable properties for this plugin:
Configurable propertyType of valueValue optionsDescription
RecoStar Project File NameList of values• Fpr.rsp
• Fpr_Multi
• Fpr_
This option is used to specify the project file name used for performing OCR.
RecoStar color switchList of values• ON
If the color switch is set to ON, then a PNG file will be used for performing OCR.

If the color switch is set of OFF, then a TIF file fill be used for performing OCR.

RecoStar Auto Rotate switchList of values• ON
This property is used to auto rotate the input images on the basis of orientation computed by the RecoStar .
RecoStar SwitchList of values• ON
Use this switch to enable or disable this plugin.
Barcode SwitchList of values• ON
This property is used to read the barcode from the input images using the barcode-enabled RecoStar project file e.g. ‘FPR_Barcode.rsp’
RecoStar Valid ExtensionsList of values• tif
• gif
• png
RecoStar supports these three formats when performing OCR. The user can configure the allowable format of the image for performing OCR.
RecoStar De-skew SwitchList of values• ON
This property determines whether or not input images must be de-skewed.
OCR Country/LanguageList of valuesMultiple countries and languagesType the country or countries to be supported in OCR operations or the language or languages to be supported. If you enter more than one value you must separate each value with a semi-colon (;) and no space. The system prompts you with a dropdown menu when you start typing input.
RecoStar Font SwitchList of values• ON
In Ephesoft Transact, a new Font Recognition switch was introduced to detect potential fraud and tampering with processed documents. The HOCR file reflects the font style (Bold or Italics or Underline) and font size if the Font switch is turned ON in the RECOSTAR_HOCR or NUANCE_HOCR plugins.

The RecoStar Font Switch allows the user to detect any data that has been manually altered or added to the documents. By default, the Font Switch is set to OFF. The following example illustrates how to use this setting:

  • The original amount of a field in a document is “1000” and the font size is 11.
  • Assume this value is manually changed to “41000” and the “4” is written in a size 12 font — the system will recognize the font size and style in the HOCR file.
  • This will help the user identify that the document has been tampered with.

For additional information about the RecoStar Font Switch setting, refer to the following article:


It should also be noted that if you are using the Recostar HOCR plugin and the Recostar Extraction plugin in your batch class, the configuration in the UI for these two plugins must match in regards to using color documents. If the color switch is turned on in the RecoStar HOCR plugin, the same switch must be turned on in the RecoStar Extraction plugin.

Refer to the following article for additional information:

Dependencies for the RECOSTAR_HOCR Plugin

Dependency on Input Image

This plugin only requires an image as an input. This plugin supports the PNG image format if the color switch is ON, and the TIFF image format if color switch is OFF.

Note that one of the following plugins must be present in the Page Process module prior to the RECOSTAR_HOCR  plugin:

  • Create OCR Input Plugin
  • Create Display Image Plugin

Dependency on Shared Folders

The batch class folder inside the main shared folder contains a folder by the name: recostar-extraction.

This folder contains the RecoStar Project file as specified by the first property.

If the file selected does not exist in the folder, then the file by the same name, and that is located in the native RecoStar, is used for performing OCR:


Using the RECOSTAR_HOCR Plugin

This plug-in works in the Page Process module of the Ephesoft Transact workflow when all the import processing on the batch has been completed.

1. This plugin extracts the contents of the image using the RecoStar OCR engine.

2. This plugin uses the .rsp file present inside the following directory and folder:


In the case that there is no .rsp project file present in the folder mentioned above, then the file is present in the following directory and folder instead:


3. If the barcode switch is ON (enabled), then the .rsp project file being used to perform OCR must be enabled for barcode extraction.

Troubleshooting the RECOSTAR_HOCR Plugin

The following table summarizes a few error messages that the administrator may receive if there is an issue with OCR operations:

[table caption=”” width=”800″ colwidth=”50|200|200″ colalign=”left|left|left|center|right”]
S no.,Error message,Possible root cause
1.,Invalid License. So could not be verified.,Network connection failure.~~Recostar command is not valid.~~License is not installed or invalid.~~Tomcat server is not started.
2.,Problem in verifying License,Unable to connect with Ephesoft license server or some error occurred at Ephesoft license server side.
3.,Unable to load Fpr.rsp file,RSP file used for processing is invalid.
4.,Exception while reading from XML,Unable to process batch xml file or batch xml is invalid.
5.,No valid extensions are specified in resources,No valid extension has been selected.
6.,Image Processing or XML updating failed,Unable to update batch xml.
7.,File has invalid extension,File processed by RecoStar has invalid extension.
8.,Unable to parse Orientation tag in RecoStar xml file.,RecoStar xml file has invalid value for Orientation tag.
9.,Unable to rotate the file:according to the values specified in its xml,RecoStar xml file has invalid value for rotation.


Additional Information

For additional information about the RECOSTAR_HOCR plugin, refer to the following article:


Was this article helpful to you? Yes No