Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • pyocr pyocr
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • World
  • OpenPaperworkOpenPaperwork
  • pyocrpyocr
  • Merge requests
  • !103

Update pyocr to use psm_parameter based on tesseract version

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged David Martin requested to merge ddddavidmartin/pyocr:update_deprecated_psm_option_string into master Jun 13, 2018
  • Overview 7
  • Commits 6
  • Pipelines 0
  • Changes 2

Let's try again after https://github.com/openpaperwork/pyocr/pull/100 did not quite work. This should fix #99 (closed).

We now

  • use the psm parameter based on the tesseract version
  • only import the psm_parameter function in builders.py when it is needed; this avoids circular import issues between builders.py and tesseract.py. This is not great, but the best/simplest solution I could come up with.

Thanks!

Edited Jun 13, 2018 by David Martin
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: update_deprecated_psm_option_string