Skip to content

Commit

Permalink
style and check_code_quality
Browse files Browse the repository at this point in the history
  • Loading branch information
SkalskiP committed Jan 19, 2023
1 parent 5c89d49 commit 93f1dd5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions supervision/tools/detections.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,10 @@ def annotate(

x1, y1, x2, y2 = xyxy.astype(int)
text_width, text_height = cv2.getTextSize(
text=text, fontFace=font, fontScale=self.text_scale, thickness=self.text_thickness
text=text,
fontFace=font,
fontScale=self.text_scale,
thickness=self.text_thickness,
)[0]

text_x = x1 + self.text_padding
Expand All @@ -180,7 +183,7 @@ def annotate(
pt1=(x1, y1),
pt2=(x2, y2),
color=color.as_bgr(),
thickness=self.thickness
thickness=self.thickness,
)
cv2.rectangle(
img=frame,
Expand Down

0 comments on commit 93f1dd5

Please sign in to comment.