Skip to content

Commit

Permalink
Load only image
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoppippi authored and ayooshkathuria committed Jun 12, 2018
1 parent e42aa2f commit fbb4ef9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def arg_parse():
read_dir = time.time()
#Detection phase
try:
imlist = [osp.join(osp.realpath('.'), images, img) for img in os.listdir(images)]
imlist = [osp.join(osp.realpath('.'), images, img) for img in os.listdir(images) if os.path.splitext(img)[1] == '.png' or os.path.splitext(img)[1] =='.jpeg' or os.path.splitext(img)[1] =='.jpg']
except NotADirectoryError:
imlist = []
imlist.append(osp.join(osp.realpath('.'), images))
Expand Down

0 comments on commit fbb4ef9

Please sign in to comment.