InspireFaceInspireFace1.2.4.d10
Home
Get started
Get and build the SDK
Examples
  • English
  • 简体中文
GitHub
Home
Get started
Get and build the SDK
Examples
  • English
  • 简体中文
GitHub
  • Introduction
  • Get started
  • Features
  • Guides

    • Architecture and lifetime
    • Model packs
    • Image inputs and coordinates
    • Sessions and tracking
    • Face analysis
    • Recognition and FeatureHub
    • Facial landmarks
    • Liveness detection
    • Face capture
    • More API recipes
  • Language and platform

    • C API
    • C++
    • Python
    • Java
    • Windows
    • Android
    • Apple
    • iOS
    • macOS
    • HarmonyOS
  • Get and build the SDK

    • Overview and downloads
    • Source and common options
    • Linux
    • Windows
    • macOS
    • Android
    • iOS
    • HarmonyOS
    • NVIDIA TensorRT
    • Rockchip NPU
    • Python packaging
    • Java packaging
  • Hardware deployment

    • x86 CPU
    • ARM
    • NVIDIA TensorRT
    • Rockchip NPU
    • Python on Rockchip
  • InspireCV
  • Complete examples
  • API coverage
  • Performance
  • Image processing benchmarks
  • Troubleshooting

Get and build the SDK

Use a prebuilt SDK when its platform, backend and API version fit your application. Build from source when you need newer interfaces, a different toolchain or custom backend options. This section covers the native libraries first, then packaging them for an application, Python environment or JVM.

Prebuilt SDKs

The current GitHub release is v1.2.4. The files below contain the native SDK for Windows, Linux, Android, Apple and HarmonyOS. Python uses 1.2.4.post3, including a Windows x64 wheel. The Android AAR remains 1.2.4.post1. Both contain native SDK 1.2.4; their installation links are listed below.

Use the packaged SDK

The 1.2.4 downloads provide the snapshot, capture and diagnostic APIs used in these guides. Use the headers and libraries from the same archive. Build from source when changing the backend, toolchain or minimum OS version.

PlatformBackendDownload
Windows x64CPU / MNNC/C++ SDK · SHA-256
Linux x86_64CPUUbuntu 18.04 · manylinux2014
Linux ARM64CPUaarch64
Linux ARMv7CPUarmhf
macOS / iOSCPUApple XCFrameworks + C/C++
AndroidCPUNative SDK + Java/JNI
HarmonyOS ARM64CPUNative SDK + HAR project · SHA-256
Linux x86_64TensorRTCUDA 12.2 / Ubuntu 22.04
Linux ARM64RK356x / RK3588aarch64 / RKNPU2
Linux ARMv7RV1109 / RV1126armhf / RKNPU1
Linux ARMv7RV1103 / RV1106armhf / uClibc / RKNPU2
AndroidRK356x / RK3588Android / RKNPU2

The CUDA/Ubuntu label above is the release asset name; check the library's actual dependencies on the deployment machine. The HarmonyOS archive includes an arm64 native SDK and a staged HAR project with its Node-API library; see HarmonyOS integration to import it. For Windows x64 CPU, use the prebuilt C/C++ SDK, install the Python package from PyPI, or build from source. CoreML and standalone desktop Java have their own build guides below.

Choose the library for the application process, including its architecture and C runtime. A 64-bit device can still run a 32-bit application. Keep each archive’s headers and libraries together, and check the platform guide before linking static frameworks or GPU/NPU libraries.

Apple SDK packaging

Download inspireface-apple-1.2.4.zip for the CPU SDK. One package covers macOS Intel / Apple Silicon, iOS arm64 devices and arm64 / x86_64 simulators. It includes the Objective-C and Swift frameworks used in the examples, along with C/C++ headers and libraries.

ApplicationLibraries to addIntegration guide
Objective-CInspireFace.xcframeworkApple API
SwiftInspireFace.xcframework + InspireFaceSwift.xcframeworkApple API
Native C / C++Headers and libraries under the per-architecture InspireFace/ directoryC, C++
macOS PythonMatching libInspireFace.dylib and Python wrapperPython packaging

InspireFace.framework contains the C and Objective-C interfaces. InspireFaceSwift.framework adds Swift configuration types and scoped buffer helpers. Keep both frameworks from the same build. The package also includes merged platform frameworks, native SDK directories and metadata for checking architectures and deployment targets.

