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.1.9.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.1.9-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file face_cropping-0.1.9.tar.gz.

File metadata

  • Download URL: face_cropping-0.1.9.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.1.9.tar.gz
Algorithm Hash digest
SHA256 79d4109bced4fbdca476c1868a072ce4ca6e3cd144300e8e0958ce7e9036ebdf
MD5 31e2f59ee09b63fcf7fe37790569ba8d
BLAKE2b-256 99faab3b8be3a85f0c8bc71fe503dc0d2e1e176ce756e214ee4fc456448e3005

See more details on using hashes here.

File details

Details for the file face_cropping-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: face_cropping-0.1.9-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.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 30383ad7a60485038a47c8e7ad461f1a0878ca56457f72212c16f51f767c894f
MD5 6b0705a9a75709c57e4b8c3c257c2d5d
BLAKE2b-256 393e8b7e067bd160b50e49562c1a021b5fa165474fb19c0068adaf505842ec0f

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