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

Uploaded Python 3

File details

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

File metadata

  • Download URL: face_cropping-0.1.8.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.8.tar.gz
Algorithm Hash digest
SHA256 e083c74102926c3f03c446166d67b2126879c4cb5abc98ec80a0541e91d7c312
MD5 0221bf6ea5c5aa04c1baa8028a816a3e
BLAKE2b-256 8a84d8ce1d262657fad6d12f9d29b858c4b0347ff9d18e534737b66bdeb88d14

See more details on using hashes here.

File details

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

File metadata

  • Download URL: face_cropping-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 7.3 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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 eef07d1637cb083b486720302434a4787e87f86877884eef116298096007ac22
MD5 03536a844f8ffe5596505a563b7fa736
BLAKE2b-256 dbe7df218a488dbb174bb8a0a909bfdc51a9a6c8de264a3272efccc40baf1832

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