Skip to content

Commit

Permalink
Save image
Browse files Browse the repository at this point in the history
  • Loading branch information
kahst authored May 11, 2018
1 parent a514184 commit d0e8cf2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions utils/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ def showImage(img, name='IMAGE', timeout=-1):
cv2.imshow(name, img)
cv2.waitKey(timeout)

def saveImage(img, path):

cv2.imwrite(path, img)

#################### PRE-PROCESSING ######################
def normalize(img, zero_center=False):

Expand Down

0 comments on commit d0e8cf2

Please sign in to comment.