请教一个python包里找不到相应函数的问题

我是个技术小白,想复现用openpose提取视频里的骨骼点,但是运行代码时一直报错:
AttributeError: module ‘tools.utils’ has no attribute ‘video’

部分源代码:

pack openpose ouputs

import tools.utils as utils
video = utils.video.get_video_frames(outvideo_path)

height, width, _ = video[0].shape

重新下载包也没有用,上网搜也没有找到解决方法,希望大佬解答

报错是这样的:
ϵͳ�Ҳ���ָ����·����
Traceback (most recent call last):
File “D:\Pycharm 项目\Python 项目\骨骼.py”, line 111, in
p.start()
File “D:\Pycharm 项目\Python 项目\骨骼.py”, line 90, in start
video = utils.video.get_video_frames(outvideo_path)
AttributeError: module ‘tools.utils’ has no attribute ‘video’

讨论数量: 4

看看 tools.utils 里面有没有video这个类,有的话就写成下面这个样子

from tools.utils import video
video = video.get_video_frames(outvideo_path)
5个月前 评论
zyf12138 (楼主) 5个月前
sinmu (作者) 5个月前
Jason990420

Where you got the code ?

5个月前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!