Skip to content

Installing Libtorch

Hancom OCR SDK operates based on libtorch, PyTorch's C++ library, to perform core AI functions. Follow the steps below to ensure the libtorch DLLs are included in your development environment.

Installation (Windows)

1. Download the Libtorch library

The distribution URL for this library may change according to PyTorch policy. For details, see the PyTorch website.

2. Extract and specify installation path

  • Extract libtorch-win-shared-with-deps-2.7.1+cpu.zip.
  • From the libtorch\lib directory, copy the following DLL files and paste them into the same path as the distributed libArgoSDK.dll, or add the libtorch\lib directory to the PATH environment variable.
    • asmjit.dll
    • c10.dll
    • fbgemm.dll
    • libiomp5md.dll
    • libiompstubs5md.dll
    • torch.dll
    • torch_cpu.dll
    • torch_global_deps.dll
    • uv.dll