FaceLock is a small menu bar application that can unlock your mac with your face.
macOS 10.14 (Mojave) or later
Download zip file from Releases, unzip and copy to Applications folder.
FaceLock does not yet support face anti-spoofing, which means that your photos can be used to unlock your mac.
- compile and install ncnn
- compile and install opencv-3.4.9
python2 your_project_path/opencv-3.4.9/platforms/osx/build_framework.py osx
git clone https://github.com/zh0ngtian/FaceLock.git
- open
your_project_path/FaceLock/FaceLock.xcodeproj
with Xcode FaceLock (top line of the left sidebar) -> TARGETS -> Build Phases -> Link Binary With Libraries
- add
Accelerate.framework
- add
OpenCL.framework
- add
your_project_path/opencv-3.4.9/platforms/osx/osx/opencv2.framework
- add
your_project_path/ncnn/build/install/lib/libncnn.a
- add
FaceLock (top line of the left sidebar) -> TARGETS -> Build Settings -> Search Paths
- Framework Search Paths:
your_project_path/FaceLock
- Header Search Paths:
your_project_path/ncnn/build/install/include/ncnn
- Library Search Paths:
your_project_path/ncnn/build/install/lib
- Framework Search Paths:
- Support more faces
- Use more powerful CNN model
- Support simple face anti-spoofing
-
Icon made by smashicons from www.flaticon.com