Draw modern HUD corner brackets
(self, img, center, offset_x, offset_y, size, color)
| 77 | cv2.line(img, (x1, y1), (x2, y2), color, thickness) |
| 78 | |
| 79 | def draw_hud_corner(self, img, center, offset_x, offset_y, size, color): |
| 80 | """Draw modern HUD corner brackets""" |
| 81 | x, y = center[0] + offset_x, center[1] + offset_y |
| 82 | cv2.line(img, (x, y), (x + size, y), color, 2) |
| 83 | cv2.line(img, (x, y), (x, y + size), color, 2) |
| 84 | |
| 85 | def draw_data_bars(self, img, x, y, values, labels, color): |
| 86 | """Draw modern data visualization bars""" |