Skip to main content

face-cropping

Project description

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

一、安装:

pip install face-cropping

二、使用

方式一:

import face-cropping as f

folder_path='input_images'

output_folder='output_folder'

f.start(folder_path, output_folder)

方式二:

import face-cropping as f

folder_path='input_images'

output_folder='output_folder'

face_landmarks='./model/shape_predictor_68_face_landmarks.dat'

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: face_cropping-0.1.7.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.7.tar.gz
Algorithm Hash digest
SHA256 3bad0c750eb4a8db298d45bc22dbbd182a246f1eb47f667a93851a9aa8062a72
MD5 10a1e878c19e43ad21151cec54bcaac7
BLAKE2b-256 dfae0e7d629ea96aeb863ddfa480bcafc637153256eaaaff5a4d63f6da4d360b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: face_cropping-0.1.7-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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 0bd65b13250925e80c7a6ebd34bf93358fbb7651696c9065e03b42a9055bfd2d
MD5 03b9585b66e49e07c99b85ef6d403788
BLAKE2b-256 7a25003c123f41114702ddea63fd893f2cecf52c7a55314787910f5da5ad8a2c

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