Use the iOS build guide for device and simulator packages, and the macOS build guide for Intel, Apple Silicon and universal packages. iOS frameworks are static; macOS frameworks are dynamic. This distinction controls Xcode's embedding settings. The new iOS framework already incorporates its inference dependency, so it does not need an additional MNN.framework in the application target.

The packaged macOS libraries target 14.0 on arm64 and 15.0 on x86_64. iOS targets 11.0 on devices, 14.0 on arm64 simulators and 11.0 on x86_64 simulators. CoreML packages can be built locally and require a compatible CoreML resource pack; see iOS and macOS for custom builds.

Python and Android packages

The Python package on PyPI is 1.2.4.post3 and includes the 1.2.4 CPU runtime. Install it with:

python -m pip install inspireface opencv-python

To upgrade an existing installation, run python -m pip install --upgrade inspireface. The release provides these py3-none wheels; select the architecture of the Python process:

PlatformArchitecturePublished wheel tag
Windowsx64win_amd64
Linuxx86_64manylinux2014_x86_64
LinuxARM64manylinux2014_aarch64
macOSApple Siliconmacosx_11_0_arm64
macOSIntelmacosx_12_0_x86_64

Windows requires 64-bit Python and the Visual C++ x64 Redistributable. The wheel includes libInspireFace.dll for CPU inference; no local compiler is needed. See Windows integration for local model loading and DLL troubleshooting.

The PyPI file list contains the downloads and checksums. For a custom native library or wheel, see Python packaging and library replacement.

macOS requirements for 1.2.4.post3

The bundled native libraries target macOS 14.0 or later on arm64 and macOS 15.0 or later on x86_64. These requirements are higher than the wheel filenames indicate. For an earlier macOS version, build a compatible library and use a matching wheel tag as described in Python packaging.

For Android, use the complete 1.2.4.post1 AAR: com.github.HyperInspire:inspireface-android-sdk:v1.2.4.post1, including the leading v. It contains the Android wrappers, complete Java API, models and R8 rules. It supports arm64-v8a, armeabi-v7a and x86_64, with a minimum Android API of 24 and one libInspireFace.so per ABI. Native version queries report 1.2.4, with C API level 2.

The Android integration page includes the repository and Gradle configuration. For local builds, Android builds explains how to produce the JAR and native libraries and add them to an app. Those files are already included when using the AAR.

Java SDK

The Java binding exposes the C API through JNI and runs without Android. Build from the Develop source containing command/build_java.sh. The installed build/java-sdk/install/Java/ directory includes a Java 8-compatible inspireface.jar, native libraries for the target, Java sources and an example.

The JAR is shared across targets; select native libraries for the running JVM’s OS and architecture and keep them paired with the JAR. Integration currently uses this local JAR. See Java packaging for the build and Java integration for a complete program.

Download the model separately

Native SDKs, JVM packages and Python wheels need a resource pack at runtime. The Android 1.2.4.post1 AAR includes Pikachu and Megatron; follow Android initialization to use them, or supply an external pack when changing models. Download packs from the model release: Pikachu and Megatron for CPU, Megatron_TRT for TensorRT, or the Gundam file for the target Rockchip SoC. See model selection and loading for the full mapping.

Choose a build guide

GuideWhat it covers
Source and common optionsCheckouts, dependencies, CMake options and output layout.
LinuxNative CPU, ARM cross-compilation, Ubuntu and manylinux builds.
WindowsMSVC x64 CPU builds, shared/static libraries, CMake integration and DLL deployment.
macOSIntel, Apple Silicon, universal frameworks, Swift modules and CoreML.
AndroidNDK, ABIs, JNI libraries and AAR packaging.
iOSDevice / simulator slices, XCFramework packaging and CoreML.
HarmonyOSNative SDK, Node-API adapter and HAR staging.
NVIDIA TensorRTCUDA/TensorRT dependencies and Linux builds.
Rockchip NPUBoard toolchains, RKNN/RGA and Android NPU builds.
Java packagingJDK setup, JAR and JNI builds, native-library distribution and JVM tests.
Python packagingReplace .so/.dylib/.dll, build wheels and verify installation.
Edit this page
Last Updated:: 10/18/26, 4:13 PM
Contributors: Jingyu
Next
Source and common options