Select the most representative frame in a given sequence of consecutive frames.

The filter accepts the following options:

n

Set the frames batch size to analyze; in a set of n frames, the filter will pick one of them, and then handle the next batch of n frames until the end. Default is 100.

Since the filter keeps track of the whole frames sequence, a bigger n value will result in a higher memory usage, so a high value is not recommended.

过程:

  1. 对每幅图像的RGB通道进行直方图(3x256)统计。
  2. 对所有图像的直方图统计求平均(记为“统计平均”)
  3. 计算每幅图像的直方图和“统计平均”的平方差
  4. 选出平方差最小的一幅

参数:

  n越大需要缓存的图像就越多,所需内存就越大

使用:

  可以和 image2 配合使用

 

相关文章:

  • 2021-12-22
  • 2021-12-27
  • 2021-12-05
  • 2021-08-12
  • 2021-08-14
  • 2021-08-21
猜你喜欢
  • 2021-07-07
  • 2021-07-24
  • 2021-11-17
  • 2021-12-23
  • 2021-11-30
  • 2021-09-14
  • 2021-11-20
  • 2021-12-06
相关资源
相似解决方案