-
Notifications
You must be signed in to change notification settings - Fork 30
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
supplant imutils with something maintained #141
Comments
Thanks for reporting! I agree that From what I could find eynollah/src/eynollah/utils/rotate.py Line 37 in bc9dddd
eynollah/src/eynollah/utils/rotate.py Line 64 in bc9dddd
eynollah/src/eynollah/utils/rotate.py Line 71 in bc9dddd
The most efficient would imho be replacing these with their equivalent OpenCV implementations. |
Yes, that seems to be it. And sbb_pixelwise_segmentation likewise uses
I agree. But AFAIK OpenCV itself does not provide a high-level / abstracted operation for rotation which also avoids cropping, i.e. finds the new minimal bounding box and increasing the canvas size, and uses a high-quality interpolation. (That's why in OCR-D core I am still using Pillow's
I advise against ... and the latest release has a bug. Looking closer at What does fit the bill (besides Pillow, which is slow), is Tensorflow does not offer such an operator, but Pytorch does – and it is implemented via Pillow 😉 Looking for cv2-based code on Github, I found Bernhard's Origami does it correctly, so perhaps we should just copy this? |
Thanks for looking into it further...I've been trying something very simple, but Bernhard's implementation seems solid - good find! In |
Eynollah currently relies on https://github.com/PyImageSearch/imutils:
eynollah/requirements.txt
Line 6 in bc9dddd
However, this still uses
distutils
andsetup.py
, does not track its dependencies, and does not install for me:(The same happens with
--no-build-isolation
.)(Of course, I do have an up-to-date setuptools, wheel, and pip, so the error message itself is also broken. The point is that this library cannot be installed out of the box anymore.)
There have even been two PRs – this one and that one trying to fix these issues, but it has been closed by the author because imutils seems to be entirely unmaintained.
So I think this dependency should be removed.
The text was updated successfully, but these errors were encountered: