assume_straight_pages
vs. straighten_pages
#1642
-
The |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
Hi @Adversarian 👋🏼, straighten_pages=True should be used with assume_straight_pages=False in combination. Does this help ? :) |
Beta Was this translation helpful? Give feedback.
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 pipelineSo 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 boxesTry a rotated document with
assume_straight_pages=False
andassume_straight_pages=True
to get a visual feedback.A…