Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问这个去除一拍二依赖阈值么,精度怎么样,会不会误删背景 #2

Open
routineLife1 opened this issue Jul 7, 2022 · 5 comments

Comments

@routineLife1
Copy link

No description provided.

@Mr-Z-2697
Copy link
Owner

我用的是ffmpeg的mpdecimate滤镜,只是简单地分块比对像素值,精度不是很高,但应该够用,一般情况下不会误删。
非一般的情况,比如固定背景上有一层变动的薄雾,会导致像素值的差在阈值以内,被判定为重复帧而删除。
另外还有最大连续删除帧数的设置,我设为2。

@routineLife1
Copy link
Author

可以除去一拍三么

@Mr-Z-2697
Copy link
Owner

可以除去一拍三么

不做限制的话可以去除任意长度的连续重复帧

@routineLife1
Copy link
Author

这个除重算法大概是一个什么思路呢(能简单描述下么

@Mr-Z-2697
Copy link
Owner

这个除重算法大概是一个什么思路呢(能简单描述下么

这是ffmpeg官方文档里对mpdecimate的解释:https://ffmpeg.org/ffmpeg-filters.html#mpdecimate

至于我新写的那个方法,就是计算某帧与前一帧的ssim以及逐像素差值的绝对值的最大值,ssim就不用说了,加入最大像素差值的判断是为了防止某些细微的变化无法使ssim降到阈值以下而被误删

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants