使用Python编写的换脸软件 将图像B上的人脸换成图像A上的人脸,生成换脸图片 将视频B上的人脸换成图像A上的人脸,生成换脸

上传者: 46645965 | 上传时间: 2023-06-05 12:28:01 | 文件大小: 154.65MB | 文件类型: RAR
这是一个使用Python编写的换脸软件,所提供的换脸功能包含以下两个场景: 将图像B上的人脸换成图像A上的人脸,生成换脸图片。 将视频B上的人脸换成图像A上的人脸,生成换脸视频。 整体上,程序由两个过程组成:人脸检测和提取、人脸转换,分别实现于文件detect.py和convert.py,两个阶段分别提供可选选项:包括图像变换的方法(2D变换和3D变换)和是否进行色彩调和。 在图形界面上(实现文件:gui.py),提供生成的图片、视频预览功能,生成的图像视频会自动保存到out文件夹。 关键算法 人脸检测与提取 keypoints_detection - 通过人脸五官68个关键点识别人脸集合,基于dlib.shape_predictor函数和数据集shape_predictor_68_face_landmarks.dat face_selection - 选取指定人脸 人脸变换 face_swap - 人脸变换核心函数,步骤为: 仿射变换(2D/3D) 生成掩膜 颜色校正(选) 无缝接合

文件下载

资源详情

