Skip to content

Installation and configuration

PlatformPackage TypeAction
Windows & Android.zip1. Download the SDK package. 2. Extract the .zip file to a local drive.
Linux.tar.bz21. Download the SDK package. 2. Extract the tarball to a local folder using tar -xvjf filename.tar.bz2.
macOS & iOS.dmg1. Download the SDK package. 2. Mount the .dmg file. 3. Copy contents to a local drive.
NuGetNuGet packages (.nupkg)1. Open your project in Visual Studio. 2. Add the required NuGet packages via Package Manager or dotnet add package.

The IRISOCR™ SDK package contains the following folders and subfolders:

FolderWindowsLinuxmacOSAndroidiOS
Welcome page (Documentation)Gateway to documentation
binSamples and utility binariesSamples and utility binariesSDK framework + utilities + C wrapper (.dll and .xml)Precompiled samples (empty now)SDK framework
includeHeader filesHeader filesHeader files
include_cC headersC headersC headers
lib.lib file for DLL.so files + idrs_cs_wrapper.dll and idrs_cs_wrapper.xml.so files for all available ABIs
redistVisual Studio redistributables (VS2022)
resourcesAll resources needed for characters recognition, such as lexicons and fonts dictionaries.
samplesC, C++, C# examplesC, C++, C# examplesC, C++, C# examplesSmartCaptureSmartCapture
workImages for testing purposes

List of files that are contained in the bin subfolder

Section titled “List of files that are contained in the bin subfolder”

Windows

Table 1. Windows - bin subfolder

File TypeFile nameDescription
Librariesidrsbarcode16.dllMain Barcode engine
idrsbarcodeevoi.dllAuxiliary barcode engine
idrsevoibarcodewrapper16.dllAuxiliary barcode engine wrapper
idrsbarcodeext16.dllQR code engine
idrsirisbarcodeextwrapper16.dllQR code engine wrapper
idrsdocout16.dllDocument output library
idrsdmtxbarcodewrapper16.dllDatamatrix barcode engine wrapper
idrsdmtx16.dllSupport for datamatrix barcodes
idrsirisbarcodewrapper16.dllBarcode engine wrapper
idrskrn16.dlliDRS™ main library
idrsnetframework16.dll.NET Framework API assembly
idrsnetframework16.xml.NET Framework API documentation
idrsocr16.dllOCR/ICR kernel
idrsimp16.dllCamera image preprocessing library
idrsprepro16.dllImage preprocessing library
idrstiff16.dllTiff library
idrszlib16.dllZlib library
idrsjpeg2k16.dllWavelet compression library
idrsjbig216.dllSymbol compression library
idrsjpeg16.dllJpeg encoding library
idrspng16.dllPNG encoding library
idrsasian216.dllAsian OCR engine
idrsc16.dllC API runtime
idrsnet16.dll.NET API assembly
idrsnet16.xml.NET API documentation
Sample ApplicationsCppBarcode16.exeThis sample application demonstrates the barcode recognition features. This sample is built using the C++ API. The source code can be found in <IDRS_SDK_ROOT>/samples/cpp/Barcode.
CppImage2Html16.exeThis sample application shows how to convert an image to html text. This sample is built using the C++ API. The source code can be found in <IDRS_SDK_ROOT>/samples/cpp/Image2Html
CImage2Html16.exeThis sample application shows how to convert an image to html text. This sample is built using the C API. The source code can be found in <IDRS_SDK_ROOT>samples/c/Image2Html
CppReader16.exeThis sample application demonstrates the character recognition and the document output features. This sample is built using the C++ API. The source code can be found in <IDRS_SDK_ROOT>/samples/cpp/Reader
CsBarcode16.exeThis sample application demonstrates the barcode recognition features. This sample is built using the .NET API. The source code can be found in <IDRS_SDK_ROOT>/samples/dotnet/Barcode
CsImage2Html16.exeThis sample application shows how to convert an image to html text. his sample is built using the .NET API. The source code can be found in <IDRS_SDK_ROOT>/samples/dotnet/Image2Html
CsReader16.exeThis sample application demonstrates the character recognition and the document output features. This sample is built using the .NET API. The source code can be found in <IDRS_SDK_ROOT>/samples/dotnet/Reader

macOS

Table 2. macOS - bin subfolder

