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’)

发布了37 篇原创文章 · 获赞 50 · 访问量 1万+
展开阅读全文

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 技术工厂 设计师: CSDN官方博客

分享到微信朋友圈

×

扫一扫,手机浏览