为了向"大领导"可视化什么是夫妻相,利用 face_recognition 写了个人脸拼接小工具
pip3 install -r requirements.txt
左右拼接
python3 face.py -l left.jpg -r right.jpg -o output.jpg
上下拼接
python3 face.py -l upside.jpg -r downside.jpg -o output.jpg
详情 python3 face.py -h
usage: face.py [-h] [-l LEFT] [-r RIGHT] [-u UPSIDE] [-d DOWNSIDE] [-o OUTPUT]
face cut & concat tool
optional arguments:
-h, --help show this help message and exit
-l LEFT, --left LEFT face on the left
-r RIGHT, --right RIGHT
face on the right
-u UPSIDE, --upside UPSIDE
face on the upside
-d DOWNSIDE, --downside DOWNSIDE
face on the downside
-o OUTPUT, --output OUTPUT
save concat image
https://github.com/wangshub/face-concat
MIT @ github/wangshub
1
dingyaguang117 2018-10-29 16:20:45 +08:00
发际线不一样的,拼起来感人~
|
2
easternslope OP @dingyaguang117 令人头秃 😭
|