我正在尝试在 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 以使程序运行,但在四处搜索后我无法解决这个问题。
有谁知道我可以玩什么来治愈这个?