NameError: name 'points3D' is not defined

错误1.
NameError: name ‘figure’ is not defined
解决:

from pylab import *

错误2:
TypeError: genfromtxt() got an unexpected keyword argument ‘missing’
解决:

corr = genfromtxt(‘D:\Python\chapter5\nview-corners’,dtype=‘int’,missing=’*’)

改写成

corr = genfromtxt(‘D:\Python\chapter5\nview-corners’)

错误3:
NameError: name ‘points3D’ is not defined
解决:

execfile(‘aaaaa.py’)

错误4:
x1 = points2D[0][:,corr[ndx,0]]
IndexError: arrays used as indices must be of integer (or boolean) type
解决:

corr = genfromtxt(‘D:\Python\chapter5\nview-corners’,dtype=‘int’,missing=’*’)

改写成

corr = genfromtxt(‘D:\Python\chapter5\nview-corners’,dtype=‘int’)

发布了39 篇原创文章 · 获赞 51 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/Dujing2019/article/details/92795240
今日推荐