diff --git a/README.md b/README.md index d34b8b1..5f8f41d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # README # -Common library with python code snippets used fraquently. +Common library with python code snippets used frequently. ### Libraries Implemented ### diff --git a/common/utils_opencv.py b/common/utils_opencv.py index 0d8f351..c6b597f 100755 --- a/common/utils_opencv.py +++ b/common/utils_opencv.py @@ -55,6 +55,10 @@ def stop(self): self.stopped = True +def clock(): + return cv2.getTickCount() / cv2.getTickFrequency() + + def showImage(img, window='Image'): """ Shows the image in a resizeable window""" cv2.namedWindow(window, cv2.WINDOW_NORMAL)