sitammeur commited on
Commit
72952a9
·
verified ·
1 Parent(s): 1b6bc72

Update src/utils/processing.py

Browse files
Files changed (1) hide show
  1. src/utils/processing.py +1 -1
src/utils/processing.py CHANGED
@@ -79,7 +79,7 @@ def draw_ocr_bboxes(image: Image.Image, detections: sv.Detections) -> Image.Imag
79
  text_scale = sv.calculate_optimal_text_scale(resolution_wh=image.size)
80
 
81
  # Initialize the bounding box and label annotators
82
- bounding_box_annotator = sv.BoundingBoxAnnotator(
83
  color_lookup=sv.ColorLookup.INDEX, thickness=thickness
84
  )
85
  label_annotator = sv.LabelAnnotator(
 
79
  text_scale = sv.calculate_optimal_text_scale(resolution_wh=image.size)
80
 
81
  # Initialize the bounding box and label annotators
82
+ bounding_box_annotator = sv.BoxAnnotator(
83
  color_lookup=sv.ColorLookup.INDEX, thickness=thickness
84
  )
85
  label_annotator = sv.LabelAnnotator(