MCPcopy
hub / github.com/makelove/OpenCV-Python-Tutorial / __init__

Method __init__

官方samples/common.py:87–94  ·  view source on GitHub ↗
(self, windowname, dests, colors_func)

Source from the content-addressed store, hash-verified

85
86class 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

Calls 1

showMethod · 0.95

Tested by

no test coverage detected