Skip to content

Added global page segmentation mode configuration to preferences & minor improvements#51

Merged
pvorb merged 4 commits into
tesseract4java:developfrom
pauledwardtang:develop
Oct 17, 2020
Merged

Added global page segmentation mode configuration to preferences & minor improvements#51
pvorb merged 4 commits into
tesseract4java:developfrom
pauledwardtang:develop

Conversation

@pauledwardtang

@pauledwardtang pauledwardtang commented Oct 2, 2020

Copy link
Copy Markdown
Contributor

Added global page segmentation mode configuration to preferences

  • Added Visual Studio code and Eclipse project files to .gitignore
  • Added support for images with 4 byte RGBA color components (this was a silent error)
  • Updated source compatibility from Java 6 to Java 7 and added alternate Java EE API specifically for Java 11

For users that need to configure a different PSM in the underlying tesseract engine, this allows them to persist and apply the configuration on the fly.

Notes:

  • This is a destructive action; if you are performing box editing this will cause the RecognitionWorker to execute again which will re-render all page model components. This behavior could be improved by allowing the user to confirm before applying changes, removing the behavior altogether, or perhaps moving the preference into relevant controls pane (common pane?).
  • Having a per-image configuration may be desirable
  • More on Java 11 via StackOverflow: https://stackoverflow.com/questions/52502189/java-11-package-javax-xml-bind-does-not-exist

image

@pauledwardtang pauledwardtang marked this pull request as ready for review October 16, 2020 10:06
@pauledwardtang pauledwardtang changed the title Fixed Java 11 compilation errors Added global page segmentation mode configuration to preferences & minor improvements Oct 16, 2020
@pvorb

pvorb commented Oct 17, 2020

Copy link
Copy Markdown
Member

Awesome! Good job!

@pvorb pvorb merged commit 4a8b637 into tesseract4java:develop Oct 17, 2020
This was referenced Oct 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants