Method
__init__
(self, windowname, dests, colors_func)
Source from the content-addressed store, hash-verified
| 85 | |
| 86 | class Sketcher: |
| 87 | def __init__(self, windowname, dests, colors_func): |
| 88 | self.prev_pt = None |
| 89 | self.windowname = windowname |
| 90 | self.dests = dests |
| 91 | self.colors_func = colors_func |
| 92 | self.dirty = False |
| 93 | self.show() |
| 94 | cv2.setMouseCallback(self.windowname, self.on_mouse) |
| 95 | |
| 96 | def show(self): |
| 97 | cv2.imshow(self.windowname, self.dests[0]) |
Callers
nothing calls this directly
Tested by
no test coverage detected