Open rsteca opened 8 years ago
If I am not mistaken this is due to using OpenCV version 2.x
rather than 3.0
. In this case cv2.resize()
interprets the third argument as a destination array rather than the interpolation method as intended. One fix, included in the pull request #13, is to use named arguments (cv2.resize(foo, bar, interpolation=cv2.INTER_AREA)
on line 77). This should make the code compatible with both OpenCV versions.
The second error you are getting is probably a consequence of the first (self.image
is not produced because the downscale_image
call failed).
@remi-pr is correct. Merging #13 should fix part of the issue and result in increased localizability for stacktraces.
When doing:
I get:
And then, when I do:
I get: