Skip to main content

face-cropping

Project description

从源文件夹中获取所有图片,截取人脸后存入目标文件夹

一、安装:

pip install face-cropping

二、使用

方式一:

import face-cropping

folder_path='input_images'

output_folder='output_folder'

start(folder_path, output_folder)

方式二:

import face-cropping

folder_path='input_images'

output_folder='output_folder'

face_landmarks='./model/shape_predictor_68_face_landmarks.dat'

start68(folder_path, output_folder, face_landmarks)

下载地址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

https://dlib.net/files/

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.6.tar.gz (4.6 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.6-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: face_cropping-0.1.6.tar.gz
  • Upload date:
  • Size: 4.6 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.6.tar.gz
Algorithm Hash digest
SHA256 94f3cee2e9ad0043704bbd65101954cea096aa8e37ba17bfa21d606c32793579
MD5 479158fa02127a1b6c5d7d8e9d9f8b2f
BLAKE2b-256 ebceb25d3839d6e9169049728b746da59dd0c68e2fdc2f63605a42c436ef7e36

See more details on using hashes here.

File details

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

File metadata

  • Download URL: face_cropping-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 6.0 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e3c93759d1b39fe05be42a1fdff1339a1c3b9f8706d4177f4794b33aec734980
MD5 b52ff1fe3803701601e3df2b9c242599
BLAKE2b-256 b1df6304c73c836ffb77d47ecae7d9bb033d8fb3a87150104d6cc83acde5a911

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