79250287

Date: 2024-12-04 08:10:36
Score: 1.5
Natty:
Report link

The answer was setting straighten_pages=True, as a parameter to the model.

EX:

model = ocr_predictor(
    det_arch="fast_base",
    reco_arch="parseq",
    pretrained=True,
    straighten_pages=True,  # This corrects deskew under the hood
)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Q_Q_