Open psihonavt opened 9 years ago
Works just fine on my local instance.
Can you post version of OpenCV lib here?
>>> import cv2
>>> cv2.__version__
'2.4.2'
2.4.9 is required. Try to update your version and let me know if this helped.
Updated README.md. Thanks for pointing it.
As notes stated:
Run it on test file: python split.py ../src/puzzle.tif
../src/puzzle.tif
:So, problem in this guy
cv2.inRange(hsv, rng[0], rng[1])
. According to documentationsrc
(hsv
in our case) should be the same size as upper/lower boundaries (rng[0]
,rng[1]
). Buthsv
is multidimensional array while ranges are not.