Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output UTF8-HTML-files by default and show args.minscale when skipping args #312

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ocropus-gpageseg
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ def process1(job):
print_error("%s: bad scale (%g); skipping\n" % (fname, scale))
return
if scale<args.minscale:
print_error("%s: scale (%g) less than --minscale; skipping\n" % (fname, scale))
print_error("%s: scale (%g) less than --minscale (%g); skipping\n" % (fname, scale, args.minscale))
return

# find columns and text lines
Expand Down
3 changes: 3 additions & 0 deletions ocropus-visualize-results
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ def genpage(d):
try:
os.chdir(d)
with open("index.html","w") as stream:
stream.write("<head>")
stream.write('<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />')
stream.write("</head>")
stream.write("<h1>%s</h1>\n"%d)
images = sorted(glob.glob("??????.bin.png"))
for img in images:
Expand Down