Skip to content

Commit

Permalink
[add] test photo
Browse files Browse the repository at this point in the history
  • Loading branch information
Simo-C3 committed Sep 20, 2022
1 parent 6a6f870 commit 2c7e539
Show file tree
Hide file tree
Showing 71 changed files with 12 additions and 11 deletions.
Binary file added assets/test/IMG_6985.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/test/IMG_6985_r.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/test/IMG_6986.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/test/IMG_6986_r.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/test/IMG_6987.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/test/IMG_6987_r.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/test/IMG_6988.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/test/IMG_6988_r.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/test/IMG_6990.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/test/IMG_6990_r.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/test/IMG_6991.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/test/IMG_6991_r.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/test/IMG_6992.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/test/IMG_6992_r.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/test/IMG_6993.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/test/IMG_6993_r.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/test/IMG_6994.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/test/IMG_6994_r.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/test/IMG_6997.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/test/IMG_6997_r.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/test/IMG_6998.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/test/IMG_6998_r.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/test/IMG_6999.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/test/IMG_6999_r.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/test/IMG_7002.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/test/IMG_7002_r.jpg
Binary file added assets/test/IMG_7003.jpg
Binary file added assets/test/IMG_7003_r.jpg
Binary file added assets/test/IMG_7004.jpg
Binary file added assets/test/IMG_7004_r.jpg
Binary file added assets/test/IMG_7005.jpg
Binary file added assets/test/IMG_7005_r.jpg
Binary file added assets/test/IMG_7006.jpg
Binary file added assets/test/IMG_7006_r.jpg
Binary file added assets/test/IMG_7007_r_r.jpg
Binary file added assets/test/IMG_7008.jpg
Binary file added assets/test/IMG_7008_r.jpg
Binary file added assets/test/IMG_7009.jpg
Binary file added assets/test/IMG_7009_r.jpg
Binary file added assets/test/IMG_7010.jpg
Binary file added assets/test/IMG_7010_r.jpg
Binary file added assets/test/IMG_7011.jpg
Binary file added assets/test/IMG_7011_r.jpg
Binary file added assets/test/IMG_7012.jpg
Binary file added assets/test/IMG_7012_r.jpg
Binary file added assets/test/IMG_7013_r.jpg
Binary file added assets/test/IMG_7014.jpg
Binary file added assets/test/IMG_7014_r.jpg
Binary file added assets/test/IMG_7015.jpg
Binary file added assets/test/IMG_7015_r.jpg
Binary file added assets/test/IMG_7016.jpg
Binary file added assets/test/IMG_7016_r.jpg
Binary file added assets/test/IMG_7017.jpg
Binary file added assets/test/IMG_7017_r.jpg
Binary file added assets/test/IMG_7018.jpg
Binary file added assets/test/IMG_7018_r.jpg
Binary file added assets/test/IMG_7019.jpg
Binary file added assets/test/IMG_7019_r.jpg
Binary file added assets/test/IMG_7020.jpg
Binary file added assets/test/IMG_7020_r.jpg
Binary file added assets/test/IMG_7021.jpg
Binary file added assets/test/IMG_7021_r.jpg
Binary file added assets/test/IMG_7022.jpg
Binary file added assets/test/IMG_7022_r.jpg
Binary file added assets/test/IMG_7023.jpg
Binary file added assets/test/IMG_7023_r.jpg
Binary file added assets/test/IMG_7024.jpg
Binary file added assets/test/IMG_7024_r.jpg
Binary file added assets/test/IMG_7025.jpg
Binary file added assets/test/IMG_7025_r.jpg
23 changes: 12 additions & 11 deletions resize_test_photo.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@
from PIL import Image

os.makedirs('./assets/test',exist_ok=True)
file = './assets/test/IMG_7007.jpg'
file = files = glob.glob('./assets/test/IMG_*.jpg')

for i, file in enumerate(files):
# 画像の読み込み(RGB)
img = cv2.imread(file)
print(img.shape)
x, y, z = img.shape
print(f"x: {x}, y: {y}, z: {z}")
resize_img = cv2.resize(img, dsize = None, fx = 0.25, fy = 0.25)
print(resize_img.shape)
name = file.split('/')[-1]
name = name.split('.')[0]
print(name)
cv2.imwrite(f"./assets/test/{name}_r.jpg", resize_img)
img = cv2.imread(file)
print(img.shape)
x, y, z = img.shape
print(f"x: {x}, y: {y}, z: {z}")
resize_img = cv2.resize(img, dsize = None, fx = 0.25, fy = 0.25)
print(resize_img.shape)
name = file.split('/')[-1]
name = name.split('.')[0]
print(name)
cv2.imwrite(f"./assets/test/{name}_r.jpg", resize_img)

0 comments on commit 2c7e539

Please sign in to comment.