def show(self, name, image, callback=None, foreground=True): self._ensurewindow(name, foreground) hg.cvShowImage(name, image) if callback is not None: hg.cvSetMouseCallback(name, callback, image)
def SetMouseCallback(self, name, callback, param=None): hg.cvSetMouseCallback(name, callback, param)