-
-
Save kweralt/65a8608e797162658f033b20d39eaf22 to your computer and use it in GitHub Desktop.
Revisions
-
kweralt revised this gist
Jun 4, 2020 . 1 changed file with 7 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,8 @@ import glob import cv2 imagefiles = glob.glob('C:/Users/kwe/Downloads/Resized DW Images/**/*.png', recursive=True) for i in imagefiles: img = cv2.imread(i) cv2.imwrite(i[:-3] + 'jpg', img) -
qingswu revised this gist
Jul 8, 2016 . No changes.There are no files selected for viewing
-
qingswu revised this gist
Jul 5, 2016 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,4 @@ #!/usr/bin/env python from glob import glob import cv2 pngs = glob('./*.png') -
qingswu created this gist
Jul 5, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ from glob import glob import cv2 pngs = glob('./*.png') for j in pngs: img = cv2.imread(j) cv2.imwrite(j[:-3] + 'jpg', img)