Structure-from-motion-python icon indicating copy to clipboard operation
Structure-from-motion-python copied to clipboard

map' object is not subscriptable

Open tranvanha1508 opened this issue 3 years ago • 1 comments

File "main.py", line 62, in imageSize = list(map(int,listaImages[0].shape)) TypeError: 'map' object is not subscriptable

tranvanha1508 avatar Apr 29 '21 02:04 tranvanha1508

I cannot find that line but i think the problem is that you are using python3, the original code was in python 2.7. In python 2.7 map() returns a list but in python3 returns a map object. list of map should work. list(listaImages)[0]

aferral avatar Apr 29 '21 03:04 aferral