File “associate_TUM.py“, line 96, in associate first_keys.remove(a) AttributeError: ‘dict_keys

在使用associate.py脚本来对彩色图和深度图配对

  命令为:python associate_TUM.py rgb.txt depth.txt > associate_TUM.txt

!!!!!!!!!!!!如果报错:
Traceback (most recent call last):
File “associate_TUM.py”, line 119, in
matches = associate(first_list, second_list,float(args.offset),float(args.max_difference))
File “associate_TUM.py”, line 96, in associate
first_keys.remove(a)
AttributeError: ‘dict_keys’ object has no attribute ‘remove’

错误分析:python版本不对。当前版本因该是3,associate_TUM.py的版本是2

你可能感兴趣的:(python,开发语言)