Reporter().draw() AssertionError: read frame failed, frame id: 84
Closed this issue · 4 comments
File "D:/work/fps_code/code.py", line 24, in
r.draw(classify_result, report_path=os.path.join(data_home, "report.html"), unstable_ranges=unstable,cut_result=res)
File "C:\py37\lib\site-packages\stagesepx\reporter.py", line 257, in draw
for i in range_for_display
File "C:\py37\lib\site-packages\stagesepx\reporter.py", line 257, in
for i in range_for_display
File "C:\py37\lib\site-packages\stagesepx\classifier\base.py", line 50, in get_data
return self.to_video_frame().data
File "C:\py37\lib\site-packages\stagesepx\classifier\base.py", line 45, in to_video_frame
frame = toolbox.get_frame(cap, self.frame_id)
File "C:\py37\lib\site-packages\stagesepx\toolbox.py", line 126, in get_frame
assert ret, f"read frame failed, frame id: {frame_id}"
AssertionError: read frame failed, frame id: 84
- 升到最新版本试试
- “简单代码” 这个描述非常笼统
参考下这里用ffmpeg处理后看看是否存在
使用 ffmpeg -i 视频 -r 60 output.mp4 处理后,可以执行出最后的结果。demo 调通后,我看看如何在项目上落地