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'

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

start68(folder_path, output_folder, face_landmarks)

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: face_cropping-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 1757b59b7b3c4ba1289a1480c3bcc6b291ac0461f91027e104527aa3cd2405d3
MD5 1987b227715a04761510d9626613002b
BLAKE2b-256 ec923bbe6e34727fe6d1e444d7ecbeae04e05e59a8424f96e39d409187b0d3ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: face_cropping-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 38673b8616cbf31c26f6144a8a283021e0d2b24b392e6d473e4e8c686dbedd1d
MD5 0c3b7e35df2e41fb2d83e299fc8d0ce7
BLAKE2b-256 2e9cc885edb73a0380f9afd291d10d89337c96cc64c8dbd17298b3a180f157a4

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