From edb3337ead4e70d0b5616f8a7ed8140ebe00f9fc Mon Sep 17 00:00:00 2001 From: SchultzC Date: Mon, 3 Jun 2019 18:18:40 -0700 Subject: [PATCH] Remove divide by 1000 because t = (time.time() - t) will return seconds, dividing by 1000 to obtain seconds will be incorrect. --- .../tutorial_code/core/mat_mask_operations/mat_mask_operations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/python/tutorial_code/core/mat_mask_operations/mat_mask_operations.py b/samples/python/tutorial_code/core/mat_mask_operations/mat_mask_operations.py index 3b93850..ccbed22 100644 --- a/samples/python/tutorial_code/core/mat_mask_operations/mat_mask_operations.py +++ b/samples/python/tutorial_code/core/mat_mask_operations/mat_mask_operations.py @@ -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) -- 2.7.4