Distributing SmartZone OCR
Build Dependencies
Distribute the appropriate assembly DLL file with applications using the SmartZone OCR Product.
- Accusoft.SmartZoneOCR.Net.dll - .NET Framework component to recognize machine-printed text from scanned images.
- This single assembly can be used on all supported .NET Framework platforms.
Runtime Dependencies
Redistribute OCR resources installed in folder assets with SmartZone OCR applications. By default, this folder is expected to reside in the same directory as the SmartZone OCR assembly, but can be deployed elsewhere at the host system and located at runtime by either:
- Creating SmartZoneOCR objects with constructor SmartZoneOCR(String, Language), providing the absolute or relative path to the OCR resource directory.
- Setting property OCRDataPath with the path to the OCR resource directory.
IMPORTANT: The path to the OCR resource directory should only contain ANSI characters.
SmartZone OCR includes Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019 dependencies for local deployment, but it is preferred that host machines install Universal CRT using Microsoft Windows Update.
To control the temporary working directory, create pegasusworkerloader.ini file with the following content:
[pegasusworkerloader]
tempdir=C:\Windows\Temp
where tempdir
points to the desired location where the intermediate files can be stored.
This file should be placed in the same directory as the application executable.
See Also