Update prototype.py
Browse files- prototype.py +2 -2
prototype.py
CHANGED
@@ -60,10 +60,10 @@ class ImageProcessor:
|
|
60 |
return x, y, w, h
|
61 |
|
62 |
def calculate_roi_head(self, x, y, w, h):
|
63 |
-
roi_height = 60
|
64 |
roi_width = int(w * 2)
|
65 |
roi_x1 = int(x + (w - roi_width) // 2)
|
66 |
-
vertical_offset = 20
|
67 |
roi_y1 = int(max(y - roi_height // 2 - vertical_offset, 0))
|
68 |
roi_y2 = roi_y1 + roi_height
|
69 |
roi_x2 = roi_x1 + roi_width
|
|
|
60 |
return x, y, w, h
|
61 |
|
62 |
def calculate_roi_head(self, x, y, w, h):
|
63 |
+
roi_height = 60 #hard coded, need to make it fit the head
|
64 |
roi_width = int(w * 2)
|
65 |
roi_x1 = int(x + (w - roi_width) // 2)
|
66 |
+
vertical_offset = 20 #hard coded, need to make it fit the head
|
67 |
roi_y1 = int(max(y - roi_height // 2 - vertical_offset, 0))
|
68 |
roi_y2 = roi_y1 + roi_height
|
69 |
roi_x2 = roi_x1 + roi_width
|