-
Notifications
You must be signed in to change notification settings - Fork 175
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
Numpy deprecated operations #29
Comments
Thanks Gabriel, |
@goncalopp I can reproduce the issues with Traceback (most recent call last):
File "/home/.../Source/simple-ocr-opencv/tests/test_grounding.py", line 14, in setUp
self.segments = ContourSegmenter().process(self.img.image)
File "/home/.../Source/simple-ocr-opencv/simpleocr/processor.py", line 100, in process
output = self._process(arguments)
File "/home/.../Source/simple-ocr-opencv/simpleocr/processor.py", line 149, in _process
arguments = p.process(arguments)
File "/home/.../Source/simple-ocr-opencv/simpleocr/processor.py", line 100, in process
output = self._process(arguments)
File "/home/.../Source/simple-ocr-opencv/simpleocr/segmentation_filters.py", line 34, in _process
good = self._good_segments(segments)
File "/home/.../Source/simple-ocr-opencv/simpleocr/segmentation_filters.py", line 75, in _good_segments
return (True - numpy.max(m, axis=1))
TypeError: numpy boolean subtract, the `-` operator, is deprecated, use the bitwise_xor, the `^` operator, or the logical_xor function instead. I went back a few versions of In any case, the issue can can be easily resolved by replacing the I pushed my fix to branch |
Thanks for reproducing and fixiing this RedFantom! I've cherry-picked your fix :) |
Awesome project. You should add your dependencies as numpy has deprecated some of your operators
The text was updated successfully, but these errors were encountered: