Manually Packaging OCR Dependencies
To manually distribute an application that uses ImageGear.OCR Namespace, you must include into the distribution package the OCR engine files and their dependencies. The set of files needed depends on the type(s) of recognition performed by the application.
If you are using OCR in a web project, you cannot use the constructor with a null argument. Instead, you need to specify the location of the dependencies in the OCR Create method,
ImGearOCR.Create(string), explicitly.
Deploying an application that uses the ImageGear OCR Component requires the following merge modules to be installed:
Merge Modules
Install the following merge modules along with your application:
Product Assemblies
The following product components are required for the OCR application:
- ImageGear.Core.dll
- ImageGear.Evaluation.dll (If using Evaluation License)
- ImageGear.Formats.Common.dll
- ImageGear.Formats.Pdf.dll (If using PDF Output)
- ImageGear.Formats.Vector.dll
- ImageGear.OCR.dll
- ImageGear.OCR.Forms.dll
- ImageGear.Windows.Forms.dll
PDF Binary Files
All binary files that are required to use the PDF assembly are placed in the Bin\x64\Resource and Bin\x86\Resource folders. If the application using OCR features produces PDF output, the entire folder should be copied to the distribution package.
Binary OCR Files
All applications using ImageGear OCR require all files in Bin\x64(x86)\OCR The entire folder should be included in the distribution package.
In addition, you will need to include the following files from the Bin\x64 (64-bit) or Bin\x86 (32-bit) folder:
- IgOcrIpc.dll
- Google.Protobuf.dll
- System.Buffers.dll
- System.Memory.dll and
- System.Runtime.CompilerServices.Unsafe.dll
See Also