Skip to content

Commit

Permalink
ocrd-olena-binarize: Change 'python' call to 'python3'
Browse files Browse the repository at this point in the history
  • Loading branch information
sulzbals authored and bertsky committed May 3, 2020
1 parent 10f29b6 commit 7f74624
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ocrd-olena-binarize
Original file line number Diff line number Diff line change
Expand Up @@ -313,19 +313,19 @@ function main {
niblack)
scribo_options+=(--disable-negate-input)
# has default -0.2 not 0.34
scribo_options+=(--k $(python -c "print(${params[k]}/-1.7)"))
scribo_options+=(--k $(python3 -c "print(${params[k]}/-1.7)"))
;& # fall through
sauvola|kim|wolf)
scribo_options+=(--k ${params[k]})
;;& # get more
singh)
# has default 0.06 not 0.34
scribo_options+=(--k $(python -c "print(${params[k]}*0.1765)"))
scribo_options+=(--k $(python3 -c "print(${params[k]}*0.1765)"))
;;& # get more
sauvola-ms*)
scribo_options+=(--k2 $(python -c "print(${params[k]}/0.34*0.2)")
--k3 $(python -c "print(${params[k]}/0.34*0.3)")
--k4 $(python -c "print(${params[k]}/0.34*0.5)"))
scribo_options+=(--k2 $(python3 -c "print(${params[k]}/0.34*0.2)")
--k3 $(python3 -c "print(${params[k]}/0.34*0.3)")
--k4 $(python3 -c "print(${params[k]}/0.34*0.5)"))
;;& # get more
*)
scribo_options+=(--win-size ${params[win-size]})
Expand Down

0 comments on commit 7f74624

Please sign in to comment.