This project provides a Proof of Identity system using face biometrics, leveraging advanced face detection and recognition models.
Follow these steps to set up the project locally:
Run the following script to download the face detection model:
./download-face-detection-model.sh
Download the pretrained face recognition model from this link and save it in the root directory as face-recognition.onnx
.
Ensure you have the following tools installed:
- DFX: The SDK for building, deploying, and running Internet Computer (IC) applications.
- Rust: A systems programming language.
Install wasi2ic
by following the instructions here.
To optimize your WebAssembly modules, run:
cargo install wasm-opt
dfx canister call backend clear_face_recognition_model_bytes
ic-file-uploader backend append_face_detection_model_bytes version-RFB-320.onnx
ic-file-uploader backend append_face_recognition_model_bytes face-recognition.onnx
dfx canister call backend setup_models
Thanks to Dfinity for providing the facial recognition template that runs fully onchain