Skip to content
This repository was archived by the owner on Apr 27, 2026. It is now read-only.
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