Skip to content

Commit

Permalink
fix: lower relative threshold for kernel for line detection
Browse files Browse the repository at this point in the history
  • Loading branch information
OBrink committed Sep 18, 2023
1 parent 227c452 commit 1aa4deb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions decimer_segmentation/decimer_segmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def determine_depiction_size_with_buffer(
bboxes: List[Tuple[int, int, int, int]]
) -> Tuple[int, int]:
"""
This function takes a list of bounding boxes and returns 1.2 * the maximal
This function takes a list of bounding boxes and returns 1.1 * the maximal
depiction size (height, width) of the depicted chemical structures.
Args:
Expand All @@ -138,8 +138,8 @@ def determine_depiction_size_with_buffer(
width = bbox[3] - bbox[1]
heights.append(height)
widths.append(width)
height = int(1.2 * np.max(heights))
width = int(1.2 * np.max(widths))
height = int(1.1 * np.max(heights))
width = int(1.1 * np.max(widths))
return height, width


Expand Down

0 comments on commit 1aa4deb

Please sign in to comment.