image crop utils face不存在时计算下颚识别点
Project description
为了区分3.0与4.0版本,同时资源图与详情页页也用的一套裁剪逻辑代码。
为了降低裁剪部分维护与开发难度,故封装了裁剪工具包
包制作流程
环境:win
python版本: 3.9
自定义包
https://packaging.python.org/tutorials/packaging-projects/#
项目目录结构
ecpro-util/
|-- src/
| |-- ecpro/
| | |-- init.py
| | |-- html_slot_config.py
| | |-- image.py
| | |-- img_crop.py
|--tests/
| |--test.py
|--setup.py
|--LICENSE
|--MANIFEST.IN
|--pyproject.toml
|--READNE.md
打包
python setup.py sdist bdist_wheel
发布到pypi
首先需要在pypi上注册并绑定邮箱才有权限上传
twine upload dist/*
安装
pip install crop-utils==0.0.6 -i https://pypi.python.org/simple/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
crop_utils-0.0.6.tar.gz
(22.3 kB
view hashes)
Built Distribution
crop_utils-0.0.6-py3-none-any.whl
(22.0 kB
view hashes)
Close
Hashes for crop_utils-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90621add86700f18d1eaa85138efd97546f5d0104c1b8f9e5af5b66d8ef6954a |
|
MD5 | 277d57de57b8ca88de17f01c9f340e5f |
|
BLAKE2b-256 | 6fdce704f4c5c2c2597b436345e42e1bf8de8df2c5ab100f2c044f8c7e9f9688 |