Fix page rotation to upright orientation during OCR
Turns out text_rotation_adjustment()
function had several bugs. This MR fixes these and adds tests.
Turns out text_rotation_adjustment()
function had several bugs. This MR fixes these and adds tests.