mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-19 02:16:34 +08:00
Replace deprecated tostring() with tobytes().
This commit is contained in:
@@ -17,7 +17,7 @@ class TestGoodFeaturesToTrack_test(NewOpenCVTests):
|
|||||||
|
|
||||||
results = dict([(t, cv.goodFeaturesToTrack(arr, numPoints, t, 2, useHarrisDetector=True)) for t in threshes])
|
results = dict([(t, cv.goodFeaturesToTrack(arr, numPoints, t, 2, useHarrisDetector=True)) for t in threshes])
|
||||||
# Check that GoodFeaturesToTrack has not modified input image
|
# Check that GoodFeaturesToTrack has not modified input image
|
||||||
self.assertTrue(arr.tostring() == original.tostring())
|
self.assertTrue(arr.tobytes() == original.tobytes())
|
||||||
# Check for repeatability
|
# Check for repeatability
|
||||||
for i in range(1):
|
for i in range(1):
|
||||||
results2 = dict([(t, cv.goodFeaturesToTrack(arr, numPoints, t, 2, useHarrisDetector=True)) for t in threshes])
|
results2 = dict([(t, cv.goodFeaturesToTrack(arr, numPoints, t, 2, useHarrisDetector=True)) for t in threshes])
|
||||||
|
Reference in New Issue
Block a user