-
Notifications
You must be signed in to change notification settings - Fork 20
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
cuts and x_bboxes #79
Comments
|
def decode_cuts(s, x=0, ymax=None):
print repr(x)
cuts = []
for path in s.split():
turns = [int(p) for p in path.split(",")]
print repr(x), repr(turns)
x += turns[0]
pos = [x, 0]
cut = [tuple(pos)]
for i, d in enumerate(turns[1:]):
pos[(i+1)%2] += d
cut.append(tuple(pos))
if ymax is not None:
pos[1] = ymax
cut.append(tuple(pos))
cuts.append(cut)
return cuts To convert these to tight bounding boxes, you need the original binary |
@mttagessen in #17 (comment)
While per-character bounding boxes are indeed rather useless (and techniques like CTC layers may or may not produce them randomly), quite a few people seem keen on confidences for postprocessing. |
Why have mechanisms for relative and absolute positioning of codepoints within a word/cinfo?
Why not a
bboxes
attribute without the engine-specific prefix?Related to #69
The text was updated successfully, but these errors were encountered: