将associate.py文件拷贝到数据集目录下,并且打开终端输入:
$ python associate.py rgb.txt depth.txt>associate.txt
可能出现问题1:
解决方法:
在桌面打开终端输入:
$ sudo apt install python2-pip
$ pip install numpy
接着回到数据集目录下,打开终端再次运行
$ python2 associate.py rgb.txt depth.txt>associate.txt
如果仍然提示以上错误,则输入(在什么路径下执行都可以)
$ python2
$ import numpy
$ quit()
接着回到数据集目录下,打开终端再次运行
$ python2 associate.py rgb.txt depth.txt>associate.txt
可能出现问题2(该问题仅会在使用python3时才会出现):
解决方法:
需要将associate.py中第86行87行的
first_keys = first_list.keys()
second_keys = second_list.keys()
改为
first_keys = list(first_list.keys())
second_keys = list(second_list.keys())
如遇其他类似问题1中出现的问题,只需把有python2的地方改为python3即可