Building only the NFIQ 2 library is useful when you want to integrate NFIQ 2 into your own application without the command-line interface dependencies.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/usnistgov/NFIQ2/llms.txt
Use this file to discover all available pages before exploring further.
Quick Build
Building with
BUILD_NFIQ2_CLI=OFF skips the libbiomeval and NFIR dependencies, significantly reducing build complexity and dependency requirements.CMake Configuration Options
Build Type
Set the build configuration type:Architecture
- Windows
- macOS
- Linux
Specify architecture with the
-A flag:Generator
Change the build system generator:Advanced Options
Embedding Random Forest Parameters
By default, NFIQ 2 loads random forest model parameters from external files. You can embed them directly into the library:-
EMBED_RANDOM_FOREST_PARAMETERS(default:OFF)- Whether to embed random forest parameters into the library binary
-
EMBEDDED_RANDOM_FOREST_PARAMETER_FCT(default:0)- Friction ridge capture technology (FCT) code per ANSI/NIST-ITL 1-2011: Update 2015
- Only used when
EMBED_RANDOM_FOREST_PARAMETERSisON
Installation Prefix
Specify where the library should be installed:Build Output
After a successful build, you’ll find:- Library:
libNfiq2Api.a(static) orlibNfiq2Api.so/.dylib/.dll(shared) - Headers: Located in
NFIQ2/NFIQ2Api/include/ - Dependencies: OpenCV and FingerJetFX libraries in the build directory
Verification
Verify the library was built successfully:Platform-Specific Notes
For detailed platform-specific build instructions and troubleshooting, see:Next Steps
Build with CLI
Add the command-line interface to your build
API Integration
Learn how to integrate the library into your application