-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix deskewing #80
fix deskewing #80
Conversation
- use transposition/reflection for multiples of 90° - use rotation and transposition from core - filter deskewed images only on the level of operation - respect angle already applied on parent level by * rotating from that actual to the annotated target angle * annotating the sum of both in the result - expose confidence threshold for OSD orientation as parameter (min_orientation_confidence) and lower from 10 to 1.5
- segment-region/line/word: instead of offset calculations, convert relative to absolute coordinates via core's coordinates_for_segment - segment-region: do not create image data anymore when using crop_polygons (i.e. only get polygons instead of bboxes)
Tests fail because OCR-D/core#311 and OCR-D/core#327 are not merged yet. |
b82eabf
to
b9d1fa6
Compare
I relaxed the requirements – |
Codecov Report
@@ Coverage Diff @@
## master #80 +/- ##
===========================================
+ Coverage 22.65% 46.53% +23.87%
===========================================
Files 8 8
Lines 715 692 -23
Branches 134 129 -5
===========================================
+ Hits 162 322 +160
+ Misses 545 338 -207
- Partials 8 32 +24
Continue to review full report at Codecov.
|
@kba you can release on PyPI now I think. As for merging... maybe in a (short-lived) extra branch here, too? |
Thanks!
Yeah, I had an |
Released as https://pypi.org/project/ocrd-tesserocr/0.5.0/, keeping changes in https://github.com/OCR-D/ocrd_tesserocr/tree/edge as long as ocrd 2.0.0 is pre-release. #83 supersedes this. |
depends on (and abides by) the new image API from OCR-D/core#327