facerecognition/README.md
2025-04-07 08:08:39 +08:00

40 lines
908 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 基于YOLOv5-Face的人脸识别系统
这个系统使用YOLOv5-Face进行人脸检测和特征提取使用SQLite数据库存储人脸特征以便实时比对在人脸识别成功后会提供语音提示。
## 功能特点
- 人脸检测和识别
- 人脸特征提取和存储
- 人脸特征比对
- 识别成功语音提示
- 本地SQLite数据库
## 安装依赖
```
pip install -r requirements.txt
```
## 使用说明
1. 运行人脸注册程序添加人脸到数据库:
```
python register_face.py
```
2. 运行实时人脸识别程序:
```
python face_recognition_app.py
```
## 文件结构
- `face_recognition_app.py`: 主应用程序
- `register_face.py`: 人脸注册程序
- `face_db.py`: 数据库操作模块
- `face_utils.py`: 人脸处理工具函数
- `voice_prompt.py`: 语音提示模块
- `models/`: YOLOv5-Face模型文件夹
- `data/`: 存储数据库和临时文件