4

全知全能的 v2er, 来探讨一个问题

 2 years ago
source link: https://www.v2ex.com/t/865601
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

全知全能的 v2er, 来探讨一个问题

V2EX  ›  Python

全知全能的 v2er, 来探讨一个问题

  panxi · 35 分钟前 · 320 次点击
如果用 python, 我想要实现这样一个功能, 两张图片, 一张是究极美颜过的, 一张是原图, 然后两张图合并在一起显示, 拖动条拖动可以实现原图和美颜图的渐变, 这个可能会用到哪些 python 库呢
4 条回复    2022-07-12 11:24:18 +08:00
lisongeee

lisongeee      28 分钟前

1.首先是拖动的 ui ,python 的 ui 库可以用自带的 tk
2.不同图片不同透明度的叠加,可以用 Pillow
Vaspike

Vaspike      9 分钟前

显示渐变的话除了原图和最终图之外,还需要很多张中间图做过渡显示吧
Rabbircantknow

Rabbircantknow      7 分钟前 via Android

感觉你说的“渐变”不是调整图层透明度那么简单的啊。
如果脸型被美颜改变了,调整透明度就会出现两个轮廓。
可能美颜本身也要在 python 里面算。
imn1

imn1      3 分钟前

库可能不需要太多,一个 GUI 库和 opencv 也能做,就是中间涉及的知识太多

关于   ·   帮助文档   ·   API   ·   FAQ   ·   我们的愿景   ·   广告投放   ·   感谢   ·   实用小工具   ·   4208 人在线   最高记录 5497   ·  

创意工作者们的社区

World is powered by solitude

VERSION: 3.9.8.5 · 26ms · UTC 03:27 · PVG 11:27 · LAX 20:27 · JFK 23:27
Developed with CodeLauncher
♥ Do have faith in what you're doing.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK