Skip to content

Commit

Permalink
Added clock function
Browse files Browse the repository at this point in the history
  • Loading branch information
ap193uee committed May 31, 2018
1 parent 10ac6f0 commit b2f8b63
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# README #

Common library with python code snippets used fraquently.
Common library with python code snippets used frequently.

### Libraries Implemented ###

Expand Down
4 changes: 4 additions & 0 deletions common/utils_opencv.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b2f8b63

Please sign in to comment.