Skip to content

Generalize image rotation code from tesseract

We need to port over the code from tesseract worker here, so that a developer can use it to update the polygon created by its tool according to the parent element rotation.

Refs https://gitlab.com/arkindex/requests/-/issues/624