[{"title":"( 80 个子文件 154.65MB ) 使用Python编写的换脸软件\n将图像B上的人脸换成图像A上的人脸,生成换脸图片 \n将视频B上的人脸换成图像A上的人脸,生成换脸","children":[{"title":"使用Python编写的换脸软件","children":[{"title":"gui.py <span style='color:#111;'> 16.00KB </span>","children":null,"spread":false},{"title":"image","children":[{"title":"2.jpg <span style='color:#111;'> 91.26KB </span>","children":null,"spread":false},{"title":"10.jpg <span style='color:#111;'> 57.07KB </span>","children":null,"spread":false},{"title":"6.mp4 <span style='color:#111;'> 112.80KB </span>","children":null,"spread":false},{"title":"6.jpg <span style='color:#111;'> 23.22KB </span>","children":null,"spread":false},{"title":"1.jpg <span style='color:#111;'> 288.77KB </span>","children":null,"spread":false},{"title":"12.jpg <span style='color:#111;'> 157.08KB </span>","children":null,"spread":false},{"title":"5.jpg <span style='color:#111;'> 172.49KB </span>","children":null,"spread":false},{"title":"interface.jpg <span style='color:#111;'> 6.49KB </span>","children":null,"spread":false},{"title":"8.jpg <span style='color:#111;'> 47.91KB </span>","children":null,"spread":false},{"title":"11.jpg <span style='color:#111;'> 31.79KB </span>","children":null,"spread":false},{"title":"3.jpg <span style='color:#111;'> 224.30KB </span>","children":null,"spread":false},{"title":"7.jpg <span style='color:#111;'> 16.65KB </span>","children":null,"spread":false},{"title":"9.jpg <span style='color:#111;'> 195.87KB </span>","children":null,"spread":false},{"title":"4.jpg <span style='color:#111;'> 318.89KB </span>","children":null,"spread":false}],"spread":false},{"title":"main.py <span style='color:#111;'> 36B </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":"test_result","children":[{"title":"gui.png <span style='color:#111;'> 130.96KB </span>","children":null,"spread":false},{"title":"test5.png <span style='color:#111;'> 434.43KB </span>","children":null,"spread":false},{"title":"test3.png <span style='color:#111;'> 692.81KB </span>","children":null,"spread":false},{"title":"test2-2.jpg <span style='color:#111;'> 485.06KB </span>","children":null,"spread":false},{"title":"test1.png <span style='color:#111;'> 720.67KB </span>","children":null,"spread":false},{"title":"test3-3.jpg <span style='color:#111;'> 44.46KB </span>","children":null,"spread":false},{"title":"test2-3.jpg <span style='color:#111;'> 492.82KB </span>","children":null,"spread":false},{"title":"test2.png <span style='color:#111;'> 451.46KB </span>","children":null,"spread":false},{"title":"test1-4.jpg <span style='color:#111;'> 122.00KB </span>","children":null,"spread":false},{"title":"test2-4.jpg <span style='color:#111;'> 490.82KB </span>","children":null,"spread":false},{"title":"test2-1.jpg <span style='color:#111;'> 485.79KB </span>","children":null,"spread":false},{"title":"test1-3.jpg <span style='color:#111;'> 120.84KB </span>","children":null,"spread":false},{"title":"test1-1.jpg <span style='color:#111;'> 119.80KB </span>","children":null,"spread":false},{"title":"test1-2.jpg <span style='color:#111;'> 120.92KB </span>","children":null,"spread":false}],"spread":false},{"title":"out","children":[{"title":"FaceSwap-0619172111.avi <span style='color:#111;'> 893.95KB </span>","children":null,"spread":false},{"title":"FaceSwap-0626153320.jpg <span style='color:#111;'> 332.51KB </span>","children":null,"spread":false},{"title":"FaceSwap-0628141927.jpg <span style='color:#111;'> 305.38KB </span>","children":null,"spread":false},{"title":"FaceSwap-0628141846.jpg <span style='color:#111;'> 120.92KB </span>","children":null,"spread":false},{"title":"FaceSwap-0626142407.jpg <span style='color:#111;'> 119.80KB </span>","children":null,"spread":false},{"title":"FaceSwap-0626151525.jpg <span style='color:#111;'> 75.03KB </span>","children":null,"spread":false},{"title":"FaceSwap-0626153435.jpg <span style='color:#111;'> 326.49KB </span>","children":null,"spread":false},{"title":"FaceSwap-0626142419.jpg <span style='color:#111;'> 120.92KB </span>","children":null,"spread":false},{"title":"FaceSwap-0626151511.jpg <span style='color:#111;'> 73.35KB </span>","children":null,"spread":false},{"title":"FaceSwap-0626153341.jpg <span style='color:#111;'> 335.98KB </span>","children":null,"spread":false},{"title":"FaceSwap-0626153331.jpg <span style='color:#111;'> 325.48KB </span>","children":null,"spread":false}],"spread":false},{"title":".git","children":[{"title":"index <span style='color:#111;'> 4.88KB </span>","children":null,"spread":false},{"title":"HEAD <span style='color:#111;'> 23B </span>","children":null,"spread":false},{"title":"refs","children":[{"title":"heads","children":[{"title":"master <span style='color:#111;'> 41B </span>","children":null,"spread":false}],"spread":true},{"title":"tags","children":null,"spread":false},{"title":"remotes","children":[{"title":"origin","children":[{"title":"HEAD <span style='color:#111;'> 32B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"objects","children":[{"title":"pack","children":[{"title":"pack-7721721ecaea381883122c720b7135cf69e13f61.idx <span style='color:#111;'> 2.77KB </span>","children":null,"spread":false},{"title":"pack-7721721ecaea381883122c720b7135cf69e13f61.pack <span style='color:#111;'> 77.63MB </span>","children":null,"spread":false}],"spread":true},{"title":"info","children":null,"spread":false}],"spread":true},{"title":"description <span style='color:#111;'> 73B </span>","children":null,"spread":false},{"title":"packed-refs <span style='color:#111;'> 114B </span>","children":null,"spread":false},{"title":"info","children":[{"title":"exclude <span style='color:#111;'> 240B </span>","children":null,"spread":false}],"spread":true},{"title":"logs","children":[{"title":"HEAD <span style='color:#111;'> 199B </span>","children":null,"spread":false},{"title":"refs","children":[{"title":"heads","children":[{"title":"master <span style='color:#111;'> 199B </span>","children":null,"spread":false}],"spread":false},{"title":"remotes","children":[{"title":"origin","children":[{"title":"HEAD <span style='color:#111;'> 199B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true},{"title":"hooks","children":[{"title":"post-update.sample <span style='color:#111;'> 189B </span>","children":null,"spread":false},{"title":"prepare-commit-msg.sample <span style='color:#111;'> 1.46KB </span>","children":null,"spread":false},{"title":"commit-msg.sample <span style='color:#111;'> 896B </span>","children":null,"spread":false},{"title":"pre-receive.sample <span style='color:#111;'> 544B </span>","children":null,"spread":false},{"title":"update.sample <span style='color:#111;'> 3.56KB </span>","children":null,"spread":false},{"title":"pre-commit.sample <span style='color:#111;'> 1.60KB </span>","children":null,"spread":false},{"title":"pre-rebase.sample <span style='color:#111;'> 4.78KB </span>","children":null,"spread":false},{"title":"applypatch-msg.sample <span style='color:#111;'> 478B </span>","children":null,"spread":false},{"title":"fsmonitor-watchman.sample <span style='color:#111;'> 4.62KB </span>","children":null,"spread":false},{"title":"push-to-checkout.sample <span style='color:#111;'> 2.72KB </span>","children":null,"spread":false},{"title":"pre-applypatch.sample <span style='color:#111;'> 424B </span>","children":null,"spread":false},{"title":"pre-push.sample <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"pre-merge-commit.sample <span style='color:#111;'> 416B </span>","children":null,"spread":false}],"spread":false},{"title":"config <span style='color:#111;'> 321B </span>","children":null,"spread":false}],"spread":true},{"title":"convert.py <span style='color:#111;'> 8.12KB </span>","children":null,"spread":false},{"title":".idea","children":[{"title":"vcs.xml <span style='color:#111;'> 188B </span>","children":null,"spread":false},{"title":"MyWork.iml <span style='color:#111;'> 291B </span>","children":null,"spread":false},{"title":"misc.xml <span style='color:#111;'> 188B </span>","children":null,"spread":false},{"title":"inspectionProfiles","children":[{"title":"profiles_settings.xml <span style='color:#111;'> 179B </span>","children":null,"spread":false}],"spread":true},{"title":"modules.xml <span style='color:#111;'> 271B </span>","children":null,"spread":false}],"spread":true},{"title":"model","children":[{"title":"shape_predictor_68_face_landmarks.dat <span style='color:#111;'> 95.08MB </span>","children":null,"spread":false}],"spread":true},{"title":"detect.py <span style='color:#111;'> 2.95KB </span>","children":null,"spread":false},{"title":"__pycache__","children":[{"title":"gui.cpython-38.pyc <span style='color:#111;'> 11.17KB </span>","children":null,"spread":false},{"title":"detect.cpython-38.pyc <span style='color:#111;'> 2.37KB </span>","children":null,"spread":false},{"title":"convert.cpython-38.pyc <span style='color:#111;'> 4.91KB </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 4.79KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明