gpt4 book ai didi

algorithm - 视频变化检测

转载 作者:塔克拉玛干 更新时间:2023-11-03 05:46:25 25 4
gpt4 key购买 nike

我一直在寻找与视频变化检测相关的算法。

基本上,它会查看当前帧与前一帧或视频的第一帧之间是否存在任何视觉差异,并显示使用差异。

你能推荐一个算法吗?

我的实现:我确实逐帧读取视频并转换为灰度级减去第一帧的每一帧并播放视频(当前帧 - 第一帧)

最佳答案

这里有一种方法可以测试两个图像之间是否存在相似性:-

  1. Divide two image into 4*4 or 8*8 blocks
  2. Take squared error from difference of two corresponding blocks from both images
  3. Accumulate the errors and check it against the threshold
  4. if less than threshold then they are similar images
  5. else different

另一种方法:-

我们知道两个相似的框架可以在其中进行一些翻译:-

使用两幅图像的互相关,它越高图像越相关。

关于algorithm - 视频变化检测,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21140320/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com