mirror of
https://github.com/Deepshift/DeepCreamPy.git
synced 2024-11-28 11:09:42 +00:00
fix #18
This commit is contained in:
parent
95bfd953b8
commit
ceae783af8
@ -68,7 +68,7 @@ def expand_bounding(img, region, expand_factor=1.5, min_size = 256, max_size=512
|
||||
y1_square = 0
|
||||
x2_square = current_size
|
||||
y2_square = current_size
|
||||
elif x2_square > (width - 1) and y2_square > (height - 1):
|
||||
elif x2_square > (width - 1) and y1_square < 0:
|
||||
x1_square = width - current_size - 1
|
||||
y1_square = 0
|
||||
x2_square = width - 1
|
||||
|
Loading…
Reference in New Issue
Block a user