Skip to content

Try OCR rotation using rotateAuto: true #5

@simonw

Description

@simonw

Tesseract.js has a not-very-well documented option:

https://github.com/naptha/tesseract.js/blob/03f82eaab57d3c7c852c6e61bfd805c8cf42e8f2/src/index.d.ts#L96-L102

  interface RecognizeOptions {
    rectangle: Rectangle
    pdfTitle: string
    pdfTextOnly: boolean
    rotateAuto: boolean
    rotateRadians: number
  }

Found an example here: https://github.com/naptha/tesseract.js/blob/03f82eaab57d3c7c852c6e61bfd805c8cf42e8f2/examples/browser/image-processing.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions