(self, vis)
| 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 |
no outgoing calls
no test coverage detected