Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

face_cropping-0.2.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

face_cropping-0.2.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

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

Hashes for face_cropping-0.2.0.tar.gz
Algorithm Hash digest
SHA256 dbd2c8b348b8ad91a3e8031aa6257d64041385f2f01fde716f8988d671e186e3
MD5 12d86a53060f0da463d967437ac73e04
BLAKE2b-256 36a7c8836d019748ccf60e92976d05c67d5c186979f8383f4ca9e479a3b17c61

See more details on using hashes here.

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

Hashes for face_cropping-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b4ea5e441ba54cc6e5961bae9a270f4d76b2215de31c174ac48227801e0d6105
MD5 18a5c5a024b5105e510e787b56cf2006
BLAKE2b-256 e45c1a308ec10cf11b1d2f84c74f7f6959301d0bcd50a3b0c0f45265e04fd4b0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page