我正在尝试使用Python创建和处理此视频项目。这是相关的IT技术。以下是我尝试运行的命令:
我收到了错误消息:
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以使程序能够运行,但在搜索了一番后我无法解决这个问题。
有人知道我该调整什么来解决这个问题吗?