Backport of setRNGSeed implementation and python test randomness fix

This commit is contained in:
Vitaly Tuzov
2016-03-29 17:59:48 +03:00
parent 12a8f5486d
commit 64f02aa72d
3 changed files with 9 additions and 0 deletions

View File

@@ -42,6 +42,7 @@ class NewOpenCVTests(unittest.TestCase):
return self.image_cache[filename]
def setUp(self):
cv2.setRNGSeed(10)
self.image_cache = {}
def hashimg(self, im):