def __init__(self): Filter.__init__(self) self.orb = cv2.ORB_create() # self.orb.setNLevels(3) # self.orb.setFirstLevel(1) # help(self.orb) self.status = 0
def __init__(self, save_count=0): Filter.__init__(self) self.chess_size = (9, 6) w = self.chess_size[0] h = self.chess_size[1] if save_count > 1000: save_count = 999 self.save_count = save_count # 世界坐标系中的棋盘格点,例如(0,0,0), (1,0,0), (2,0,0) ....,(8,5,0),去掉Z坐标,记为二维矩阵 self.objp = np.zeros((w * h, 3), np.float32) self.objp[:, :2] = np.mgrid[0:w, 0:h].T.reshape(-1, 2) # 储存棋盘格角点的世界坐标和图像坐标对 self.objpoints = [] # 在世界坐标系中的三维点 self.imgpoints = [] # 在图像平面的二维点
def __init__(self): Filter.__init__(self) self.keyframe = ORBKeyFrame() self.frame_id = 0 print("b,r,e,s,p")
def __init__(self): Filter.__init__(self) # self.name = "Camera" self.cap = cv2.VideoCapture(0) self.cap.set(3, 1280 / 4) self.cap.set(4, 1024 / 4)
def __init__(self): Filter.__init__(self) self.cap = cv2.VideoCapture('output.avi')
def __init__(self): Filter.__init__(self) self.surf = cv2.xfeatures2d.SURF_create()
def __init__(self): Filter.__init__(self) self.sift = cv2.xfeatures2d.SIFT_create()