-
Notifications
You must be signed in to change notification settings - Fork 0
OcrdSegmentEvaluate: ensure binarized image fits page #1
Copy link
Copy link
Open
Description
This does not cover the case where the binary image is itself cropped or deskewed, i.e. does not represent the full PAGE. It will run into an assertion failure if not satisfied. You better watch the @comments for cropped or deskewed. Either you find some image without them (i.e. binarized before cropping), or do not pass the binary image (which will effectively run without only-fg, i.e. on the full segment masks). Also, try to fetch an image without clipped (as these obviously distort the evaluation).
In ocrd_segment.evaluate.EvaluateSegmentation (the OCR-D wrapper) we add relative coordinates in this case (i.e. whatever is consistent with the binary image).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels