menti words init

This commit is contained in:
2023-07-27 13:02:42 +02:00
parent eff65b3ca4
commit 8ded30d75a
2 changed files with 21 additions and 11 deletions

View File

@@ -246,11 +246,11 @@ class Vision:
return haystack_img
def draw_display_picture(self, haystack_img, rectangles):
def draw_display_picture(self, haystack_img, rectangles, border = 0):
pic = None
for (x, y, w, h) in rectangles:
pic = haystack_img[y:y + h, x:x + w]
pic = haystack_img[y-border:y + h +border, x-border:x + w + border]
# scale_percent = 500 # percent of original size
# width = int(pic.shape[1] * scale_percent / 100)