1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

replace tostring() with tobytes

This commit is contained in:
shyama7004
2025-02-18 12:25:01 +05:30
parent 18c0368840
commit c5ad6d7904
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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):