face-cropping
Project description
从源文件夹中获取所有图片,截取人脸后存入目标文件夹
一、安装:
pip install face-cropping
二、使用
方式1:
import face-cropping as f
folder_path='input_images' #必填
output_folder='output_folder' #必填
face_landmarks='./model/shape_predictor_68_face_landmarks.dat' #选填
f.start(folder_path, output_folder, face_landmarks)
方式2:
import face-cropping as f
folder_path='input_images'
output_folder='output_folder'
f.start_simple(folder_path, output_folder)
下载地址1: https://github.com/davisking/dlib-models/blob/master/shape_predictor_68_face_landmarks.dat.bz2
下载地址2: http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2
dlib下载: https://dlib.net/files/
shape_predictor_68_face_landmarks.dat是一个已经训练好的人脸特征点检测器,主要用于检测人脸上的68个关键点。这个模型是由dlib库提供的,广泛用于面部特征标记和面部表情分析等领域。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file face_cropping-0.2.0.tar.gz.
File metadata
- Download URL: face_cropping-0.2.0.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbd2c8b348b8ad91a3e8031aa6257d64041385f2f01fde716f8988d671e186e3
|
|
| MD5 |
12d86a53060f0da463d967437ac73e04
|
|
| BLAKE2b-256 |
36a7c8836d019748ccf60e92976d05c67d5c186979f8383f4ca9e479a3b17c61
|
File details
Details for the file face_cropping-0.2.0-py3-none-any.whl.
File metadata
- Download URL: face_cropping-0.2.0-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4ea5e441ba54cc6e5961bae9a270f4d76b2215de31c174ac48227801e0d6105
|
|
| MD5 |
18a5c5a024b5105e510e787b56cf2006
|
|
| BLAKE2b-256 |
e45c1a308ec10cf11b1d2f84c74f7f6959301d0bcd50a3b0c0f45265e04fd4b0
|