File TypeFile nameDescription
bin/FrameworkiDRS16.frameworkiDRS™ framework
binlibidrsc16.dylibC API runtime
idrsnet16.dll.NET API assembly
idrsnet16.xml.NET API assembly documentation
Sample ApplicationsCppBarcode16This sample application demonstrates the barcode recognition features. This sample is built using the C++ API. The source code can be found in <IDRS_SDK_ROOT>/samples/cpp/Barcode.
CppImage2Html16This sample application shows how to convert an image to html text. This sample is built using the C++ API. The source code can be found in <IDRS_SDK_ROOT>/samples/cpp/Image2Html
CppReader16This sample application demonstrates the character recognition and the document output features. This sample is built using the C++ API. The source code can be found in <IDRS_SDK_ROOT>/samples/cpp/Reader
CImage2Html16This sample application shows how to convert an image to html text. This sample is built using the C API. The source code can be found in <IDRS_SDK_ROOT>samples/c/Image2Html
CsBarcode16This sample application demonstrates the iDRS™ barcode recognition features. This sample is built using the .NET API. The source code can be found in <IDRS_SDK_ROOT>/samples/dotnet/Barcode
CsImage2Html16This sample application shows how to convert an image to html text. his sample is built using the .NET API. The source code can be found in <IDRS_SDK_ROOT>/samples/dotnet/Image2Html
CsReader16This sample application demonstrates the character recognition and the document output features. This sample is built using the .NET API. The source code can be found in <IDRS_SDK_ROOT>/samples/dotnet/Reader

Linux

Table 3. Linux - bin subfolder

File TypeFile nameDescription
Utility Programslinux_install_idrs.shShell script used to create symbolic links for the files needed by the SDK.
Sample ApplicationsCppBarcode16This sample application demonstrates the barcode recognition features. This sample is built using the C++ API. The source code can be found in <IDRS_SDK_ROOT>/samples/cpp/Barcode.
CppImage2Html16This sample application shows how to convert an image to html text. This sample is built using the C++ API. The source code can be found in <IDRS_SDK_ROOT>/samples/cpp/Image2Html
CppReader16This sample application demonstrates the character recognition and the document output features. This sample is built using the C++ API. The source code can be found in <IDRS_SDK_ROOT>/samples/cpp/Reader
CImage2Html16This sample application shows how to convert an image to html text. This sample is built using the C API. The source code can be found in <IDRS_SDK_ROOT>samples/c/Image2Html
CsBarcode16This sample application demonstrates the barcode recognition features. This sample is built using the .NET API. The source code can be found in <IDRS_SDK_ROOT>/samples/dotnet/Barcode
CsImage2Html16This sample application shows how to convert an image to html text. his sample is built using the .NET API. The source code can be found in <IDRS_SDK_ROOT>/samples/dotnet/Image2Html
CsReader16This sample application demonstrates the character recognition and the document output features. This sample is built using the .NET API. The source code can be found in <IDRS_SDK_ROOT>/samples/dotnet/Reader

In the lib subfolder, you can also find:

  • libidrsc16.so.version: C API runtime
  • idrsnet16.dll: .NET API assembly
  • idrsnet16.xml: .NET API assembly documentation

Environment setup

You need to establish the correct environment before using the toolkit.

The distribution package contains the full versioned library names for which symbolic links need to be created in the correct place.
The package contains a utility shell script that takes care of creating all the necessary symbolic links for you.

In order to invoke the shell script, follow these instructions:

1Open a terminal window and go to the path where you unpacked the tar.bz2 archive containing the package.
2Go to the bin folder
3Execute sh linux_install_idrs.sh

Shell script

Image 1. Execute linux_install_idrs.sh

After creating the necessary symbolic links, you need to set the LD_LIBRARY_PATH environment variable to point to the lib folder.

Run the following command:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<path_to_iDRS_package>/lib/

env variable

Image 2. Set LD_LIBRARY_PATH environment variable

You are now able to use the toolkit.
You can launch the sample application CppImage2Html16 to test that everything works fine.

Android

Host setup

To build Android applications using the IRISOCR™ SDK, make sure that the following elements are installed on the host computer:

  1. Android SDK
    The toolkit is compatible with Android 4.2.2 (API 17) or higher. At least one API must be installed.

  2. Android NDK
    As the IRISOCR™ SDK consists in native libraries, you need to have the Android NDK (Native Development Kit) available on your host computer.

  3. Android Studio
    The official IDE for Android development is Android Studio. Of course, alternatives do exist and may be used instead.

Android Compatibility

  • SDK version or target SDK version must be at least Android API 17.
  • Android guidelines say native libraries of an Android application should link against shared C++ runtime, and all libraries should use the same runtime (see https://developer.android.com/ndk/guides/cpp-support.html) . The IRISOCR™ SDK follows that directive.

NuGet

  • Platform packages: These packages automatically download all the packages needed for your operating system and architecture. These packages are:

    • iDRS.macOS
    • iDRS.Windows
  • Architecture packages: These packages download the packages needed for your specific architecture. These packages are:

    • iDRS.Windows-x86
    • iDRS.Windows-x64
    • iDRS.Linux-x64
  • Low-level packages: These packages are downloaded automatically when a platform and architecture package is used. But they can also be used directly if greater flexibility is required. These packages are:

    • iDRS.assets: This package contains the resources files needed to perform OCR.
    • iDRS.NET: This package contains the .NET dlls.
    • iDRS.runtime-platform-arch packages: A package containing the native library for each platform and architecture.