# Face recognition **Repository Path**: caigp/face-recognition ## Basic Information - **Project Name**: Face recognition - **Description**: 开源鸿蒙的人脸识别 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2025-03-27 - **Last Updated**: 2025-12-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Face recognition 想要在开源鸿蒙上面用人脸识别,无奈找了很多都没有现成的,只能自己动手做了,感谢大佬们的开源 :smile: [人脸检测-于仕琪](https://github.com/ShiqiYu/libfacedetection.git) [人脸识别-dlib](https://dlib.net/) ![输入图片说明](https://foruda.gitee.com/images/1743070648398311997/ca373851_5052004.png "1.png") 初始化 ``` export const initFace: (faceLandmarks: string, faceRecognition: string) => number; ``` 人脸检测 ``` export const detect: (pixelMap: image.PixelMap) => Array; ``` 提取特征值 ``` export const feature: (pixelMap: image.PixelMap, rect: Rect) => number[]; ``` 比较特征值 ``` export const compare: (a: number[], b: number[]) => number; ```