Skip to content
Discussion options

You must be logged in to vote

Unfortunately, your images seem to cover some of your text. So I could not read all of it I think.
But some comment right away:
All coordinates from text extractions, line art, image bboxes, whatever are relative to the unrotated page.
There are Page attributes .rotation_matrix and .derotation_matrix to compute between the respective coordinate systems:

pprint((page.transformation_matrix,page.rotation_matrix,page.derotation_matrix))
(Matrix(1.0, 0.0, 0.0, -1.0, 0.0, 842.0),
 Matrix(1.0, 0.0, 0.0, 1.0, 0.0, 0.0),
 Matrix(1.0, -0.0, -0.0, 1.0, 0.0, 0.0))
page.set_rotation(90)
pprint((page.transformation_matrix,page.rotation_matrix,page.derotation_matrix))
(Matrix(1.0, 0.0, 0.0, -1.0, 0.0, 8…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by JorjMcKie
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants