-
Notifications
You must be signed in to change notification settings - Fork 11
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
segment-region: use BlockPolygon #57
Conversation
4f2edd4
to
83b4eef
Compare
83b4eef
to
b0ba660
Compare
Sorry about the force-pushing noise: having a hard time getting used to RST. |
You can also use Markdown for the README if you prefer that, just have to change the setup.py so it's correctly displayed on PyPI. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comments. Thanks for the excellent documentation!
@@ -125,12 +125,12 @@ def process(self): | |||
bin_bbox = image.getbbox() | |||
if not bin_bbox: | |||
# this does happen! | |||
LOG.debug("Ignoring region '%s' because its binarization is empty", ID) | |||
LOG.info("Ignoring region '%s' because its binarization is empty", ID) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, you decided to take the more-verbose road. We have to see if this is feasible in the long run.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, then I misunderstood you. So you want this to stay in DEBUG here, and downgrade similar statements in segment-region
to DEBUG as well?
Sorry, I should have made the last 3 on a separate branch/PR. Just sneaking by your approval! |
Sneaky sneaky 😁 |
Now that sirfz/tesserocr#185 is merged, we can annotate Tesseract's polygon results instead of just the bounding box. Still not making
crop_polygons
true by default, because I believe these things cannot be trusted.I have linked with
tesserocr
requirement from Github instead of the PyPI pkg, because a new release will likely not arrive before Tesseract 5.