V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
爱意满满的作品展示区。
easternslope
V2EX  ›  分享创造

Python 人脸拼接小脚本

  •  
  •   easternslope ·
    wangshub · 2018-10-29 16:06:20 +08:00 · 1948 次点击
    这是一个创建于 1977 天前的主题,其中的信息可能已经有所发展或是发生改变。

    人脸拼接小工具

    为了向"大领导"可视化什么是夫妻相,利用 face_recognition 写了个人脸拼接小工具

    特性

    左右拼接

    上下拼接

    依赖

    使用

    • 左右拼接

      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

    License

    MIT @ github/wangshub

    2 条回复    2018-10-29 16:35:59 +08:00
    dingyaguang117
        1
    dingyaguang117  
       2018-10-29 16:20:45 +08:00
    发际线不一样的,拼起来感人~
    easternslope
        2
    easternslope  
    OP
       2018-10-29 16:35:59 +08:00
    @dingyaguang117 令人头秃 😭
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3218 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 11:56 · PVG 19:56 · LAX 04:56 · JFK 07:56
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.