Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ddeca45

Browse files
Change defaults
1 parent e4a2884 commit ddeca45

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎autocrop.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@ def _parseargs():
2828
"-m",
2929
type=int,
3030
help="minsize in pixels of objects",
31-
default=30,
31+
default=40,
3232
)
3333
parser.add_argument(
34-
"--extra-space", "-x", type=float, help="extra rim space", default=0.2
34+
"--extra-space", "-x", type=float, help="extra rim space", default=0.3
3535
)
3636
args = parser.parse_args()
3737
return args
3838

3939

40-
def autocrop(img, min_size=30, convert_gray=False, extra_space=0.2):
40+
def autocrop(img, min_size=40, convert_gray=False, extra_space=0.3):
4141
"""Separate front ground and background. Choose only largest objects as front ground.
4242
4343
min_size: minimum size in pixels of objects to include.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /