Add morphology python test, fix python3 compabtibility in kmeans test

This commit is contained in:
Vladislav Sovrasov
2016-01-29 13:07:08 +03:00
parent 56571561b4
commit aaa43dc84f
4 changed files with 57 additions and 8 deletions

View File

@@ -40,7 +40,7 @@ class NewOpenCVTests(unittest.TestCase):
def hashimg(self, im):
""" Compute a hash for an image, useful for image comparisons """
return hashlib.md5(im.tostring()).digest()
return hashlib.md5(im.tostring()).hexdigest()
if sys.version_info[:2] == (2, 6):
def assertLess(self, a, b, msg=None):