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

Uploaded Python 3

File details

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

File metadata

  • Download URL: face_cropping-0.1.5.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.5.tar.gz
Algorithm Hash digest
SHA256 c7c6d3eb27e271e196e1be44cc166588291b9da56d94ea11ccb95891571890ef
MD5 508fcc2ea95a59ef3990e329ac33b719
BLAKE2b-256 2952437663bb1fc539bbd1716e226a0cc8fd4f5de7b5e5ea8dc99e014bd7e89c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: face_cropping-0.1.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0a1eb57e366613b796b4ad8ffdf3995ee9af98d238f98eddf0b0bb527f038667
MD5 edc3a137abfe80bf40a242eb22255242
BLAKE2b-256 7a44908dfc04ba75fa575618cd5aa3f4b1be7786b5df02a1999a0cdc05d1d3f9

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