def img_to_ref_surface(self,pos):
#convenience lines to allow 'simple' vectors (x,y) to be used
shape = pos.shape
pos.shape = (-1,1,2)
new_pos = cv2.perspectiveTransform(pos,self.m_from_screen )
new_pos.shape = shape
return new_pos
评论列表
文章目录