Add function setRNGSeed and seed setup in python tests

This commit is contained in:
Vladislav Sovrasov
2016-03-25 16:17:58 +03:00
parent 05384f05cc
commit a490b64e9b
3 changed files with 15 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):