# machine_learning **Repository Path**: billow_jiang/machine_learning ## Basic Information - **Project Name**: machine_learning - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-08-29 - **Last Updated**: 2025-09-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # hello_fastapi A simple app using FastAPI ### 依赖管理 - 更新pip ```shell python -m pip install --upgrade pip -i https://mirrors.aliyun.com/pypi/simple/ ``` - 安装pip依赖 ```shell pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ ``` pip install scikit-learn -i https://mirrors.aliyun.com/pypi/simple/ pip install pandas -i https://mirrors.aliyun.com/pypi/simple/ pip install matplotlib -i https://mirrors.aliyun.com/pypi/simple/ pip install face_recognition -i https://mirrors.aliyun.com/pypi/simple/ pip install opencv-python -i https://mirrors.aliyun.com/pypi/simple/ pip install ultralytics -i https://mirrors.aliyun.com/pypi/simple/ ```shell pip install swagger-ui-bundle -i https://mirrors.aliyun.com/pypi/simple/ ``` pip install fastapi-cdn-host -i https://mirrors.aliyun.com/pypi/simple/ ### 实现的功能有 ### Windows运行环境 - 运维命令 ```shell tasklist /FI "IMAGENAME eq python.exe" ``` ```shell taskkill /F /IM python.exe ``` ```shell netstat -ano | findstr :8000 ``` 假设我们需要开发一个员工门禁系统,可以使用face_recognition来识别员工的面部特征,从而实现无接触式门禁。 数据库建立:首先,需要收集并存储每个员工的面部编码。 实时检测:在门禁系统中集成摄像头,实时捕捉进入区域的人员图像。 人脸检测与编码:对捕捉到的图像进行人脸检测和编码。 人脸比对:将实时捕捉到的人脸编码与数据库中的编码进行比对。 结果处理:如果比对成功,则允许进入;否则,拒绝访问并可能触发警报。 [实验一:鸢尾花数据集分类](https://cloud.tencent.com/developer/article/2064135 "方式一") [使用knn算法对鸢尾花数据集进行分类][1] [1]: https://cloud.tencent.com/developer/article/2063743?policyId=1003 "方式二" [实验二: 人脸识别](https://face-recognition.readthedocs.io/en/latest "") [人脸识别系统(人脸识别、前后端交互、Python项目)] [1] [1]: https://zhuanlan.zhihu.com/p/1892376978847408358 [人脸识别](https://www.zhihu.com/people/lu-ren-jia-6-13-23/posts "") https://blog.csdn.net/lovechris00/article/details/140904764 https://www.pianshen.com/article/8129644137/ https://blog.csdn.net/weixin_48005802/article/details/142255867 ### 实际应用案例 > 员工门禁系统 假设我们需要开发一个员工门禁系统,可以使用face_recognition来识别员工的面部特征,从而实现无接触式门禁。 - 数据库建立:首先,需要收集并存储每个员工的面部编码。 - 实时检测:在门禁系统中集成摄像头,实时捕捉进入区域的人员图像。 - 人脸检测与编码:对捕捉到的图像进行人脸检测和编码。 - 人脸比对:将实时捕捉到的人脸编码与数据库中的编码进行比对。 - 结果处理:如果比对成功,则允许进入;否则,拒绝访问并可能触发警报。 > YOLO目标检测 https://cloud.tencent.com/developer/article/2316720 https://yolov8.com/ https://blog.csdn.net/wzk4869/article/details/131608489 https://zhuanlan.zhihu.com/p/689806847 https://blog.csdn.net/m0_52343631/article/details/149527827 https://download.csdn.net/blog/column/12916030/146486021 https://www.bilibili.com/opus/957528294226395144