请教一个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’
看看
tools.utils
里面有没有video这个类,有的话就写成下面这个样子Where you got the code ?