Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keyframes_extract_diff 运行错误 #3

Open
dcboy opened this issue Jan 6, 2021 · 2 comments
Open

keyframes_extract_diff 运行错误 #3

dcboy opened this issue Jan 6, 2021 · 2 comments

Comments

@dcboy
Copy link

dcboy commented Jan 6, 2021

➜  keyframes_extract_tool python keyframes_extract_diff.py
/usr/bin/python
target video :pikachu.mp4
frame save directory: ./extract_result/
Using Local Maxima
1923 50
Traceback (most recent call last):
  File "keyframes_extract_diff.py", line 195, in <module>
    plt.locator_params(numticks=100)
  File "/home/yopoint/.local/lib/python3.6/site-packages/matplotlib/pyplot.py", line 2744, in locator_params
    return gca().locator_params(axis=axis, tight=tight, **kwargs)
  File "/home/yopoint/.local/lib/python3.6/site-packages/matplotlib/axes/_base.py", line 3006, in locator_params
    self.xaxis.get_major_locator().set_params(**kwargs)
  File "/home/yopoint/.local/lib/python3.6/site-packages/matplotlib/ticker.py", line 2212, in set_params
    f"set_params() got an unexpected keyword argument '{key}'")
TypeError: set_params() got an unexpected keyword argument 'numticks'
➜  keyframes_extract_tool
@CharliePip
Copy link

有一处改成:
plt.locator_params(axis='both', nbins=10)
就行了

@iannluca
Copy link

iannluca commented Mar 6, 2022

你好,我运行Keyframe_extract_fiff出现问题,你能帮我解决下吗
Using Local Maxima
0 10
Traceback (most recent call last):
File "c:/Users/asus/Desktop/新建文件夹 (3)/keyframe.py", line 182, in
sm_diff_array = smooth(diff_array, len_window)
File "c:/Users/asus/Desktop/新建文件夹 (3)/keyframe.py", line 79, in smooth
s = np.r_[2 * x[0] - x[window_len:1:-1],
IndexError: index 0 is out of bounds for axis 0 with size 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants