-
Notifications
You must be signed in to change notification settings - Fork 32
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
remove dependency on opencv-python
#126
remove dependency on opencv-python
#126
Conversation
Codecov ReportBase: 71.17% // Head: 71.17% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## main #126 +/- ##
=======================================
Coverage 71.17% 71.17%
=======================================
Files 15 15
Lines 2626 2626
=======================================
Hits 1869 1869
Misses 757 757 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
several functions and constants from
|
dc7e785
to
d2f5396
Compare
looking into replacing shape construction with import cv2
import numpy
from matplotlib import pyplot
from skimage import draw
image_0 = numpy.full((10, 10), fill_value=0, dtype=numpy.uint8)
center = (4, 4)
radius = 4
disk = draw.disk(center, radius)
image_1 = image_0.copy()
image_1[disk] = 1
image_2 = cv2.circle(image_0.copy(), center, radius, 1, thickness=-1)
figure, axes = pyplot.subplots(nrows=1, ncols=2)
axes[0].imshow(image_1)
axes[0].set_title('scikit-image')
axes[1].imshow(image_2)
axes[1].set_title('opencv')
pyplot.show() |
@hbushouse for the goal of removing dependence on |
d2f5396
to
c6ed860
Compare
For now let's just stick with the conditional import contained in this PR. It appears the replacement with |
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.
Looks OK to me, but there's a CI failure (code style) that needs fixing.
5a2537d
to
593e8b9
Compare
Resolves AL-691
This PR removes unconditional dependency on
opencv-python
added in a previous PR; this was causing installation issues on some users' platforms.I am also exploring replacing usage of
opencv-python
withscikit-image
Checklist
CHANGES.rst
(either inBug Fixes
orChanges to API
)