欧拉放大元组索引超出范围python

时间:2013-06-13 15:07:23

标签: python opencv numpy scipy

我正在尝试使用Python构建和使用此视频项目。

https://github.com/brycedrennan/eulerian-magnification

我正在尝试运行的命令是:

eulerian_magnification('media/face.mp4', image_processing='gaussian', freq_min=50.0 / 60.0, freq_max=1.0, amplification=50, pyramid_levels=4)

我收回错误:

Loading media/face.mp4
Applying bandpass between 0.833333333333 and 1.0 Hz
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "eulerian_magnify.py", line 19, in eulerian_magnification
vid_data = temporal_bandpass_filter(vid_data, fps, freq_min=freq_min, freq_max=freq_max)
File "eulerian_magnify.py", line 60, in temporal_bandpass_filter
fft = scipy.fftpack.fft(data, axis=axis)
File "/usr/lib/python2.7/dist-packages/scipy/fftpack/basic.py", line 225, in fft
n = tmp.shape[axis]
IndexError: tuple index out of range

我安装了openCV和SciPy以便让程序运行但在搜索之后我无法解决这个问题。

有谁知道我可以用来解决这个问题?

1 个答案:

答案 0 :(得分:1)

这可能表示OpenCV bin目录不在路径中。