menti words init
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user