From 70104ed2b6c1d6f09a8e8042b240a8f650b09c7c Mon Sep 17 00:00:00 2001 From: Alexander Smorkalov Date: Tue, 18 Feb 2025 15:21:23 +0300 Subject: [PATCH] Replace deprecated tostring() with tobytes(). --- modules/ml/misc/python/test/test_goodfeatures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ml/misc/python/test/test_goodfeatures.py b/modules/ml/misc/python/test/test_goodfeatures.py index a590ba9fa9f..f41b615b501 100644 --- a/modules/ml/misc/python/test/test_goodfeatures.py +++ b/modules/ml/misc/python/test/test_goodfeatures.py @@ -17,7 +17,7 @@ def test_goodFeaturesToTrack(self): results = dict([(t, cv.goodFeaturesToTrack(arr, numPoints, t, 2, useHarrisDetector=True)) for t in threshes]) # Check that GoodFeaturesToTrack has not modified input image - self.assertTrue(arr.tostring() == original.tostring()) + self.assertTrue(arr.tobytes() == original.tobytes()) # Check for repeatability for i in range(1): results2 = dict([(t, cv.goodFeaturesToTrack(arr, numPoints, t, 2, useHarrisDetector=True)) for t in threshes])