Skip to content

Commit

Permalink
Update create_dataset.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bgshih committed Dec 21, 2015
1 parent bd6e82f commit 8bcb8bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tool/create_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
def checkImageIsValid(imageBin):
if imageBin is None:
return False
imageBuf = np.fromstring(imgBin, dtype=np.uint8)
img = cv2.imdecode(imgBuf, cv2.IMREAD_GRAYSCALE)
imageBuf = np.fromstring(imageBin, dtype=np.uint8)
img = cv2.imdecode(imageBuf, cv2.IMREAD_GRAYSCALE)
imgH, imgW = img.shape[0], img.shape[1]
if imgH * imgW == 0:
return False
Expand Down

0 comments on commit 8bcb8bb

Please sign in to comment.