fix(pre_commit): 🎨 auto format pre-commit hooks
This commit is contained in:
1 parent
f73829e941
commit
c46ff15143
1 file changed
+8
-5
@@ -1323,11 +1323,14 @@ class TriangleAnnotator(BaseAnnotator):
|
||||
else custom_color_lookup,
|
||||
)
|
||||
tip_x, tip_y = int(xy[detection_idx, 0]), int(xy[detection_idx, 1])
|
||||
vertices = np.array([
|
||||
[tip_x - self.base // 2, tip_y - self.height],
|
||||
[tip_x + self.base // 2, tip_y - self.height],
|
||||
[tip_x, tip_y]
|
||||
], np.int32)
|
||||
vertices = np.array(
|
||||
[
|
||||
[tip_x - self.base // 2, tip_y - self.height],
|
||||
[tip_x + self.base // 2, tip_y - self.height],
|
||||
[tip_x, tip_y],
|
||||
],
|
||||
np.int32,
|
||||
)
|
||||
|
||||
cv2.fillPoly(scene, [vertices], color.as_bgr())
|
||||
|
||||
|
||||
Reference in new issue
Block a user