mirror of
https://github.com/opencv/opencv.git
synced 2026-09-11 04:43:22 -05:00
replace tostring() with tobytes
This commit is contained in:
@@ -58,7 +58,7 @@ class NewOpenCVTests(unittest.TestCase):
|
||||
|
||||
def hashimg(self, im):
|
||||
""" Compute a hash for an image, useful for image comparisons """
|
||||
return hashlib.md5(im.tostring()).hexdigest()
|
||||
return hashlib.md5(im.tobytes()).hexdigest()
|
||||
|
||||
if sys.version_info[:2] == (2, 6):
|
||||
def assertLess(self, a, b, msg=None):
|
||||
|
||||
Reference in New Issue
Block a user