Skip to content

Commit 1aa4deb

Browse files
committed
fix: lower relative threshold for kernel for line detection
1 parent 227c452 commit 1aa4deb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

decimer_segmentation/decimer_segmentation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def determine_depiction_size_with_buffer(
121121
bboxes: List[Tuple[int, int, int, int]]
122122
) -> Tuple[int, int]:
123123
"""
124-
This function takes a list of bounding boxes and returns 1.2 * the maximal
124+
This function takes a list of bounding boxes and returns 1.1 * the maximal
125125
depiction size (height, width) of the depicted chemical structures.
126126
127127
Args:
@@ -138,8 +138,8 @@ def determine_depiction_size_with_buffer(
138138
width = bbox[3] - bbox[1]
139139
heights.append(height)
140140
widths.append(width)
141-
height = int(1.2 * np.max(heights))
142-
width = int(1.2 * np.max(widths))
141+
height = int(1.1 * np.max(heights))
142+
width = int(1.1 * np.max(widths))
143143
return height, width
144144

145145

0 commit comments

Comments
 (0)