[英]Face replacement by an image in video using FFMPEG android
I am working on FFMPEG Video Conversion, I want a face replacement by my image in a video. 我正在进行FFMPEG视频转换,我想用视频中的图像替换人脸。 For this subject I searched for something which I am describing below.
对于该主题,我搜索了以下内容。 Please let me know if I am wrong, and suggest a more proper procedure for the task.
如果我做错了,请告诉我,并为该任务建议一个更适当的步骤。
1) I can extract all images from a video frame by frame. 1)我可以逐帧提取视频中的所有图像。
2) Then we detect face from each image. 2)然后我们从每个图像中检测出脸部。
3) Morph an image onto the face. 3)将图像变形到脸上。
4) Then again make a video with these images through FFMPEG. 4)然后再次通过FFMPEG用这些图像制作视频。
Am I right? 我对吗? If yes then what about audio in this process?
如果是,那么此过程中的音频呢? And if wrong then where am I mistaken?
如果错了,那我在哪里错了?
ffmpeg可以在视频/音频处理部分提供帮助,对于面部替换,您需要特定的图像处理工具:openCV http://opencv.org/使您大开眼界,但您可以做进一步的搜索。祝您好运。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.