MCPcopy Index your code
hub / github.com/makelove/OpenCV-Python-Tutorial / draw

Method draw

官方samples/common.py:191–196  ·  view source on GitHub ↗
(self, vis)

Source from the content-addressed store, hash-verified

189 if rect:
190 self.callback(rect)
191 def draw(self, vis):
192 if not self.drag_rect:
193 return False
194 x0, y0, x1, y1 = self.drag_rect
195 cv2.rectangle(vis, (x0, y0), (x1, y1), (0, 255, 0), 2)
196 return True
197 @property
198 def dragging(self):
199 return self.drag_rect is not None

Callers 6

aruco_test1.pyFile · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected