Remove divide by 1000
authorSchultzC <cas03j@gmail.com>
Tue, 4 Jun 2019 01:18:40 +0000 (18:18 -0700)
committerSchultzC <cas03j@gmail.com>
Tue, 4 Jun 2019 15:17:37 +0000 (08:17 -0700)
because t = (time.time() - t) will return seconds,  dividing by 1000 to obtain seconds will be incorrect.

samples/python/tutorial_code/core/mat_mask_operations/mat_mask_operations.py

index 3b93850..ccbed22 100644 (file)
@@ -69,7 +69,7 @@ def main(argv):
 
     dst0 = sharpen(src)
 
-    t = (time.time() - t) / 1000
+    t = (time.time() - t)
     print("Hand written function time passed in seconds: %s" % t)
 
     cv.imshow("Output", dst0)
@@ -86,7 +86,7 @@ def main(argv):
     # ddepth = -1, means destination image has depth same as input image
     ## [filter2D]
 
-    t = (time.time() - t) / 1000
+    t = (time.time() - t)
     print("Built-in filter2D time passed in seconds:     %s" % t)
 
     cv.imshow("Output", dst1)