def gl_display(self):
"""
use gl calls to render
at least:
the published position of the reference
better:
show the detected postion even if not published
"""
# debug mode within world will show green ellipses around detected ellipses
if self.active and self.detected:
for marker in self.markers:
e = marker[-1] #outermost ellipse
pts = cv2.ellipse2Poly( (int(e[0][0]),int(e[0][1])),
(int(e[1][0]/2),int(e[1][1]/2)),
int(e[-1]),0,360,15)
draw_polyline(pts,1,RGBA(0.,1.,0.,1.))
else:
pass
if self._window:
self.gl_display_in_window()
评论列表
文章目录