Replace deprecated tostring() with tobytes().

pull/3884/head
Alexander Smorkalov 3 weeks ago
parent 2b3ddc04f3
commit 70104ed2b6
  1. 2
      modules/ml/misc/python/test/test_goodfeatures.py

@ -17,7 +17,7 @@ class TestGoodFeaturesToTrack_test(NewOpenCVTests):
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])

Loading…
Cancel
Save