Cyrile commited on
Commit
e6d5a2f
1 Parent(s): deacd55

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +9 -1
README.md CHANGED
@@ -70,8 +70,16 @@ segmentation = img_proc.post_process_semantic_segmentation(
70
  )
71
 
72
  def detect_bboxes(masks: np.ndarray):
 
 
 
 
73
  detected_blocks = []
74
- contours, _ = cv2.findContours(masks.astype(np.uint8), cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)
 
 
 
 
75
  for contour in list(contours):
76
  if len(list(contour)) >= 4:
77
  # smallest rectangle containing all points in the contour is computed
 
70
  )
71
 
72
  def detect_bboxes(masks: np.ndarray):
73
+ r"""
74
+ A simple bounding box detection function that was used to calculate
75
+ the performance metrics in the "Performance" section.
76
+ """
77
  detected_blocks = []
78
+ contours, _ = cv2.findContours(
79
+ masks.astype(np.uint8),
80
+ cv2.RETR_EXTERNAL,
81
+ cv2.CHAIN_APPROX_SIMPLE
82
+ )
83
  for contour in list(contours):
84
  if len(list(contour)) >= 4:
85
  # smallest rectangle containing all points in the contour is computed