Skip to content

assume_straight_pages vs. straighten_pages #1642

Discussion options

You must be logged in to vote

In short:

with assume_straight_pages=False under the hood it's handled as quad polygons [[x1, y1], [x2, y2], [x3, y3], [x4, y4]] instead of boxes [xmin, ymin, xmax, ymax] .. this starts by extracting the coords (detection postprocessor) from the detection model results .. and goes trough the whole pipeline

So the pipeline is the same but with assume_straight_pages=False we have also to take care of rotations and compute "on polygons" instead of boxes

  • additional to support this we plug in (now on main branch) 2 tiny models for general crop and page orientation classification

Try a rotated document with assume_straight_pages=False and assume_straight_pages=True to get a visual feedback.

A…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Adversarian
Comment options

@felixdittrich92
Comment options

Answer selected by Adversarian
@Adversarian
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants